When using slots in v-popup component, the popup content is visible behind the map. This becomes apparent when the map is zoomed out, or when tiles are loading.
https://jsfiddle.net/gu2unt12/1/
Use slot in v-popup component
Hello. I'm having this issue too.
What about using the slot instead of the "content" prop to have a dynamic popup? Will this be possible?
I did come up with a temporary css fix for this. Note that this is scss:
```scss
.vue2leaflet-map {
width: 100%;
height: 100vh;
// this is working for me because my marker components only show
// text until they are opened, you may need to try other ways of hiding
// the elements if you have more than just text...
& > div {
color: transparent;
}
}
@nickforddesign
To avoid the workaround you can use the "content" prop:
<v-popup :content="item.popup" :options="options"></v-popup>
Look at this: https://jsfiddle.net/gu2unt12/2/
@kino90 But this doesn't allow you to easily bind vue components to the popups. For instance, if I want to have interactive components inside the popup, slot is the way to go.
Indeed, I was asking for the same behavior 馃憤
The jsfiddle in the issue seems to have invalid html (opens with v-popup and closes with v-tooltip), however, the behaviour is the same with valid markup:
https://jsfiddle.net/vbrye2af/
@nickforddesign @kino90 @jrast, this should now be fixed in v0.0.58.
Let me know if it works for you guys.
Micka
@KoRiGaN I can confirm that this looks to be fixed now, thank you!
@nickforddesign good to hear that it solved.
I'm closing this issue for now.