Creates eventDispatcher object. It needs to be call with '.call' to add the functionality to an object.
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Connect to the data source. Returns a promise to wait for successful (or failed) connection.
A promise which is resolved when the connection has been established.
Fire an event type.
Destroys this DataProvider
. Implementations of DataProvider
must dispose of
asynchronous operations and services here.
Load the data of a {@link @here/map-view@Tile} asynchronously.
Address of a tile.
Optional AbortSignal to cancel the request.
A promise delivering the data as an [[ArrayBufferLike]], or any object.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
An event which fires when this DataProvider
is invalidated.
A function to call when this DataProvider
is invalidated.
The function to call to unregister the listener from this event.
Returns true
if it has been connected successfully.
Registers a client to the data provider.
The client to register.
Promise to wait for successful (or failed) connection to the data source.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Unregisters a client from the data provider.
The client to unregister.
Generated using TypeDoc
Interface for all
DataProvider
subclasses.The
DataProvider
is an abstraction of the tile loader which is only responsible for loading the data of a specific tile, without any relation to displaying or even decoding the data.