Skip to content

@npm9912/v-map


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

Interface: VMapStyle

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

Properties

autoApply

autoApply: boolean

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

Whether to automatically apply the style when loaded.

Default

ts
true

content?

optional content: string

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

Inline style content as string (alternative to src).


format

format: StyleFormat

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

The styling format to parse (supports 'sld', 'mapbox-gl', 'qgis', 'lyrx', 'cesium-3d-tiles').

Default

ts
'sld'

getLayerTargetIds()

getLayerTargetIds: () => Promise<string[]>

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

Get the target layer IDs as array. async

Returns

Promise<string[]>


getStyle()

getStyle: () => Promise<ResolvedStyle>

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

Get the currently parsed style.

Returns

Promise<ResolvedStyle>


layerTargets?

optional layerTargets: string

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

Target layer IDs to apply this style to. If not specified, applies to all compatible layers.


src?

optional src: string

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

The style source - can be a URL to fetch from or inline SLD/style content.