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

standard methods for each layer like layer.show() layer.hide() layer.isVisible() #251

Open
jywarren opened this issue Sep 4, 2019 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@jywarren
Copy link
Member

jywarren commented Sep 4, 2019

However, these may be easy to do via Leaflet's API: https://leafletjs.com/reference-1.4.0.html

@crisner
Copy link
Contributor

crisner commented Feb 21, 2020

We seem to have methods for these in the Leaflet API.

  • layer.isVisible() => map.hasLayer(<layer>)
  • layer.show() => map.addLayer(<layer>)
  • layer.hide() => map.removeLayer(<layer>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants