mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

Labels cutting out and tiles not loading correctly in Static Tiles API #16588

Open dletran opened 3 years ago

dletran commented 3 years ago

Hello, I am not sure if I am reporting this to the correct repository since it's Static Tiles API related. We're using the Mapbox Static Tiles API and we created a custom style for our map, while testing it we realised some of the labels were cutting out when they were placed in tiles borders. To fix that we tried to set the parameter 'symbol-avoid-edges' to true and playing with zoom steps and font size but without luck. In addition to that, we found that for some tiles sometimes they don't load correctly

Label between tiles example: https://api.mapbox.com/styles/v1/dletran/cklatt59728o117mq8umlncbk/tiles/256/13/4011/3089?access_token=pk.eyJ1IjoiZGxldHJhbiIsImEiOiJjazljdG14ZDYwMmM4M2VudGQ0cTc2b2Y0In0.89M61TZWSedcvjqYhLcD0g https://api.mapbox.com/styles/v1/dletran/cklatt59728o117mq8umlncbk/tiles/256/13/4011/3088?access_token=pk.eyJ1IjoiZGxldHJhbiIsImEiOiJjazljdG14ZDYwMmM4M2VudGQ0cTc2b2Y0In0.89M61TZWSedcvjqYhLcD0g

You can see the label for "Barrio de la Latina" is in the upper border of those two tiles

Tiles not loading correctly: https://api.mapbox.com/styles/v1/dletran/cklatt59728o117mq8umlncbk/tiles/256/14/8030/6181?access_token=pk.eyJ1IjoiZGxldHJhbiIsImEiOiJjazljdG14ZDYwMmM4M2VudGQ0cTc2b2Y0In0.89M61TZWSedcvjqYhLcD0g

Here the URL works fine but while checking the map we saw this:

image (1)

Platform: any Mapbox SDK version: none