initWithIdentifier method
- NSString identifier, {
- required NSURL URL,
- NSDictionary? options,
Returns a shape source with an identifier, URL, and dictionary of options for the source.
This class supports the following options: MLNShapeSourceOptionClustered,
MLNShapeSourceOptionClusterRadius,
MLNShapeSourceOptionMaximumZoomLevelForClustering,
MLNShapeSourceOptionMinimumZoomLevel, MLNShapeSourceOptionMinimumZoomLevel,
MLNShapeSourceOptionBuffer, and
MLNShapeSourceOptionSimplificationTolerance. Shapes provided by a shape
source are not clipped or wrapped automatically.
@param identifier A string that uniquely identifies the source.
@param url An HTTP(S) URL, absolute file URL, or local file URL relative to the
current application’s resource bundle.
@param options An NSDictionary of options for this source.
@return An initialized shape source.
Related examples
TODO: Add live data, learn how to add live data to your map by
updating the an MLNShapeSource object's URL property.
Implementation
MLNShapeSource initWithIdentifier(objc.NSString identifier, {required objc.NSURL URL,objc.NSDictionary? options}) {
final _ret = _objc_msgSend_11spmsz(this.ref.retainAndReturnPointer(), _sel_initWithIdentifier_URL_options_, identifier.ref.pointer, URL.ref.pointer, options?.ref.pointer ?? ffi.nullptr);
return MLNShapeSource.castFromPointer(_ret, retain: false, release: true);
}