MLNMultiPolyline class
An MLNMultiPolyline object represents a shape consisting of one or more
polylines. For example, you could use a multipolyline shape to represent both
sides of a divided highway (dual carriageway), excluding the median (central
reservation): each carriageway would be a distinct MLNPolyline object.
You can add multipolyline shapes to the map by adding them to an
MLNShapeSource object. Configure the appearance of an MLNShapeSource’s or
MLNVectorTileSource’s multipolylines collectively using an
MLNLineStyleLayer or MLNSymbolStyleLayer object.
You cannot add an MLNMultiPolyline object directly to a map view using
MLNMapView/addAnnotation: or MLNMapView/addOverlay:. However, you can
add the polylines array’s items as overlays individually.
A multipolyline is known as a MultiLineString geometry in GeoJSON.
- Inheritance
- Implemented types
- Implementers
Constructors
- MLNMultiPolyline()
-
Returns a new instance of MLNMultiPolyline constructed with the default
newmethod.factory - MLNMultiPolyline.castFrom(ObjCObjectBase other)
-
Constructs a MLNMultiPolyline that points to the same underlying object as
other. -
MLNMultiPolyline.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a MLNMultiPolyline that wraps the given raw object pointer.
Properties
- coordinate → CLLocationCoordinate2D
-
The center point (specified as a map coordinate) of the annotation. (required)
(read-only)
no setteroverride
- debugDescription$1 → NSString
-
debugDescription
no setterinherited
- description$1 → NSString
-
description
no setterinherited
- hash$1 → int
-
hash
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isProxy → bool
-
isProxy
no setterinherited
- overlayBounds → MLNCoordinateBounds
-
The cooordinate rectangle that encompasses the overlay. (required) (read-only)
no setter
- polylines → NSArray
-
An array of polygons forming the multipolyline.
no setter
- ref → ObjCObjectRef
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle ↔ NSString?
-
The string containing the annotation’s subtitle.
getter/setter pairinherited-setteroverride-getter
- superclass$1 → ObjCObjectBase
-
superclass
no setterinherited
- title ↔ NSString?
-
The string containing the annotation’s title.
getter/setter pairinherited-setteroverride-getter
Methods
-
autorelease(
) → MLNMultiPolyline -
autorelease
override
-
class$1(
) → ObjCObjectBase -
class
inherited
-
conformsToProtocol$1(
Protocol aProtocol) → bool -
conformsToProtocol:
inherited
-
copy(
) → ObjCObjectBase -
copy
inherited
-
dealloc(
) → void -
dealloc
inherited
-
doesNotRecognizeSelector(
Pointer< ObjCSelector> aSelector) → void -
doesNotRecognizeSelector:
inherited
-
encodeWithCoder(
NSCoder coder) → void -
encodeWithCoder:
inherited
-
forwardingTargetForSelector(
Pointer< ObjCSelector> aSelector) → ObjCObjectBase -
forwardingTargetForSelector:
inherited
-
forwardInvocation(
NSInvocation anInvocation) → void -
forwardInvocation:
inherited
-
geoJSONDataUsingEncoding(
int encoding) → NSData -
Returns the GeoJSON string representation of the shape encapsulated in a data
object.
inherited
-
init(
) → MLNMultiPolyline -
init
override
-
initWithCoder(
NSCoder coder) → MLNMultiPolyline? -
initWithCoder:
override
-
intersectsOverlayBounds(
MLNCoordinateBounds overlayBounds$1) → bool - Returns a Boolean indicating whether the specified rectangle intersects the receiver’s shape.
-
isEqual(
ObjCObjectBase object) → bool -
isEqual:
inherited
-
isKindOfClass(
ObjCObjectBase aClass) → bool -
isKindOfClass:
inherited
-
isMemberOfClass(
ObjCObjectBase aClass) → bool -
isMemberOfClass:
inherited
-
methodForSelector(
Pointer< ObjCSelector> aSelector) → Pointer<NativeFunction< Void Function()> > -
methodForSelector:
inherited
-
methodSignatureForSelector(
Pointer< ObjCSelector> aSelector) → NSMethodSignature -
methodSignatureForSelector:
inherited
-
mutableCopy(
) → ObjCObjectBase -
mutableCopy
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
performSelector(
Pointer< ObjCSelector> aSelector) → ObjCObjectBase -
performSelector:
inherited
-
performSelector$1(
Pointer< ObjCSelector> aSelector, {required ObjCObjectBase withObject}) → ObjCObjectBase -
performSelector:withObject:
inherited
-
performSelector$2(
Pointer< ObjCSelector> aSelector, {required ObjCObjectBase withObject, required ObjCObjectBase withObject$1}) → ObjCObjectBase -
performSelector:withObject:withObject:
inherited
-
release(
) → void -
release
inherited
-
respondsToSelector(
Pointer< ObjCSelector> aSelector) → bool -
respondsToSelector:
inherited
-
retain(
) → MLNMultiPolyline -
retain
override
-
retainCount(
) → int -
retainCount
inherited
-
self$1(
) → MLNMultiPolyline -
self
override
-
toString(
) → String -
A string representation of this object.
inherited
-
zone(
) → Pointer< NSZone> -
zone
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
alloc(
) → MLNMultiPolyline -
alloc
override
-
allocWithZone(
Pointer< NSZone> zone) → MLNMultiPolyline -
allocWithZone:
override
-
getSupportsSecureCoding(
) → bool -
supportsSecureCoding
override
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
objis an instance of MLNMultiPolyline.override -
multiPolylineWithPolylines(
NSArray polylines$1) → MLNMultiPolyline - Creates and returns a multipolyline object consisting of the given polylines.
-
new$(
) → MLNMultiPolyline -
new
override
-
shapeWithData(
NSData data, {required int encoding, required Pointer< Pointer< error}) → MLNShape?ObjCObject> > -
Returns an
MLNShapeobject initialized with the given data interpreted as a string containing a GeoJSON object.override