Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a geoJSON clear function #1

Closed
emacsen opened this issue Mar 6, 2013 · 2 comments
Closed

Create a geoJSON clear function #1

emacsen opened this issue Mar 6, 2013 · 2 comments

Comments

@emacsen
Copy link
Contributor

emacsen commented Mar 6, 2013

Currently, Leaflet does not support a way to clear the geoJSON layer (see Leaflet/Leaflet#1416) so a new function should be created to clear the map in between runs.

@tmcw
Copy link
Contributor

tmcw commented Mar 13, 2013

.clearLayers() should do this.

@emacsen
Copy link
Contributor Author

emacsen commented Apr 4, 2013

This is an old bug and should have been closed a long time ago. The clearTask function does this by removing the geoJSON layer and creating a new one.

@emacsen emacsen closed this as completed Apr 4, 2013
mvexel added a commit that referenced this issue Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants