MLNMapProjection class

The aim of this class is to provide the functionality of changing the camera state and converting between map view screen coordinates and geographical coordinates without changing the actual map view camera state.

Constructors

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

Properties

camera MLNMapCamera
A camera representing the current projection state
no setter
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
metersPerPoint double
The distance in meters spanned by a single point for the current camera.
no setter
ref → ObjCObjectRef
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superclass$1 → ObjCObjectBase
superclass
no setterinherited

Methods

autorelease() MLNMapProjection
autorelease
class$1() → ObjCObjectBase
class
inherited
conformsToProtocol$1(Protocol aProtocol) bool
conformsToProtocol:
inherited
convertCoordinate(CLLocationCoordinate2D coordinate) → CGPoint
Converts a geographic coordinate to a point in the map view's the projection was initialized with coordinate system.
convertPoint(CGPoint point) CLLocationCoordinate2D
Converts a point in the coordinate system of the map view the projection was initialized with to the geographical coordinate.
copy() → ObjCObjectBase
copy
inherited
dealloc() → void
dealloc
inherited
doesNotRecognizeSelector(Pointer<ObjCSelector> aSelector) → void
doesNotRecognizeSelector:
inherited
forwardingTargetForSelector(Pointer<ObjCSelector> aSelector) → ObjCObjectBase
forwardingTargetForSelector:
inherited
forwardInvocation(NSInvocation anInvocation) → void
forwardInvocation:
inherited
init() MLNMapProjection
init
initWithMapView(MLNMapView mapView) MLNMapProjection
Initializes and returns the new projection object with the current camera state from the provided map view.
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() MLNMapProjection
retain
retainCount() int
retainCount
inherited
self$1() MLNMapProjection
self
setCamera(MLNMapCamera camera$1, {required UIEdgeInsets withEdgeInsets}) → void
Change the projection state with camera and padding values.
setVisibleCoordinateBounds(MLNCoordinateBounds bounds, {required UIEdgeInsets edgePadding}) → void
Change the projection state to make the provided bounds visible with the specified inset.
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() MLNMapProjection
alloc
allocWithZone(Pointer<NSZone> zone) MLNMapProjection
allocWithZone:
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of MLNMapProjection.
new$() MLNMapProjection
new