Skip to content

@npm9912/v-map


@npm9912/v-map / index / Components / VMapLayerGoogle

Interface: VMapLayerGoogle ​

Defined in: src/components.d.ts:265

Google Maps Basemap Layer

Properties ​

apiKey? ​

optional apiKey: string

Defined in: src/components.d.ts:270

Google Maps API-Schlüssel.

Example ​

ts
<v-map-layer-google api-key="YOUR_KEY"></v-map-layer-google>

getError() ​

getError: () => Promise<VMapErrorDetail>

Defined in: src/components.d.ts:274

Returns the last error detail, if any.

Returns ​

Promise<VMapErrorDetail>


language? ​

optional language: string

Defined in: src/components.d.ts:279

Sprach-Lokalisierung (BCP-47, z. B. "de", "en-US").

Default ​

ts
"en"

libraries? ​

optional libraries: string

Defined in: src/components.d.ts:284

Google Maps libraries to load (comma-separated string).

Example ​

ts
"geometry,places,drawing"

loadState ​

loadState: "ready" | "error" | "idle" | "loading"

Defined in: src/components.d.ts:289

Current load state of the layer.

Default ​

ts
'idle'

mapType ​

mapType: "roadmap" | "satellite" | "terrain" | "hybrid"

Defined in: src/components.d.ts:294

Karten-Typ: "roadmap" | "satellite" | "hybrid" | "terrain".

Default ​

ts
"roadmap"

maxZoom? ​

optional maxZoom: number

Defined in: src/components.d.ts:301

Maximum zoom level for the layer.


opacity ​

opacity: number

Defined in: src/components.d.ts:306

Opazität des Layers (0–1).

Default ​

ts
1

region? ​

optional region: string

Defined in: src/components.d.ts:310

Region-Bias (ccTLD/Region-Code, z. B. "DE", "US"). Beeinflusst Labels/Suchergebnisse.


scale? ​

optional scale: "scaleFactor1x" | "scaleFactor2x" | "scaleFactor4x"

Defined in: src/components.d.ts:315

Scale factor for tile display.

Default ​

ts
"scaleFactor1x"

styles? ​

optional styles: string | Record<string, unknown>[]

Defined in: src/components.d.ts:319

Custom styles for the Google Map (JSON array of styling objects). Can be passed as JSON string or array.


visible ​

visible: boolean

Defined in: src/components.d.ts:324

Sichtbarkeit des Layers.

Default ​

ts
true