Skip to content

@npm9912/v-map


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

Interface: VMapStyle ​

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

Properties ​

autoApply? ​

optional autoApply: boolean

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

Whether to automatically apply the style when loaded.

Default ​

ts
true

content? ​

optional content: string

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

Inline style content as string (alternative to src).


format? ​

optional format: StyleFormat

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

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

Default ​

ts
'sld'

layerTargets? ​

optional layerTargets: string

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

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


onStyleError()? ​

optional onStyleError: (event) => void

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

Fired when style parsing fails.

Parameters ​

event ​

VMapStyleCustomEvent<Error>

Returns ​

void


onStyleReady()? ​

optional onStyleReady: (event) => void

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

Fired when style is successfully parsed and ready to apply.

Parameters ​

event ​

VMapStyleCustomEvent<StyleEvent>

Returns ​

void


src? ​

optional src: string

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

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