symbolAvoidEdges

open override fun symbolAvoidEdges(symbolAvoidEdges: Boolean): SymbolLayer

If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.

Use static method SymbolLayer.defaultSymbolAvoidEdges to set the default property.

Parameters

symbolAvoidEdges

value of symbolAvoidEdges

open override fun symbolAvoidEdges(symbolAvoidEdges: Expression): SymbolLayer

If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.

Use static method SymbolLayer.defaultSymbolAvoidEdgesAsExpression to set the default property.

Parameters

symbolAvoidEdges

value of symbolAvoidEdges as Expression

val symbolAvoidEdges: Boolean?

If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.