All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.earth.worldwind.layer.AbstractTiledImageLayer.kt Maven / Gradle / Ivy

Go to download

The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.

The newest version!
package earth.worldwind.layer

import earth.worldwind.shape.TiledSurfaceImage

abstract class AbstractTiledImageLayer(name: String?, tiledSurfaceImage: TiledSurfaceImage?): RenderableLayer(name) {
    override var isPickEnabled = false // Image layer is not pick able

    var tiledSurfaceImage = tiledSurfaceImage?.also { addRenderable(it) }
        protected set(value) {
            field?.let { removeRenderable(it) }
            value?.let { addRenderable(it) }
            field = value
        }

    /**
     * Unique identifier of the layer type, defined by tiled surface image tile factory content type
     */
    val type get() = tiledSurfaceImage?.tileFactory?.contentType
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy