MBStyles, incorrect translation of symbols conflict resolution

Description

Currently the symbols are translated as mere point symbolizers, while the text associated to them is translated as a separate text symbolizer.

However, that's now how Mapbox styles work:

  • Symbols conflict resolute by default, even just consider the mark (some do not have a label), there are two properties to disable conflict resolution, ``icon-allow-overlap`` and ``text-allow-overlap``

  • When both label and symbol are on, and with default settings, they both appear, or neither does

Here are a few screenshots taken from Maputnik showing the behavior, check the few labelled icons as well as the group of trees up top, as we zoom in (you’ll have to see the images at their natural scale, just checking them in the Jira page makes it seem we’re zooming out instead, due to the thumbs of the images being shown):

One can also check the behavior here interactively here:

https://www.maptiler.com/maps/#bright//vector/17.99/2.359779/48.850436

and the styles for points, called “poi-level-3”, “poi-level-2” and “poi-level-1” here:

Now, there are a few further configurations that are harder to replicate, like allowing just the text or the icon to disappear, which would require new vendor options, but I believe the default behavior should at least be matched.

Environment

None

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Components

Fix versions

Priority

Medium
Configure