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.37k stars 1.33k forks source link

[core][tile mode] Fix variable placement + icon-text-fit #16382

Closed pozdnyakov closed 4 years ago

pozdnyakov commented 4 years ago

The symbolIntersectsTileEdges() util in mbgl::TilePlacement now considers icon shift for the variable symbols with enabled icon-text-fit setting, thus providing more accurate results.

Render test: https://github.com/mapbox/mapbox-gl-js/pull/9513 Fixes https://github.com/mapbox/mapbox-gl-native-team/issues/213