-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
featuresAt offset #1274
Comments
If you look closely while zooming it looks like the icons aren't centered around their data point. Does the style use |
@anandthakker you can also visualize the bounds of each symbol via |
@ansis Nope, neither of those properties is set in the style. I'll check @peterqliu's debug thing out and post if I find anything. |
@ansis @peterqliu Here's what I see with that |
@ansis looked at this with me a few days back, and I think determined the issue is that |
Is there an offset on non-retina screens? hmm, the sprite looks ok. The sdf dot in the 2x sprite has I think #1124 would fix it, but it might be easier to just make a sprite with a 2x dot. |
@anandthakker Was this fixed by one of the extend or featuresAt related changes? |
@jfirebaugh sorry, haven't been in this project recently. I'll bump it to a more recent version and let you know soon |
@ansis @jfirebaugh Still happening on 0.11.2, but only on retina screens. |
@ansis In the project where I was reproducing this, I changed the icons to |
Alright, thanks. I haven't offsets anywhere else so I'll close this for now. |
featuresAt
is somehow offset from rendered symbol locations:Using
map.featuresAt(e.point, {radius: 10}, ...)
, wheree
is themousemove
event.The text was updated successfully, but these errors were encountered: