Closed daniel-de-wit closed 2 years ago
Hello @daniel-de-wit
We're certainly looking to expand our feature set. This library was created to address our immediate needs for using basic mapping features with Vue 3. Our focus right now is on fixing any bugs with the initial feature set before adding any new features though.
Any movement on this? Only having simple markers is awfully limiting. It would be massively helpful to add custom markup in the markers themselves.
+1 for this feature
Yeah I realize this is quite a useful feature to have. Will have a go at it when things cool off a bit at work. PRs welcome in the meantime 🙂
@HusamIbrahim @ribrewguy @daniel-de-wit I contacted the author of that library and he created a library for this package https://github.com/eregnier/vue3-gmap-custom-marker
Appreciate the initiative @web-programmer-here! And kudos to @eregnier for creating this. Really appreciate your support sir 🙏
@HusamIbrahim any chance this feature can be added to the library itself without additional libraries? thanks
Probably at some point @web-programmer-here. The native API allows for some decent customization level and only when custom markup is really necessary does this feature become useful. Using your sandbox from the plugin repo as an example: https://codesandbox.io/s/nice-newton-yjgijf?file=/src/frontend/components/Content.vue
Thanks @HusamIbrahim. I need to wrap the image tag in a div
+1
@HusamIbrahim any chance you can add this feature too when you have time? thanks
Added in v0.12.0
https://github.com/inocan-group/vue3-google-map#custom-marker
@HusamIbrahim amazing work
Using a CustomOverlay it's possible to mimic the behaviour of a marker while adding the ability to render html using a slot.
The eregnier/vue2-gmap-custom-marker plugin for diegoazh/gmap-vue has this working (demo). Unfortunately this is all written in Vue2 and not usable in Vue3.
I've tried porting the plugin myself but my JS skills are very limited.
Is there any chance this wonderful package will support this feature in the future?