LeafletObjectFactory

Leaflet constructors.

Equivalent to Leaflet's L shortcut.

See https://leafletjs.com/reference.html#class-class-factories

Functions

Link copied to clipboard
Link copied to clipboard
fun canvas(configure: Canvas.CanvasOptions.() -> Unit = {}): Canvas
Link copied to clipboard
fun circle(latlng: LatLng, configure: CircleMarker.CircleMarkerOptions.() -> Unit = {}): Circle
Link copied to clipboard
Link copied to clipboard
fun divIcon(configure: DivIcon.DivIconOptions.() -> Unit = {}): DivIcon
Link copied to clipboard
Link copied to clipboard
fun featureGroup(layers: JsArray<Layer<*>>, configure: Layer.LayerOptions.() -> Unit = {}): FeatureGroup
Link copied to clipboard
fun icon(configure: Icon.IconOptions.() -> Unit = {}): Icon<Icon.IconOptions>
Link copied to clipboard
fun imageOverlay(imageUrl: String, bounds: LatLngBounds, configure: ImageOverlay.ImageOverlayOptions.() -> Unit = {}): ImageOverlay
Link copied to clipboard
fun latLng(latitude: Double, longitude: Double): LatLng
fun latLng(latLng: Pair<Double, Double>, altitude: Double? = null): LatLng
fun latLng(latitude: Double, longitude: Double, altitude: Double): LatLng
Link copied to clipboard
fun latLngBounds(southWestToNorthEast: Pair<LatLng, LatLng>): LatLngBounds
fun latLngBounds(southWest: LatLng, northEast: LatLng): LatLngBounds
Link copied to clipboard
fun layers(baseLayers: Control.LayersObject = layersObject(emptyMap()), overlays: Control.LayersObject = layersObject(emptyMap()), configure: Layers.LayersOptions.() -> Unit = {}): Layers
Link copied to clipboard
Link copied to clipboard
fun map(element: HTMLElement, options: LeafletMap.LeafletMapOptions?): LeafletMap
fun map(element: HTMLElement, configure: LeafletMap.LeafletMapOptions.() -> Unit = {}): LeafletMap
Link copied to clipboard
fun marker(latlng: LatLng, configure: Marker.MarkerOptions.() -> Unit = {}): Marker
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun polyline(latLngs: Collection<LatLng>, configure: Polyline.PolylineOptions.() -> Unit = {}): Polyline
Link copied to clipboard
fun popup(source: Layer<*>, configure: Popup.PopupOptions.() -> Unit = {}): Popup
Link copied to clipboard
fun rectangle(latLngBounds: LatLngBounds, configure: Polyline.PolylineOptions.() -> Unit = {}): Rectangle
Link copied to clipboard
fun scale(configure: Scale.ScaleOptions.() -> Unit = {}): Scale
Link copied to clipboard
fun svg(configure: Renderer.RendererOptions.() -> Unit = {}): SVG
Link copied to clipboard
Link copied to clipboard
fun tooltip(source: Layer<*>? = null, configure: Tooltip.TooltipOptions.() -> Unit = {}): Tooltip
Link copied to clipboard
fun videoOverlay(video: HTMLVideoElement, bounds: LatLngBounds, configure: VideoOverlay.VideoOverlayOptions.() -> Unit = {}): VideoOverlay