Closed tobychidi closed 2 months ago
The example you provided on StackBlitz seems to work fine for me, I do not understand what's wrong ?
The map tile didn't load on my stackblitz. How did you get it to load?
When the map loads in my project is when the circle disappears
This is what I get from Stackblitz
Well that's weird, it could be a network error, make sure to check you console for that. But it's all fine on my side π
This seems to be the problem
Weird origin network issue, but seems unrelated to the module then, can I close the issue ?
Not yet. This issue is different from the main issue. I'll create a repo instead.
So what's the main issue ?
The interactive components disappear. The Stackblitz doesn't reproduce this issues because the map image doesn't load
Well then yes I'll need a better reproduction
So, I have been testing. This issue doesn't have anything to do with modals. The zoom controls and a circle should be visible.
k but I'll need a reproduction π
https://s3.fr-par.scw.cloud/volta/20240826_1246_58_3427594_0f02b9f9cc.mp4 This also happens when I scroll. Watch the zoom controls flicker. I'm trying so hard to figure this out. π
I don't have this issue when I use leaflet
directly. Unfortunately, I cannot reproduce this, I cannot share the full project either. But I am not doing anything extra. My project has multiple nested pages.
Well I won't be able to help you out without decent reproduction, it could really be related to anything at this point. π
My guess is that it is related to stacking/z-index. For some reason, the map is covering the buttons
I used vue-leaflet directly and the issue persists. You can close this.
More comments on this issue.
Leaflet is now my preferred mapping library for most use cases because it is lightweight, simple and easy to use. With this module, you have done a phenomenal job especially with documentaion and support. Thank you.
I have tested this issue and found it be caused not by this module or Vue-leaflet but with the main leaflet library.
My current solution is to add my own control components on the map (which I actually prefer) like so:
I also had to include :style={isolation: 'isolate}
on LMap or else, even my custom buttons would disappear π
Leaflet V2 is on the way. I am hoping the update will make what's good even better. I will dropping an issue on the leaflet page as well.
Thanks.
Thanks for the kind words !
Can't wait to see what's coming π
When I place my map within a modal, the interactive components disappear. I have tried using client-only and other tinkering and nothing works except setting the pane for
LCircle
tomarkerPane
. Need help ππΎWithout setting pane:
After setting pane to "markerPane or higher"
My Code:
Reproduction
On Stackblitz : Couldn't load the tile layer but if it loads the controls and paths hide behind it.