Package-level declarations

Types

Link copied to clipboard
data class KmlConversion(val geoJson: String?, val groundOverlays: List<KmlGroundOverlay>)

Everything a KML document holds that this app can draw: vector features as GeoJSON, plus the image overlays.

Link copied to clipboard
data class KmlGroundOverlay(val name: String?, val href: String, val north: Double, val south: Double, val east: Double, val west: Double, val rotationDegrees: Double = 0.0)

A KML <GroundOverlay>: an image draped over a <LatLonBox>.

Link copied to clipboard

Converts KML into the GeoJSON MapLibre can read.

Link copied to clipboard
data class OverlayCorner(val longitude: Double, val latitude: Double)

One corner of a draped image, longitude first as GeoJSON orders them.

Link copied to clipboard
data class OverlayCorners(val topLeft: OverlayCorner, val topRight: OverlayCorner, val bottomRight: OverlayCorner, val bottomLeft: OverlayCorner)

The four corners of a ground overlay's image: top-left, top-right, bottom-right, bottom-left.

Properties

Link copied to clipboard

The property an icon image URL is written to.

Functions

Link copied to clipboard

Where the overlay's image corners land, with the box's <rotation> applied.

Link copied to clipboard

The image entries a KMZ packs for its ground overlays, keyed by the entry name an overlay's href uses.

The image entries a KMZ packs for its ground overlays, keyed by the entry name an overlay's href uses.

The image entries a KMZ packs for its ground overlays, keyed by the entry name an overlay's href uses.

Link copied to clipboard
actual fun readKmlDocument(bytes: ByteArray): String?

The KML text inside bytes — the file itself if it is bare KML, or the first .kml entry if it is a KMZ archive.

expect fun readKmlDocument(bytes: ByteArray): String?

The KML text inside bytes — the file itself if it is bare KML, or the first .kml entry if it is a KMZ archive.

actual fun readKmlDocument(bytes: ByteArray): String?

The KML text inside bytes — the file itself if it is bare KML, or the first .kml entry if it is a KMZ archive.