Appearance
@npm9912/v-map / index / JSX / VMapStyle
Interface: VMapStyle
Defined in: src/components.d.ts:2213
Properties
autoApply?
optionalautoApply:boolean
Defined in: src/components.d.ts:2218
Whether to automatically apply the style when loaded.
Default
ts
truecontent?
optionalcontent:string
Defined in: src/components.d.ts:2222
Inline style content as string (alternative to src).
format?
optionalformat: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?
optionallayerTargets: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()?
optionalonStyleError: (event) =>void
Defined in: src/components.d.ts:2235
Fired when style parsing fails.
Parameters
event
VMapStyleCustomEvent<Error>
Returns
void
onStyleReady()?
optionalonStyleReady: (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?
optionalsrc:string
Defined in: src/components.d.ts:2243
The style source - can be a URL to fetch from or inline SLD/style content.