MTSymbolLayer
The symbol style that layer renders icon and text labels at points or along lines on a map.
Constructors
Properties
If true, the icon will be visible even if it collides with other symbols. Defaults to style spec default (false) when not set.
If true, the icon will be visible and will not affect placement of other symbols. Defaults to style spec default (false) when not set.
Unique layer identifier.
Identifier of the source to be used for this layer.
Layer to use from a vector tile source.
If true, the text will be visible even if it collides with other symbols. Defaults to style spec default (false) when not set.
Anchor position of the text relative to the symbol anchor. For example, use MTTextAnchor.TOP with a positive Y textOffset to render text below the icon.
Text color (constant or expression), written under paint as text-color.
If true, the text will be visible and will not affect placement of other symbols. Defaults to style spec default (false) when not set.
Amount to offset the text from its anchor in ems. X is right, Y is down. Example: 0.0, 1.2 with textAnchor = MTTextAnchor.TOP places text under the icon.
Type of the layer.
Enum controlling whether this layer is displayed.