Skip to content

ol-ext/style/Chart issue using Openlayers 10.8.0 #1180

@rasa2k

Description

@rasa2k

Hi,

I haven't been able to pin point the exact cause but after bumping up Openlayers from 10.7.0 to 10.8.0, in a big application, I'm getting this error:
I saw Openlayers 10.8.0 have a lot of styling/SVG optimizations, so maybe it's a bigger fix.

ol-ext_style_Chart.js?v=635ddf33:149 Uncaught TypeError: canvas.getContext is not a function at olstyleChart.getImage (ol-ext_style_Chart.js?v=635ddf33:149:26) at olstyleChart.createHitDetectionCanvas_ (chunk-U5K7WBE3.js?v=76cfa538:809:44) at olstyleChart.getHitDetectionImage (chunk-U5K7WBE3.js?v=76cfa538:500:39) at CanvasImageBuilder.setImageStyle (chunk-PTLPS44T.js?v=76cfa538:954:42) at renderPointGeometry (chunk-PTLPS44T.js?v=76cfa538:4940:17) at renderFeatureInternal (chunk-PTLPS44T.js?v=76cfa538:4835:5) at renderFeature (chunk-PTLPS44T.js?v=76cfa538:4810:3) at CanvasVectorLayerRenderer.renderFeature (chunk-PTLPS44T.js?v=76cfa538:5534:19) at render (chunk-PTLPS44T.js?v=76cfa538:5470:30) at CanvasVectorLayerRenderer.prepareFrame (chunk-PTLPS44T.js?v=76cfa538:5489:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions