Leaflet.glify
Leaflet.glify copied to clipboard
Uncaught (in promise) Error: "layer.canvas" not properly defined
I'm getting this error, please advice
have you been able to find a solution to the problem?
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.