# 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

  View Source on GitHub
- `MGLIconAnchorLeft`

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

  #### Declaration

  Objective-C

      MGLIconAnchorLeft

  Swift

      case left = 1

  View Source on GitHub
- `MGLIconAnchorRight`

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

  #### Declaration

  Objective-C

      MGLIconAnchorRight

  Swift

      case right = 2

  View Source on GitHub
- `MGLIconAnchorTop`

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

  #### Declaration

  Objective-C

      MGLIconAnchorTop

  Swift

      case top = 3

  View Source on GitHub
- `MGLIconAnchorBottom`

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

  #### Declaration

  Objective-C

      MGLIconAnchorBottom

  Swift

      case bottom = 4

  View Source on GitHub
- `MGLIconAnchorTopLeft`

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

  #### Declaration

  Objective-C

      MGLIconAnchorTopLeft

  Swift

      case topLeft = 5

  View Source on GitHub
- `MGLIconAnchorTopRight`

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

  #### Declaration

  Objective-C

      MGLIconAnchorTopRight

  Swift

      case topRight = 6

  View Source on GitHub
- `MGLIconAnchorBottomLeft`

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

  #### Declaration

  Objective-C

      MGLIconAnchorBottomLeft

  Swift

      case bottomLeft = 7

  View Source on GitHub
- `MGLIconAnchorBottomRight`

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

  #### Declaration

  Objective-C

      MGLIconAnchorBottomRight

  Swift

      case bottomRight = 8

  View Source on GitHub