Skip to content

v-map-layer-terrain-geotiff

← Zur Übersicht · @npm9912/v-map

The v-map-layer-terrain-geotiff component displays 3D terrain from GeoTIFF elevation data using deck.gl's TerrainLayer.

Props

NameTypeAttrDefaultBeschreibung
color[number, number, number]nullColor for the terrain (if no texture is provided). [r, g, b] with values 0-255.
colorMapColorMap | stringcolor-mapnullColorMap for elevation data visualization. Only relevant when no texture is set.
elevationScalenumberelevation-scale1.0Elevation exaggeration factor.
forceProjectionbooleanforce-projectionfalseErzwingt die Verwendung der projection-Prop, ignoriert GeoKeys
loadStateerror | idle | loading | readyload-state'idle'Current load state of the layer.
maxZoomnumbermax-zoom24Maximum zoom level.
meshMaxErrornumbermesh-max-error4.0Mesh error tolerance in meters (Martini). Smaller values = more detailed mesh, but slower.
minZoomnumbermin-zoom0Minimum zoom level.
nodatanumbernodatanullNoData value to discard (overriding any nodata values in the metadata).
opacitynumberopacity1.0Opacity of the terrain layer (0–1).
projectionstringprojectionnullQuell-Projektion des GeoTIFF (z. B. "EPSG:32632" oder proj4-String)
renderModecolormap | terrainrender-mode'terrain'Rendering mode for GeoTIFF terrain.
texturestringtexturenullOptional texture URL (can be an image or tile URL).
tileSizenumbertile-size256Tile size in pixels.
urlstringurlnullURL to the GeoTIFF file containing elevation data.
valueRange[number, number]nullValue range for colormap normalization [min, max].
visiblebooleanvisibletrueSichtbarkeit des Layers
wireframebooleanwireframefalseEnable wireframe mode (show only mesh lines).
zIndexnumberz-index100Z-index for layer stacking order. Higher values render on top.

Events

EventDetail-TypeBeschreibung
readyvoidFired when the terrain layer is ready.

Methods

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