vue-mapbox
vue-mapbox copied to clipboard
Marker Slot Doesn't Work With New Slots API
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.
Has this issue been addressed? I'm experiencing the same issue when trying to use the Marker slot for custom content.