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
I have this custum style that I have edited in Maputnik : adventure - Copie.json (you need a MapTiler key). It includes many labels in different layers. I want to retrieve static images (for printing) of some areas. However, I noticed that the labels appear differently in raster mode (both in the viewer and when accessing tiles manually) as in vector mode (which seems to be consistant with the Maputnik viewer). Upon further inspection, in raster mode, some labels of one layer are blocked by labels of a "upper" (behind) layer; which is not supposed to happen if I understand correctly. Concretely, here is an example, where the label "COMO" is blocked in raster mode, despite it being normally in front of other nearby layers (both done at zoom 10) :
The problem comes from a collision detection, since the blocked labels reappear when I disable other label layers.
I have noticed this for several labels within several layers. For example, the label "Thun" from the layer "label-town" is blocked by a label from the layer "peaks".
The text was updated successfully, but these errors were encountered:
It sounds to me like this should be a maplibre-native discussion, since that is what is doing the rendering and collision detection.
Setting a tile margin takes maplibre native out of 'tile mode' and puts it into static rendering mode, which could change the label behavior a bit. usually tile mode helps label clipping, but using margin instead might change the behavior.
I thought there were also a few label options, but I can't seem to find them right now.... I will look.
Thank you, I had not realized that it was indeed a problem between adjacent tiles, and setting a tile margin worked (at least for the few examples I looked at). Thank you !
I have this custum style that I have edited in Maputnik : adventure - Copie.json (you need a MapTiler key). It includes many labels in different layers. I want to retrieve static images (for printing) of some areas. However, I noticed that the labels appear differently in raster mode (both in the viewer and when accessing tiles manually) as in vector mode (which seems to be consistant with the Maputnik viewer). Upon further inspection, in raster mode, some labels of one layer are blocked by labels of a "upper" (behind) layer; which is not supposed to happen if I understand correctly. Concretely, here is an example, where the label "COMO" is blocked in raster mode, despite it being normally in front of other nearby layers (both done at zoom 10) :
The problem comes from a collision detection, since the blocked labels reappear when I disable other label layers.
I have noticed this for several labels within several layers. For example, the label "Thun" from the layer "label-town" is blocked by a label from the layer "peaks".
The text was updated successfully, but these errors were encountered: