Skip to content

v-map-layer-wkt

← Zur Übersicht · @npm9912/v-map

Props

NameTypeAttrDefaultBeschreibung
fillColorstringfill-colorFill color for polygon geometries (CSS color value)
fillOpacitynumberfill-opacityFill opacity for polygon geometries (0-1)
iconSizestringicon-sizeIcon size as [width, height] in pixels (comma-separated string like "32,32")
iconUrlstringicon-urlIcon URL for point features (alternative to pointColor/pointRadius)
loadStateerror | idle | loading | readyload-state'idle'Current load state of the layer.
opacitynumberopacity1.0Globale Opazität (0–1).
pointColorstringpoint-colorPoint color for point geometries (CSS color value)
pointRadiusnumberpoint-radiusPoint radius for point geometries in pixels
strokeColorstringstroke-colorStroke color for lines and polygon outlines (CSS color value)
strokeOpacitynumberstroke-opacityStroke opacity (0-1)
strokeWidthnumberstroke-widthStroke width in pixels
textColorstringtext-colorText color for labels (CSS color value)
textPropertystringtext-propertyText property name from feature properties to display as label
textSizenumbertext-sizeText size for labels in pixels
urlstringurlURL, von der eine WKT-Geometrie geladen wird (alternativ zu wkt).
visiblebooleanvisibletrueSichtbarkeit des Layers.
wktstringwktWKT-Geometrie (z. B. "POINT(11.57 48.14)" oder "POLYGON((...))").
zIndexnumberz-index1000Z-index for layer stacking order. Higher values render on top.

Events

EventDetail-TypeBeschreibung
readyvoidSignalisiert, dass das WKT-Layer initialisiert ist.

Methods

  • getError() => Promise<VMapErrorDetail> — Returns the last error detail, if any.
  • getLayerId() => Promise<string> — Returns the internal layer ID used by the map provider.