Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
abstract class Control<T : Control.ControlOptions>(options: T = definedExternally) : Class

Control is a base class for implementing map controls. Handles positioning. All other controls extend from this class.

Link copied to clipboard
open class Layers(baseLayers: Control.LayersObject = definedExternally, overlays: Control.LayersObject = definedExternally, options: Layers.LayersOptions = definedExternally) : Control<Layers.LayersOptions>

The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the detailed example).

Link copied to clipboard
open class Scale(options: Scale.ScaleOptions = definedExternally) : Control<Scale.ScaleOptions>

A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems.

Link copied to clipboard
open class Zoom(options: Zoom.ZoomControlOptions = definedExternally) : Control<Zoom.ZoomControlOptions>

A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its LeafletMap.zoomControl option to false.

Functions

Link copied to clipboard
inline operator fun Control.LayersObject.get(name: String): Layer<*>?

Native getter for LayersObject

Link copied to clipboard
inline operator fun Control.LayersObject.set(name: String, value: Layer<*>)

Native setter for LayersObject