-
Notifications
You must be signed in to change notification settings - Fork 203
Open
Description
hello gays
i use this in my code,
var tile = L.vectorGrid.slicer(geojson,{
interactive: true,
rendererFactory: L.canvas.tile,
vectorTileLayerStyles:{
sliced: { icon: new L.Icon.Default()}
}
}).addTo(map);
tile.on('click', function(e) {
var pro = e.layer.properties;
var HTML = '';
for (var q in pro) {
HTML += q + ":" + pro[q] + '<br />';
}
L.popup()
.setContent(HTML)
.setLatLng(e.latlng)
.openOn(map);
})
and now i can get icon on my map but if move mouse moveon icon
and i get some error like that
""Uncaught TypeError: Cannot read property 'lat' of undefined""
someone can help me??
i use leaflet 1.2.0 in chrome
example is here : https://plnkr.co/edit/FdHsFj4WbheXT90z1fTm?p=preview
thx
chriszrc
Metadata
Metadata
Assignees
Labels
No labels