-
Notifications
You must be signed in to change notification settings - Fork 3
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
layer controls #54
Comments
@waternumbers I think you are right, this is a regression that was introduced a while back, #34 was created to remind me to fix it. I'll create a PR to deal with it. |
I've opened #55 to address the default zoom-control behaviour. As for the import error in |
Actually, re-reading your initial comment, it's not the zoom controls but the layer controls that you were referring to. I'll take a look into it. |
Hi @waternumbers - thank you for posting an issue and highlighting a bug. I took a look today and have hopefully found the fix for the control layers, PR#58 has now been merged and will be part of the v0.13.4 |
I've been having a look at generating maps based on this work and htmx - looks really promising :)
Based on the examples I've been struggling to see how to get a layer control. I would have expected the following to work:
This generates a map showing layer2 and the markers, but no layer control. The browser console reports the error
I get the same error using
examples/index.html
having substituted the samescript
import statements used above.The same error also appears loading https://andrewgryan.github.io/leaflet-html/ - which makes me think there may be a issue?
The text was updated successfully, but these errors were encountered: