MGLSymbolPlacement

enum MGLSymbolPlacement : NSUInteger {}

Label placement relative to its geometry.

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

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

    Declaration

    Objective-C

    MGLSymbolPlacementPoint

    Swift

    case point = 0
  • 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