iOS SDK

API Reference

On This Page

MGLLineCap

enum MGLLineCap {}

The display of line endings.

Values of this type are used in the MGLLineStyleLayer.lineCap property.

MGLLineCapButt

A cap with a squared-off end which is drawn to the exact endpoint of the line.

Declaration

Objective-C

MGLLineCapButt

Swift

case butt = 0

MGLLineCapRound

A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line’s width and centered on the endpoint of the line.

Declaration

Objective-C

MGLLineCapRound

Swift

case round = 1

MGLLineCapSquare

A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line’s width.

Declaration

Objective-C

MGLLineCapSquare

Swift

case square = 2