initWithIdentifier$1 method

MLNComputedShapeSource initWithIdentifier$1(
  1. NSString identifier, {
  2. required MLNComputedShapeSourceDataSource dataSource,
  3. NSDictionary? options,
})

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.

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 dataSource An object conforming to MLNComputedShapeSourceDataSource protocol that will provide the shape data. @param options An NSDictionary of options for this source.

Implementation

MLNComputedShapeSource initWithIdentifier$1(objc.NSString identifier, {required MLNComputedShapeSourceDataSource dataSource,objc.NSDictionary? options}) {
  final _ret = _objc_msgSend_11spmsz(this.ref.retainAndReturnPointer(), _sel_initWithIdentifier_dataSource_options_, identifier.ref.pointer, dataSource.ref.pointer, options?.ref.pointer ?? ffi.nullptr);
  return MLNComputedShapeSource.castFromPointer(_ret, retain: false, release: true);
}