MercatorTiledVectorLayer

abstract class MercatorTiledVectorLayer<C : Any>(levelOffset: Int = 0, numLevels: Int = 22, maxLoadedTiles: Int = 256, maxConcurrentFetches: Int = 4, displayName: String? = null) : TiledVectorLayer<C>

TiledVectorLayer over a Web-Mercator slippy tile pyramid (the z/x/y scheme used by MVT vector tiles and OSM building tiles), as opposed to the geographic Plate-Carrée pyramid of earth.worldwind.layer.TiledFeatureLayer.

It feeds the base a LevelSet + MercatorTileFactory built exactly like MercatorTiledImageLayer, so each quadtree tile has level.levelNumber == slippy z, column == x, row == y (the factory inverts Y), and a MercatorSector extent — subdivide and mustSubdivide come from the engine's Mercator tiles for free. The factory's MercatorTileFactory.getImageSource returns null: these tiles are pure quadtree nodes (the layer draws vector content via renderTileContent, never imagery).

Inheritors

Constructors

Link copied to clipboard
constructor(levelOffset: Int = 0, numLevels: Int = 22, maxLoadedTiles: Int = 256, maxConcurrentFetches: Int = 4, displayName: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Tile keys currently in fetch-failure backoff.

Link copied to clipboard

Screen-space-error knob: lower = finer (more, smaller on-screen tiles); higher = coarser.

Link copied to clipboard
open override var displayName: String?
Link copied to clipboard
open override var isDynamic: Boolean
Link copied to clipboard
open override var isEnabled: Boolean
Link copied to clipboard
open override var isPickEnabled: Boolean
Link copied to clipboard

Tiles currently resident in the content cache (visible + fallback).

Link copied to clipboard
open override var maxActiveAltitude: Double
Link copied to clipboard

Cap on launched-but-unfinished fetch Jobs (vs semaphore, which gates concurrent round-trips); bounds the queue so a huge changing cut can't pile up unbounded coroutines + HTTP/SSL → OOM. Over-cap tiles re-request a later frame.

Link copied to clipboard
open override var minActiveAltitude: Double
Link copied to clipboard
open override var opacity: Float
Link copied to clipboard

Tiles with a fetch coroutine in flight.

Link copied to clipboard
override 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
open fun close()

Cancel in-flight fetches, release GPU buffers, and free the caches. Idempotent.

Link copied to clipboard
open override fun getUserProperty(key: Any): Any?
Link copied to clipboard
open override fun hasUserProperty(key: Any): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun putUserProperty(key: Any, value: Any): Any?
Link copied to clipboard
open override fun removeUserProperty(key: Any): Any?
Link copied to clipboard
open override 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.