MGLSymbolPlacement

enum MGLSymbolPlacement {}

Label placement relative to its geometry.

Values of this type are used in the MGLSymbolStyleLayer.symbolPlacement property.

MGLSymbolPlacementPoint

The label is placed at the point where the geometry is located.

Declaration

Objective-C

MGLSymbolPlacementPoint

Swift

case point = 0

MGLSymbolPlacementLine

The label is placed along the line of the geometry. Can only be used on LineString and Polygon geometries.

Declaration

Objective-C

MGLSymbolPlacementLine

Swift

case line = 1

MGLSymbolPlacementLineCenter

The label is placed at the center of the line of the geometry. Can only be used on LineString and Polygon geometries. Note that a single feature in a vector tile may contain multiple line geometries.

Declaration

Objective-C

MGLSymbolPlacementLineCenter

Swift

case lineCenter = 2
iOS SDK

SDK JS Reference

On this page