-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Markers don’t stick to Map #321
Comments
Hey man, I'm not sure if this problem is related but I'm running "react-map-gl": "^3.0.0-beta.3" and my markers aren't showing up at all but their coordinates are logging. Thoughts? Code:
} |
@Monichre Unrelated I believe. Mine are showing up, just not as performant as I’d like when dragging around. Per your comment, I’m not using a |
Hey @malonehedges are you using the @Monichre can you try what @malonehedges suggested and open a new issue if you still can't get it to work (so we don't have 2 conversations here)? Thanks! |
Absolutely. Thanks! |
@abmai |
tested in 3.0.0-beta.3, marker / overlay offset is fixed in this version. Thanks! Overlay context sometimes |
I'm experiencing the same issue on mobile, even with a single If I cannot find a solution soon, I'll probably have to switch back to using Edit: I'm seeing the same results on the |
Seeing it very clearly even on desktop on this page. Zoom in and out quickly, move camera around quickly, ... |
After some research, I'm guessing this is related to an issue in the underlying MapBox GL framework that affects markers and popups. Looking through all the MapBox examples, it seems that adding 'markers' to Layers via GeoJSON does not suffer from the lagging problem - see this example. While less convenient, this is the approach I'm going to pursue for now. |
I’m currently running a
3.0.0
beta, I believe 15 or 16. When I have over 10 pins or so, moving the map around will result in the pins moving with the map but at a slower pace. Are there any best practices to keep the pins in sync with the map?The text was updated successfully, but these errors were encountered: