Package-level declarations

Types

Link copied to clipboard
abstract class AbstractLayer @JvmOverloads constructor(var displayName: String? = null) : Layer
Link copied to clipboard
class BackgroundLayer @JvmOverloads constructor(imageSource: ImageSource = ImageSource.fromResource(AssetsMR.images.worldwind_worldtopobathy2004053), imageOptions: ImageOptions = ImageOptions(ImageConfig.RGB_565)) : RenderableLayer

Displays a single image spanning the globe. By default, BackgroundLayer is configured to display NASA's Blue Marble next generation image at 40km resolution from the worldwind-assets library resource res/drawable/worldwind_worldtopobathy2004053.

Link copied to clipboard
class BlueMarbleLandsatLayer @JvmOverloads constructor(serviceAddress: String = "https://worldwind25.arc.nasa.gov/wms") : TiledImageLayer, TileFactory

Displays a composite of NASA's Blue Marble next generation imagery at 500m resolution and Landsat imagery at 15m resolution from an OGC Web Map Service (WMS). By default, BlueMarbleLandsatLayer is configured to retrieve imagery from the WMS at &https://worldwind25.arc.nasa.gov/wms.

Link copied to clipboard
class BlueMarbleLayer @JvmOverloads constructor(serviceAddress: String = "https://worldwind25.arc.nasa.gov/wms") : WmsLayer

Displays NASA's Blue Marble next generation imagery at 500m resolution from an OGC Web Map Service (WMS). By default, BlueMarbleLayer is configured to retrieve imagery for May 2004 from the WMS at &https://worldwind25.arc.nasa.gov/wms.
Information on NASA's Blue Marble next generation imagery can be found at http://earthobservatory.nasa.gov/Features/BlueMarble/

Link copied to clipboard
open class BulkFeatureLayer(var source: BulkFeatureSource, displayName: String? = null, var shapeAttributes: ShapeAttributes? = null, var autoApplyStyle: Boolean = true, var defaultLineColor: Color? = null, var defaultFillColor: Color? = null, var density: Float = DEFAULT_DENSITY, var labelVisibilityThreshold: Double = DEFAULT_LABEL_VISIBILITY_THRESHOLD, var defaultAltitudeMode: AltitudeMode? = null, var customLogicToApplyProperties: Renderable.(LinkedHashMap<String, Any?>) -> Unit = {}) : RenderableLayer, VectorLayer

Vector-feature layer driven by a BulkFeatureSource. The source delivers (geometry, properties_json) rows from one of:

Link copied to clipboard
class CompassLayer(imageSource: ImageSource = ImageSource.fromResource(MR.images.compass_notched)) : AbstractLayer
Link copied to clipboard
class FeatureRenderer(shapeAttributes: ShapeAttributes? = null, autoApplyStyle: Boolean = true, defaultLineColor: Color? = null, defaultFillColor: Color? = null, density: Float = DEFAULT_DENSITY, labelVisibilityThreshold: Double = DEFAULT_LABEL_VISIBILITY_THRESHOLD, defaultAltitudeMode: AltitudeMode? = null, customLogicToApplyProperties: Renderable.(LinkedHashMap<String, Any?>) -> Unit = {}, simplifyToleranceDeg: Double = 0.0)

Turns a CachedFeatureRow ((geometry, properties_json)) into styled Renderables, with the same rules BulkFeatureLayer used inline. Shared so BulkFeatureLayer (bulk/viewport) and TiledFeatureLayer (tiled) build renderables identically — Point → Label/Placemark, LineString → Path, Polygon → Polygon, and Multi/GeometryCollection geometries fan out.

Link copied to clipboard
class LandsatLayer @JvmOverloads constructor(serviceAddress: String = "https://worldwind25.arc.nasa.gov/wms") : WmsLayer

Displays Landsat imagery at 15m resolution from an OGC Web Map Service (WMS). By default, LandsatLayer is configured to retrieve imagery from the WMS at &https://worldwind25.arc.nasa.gov/wms.

Link copied to clipboard
interface Layer
Link copied to clipboard
open class LayerList : Iterable<Layer>
Link copied to clipboard
open class RenderableLayer @JvmOverloads constructor(displayName: String? = null) : AbstractLayer, Iterable<Renderable>
Link copied to clipboard
Link copied to clipboard
open class TiledFeatureLayer(var source: TiledFeatureSource, val levelOffset: Int = 0, val numLevels: Int = 20, val maxLoadedTiles: Int = 256, val maxConcurrentFetches: Int = 4, var shapeAttributes: ShapeAttributes? = null, var autoApplyStyle: Boolean = true, var defaultLineColor: Color? = null, var defaultFillColor: Color? = null, var density: Float = DEFAULT_DENSITY, var labelVisibilityThreshold: Double = DEFAULT_LABEL_VISIBILITY_THRESHOLD, var defaultAltitudeMode: AltitudeMode? = null, var simplifyTolerancePixels: Double = 1.0, val useBatchedRendering: Boolean = true, var customLogicToApplyProperties: Renderable.(LinkedHashMap<String, Any?>) -> Unit = {}, progressiveRefinement: Boolean = false, coarseAncestorFallback: Boolean = true, val maxLoadedTileBytes: Long = DEFAULT_MAX_TILE_BYTES, val maxTileUploadBytesPerFrame: Int = DEFAULT_UPLOAD_BYTES_PER_FRAME, displayName: String? = null) : TiledVectorLayer<List<Renderable>>

Tiled vector-feature layer over a TiledFeatureSource. Each viewport fetches only the tiles it needs (per-tile BBOX GetFeature), caches them, and renders the features via FeatureRenderer (Point → Label/Placemark, LineString → Path, Polygon → Polygon, Multi/GeometryCollection fan out). The cache-through counterpart to BulkFeatureLayer: wrap the source in earth.worldwind.layer.cache.CachedTiledFeatureSource so memory AND network stay bounded.

Link copied to clipboard
open class TiledImageLayer(name: String? = null, tiledSurfaceImage: TiledSurfaceImage? = null) : RenderableLayer
Link copied to clipboard
abstract class TiledVectorLayer<C : Any>(levelSet: LevelSet, tileFactory: TileFactory, maxLoadedTiles: Int = 256, maxConcurrentFetches: Int = 4, displayName: String? = null, maxLoadedTileBytes: Long = 0, maxTileAdmitWeightPerFrame: Int = 0) : AbstractLayer, VectorLayer

Reusable base for tiled vector layers (WFS features, MVT vector tiles, OSM buildings). Owns the parts every such layer shares so they aren't reimplemented per layer:

Link copied to clipboard
interface VectorLayer : Layer

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

Link copied to clipboard
class ViewControlsLayer(panControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_pan)), zoomInControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_zoom_in)), zoomOutControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_zoom_out)), headingLeftControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_heading_left)), headingRightControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_heading_right)), tiltUpControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_pitch_up)), tiltDownControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_pitch_down)), exaggerationUpControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_elevation_up)), exaggerationDownControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_elevation_down)), fovNarrowControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_fov_narrow)), fovWideControl: ScreenImage = ScreenImage(ImageSource.fromResource(MR.images.view_fov_wide))) : AbstractLayer
Link copied to clipboard
class ViewportRefreshDriver(scope: CoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.Default))

Shared machinery for layers that re-fetch their renderables for the current viewport during render — used by earth.worldwind.ogc.wfs.WfsLayer (network) and BulkFeatureLayer (cache). Encapsulates the subtle parts: padded-sector hysteresis, debounce, the optimistic-sector + cancellation ordering, and the off-thread-build / render-thread-swap handoff.

Link copied to clipboard
interface WebImageLayer : Layer
Link copied to clipboard