Package-level declarations

Types

Link copied to clipboard
class DrawFormatException(message: String, cause: Throwable? = null) : Exception

A file that cannot be read or written: the text is not this format, it is a newer version of it, or a shape in it is not valid.

Link copied to clipboard
object DrawJson

The library's own file format: a list of shapes written as JSON, losslessly. Everything a shape is comes back as it was — styles (with their pictures), rings and holes, vertex ids and metadata, labels, descriptions, drawing order — so a drawing can be saved and loaded again, and two saves compared.

Link copied to clipboard
object GeoJson

GeoJSON (RFC 7946), the format most map data is published in, read into and written from the library's shapes.

Link copied to clipboard
class ImportResult(val entities: List<DrawableEntity>, val warnings: List<String>, val leftOut: Map<String, Int> = emptyMap())

What reading a GeoJSON or KML text made: the shapes it could use, a line in warnings for everything it had to leave out or guess, and in leftOut how many of each kind of thing was not imported at all (a GroundOverlay, a feature without a geometry, a ring of two points), so a host can say "3 things were not imported" without reading the lines. Things that were imported but guessed, like a colour that wasn't one, are only in warnings.

Link copied to clipboard
object Kml

KML 2.2, the format of Google Earth, read into and written from the library's shapes.