leafletMap

fun <T> leafletMap(action: LeafletMap.() -> T): T

Perform an action with the LeafletMap instance.

It is unsafe to use this method before the KVision Maps Widget is initialised, and is added to a parent element. Instead, use configureLeafletMap.

Throws

IllegalArgumentException

if the LeafletMap is not yet initialized - it must first be added as a component.