GeoJSONSource
API Reference (beta) for <GeoJSONSource />
Property | Type | Description |
---|---|---|
data required | string | { type: "Point", coordinates: Position, bbox?: BBox } | { type: "MultiPoint", coordinates: Position[], bbox?: BBox } | { type: "LineString", coordinates: Position[], bbox?: BBox } | { type: "MultiLineString", coordinates: Position[][], bbox?: BBox } | { type: "Polygon", coordinates: Position[][], bbox?: BBox } | { type: "MultiPolygon", coordinates: Position[][][], bbox?: BBox } | { type: "GeometryCollection", geometries: Geometry[], bbox?: BBox } | { type: "Feature", geometry: Geometry, id?: string | number, properties: GeoJsonProperties, bbox?: BBox } | { type: "FeatureCollection", features: { type: "Feature", geometry: Geometry, id?: string | number, properties: GeoJsonProperties, bbox?: BBox }[], bbox?: BBox } | - |
id optional | string | - |
source optional bindable | GeoJSONSource | - |
children optional | Snippet<[]> | - |
maxzoom optional | number | - |
attribution optional | string | - |
buffer optional | number | - |
filter optional | unknown | - |
tolerance optional | number | - |
cluster optional | boolean | - |
clusterRadius optional | number | - |
clusterMaxZoom optional | number | - |
clusterMinPoints optional | number | - |
clusterProperties optional | unknown | - |
lineMetrics optional | boolean | - |
generateId optional | boolean | - |
promoteId optional | PromoteIdSpecification | - |