Skip to content

OpenTransportTileLayer

The VMapOpenTransportTileLayer component is used to load and display Thunderforest tiles on the map.

Basic usage

API

Attributes

Use tile layer options from leaflet documentation.

NameDescriptionTypeDefault
* apiKeyApi key for loading tiles. See more Thunderforest Docs. Requiredstring
titleName of layer, when used as a child component layers control.string'Open Transport'
overlayOverlay layer, when used as a child component layers control.booleanfalse

Events

Use tile layer events from leaflet documentation.

Slots

NameDescription
defaultThe default slot can be used to extend behavior.

Exposes

NameDescriptionType
tileLayerLeaflet tile layer instance.Ref<TileLayer | null>

Released under the MIT License.