Open waternumbers opened 1 week ago
@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 examples/index.html
and the importmap
usage. I believe this could be related to and ultimately resolved by the switch to using vite
instead of microbundle
as the build tool. I will revisit the docs and examples to understand the recommended approach to client side imports.
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.
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?