Skip to content

v-map-layer-geojson

← Zur Übersicht · @npm9912/v-map

Props

NameTypeAttrDefaultBeschreibung
fillColorstringfill-colorFill color for polygon geometries (CSS color value)
fillOpacitynumberfill-opacityFill opacity for polygon geometries (0-1)
geojsonstringgeojsonProp, die du intern nutzt/weiterverarbeitest
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.0Opazität der geojson-Kacheln (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
urlstringurlnullURL to fetch GeoJSON data from. Alternative to providing data via slot.
visiblebooleanvisibletrueWhether the layer is visible on the map.
zIndexnumberz-index1000Z-index for layer stacking order. Higher values render on top.

Methods

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