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.
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.
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.