Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marker Slot Doesn't Work With New Slots API #171

Open
celsowhite opened this issue Apr 8, 2020 · 1 comment
Open

Marker Slot Doesn't Work With New Slots API #171

celsowhite opened this issue Apr 8, 2020 · 1 comment

Comments

@celsowhite
Copy link

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.

@christopherritter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants