iOS SDK

API Reference

On This Page

MGLIconAnchor

enum MGLIconAnchor {}

Part of the icon placed closest to the anchor.

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

MGLIconAnchorCenter

The center of the icon is placed closest to the anchor.

Declaration

Objective-C

MGLIconAnchorCenter

Swift

case center = 0

MGLIconAnchorLeft

The left side of the icon is placed closest to the anchor.

Declaration

Objective-C

MGLIconAnchorLeft

Swift

case left = 1

MGLIconAnchorRight

The right side of the icon is placed closest to the anchor.

Declaration

Objective-C

MGLIconAnchorRight

Swift

case right = 2

MGLIconAnchorTop

The top of the icon is placed closest to the anchor.

Declaration

Objective-C

MGLIconAnchorTop

Swift

case top = 3

MGLIconAnchorBottom

The bottom of the icon is placed closest to the anchor.

Declaration

Objective-C

MGLIconAnchorBottom

Swift

case bottom = 4

MGLIconAnchorTopLeft

The top left corner of the icon is placed closest to the anchor.

Declaration

Objective-C

MGLIconAnchorTopLeft

Swift

case topLeft = 5

MGLIconAnchorTopRight

The top right corner of the icon is placed closest to the anchor.

Declaration

Objective-C

MGLIconAnchorTopRight

Swift

case topRight = 6

MGLIconAnchorBottomLeft

The bottom left corner of the icon is placed closest to the anchor.

Declaration

Objective-C

MGLIconAnchorBottomLeft

Swift

case bottomLeft = 7

MGLIconAnchorBottomRight

The bottom right corner of the icon is placed closest to the anchor.

Declaration

Objective-C

MGLIconAnchorBottomRight

Swift

case bottomRight = 8