initWithIdentifier$1 method
- NSString identifier, {
- required NSURL configurationURL,
- required double tileSize,
Returns a raster tile source initialized with an identifier, configuration URL, and tile size.
After initializing and configuring the source, add it to a map view’s style
using the MLNStyle/addSource: method.
The URL may be a full HTTP or HTTPS URL or, canonical URL. The URL should point to a JSON file that conforms to the TileJSON specification.
@param identifier A string that uniquely identifies the source in the style to
which it is added.
@param configurationURL A URL to a TileJSON configuration file describing the
source’s contents and other metadata.
@param tileSize The width and height (measured in points) of each tiled image
in the raster tile source. See the MLNTileSourceOptionTileSize
documentation for details.
@return An initialized raster tile source.
Implementation
MLNRasterDEMSource initWithIdentifier$1(objc.NSString identifier, {required objc.NSURL configurationURL,required double tileSize}) {
final _ret = _objc_msgSend_hzzkpm(this.ref.retainAndReturnPointer(), _sel_initWithIdentifier_configurationURL_tileSize_, identifier.ref.pointer, configurationURL.ref.pointer, tileSize);
return MLNRasterDEMSource.castFromPointer(_ret, retain: false, release: true);
}