-
Notifications
You must be signed in to change notification settings - Fork 45
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
Issue with using Marker in Vue 3 #943
Comments
Can you please create a repro ? |
@vinayakkulkarni sure. Here goes the codesandbox repro Thank you! |
I have a similar problem with the marker, it requires :options (can't find anything about them in the docs), also when I add a random option eq: color, the map doesn't load, everything works fine until I try to add the VMarker. |
@vinayakkulkarni hope you had a wonderful weekend! Have you got a chance to look at the issue? |
Hey @UXandre, unfortunately I didn’t get a chance to review this last weekend but will take a look this week |
@vinayakkulkarni sounds good and thank you so much! |
https://codesandbox.io/s/v-mapbox-w-marker-s-om6yys I forked this and set up |
@vinayakkulkarni thanks so much! By simply copy and pasting I managed to get the marker up and running. Will spend some time to digest the logic of the code later today. What |
Hi, first of all thank you for maintaining the amazing package.
I managed to add the map in Vue 3 through composition API but have an issue when trying to add the marker.
This is the error I got
When adding the marker, the whole component can't be resolved. Can't figure out why. I noticed there is a variation between the prop names used in the document and the ones actually used in the examples. Would it be the reason? If so, what prop names I should use for VMarker for vue 3?
Thank you!
Update
After digging into the errors, I've made a bit of progress. It seems like the
color
needs to be specified in the option prop. And the popupOption needs to be added too. This is a bit confusing to me as I would simply like to get it up and running with all the default setup. I had to pass an empty object like {} to theVMarker
component to avoid the error. After I did so, my code became:Now I get these errors:
The text was updated successfully, but these errors were encountered: