Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

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

Merged

Conversation

pozdnyakov
Copy link
Contributor

@pozdnyakov pozdnyakov commented Apr 8, 2020

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: mapbox/mapbox-gl-js#9513
Fixes https://github.com/mapbox/mapbox-gl-native-team/issues/213

@pozdnyakov pozdnyakov self-assigned this Apr 8, 2020
@pozdnyakov pozdnyakov added the needs changelog Indicates PR needs a changelog entry prior to merging. label Apr 8, 2020
@pozdnyakov pozdnyakov changed the title [core][tile mode] Support variable placement + icon-text-fit [core][tile mode] Fix variable placement + icon-text-fit Apr 8, 2020
@pozdnyakov pozdnyakov force-pushed the mikhail_tile_mode_variable_labels_with_icon_text_fit branch from faba08d to f776cfa Compare April 8, 2020 12:44
@pozdnyakov pozdnyakov added Core The cross-platform C++ core, aka mbgl text rendering and removed needs changelog Indicates PR needs a changelog entry prior to merging. labels Apr 8, 2020
@pozdnyakov pozdnyakov merged commit 718dd29 into master Apr 8, 2020
@pozdnyakov pozdnyakov deleted the mikhail_tile_mode_variable_labels_with_icon_text_fit branch April 8, 2020 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl text rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants