Leaflet
UI Extension
Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps with a simple, well-documented API.
Status
Staged for Release
Version
v1.0.0
Supported Version
1.9
Released
2026-03-15
Licensing
Open Source
Priority
Rank #7
KEY FEATURES
Mobile-friendly
Lightweight
Plugin ecosystem
Markers and popups
GeoJSON
Tile layers
Touch support
Usage Example
Demos
Oorian's Leaflet extension provides a fluent Java API for creating interactive maps. Here's a simple map centered on San Francisco with markers for popular landmarks:
Java
// Create a map centered on San Francisco
LfMap map = new LfMap()
.setCenter(37.7749, -122.4194)
.setZoom(13)
.setHeight("400px")
.addOpenStreetMapLayer();
// Add markers for landmarks
map.addMarker(new LfMarker(37.8199, -122.4783)
.setPopupContent("<b>Golden Gate Bridge</b><br>Iconic suspension bridge")
.setTooltip("Golden Gate Bridge"));
map.addMarker(new LfMarker(37.7749, -122.4194)
.setPopupContent("<b>San Francisco</b><br>City Center")
.setTooltip("Downtown SF"));
map.addMarker(new LfMarker(37.8267, -122.4233)
.setPopupContent("<b>Alcatraz Island</b><br>Historic federal prison")
.setTooltip("Alcatraz"));
container.addElement(map);