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
Hey, @david-buck! Thank you for your report. Currently, we have inconsistency between client rasterization of vector icons and how we rasterize them in our sprites API. To quickly solve the problem with your style, you can do one of the following:
Change icon-anchor to center to reflect the change in the client-side rendering behavior (your arrow position will be the same as you have in your original SVG)
Move back to raster icons by passing spriteFormat: 'raster'
When I changed the anchor to center, it rendered in a third, new way. I've just updated my zoom and anchor rules to accommodate the difference and can update again later.
mapbox-gl-js version:
3.9.0 beta
browser:
Chrome 131
Steps to Trigger Behavior
I have a sprite that was created with a built-in offset to make it easier to overlay on another icon on a map
the sprite looks like this in mapbox
but actually is framed like this
on my map using < 3.9.0 (currently 3.8.0) the overlaid icons render like this
but in 3.9.0, the icon-anchor seems to be offsetting and appears like this
the pertinent part of my code being
Expected Behavior
Unsure if the 3.8.0 behaviour is as intended and 3.9.0 is broken or vice-versa but this is a change.
The text was updated successfully, but these errors were encountered: