Leaflet.glify icon indicating copy to clipboard operation
Leaflet.glify copied to clipboard

Uncaught (in promise) Error: "layer.canvas" not properly defined

Open dig22 opened this issue 3 years ago • 2 comments

image

I'm getting this error, please advice

dig22 avatar Nov 02 '21 06:11 dig22

have you been able to find a solution to the problem?

alex-oko avatar Nov 10 '21 16:11 alex-oko

I get the same error in a browser using the browser build of Leaflet.glify, glify-browser.js.

This is how the map is created:

L.map('map', {maxZoom: 18, minZoom: 8, preferCanvas: true})

The error occurs when a layer with GeoJSON is created using this map:

L.glify.points({
    map,
    data: {
        features    : pts,
        type        : 'FeatureCollection',
    },
    size: 5
})

pts is an array of GeoJSON Point features, which can be processed by L.geoJSON from Leaflet.

robopzet avatar Mar 15 '22 09:03 robopzet