Geo Json Source
A GeoJSON data source.
See also
Constructors
GeoJsonSource
Link copied to clipboard
Types
Functions
bindTo
Link copied to clipboard
data
Link copied to clipboard
feature
Link copied to clipboard
featureCollection
Link copied to clipboard
geometry
Link copied to clipboard
prefetchZoomDelta
Link copied to clipboard
url
Link copied to clipboard
Properties
attribution
Link copied to clipboard
Contains an attribution to be displayed when the map is shown to a user.
clusterMaxZoom
Link copied to clipboard
Max zoom on which to cluster points if clustering is enabled.
clusterProperties
Link copied to clipboard
An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points.
clusterRadius
Link copied to clipboard
Radius of each cluster if clustering is enabled.
generateId
Link copied to clipboard
Whether to generate ids for the geojson features.
lineMetrics
Link copied to clipboard
Whether to calculate line distance metrics.
prefetchZoomDelta
Link copied to clipboard
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.