initWithIdentifier method
Returns a custom shape data source initialized with an identifier, and a dictionary of options for the source according to the style specification.
This class supports the following options:
MLNShapeSourceOptionMinimumZoomLevel, MLNShapeSourceOptionMinimumZoomLevel,
MLNShapeSourceOptionBuffer,
MLNShapeSourceOptionSimplificationTolerance,
MLNShapeSourceOptionWrapsCoordinates, and
MLNShapeSourceOptionClipsCoordinates. Shapes provided by a computed
shape source cannot be clustered.
@param identifier A string that uniquely identifies the source.
@param options An NSDictionary of options for this source.
Implementation
MLNComputedShapeSource initWithIdentifier(objc.NSString identifier, {objc.NSDictionary? options}) {
final _ret = _objc_msgSend_15qeuct(this.ref.retainAndReturnPointer(), _sel_initWithIdentifier_options_, identifier.ref.pointer, options?.ref.pointer ?? ffi.nullptr);
return MLNComputedShapeSource.castFromPointer(_ret, retain: false, release: true);
}