javascript - Display popups with leaflet ( large dataset ) -
im using leaflet & geojson-vt visualize large dataset (geojson 70,000 polylines features)
is there way show smoothly popup (it contains polyline data) on click event on 1 of multiple polylines ?
i using geojson-vt , example here add tiles leaflet map.
i tried
function oneachfeature(feature, layer) { layer.on('click', function(e) { layer.bindpopup(feature.properties.numero); }); } l.geojson($scope.dataoffile.data, { oneachfeature: oneachfeature }).addto(map);
but map keep freezing.
not sure i'm understanding... example draws canvas layer vector tiles, has no interaction method. if polygons use point in polygon original data. since it's lines may want experiment on plugin using 0 weight (transparent) lines.
Comments
Post a Comment