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 requires additional absolute positioning to be on correct spot #183

Open
ejntaylor opened this issue May 14, 2020 · 1 comment
Open

Comments

@ejntaylor
Copy link

I can only get the marker to be on the correct spot by adding:

.mapboxgl-marker {
  position: absolute;
  top: 0;
}

I wonder if I'm doing something wrong or perhaps this is correct approach.

Thanks

@michisp
Copy link

michisp commented May 22, 2020

@raisonon take a look at the docs: https://soal.github.io/vue-mapbox/api/marker.html#props

You've got the anchor prop and can add some more margin with the offset prop

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