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

Toggle polygon

Open jvaldezch opened this issue 4 years ago • 1 comments

Is there a way to toggle an specific polygon to show the popup content using JS code? Thanks

jvaldezch avatar Jan 28 '21 23:01 jvaldezch

vt_layer.on('click', function (e) { var properties = e.layer.properties; L.popup() .setContent("County: " + e.layer.properties.NAMELSAD10 + "
White Student: " + e.layer.properties.D01 + "
White Teacher: " + e.layer.properties.D02) .setLatLng(e.latlng) .openOn(map);

dpakprajul avatar Nov 11 '22 17:11 dpakprajul