Skip to content

Leaflet Map: Reference

Reference for Leaflet Map in Web Framework References. Key properties: ID, Width, Height, Tile Provider.

Easily add interactive, customizable maps to your Wappler projects. Leaflet Maps is a lightweight, open-source JavaScript library for creating interactive maps on the web. It offers simplicity and versatility, making it easy to integrate dynamic maps with custom markers into your Wappler projects.

Inspector Property Groups

Leaflet Map Properties

Property Type Details
IDtextRequired in common setups.
Attribute: id
Widthcss_size 
Heightcss_size 
Tile ProviderdroplistAttribute: tile-provider
Options: OpenStreetMap, OpenStreetMap DE, OpenStreetMap FR, OpenStreetMap HOT, OpenTopoMap, Stadia Alidade Smooth
ClusteringdroplistAttribute: enable-clustering
Options: None, Enable
ZoomtextAttribute: zoom
Property Type Details
Scroll WheeldroplistAttribute: scroll-wheel-zoom
Options: Mouse-based Zoom, Map Center-based Zoom, Do not Zoom
Double ClickdroplistAttribute: double-click-zoom
Options: Mouse-based Zoom In, Map Center-based Zoom In, Do not Zoom In
Touch ZoomdroplistAttribute: touch-zoom
Options: Auto, Touch-based Zoom, Map Center-based Zoom, Do not Zoom
Zoom ControlbooleanAttribute: zoom-control
PositiondroplistAttribute: zoom-control-position
Options: Top Left, Top Right, Bottom Left, Bottom Right
Scale ControlbooleanAttribute: scale-control

Center

Property Type Details
AddresstextareaAttribute: address
LatitudetextAttribute: latitude
LongitudetextAttribute: longitude

Markers

Property Type Details
Dynamic MarkersbooleanAttribute: markers

Actions

Set view

Leaflet Map Set view

Configuration group Controls
Set view PropertiesLatitude, Longitude, Zoom

Set zoom

Leaflet Map Set zoom

Configuration group Controls
Set zoom PropertiesZoom

Zoom in

Leaflet Map Zoom in, using the Zoom Delta

Configuration group Controls
Zoom in PropertiesAction configuration group

Zoom out

Leaflet Map Zoom out, using the Zoom Delta

Configuration group Controls
Zoom out PropertiesAction configuration group

Fit bounds

Leaflet Map Fit bounds

Configuration group Controls
Fit bounds PropertiesBounds

Dynamic Attributes

Prefer Canvas

Attribute property Type Details
Value:textChoose dynamic data binding.

Layer Control

Attribute property Type Details
Value:textChoose dynamic data binding.

Zoom Control

Attribute property Type Details
Value:textChoose dynamic data binding.

Zoom Control Position

Attribute property Type Details
Value:textChoose dynamic data binding.

Scale Control

Attribute property Type Details
Value:textChoose dynamic data binding.

Dynamic Events

Zoomstart

Event option Type Details
Action:textChoose the action to execute.

Zoom

Event option Type Details
Action:textChoose the action to execute.

Zoomend

Event option Type Details
Action:textChoose the action to execute.

Movestart

Event option Type Details
Action:textChoose the action to execute.

Move

Event option Type Details
Action:textChoose the action to execute.