Closed HarelM closed 1 year ago
This looks like a Maplibre issue.
The style uses
yet the text shifts left and right when rotating the map
There is also an up-and-down movement in-between
While I'm not arguing this might be a maplibre bug, can you think why the ruins and viewpoint texts behaves differently (one overlaps while the other moves away from the icon)? I'll see if I can create a minimal reproduction using only maplibre and open a bug there if I succeed...
It also happens with ruins
BUT, it is not a Maplibre bug!
If text-translate
is used to shift the text relative to the point, "text-translate-anchor": "viewport"
should also be used. I have no idea why this is not the default.
On the other hand, I have no idea why I used text-translate
in the first place. text-offset
does the work on its own.
Problem
the icon and the text are not rotated "together". See the following image - סאלחה and I think also מצפה איילת. This is the location: https://israelhiking.osm.org.il/map/17.28/33.0757/35.4523 You'll need to rotate the map so that when south is up.
When north is up everything looks as expected: