Home / Extensions / Leaflet
Maps

Leaflet

Interactive Maps

Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps with a simple, well-documented API.

Oorian Extension

Extension Status
Coming Soon

The Oorian extension for Leaflet is under development and will be available with the framework release.

Priority
Rank #5

Implementation priority based on popularity, API complexity, and user demand.

Supported Version
1.9

The version of Leaflet that this extension supports.

Licensing
Open Source (BSD)

The licensing model for Leaflet. Check their official website for full license details.

Integration
Full API Access

Oorian extensions expose the complete Leaflet API through type-safe Java methods.

Key Features

Mobile-friendly
Lightweight
Plugin ecosystem
Markers and popups
GeoJSON
Tile layers
Touch support

Usage Example

See how to use Leaflet with Oorian in pure Java.

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 Code
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);
Result

Component Library Demos

Explore Leaflet components with interactive examples.

Leaflet provides a comprehensive mapping library with support for multiple tile providers, markers, vector layers, and interactive features. Explore the demos below:

Tile Layer Providers

Leaflet supports multiple tile layer providers. Here are maps using different free tile services:

OpenStreetMap

Standard open-source map tiles

CartoDB Positron

Clean, light-themed map style

CartoDB Dark Matter

Dark theme for night mode UIs

Esri World Street

Detailed street-level mapping

Markers with Popups & Tooltips

Markers can display popups when clicked and tooltips on hover. Click on the markers below to see popups with HTML content:

Vector Layers: Circles, Polygons & Polylines

Draw shapes on the map including circles, polygons, polylines, and rectangles. Each shape can have custom colors, opacity, and popup content:

Circle
Polygon
Polyline
Rectangle

Ready to Use Leaflet?

Oorian makes it easy to integrate Leaflet into your Java web applications with type-safe extensions and real-time updates.