Fix markers / pin showing in a different position when zooming out #50
Closed
flaviobvds
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you're having the issue of the marker showing in a different position when zooming out (this issue happens even on the live example of this library), here's a solution to your problem:
JSX:
CSS (or in my case, SCSS):
If you are using a marker designed by yourself, such as an image, you could style that directly, but since I'm importing it from
react-icons
I decided to put it inside a container and style the container. That styling will make sure that the marker/pin always stays in the correct position, even when zoomed in/out.Beta Was this translation helpful? Give feedback.
All reactions