MapboxTileLayer
The VMapMapboxTileLayer component is used to load and display Mapbox tiles on the map.
Basic usage
API
Attributes
Use tile layer options from leaflet documentation.
| Name | Description | Type | Default |
|---|---|---|---|
| * id | Id of style layers in a Mapbox. See more Mapbox Docs. Required | string | — |
| * accessToken | Access token for loading tiles. See more Mapbox Docs. Required | string | — |
| title | Name of layer, when used as a child component layers control. | string | 'Mapbox' |
| overlay | Overlay layer, when used as a child component layers control. | boolean | false |
Events
Use tile layer events from leaflet documentation.
Slots
| Name | Description |
|---|---|
| default | The default slot can be used to extend behavior. |
Exposes
| Name | Description | Type |
|---|---|---|
| tileLayer | Leaflet tile layer instance. | Ref<TileLayer | null> |