Package-level declarations

Types

Link copied to clipboard
open external class Attribution(options: Attribution.AttributionOptions = definedExternally) : Control<Attribution.AttributionOptions>
Link copied to clipboard
abstract external 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 external 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 external 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 external 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