MLNComputedShapeSource class
MLNComputedShapeSource is a map content source that supplies vector shapes,
one tile at a time, to be shown on the map on demand. You implement a class
conforming to the MLNComputedShapeSourceDataSource protocol that returns
instances of MLNShape or MLNShape, then add a computed shape source to an
MLNStyle object along with an MLNStyle object. The vector style
layer defines the appearance of any content supplied by the computed shape
source.
MLNComputedShapeSource is similar to MLNComputedShapeSource but is optimized for
data sets that change dynamically or are too large to fit completely in memory.
It is also useful for data that is divided into tiles in a format other than
Mapbox Vector Tiles. For
GeoJSON data, use the MLNShapeSource class.
For static tiles or Mapbox Vector Tiles, use the MLNVectorTileSource class.
You can add and remove sources dynamically using methods such as
MLNStyle/addSource: and MLNStyle/sourceWithIdentifier:. This class
cannot be represented in a style JSON file; you must add it ot the style at
runtime.
Constructors
- MLNComputedShapeSource()
-
Returns a new instance of MLNComputedShapeSource constructed with the default
newmethod.factory - MLNComputedShapeSource.castFrom(ObjCObjectBase other)
-
Constructs a MLNComputedShapeSource that points to the same underlying object as
other. -
MLNComputedShapeSource.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a MLNComputedShapeSource that wraps the given raw object pointer.
Properties
- dataSource ↔ MLNComputedShapeSourceDataSource?
-
An object that implements the
MLNComputedShapeSourceDataSourceprotocol that will be queried for tile data.getter/setter pair - 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 ↔ NSString
-
A string that uniquely identifies the source in the style to which it is added.
getter/setter pairinherited
- isProxy → bool
-
isProxy
no setterinherited
- ref → ObjCObjectRef
-
finalinherited
- requestQueue → NSOperationQueue
-
A queue that calls to the data source will be made on.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- superclass$1 → ObjCObjectBase
-
superclass
no setterinherited
Methods
-
autorelease(
) → MLNComputedShapeSource -
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
-
forwardingTargetForSelector(
Pointer< ObjCSelector> aSelector) → ObjCObjectBase -
forwardingTargetForSelector:
inherited
-
forwardInvocation(
NSInvocation anInvocation) → void -
forwardInvocation:
inherited
-
init(
) → MLNComputedShapeSource -
init
override
-
initWithIdentifier(
NSString identifier, {NSDictionary? options}) → MLNComputedShapeSource - Returns a custom shape data source initialized with an identifier, and a dictionary of options for the source according to the style specification.
-
initWithIdentifier$1(
NSString identifier, {required MLNComputedShapeSourceDataSource dataSource, NSDictionary? options}) → MLNComputedShapeSource - Returns a custom shape data source initialized with an identifier, data source, and a dictionary of options for the source according to the style specification.
-
initWithIdentifier_(
NSString identifier) → MLNComputedShapeSource -
Returns a source initialized with an identifier.
override
-
invalidateBounds(
MLNCoordinateBounds bounds) → void -
Invalidates all the features and properties intersecting with or contained in
the specified bounds. New fetch requests will immediately be invoked on the
MLNComputedShapeSourceDataSource. @param bounds Coordinate bounds to invalidate. -
invalidateTileAtX(
int x, {required int y, required int zoomLevel}) → void -
Invalidates all the feautres and properties of a given tile. A new fetch request
will immediately be invoked on the
MLNComputedShapeSourceDataSource. @param x Tile X coordinate. @param y Tile Y coordinate. @param zoomLevel Tile zoom level. -
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(
) → MLNComputedShapeSource -
retain
override
-
retainCount(
) → int -
retainCount
inherited
-
self$1(
) → MLNComputedShapeSource -
self
override
-
setFeatures(
NSArray features, {required int inTileAtX, required int y, required int zoomLevel}) → void -
Set a new set of features for a tile. This method can be invkoed from background threads.
For best performance, use this method only to update tiles that have already been requested
through
MLNComputedShapeSourceDataSource/@param features Features for the tile. @param x Tile X coordinate. @param y Tile Y coordinate. @param zoomLevel Tile zoom level. -
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(
) → MLNComputedShapeSource -
alloc
override
-
allocWithZone(
Pointer< NSZone> zone) → MLNComputedShapeSource -
allocWithZone:
override
-
isInstance(
ObjCObjectBase obj) → bool -
Returns whether
objis an instance of MLNComputedShapeSource.override -
new$(
) → MLNComputedShapeSource -
new
override