RasterDataSource.withTileSourceAndListener constructor
- MapContext context,
- String name,
- RasterTileSource tileSource,
- RasterDataSourceListener listener,
Creates a RasterDataSource instance with the provided raster tile source and registers a listener.
Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.
-
contextThe map context to associate the data source with. -
nameThe unique name of the data source. -
tileSourceThe raster tile source. -
listenerThe initial listener to be registered for receiving state notifications. Due to the asynchronous nature of the data source initialization, the listeners registered later might miss some notifications. This listener is guaranteed to receive all notifications. The state notifications can occur on an arbitrary thread.
Implementation
factory RasterDataSource.withTileSourceAndListener(MapContext context, String name, RasterTileSource tileSource, RasterDataSourceListener listener) => $prototype.withTileSourceAndListener(context, name, tileSource, listener);