Identifier associated with the data source.
Whether the data source requests data for the visible map bounds. If true
, then data will
be reloaded whenever the map's visible region changes.
Default value is false
.
Style configuration provider.
Returns the animation associated with the static layer.
Whether the data source is enabled.
Whether the data source is enabled.
Current markers being managed by the data source.
Returns an object containing all active markers keyed by their unique identifiers.
Current polygons being managed by the data source.
Current polygons being managed by the data source.
API service used to request data for the data source.
Current polygons and polylines being managed by the data source.
Map strategy the source is associated with.
Map strategy the source is associated with.
Returns whether the listeners are registered for the specified event name.
Returns whether the source currently has data cached from a previous request.
Requests data for the layer based on the provided geographical map bounds and date range.
A Promise containing the resulting marker data objects.
Removes a registered listener function for the specified event.
Name of the event to remove the listener for.
Handler function to remove so it won't be executed next time the event is triggered.
Registers a listener function to be executed each time an event occurs
Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.
Handler function to be called when the event occurs
Registers a listener function to be executed the first time an event occurs.
Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.
Handler function to be called when the event occurs
Reloads the data source using the last request parameters.
Resets the data source by removing all map elements and clearing cached data.
Triggers the specified event so that all registered listeners will be executed with the specified parameters.
Event name to trigger
Reloads the data source by updating the data configuration.
Generated using TypeDoc
GeoJsonSource
is an object that is responsible for loading data and managing a series of vector elements on a map view from GeoJSON data.