iOS SDK

API Reference

On This Page

MGLOrnamentPosition

enum MGLOrnamentPosition {}

The position of scale bar, compass, logo and attribution in a map view. Used with MGLMapView.scaleBarPosition, MGLMapView.compassViewPosition, MGLMapView.logoViewPosition, MGLMapView.attributionButtonPosition.

MGLOrnamentPositionTopLeft

Place the ornament in the top left of the map view.

Declaration

Objective-C

MGLOrnamentPositionTopLeft = 0

Swift

case topLeft = 0

MGLOrnamentPositionTopRight

Place the ornament in the top right of the map view.

Declaration

Objective-C

MGLOrnamentPositionTopRight

Swift

case topRight = 1

MGLOrnamentPositionBottomLeft

Place the ornament in the bottom left of the map view.

Declaration

Objective-C

MGLOrnamentPositionBottomLeft

Swift

case bottomLeft = 2

MGLOrnamentPositionBottomRight

Place the ornament in the bottom right of the map view.

Declaration

Objective-C

MGLOrnamentPositionBottomRight

Swift

case bottomRight = 3