You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running into an issue getting markers to be placed accurately on a map when using multiple custom icons. Placement is correct with no custom icon, but once custom icon is added in the marker slot the new markers are all incrementally further offset from the correct position (see video attachment for behavior).
I am raising the issue since using the icon in the slot is what is shown in the docs, so the simple fix would be to update the docs (assuming this is a recurring issue and not just a problem with my implementation).
I am running into an issue getting markers to be placed accurately on a map when using multiple custom icons. Placement is correct with no custom icon, but once custom icon is added in the marker slot the new markers are all incrementally further offset from the correct position (see video attachment for behavior).
Code that yields incorrect markers:
Current workaround involves simply wrapping the icon in a div and using that with the slot:
I am raising the issue since using the icon in the slot is what is shown in the docs, so the simple fix would be to update the docs (assuming this is a recurring issue and not just a problem with my implementation).
Tech stack:
"node": "=15.10.0",
"npm": ">=7.0.0",
"vue": "^2.6.12",
"mapbox-gl": "^0.53.1",
"vue-mapbox": "^0.4.1",
"@mapbox/mapbox-gl-geocoder": "^4.7.1",
"@mapbox/mapbox-sdk": "^0.13.0",
"@nuxtjs/vuetify": "^1.11.3",
Custom.Marker.Animation.mp4
The text was updated successfully, but these errors were encountered: