aratcliffe/Leaflet.contextmenu

Example request: how to create a callback to remove the layer clicked

Closed this issue · 1 comments

Could you illustrate in one of your examples how to add a context menu function (callback) to a GeoJSON layer that removes the layer (the one clicked). I can't figure out how to pass the current layer to the callback function. Thanks for your attention.

Hi Alex, see if this helps: #12