-
Notifications
You must be signed in to change notification settings - Fork 68
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
Feature: Advanced Marker supports slot customization elements. #275
Comments
Yeah I agree. This would be great. Without a slot for custom content it's kind of useless for me now, so I have reverted back to the old |
This would be a great feature request especially with the upcoming deprecation(s). |
Any movement on this one? I would try and do a pull request myself but I'm not skilled enough to figure it out :/ Until slots are supposed with custom content I am stuck using the |
There is a workaround to customize the AdvanceMarker by using "content" inside options. The key is to return a function to HtmlDivElement into the "content" E.g:
If you want to use a Vue component so we can style it as we want, we can make it like this: map.vue
mapballon.vue
But it'll be nice if we can have a cleaner way to handle the content. |
The specific usage is as follows:
<AdvancedMarker :options="markerOptions"> <div>custom content</div> </AdvancedMarker >
The text was updated successfully, but these errors were encountered: