vue-mapbox icon indicating copy to clipboard operation
vue-mapbox copied to clipboard

Marker Slot Doesn't Work With New Slots API

Open celsowhite opened this issue 5 years ago • 1 comments

Issue

When adding a marker using the new slots api the marker doesn't appear on the map.

Solution

It appears the Marker.vue UI component sets the marker in state using this.$slots. See here. this.$slots doesn't show scoped slots when a user uses the newer slots syntax. See here for why that is. The Marker.vue component should reference this.$scopedSlots instead of this.$slots. That would enable users to use the new slot syntax.

celsowhite avatar Apr 08 '20 19:04 celsowhite

Has this issue been addressed? I'm experiencing the same issue when trying to use the Marker slot for custom content.

christopherritter avatar Apr 05 '21 15:04 christopherritter