VectorLayer

interface VectorLayer : Layer

Common interface for layers that render vector data (lines, polygons, points, labels) rather than rasterized image tiles. Implemented by:

Symmetric with TiledImageLayer (the marker for raster tile layers). Use it to filter:

engine.layers.filterIsInstance<VectorLayer>()
contentManager.openLayers<VectorLayer>() // all cached vector layers
contentManager.openLayer<VectorLayer>("MyKey") // narrow by category

Deliberately thin — the underlying source interfaces (earth.worldwind.layer.source.TileSource for MVT bytes, earth.worldwind.layer.source.BulkFeatureSource for WFS/Shapefile, earth.worldwind.layer.source.TiledFeatureSource for tile-addressed features) are structurally too different to share a useful method set without losing type safety.

Inheritors

Properties

Link copied to clipboard
abstract var displayName: String?
Link copied to clipboard
abstract var isDynamic: Boolean
Link copied to clipboard
abstract var isEnabled: Boolean
Link copied to clipboard
abstract var isPickEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var opacity: Float
Link copied to clipboard
abstract val sector: Sector

Vector content bounding sector — real data availability can be smaller than the tile grid. Full sphere by default; tiled layers skip tiles outside it. Cache reopen narrows it from the persisted content bbox; bulk download widens and persists it. Mirrors earth.worldwind.globe.elevation.coverage.ElevationCoverage.sector.

Functions

Link copied to clipboard
abstract fun clone(): VectorLayer

Makes a fresh copy carrying only this layer's configuration; caches and fetch scope are not shared.

Link copied to clipboard
abstract fun getUserProperty(key: Any): Any?
Link copied to clipboard
abstract fun hasUserProperty(key: Any): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun putUserProperty(key: Any, value: Any): Any?
Link copied to clipboard
abstract fun removeUserProperty(key: Any): Any?
Link copied to clipboard
abstract fun render(rc: RenderContext)
Link copied to clipboard
fun VectorLayer.setOfflineOnly(offlineOnly: Boolean = true)

See setOfflineOnly on TiledImageLayer. Dispatches by VectorLayer subtype to reach the right source field. No-op for unknown subtypes.