VGeoSource

GeoSource component.

<v-geo-source
  id="geo-source-id"
  :data="animate"
  :coordinates="coordinates"
/>

Example

Render Point

Render v-geo-source component.

Render Line

Render v-geo-source component.

Render Polygon

Render v-geo-source component.

Render Cluster

Render v-geo-source component .

Property

PropertyRequiredTypeDescription
idtruestringsource id
attributionfalsestringcustom attribution
bufferfalsenumberSize of the tile buffer on each side. Optional number between 0 and 512 inclusive. Defaults to 128.
clusterfalsebooleanIf the data is a collection of point features, setting this to true clusters the points by radius into groups. Defaults to false
clusterMaxZoomfalsenumberMax zoom on which to cluster points if clustering is enabled.
clusterMinPointsfalsenumberMinimum number of points necessary to form a cluster if clustering is enabled. Defaults to 2.
clusterPropertiesfalseobjectAn object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points.
clusterRadiusfalsenumberRadius of each cluster if clustering is enabled. Defaults to 50
filterfalseexpressionAn expression for filtering features prior to processing them for rendering.
generateIdfalsebooleanWhether to generate ids for the geojson features. Defaults to false
lineMetricsfalsebooleanWhether to calculate line distance metrics. Defaults to false
maxzoomfalsenumberMaximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels). Defaults to 18
promoteIdfalsePromoteIdSpecificationA property to use as a feature id (for feature state).
tolerancefalsenumberDouglas-Peucker simplification tolerance (higher means simpler geometries and faster performance). Defaults to 0.375

for more details you can access to mapbox website, go toopen in new window

Last Updated:
Contributors: timeroute, chinesejar