VVectorSource
VectorSource
component.
<v-vector-source
id="vector-source-id"
:data="animate"
:coordinates="coordinates"
/>
Example
Init Map
Render v-vector-source
component.
Property
Property | Required | Type | Description |
---|---|---|---|
id | true | string | source id |
url | false | string | A URL to a TileJSON resource. Supported protocols are http: , https: , and mapbox://<Tileset ID>. |
tiles | false | string[] | An array of one or more tile source URLs, as in the TileJSON spec. |
tileSize | false | number | The minimum visual size to display tiles for this layer. Only configurable for raster layers. Defaults to 512 |
scheme | false | string | Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed. Defaults to xyz |
attribution | false | string | Custom attribution. |
bounds | false | number[] | An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: [sw.lng, sw.lat, ne.lng, ne.lat] . Defaults to [-180,-85.051129,180,85.051129] |
minzoom | false | number | Minimum zoom level for which tiles are available, as in the TileJSON spec. Defaults to 0 |
maxzoom | false | number | Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels. Defaults to 22 |
volatile | false | boolean | A setting to determine whether a source's tiles are cached locally. Defaults to false |
protomteId | false | PromoteIdSpecification | A property to use as a feature id (for feature state). |
for more details you can access to mapbox website, go to