B
B
beduin012016-08-11 13:03:32
JavaScript
beduin01, 2016-08-11 13:03:32

How to remove an object from Leaflet?

With the addition of an object to Leaflet, everything is clear:

L.imageOverlay(fullURL, xbounds).addTo(Window.map);

But what needs to be transferred to remove it?
The documentation says:
removeLayer( <ILayer> layer )
But if I add a raster layer as indicated above (url, borders), then how can I find out its id or get its object (because you can somehow delete it by object)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question