MGLSymbolZOrder

enum MGLSymbolZOrder {}

Controls the order in which overlapping symbols in the same layer are rendered

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

MGLSymbolZOrderAuto

If MGLSymbolStyleLayer.symbolSortKey is set, sort based on that. Otherwise sort symbols by their y-position relative to the viewport.

Declaration

Objective-C

MGLSymbolZOrderAuto

Swift

case auto = 0

MGLSymbolZOrderViewportY

Specify this z order if symbols’ appearance relies on lower features overlapping higher features. For example, symbols with a pin-like appearance would require this z order.

Declaration

Objective-C

MGLSymbolZOrderViewportY

Swift

case viewportY = 1

MGLSymbolZOrderSource

Specify this z order if the order in which features appear in the source is significant.

Declaration

Objective-C

MGLSymbolZOrderSource

Swift

case source = 2
iOS SDK

SDK JS Reference

On this page