MLNPolygonFeature class

An MLNPolygonFeature object associates a polygon shape with an optional identifier and attributes.

Inheritance
Implemented types

Constructors

MLNPolygonFeature()
Returns a new instance of MLNPolygonFeature constructed with the default new method.
factory
MLNPolygonFeature.castFrom(ObjCObjectBase other)
Constructs a MLNPolygonFeature that points to the same underlying object as other.
MLNPolygonFeature.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a MLNPolygonFeature that wraps the given raw object pointer.

Properties

attributes ↔ NSDictionary
A dictionary of attributes for this feature.
getter/setter pair
coordinate CLLocationCoordinate2D
The center point (specified as a map coordinate) of the annotation. (required) (read-only)
no setteroverride
coordinates Pointer<CLLocationCoordinate2D>
The array of vertices associated with the shape.
no setterinherited
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
identifier ↔ ObjCObjectBase?
An object that uniquely identifies the feature in its containing content source.
getter/setter pair
interiorPolygons → NSArray?
The array of polygons nested inside the receiver.
no setterinherited
isProxy bool
isProxy
no setterinherited
overlayBounds MLNCoordinateBounds
The cooordinate rectangle that encompasses the overlay. (required) (read-only)
no setterinherited
pointCount int
The number of vertices in the shape.
no setterinherited
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

appendCoordinates(Pointer<CLLocationCoordinate2D> coords, {required int count}) → void
Appends the given vertices to the shape.
inherited
attributeForKey(NSString key) → ObjCObjectBase?
Returns the feature attribute for the given attribute name.
autorelease() MLNPolygonFeature
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
geoJSONDictionary() → NSDictionary
Returns a dictionary that can be serialized as a GeoJSON Feature representation of an instance of an MLNFeature subclass.
getCoordinates(Pointer<CLLocationCoordinate2D> coords, {required NSRange range}) → void
Retrieves the vertices of part of the shape.
inherited
init() MLNPolygonFeature
init
override
initWithCoder(NSCoder coder) MLNPolygonFeature?
initWithCoder:
override
insertCoordinates(Pointer<CLLocationCoordinate2D> coords, {required int count, required int atIndex}) → void
Inserts the given vertices into the shape.
inherited
intersectsOverlayBounds(MLNCoordinateBounds overlayBounds$1) bool
Returns a Boolean indicating whether the specified rectangle intersects the receiver’s shape.
inherited
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
removeCoordinatesInRange(NSRange range) → void
Removes the vertices at the given range from the shape.
inherited
replaceCoordinatesInRange(NSRange range, {required Pointer<CLLocationCoordinate2D> withCoordinates}) → void
Replaces the vertices at the given range in the shape with the same number of vertices from a given C array.
inherited
replaceCoordinatesInRange$1(NSRange range, {required Pointer<CLLocationCoordinate2D> withCoordinates, required int count}) → void
Replaces the vertices at the given range in the shape with the specified number of vertices from a given C array.
inherited
respondsToSelector(Pointer<ObjCSelector> aSelector) bool
respondsToSelector:
inherited
retain() MLNPolygonFeature
retain
override
retainCount() int
retainCount
inherited
self$1() MLNPolygonFeature
self
override
setCoordinates(Pointer<CLLocationCoordinate2D> coords, {required int count}) → void
Sets the shape’s vertices to the given C array of vertices.
inherited
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() MLNPolygonFeature
alloc
override
allocWithZone(Pointer<NSZone> zone) MLNPolygonFeature
allocWithZone:
override
getSupportsSecureCoding() bool
supportsSecureCoding
override
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of MLNPolygonFeature.
override
new$() MLNPolygonFeature
new
override
polygonWithCoordinates(Pointer<CLLocationCoordinate2D> coords, {required int count}) MLNPolygonFeature
Creates and returns an MLNPolygon object from the specified set of coordinates.
override
polygonWithCoordinates$1(Pointer<CLLocationCoordinate2D> coords, {required int count, NSArray? interiorPolygons$1}) MLNPolygonFeature
Creates and returns an MLNPolygon object from the specified set of coordinates and interior polygons.
override
shapeWithData(NSData data, {required int encoding, required Pointer<Pointer<ObjCObject>> error}) MLNShape?
Returns an MLNShape object initialized with the given data interpreted as a string containing a GeoJSON object.
override