Geo Json Source
A GeoJSON data source.
See also
Types
Functions
Add the GeoJsonSource to the Style.
Add a Feature to the GeojsonSource. The data will be scheduled and applied on a worker thread.
Add a Feature Collection to the GeojsonSource. The data will be scheduled and applied on a worker thread.
Add a Geometry to the GeojsonSource. The data will be scheduled and applied on a worker thread.
When loading a map, if PrefetchZoomDelta is set to any number greater than 0, the map will first request a tile at zoom level lower than zoom - delta, but so that the zoom level is multiple of delta, in an attempt to display a full map at lower resolution as quick as possible. It will get clamped at the tile source minimum zoom. The default delta is 4.
This property defines a source-specific resource budget, either in tile units or in megabytes. Whenever the tile cache goes over the defined limit, the least recently used tile will be evicted from the in-memory cache. Note that the current implementation does not take into account resources allocated by the visible tiles.
Properties
An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. Has the form {"property_name": [operator, map_expression]}
. operator
is any expression function that accepts at least 2 operands (e.g. "+"
or "max"
) — it accumulates the property value from clusters/points the cluster contains; map_expression
produces the value of a single point.
When loading a map, if PrefetchZoomDelta is set to any number greater than 0, the map will first request a tile at zoom level lower than zoom - delta, but so that the zoom level is multiple of delta, in an attempt to display a full map at lower resolution as quick as possible. It will get clamped at the tile source minimum zoom. The default delta is 4.
This property defines a source-specific resource budget, either in tile units or in megabytes. Whenever the tile cache goes over the defined limit, the least recently used tile will be evicted from the in-memory cache. Note that the current implementation does not take into account resources allocated by the visible tiles.
Extensions
Add additional features to a GeoJSON style source. The data will be scheduled and applied on a worker thread.
Remove features from a GeoJSON style source. The data will be scheduled and applied on a worker thread.
Update existing features in a GeoJSON style source. The data will be scheduled and applied on a worker thread.