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 want to have name labels not collide with pins. At the same time, both the pins and the labels should of course each in their own layer collide among themselves so that pins don't overlap with other pins and name labels don't overlap with other labels.
Rationale
I've got a map dotted with a lot pins. In fact, there are so many pins that not all should be displayed, which is why the layer that shows the pins defines "icon-allow-overlap": false. (The dots you see in the screenshot are a different layer with the same data that allows overlapping in order to achieve the effect that hidden pins are at least displayed as little dots.)
You see in the above screenshot that road name labels are only displayed where there are no pins.
The method I know from tangram to solve this use case would be collision groups: Each layer can specify a bitmask of collision groups it should be part of, so the user can freely define which layer's elements collide with which other layer's elements.
Such a symbol-collision-groups layout property could for example be defined by a bitmask (e.g. 0b110) or an array of named groups (e.g. ["labels", "pins"])
The text was updated successfully, but these errors were encountered:
User Story
I want to have name labels not collide with pins. At the same time, both the pins and the labels should of course each in their own layer collide among themselves so that pins don't overlap with other pins and name labels don't overlap with other labels.
Rationale
I've got a map dotted with a lot pins. In fact, there are so many pins that not all should be displayed, which is why the layer that shows the pins defines
"icon-allow-overlap": false
. (The dots you see in the screenshot are a different layer with the same data that allows overlapping in order to achieve the effect that hidden pins are at least displayed as little dots.)You see in the above screenshot that road name labels are only displayed where there are no pins.
The method I know from tangram to solve this use case would be collision groups: Each layer can specify a bitmask of collision groups it should be part of, so the user can freely define which layer's elements collide with which other layer's elements.
Such a
symbol-collision-groups
layout property could for example be defined by a bitmask (e.g.0b110
) or an array of named groups (e.g.["labels", "pins"]
)The text was updated successfully, but these errors were encountered: