GoogleTileLayer
The VMapGoogleTileLayer
component is used to load and display Google Map tiles on the map.
Basic usage
API
Attributes
Use tile layer options from leaflet documentation.
Name | Description | Type | Default |
---|---|---|---|
type | Type of display layer on the map. Values: hybrid , satellite , streets , terrain . | string | 'streets' |
layers | Custom display layer type. If specified, overwrites the type attribute. | string | — |
subdomains | List of third-level domains. Used to create the url of the tiles. | string[] | ['mt0', 'mt1', 'mt2', 'mt3'] |
title | Name of layer, when used as a child component layers control. | string | 'Google' |
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> |