Directory

← Back

Leaflet

Leaflet component provides a JAVA API for Leaflet maps library.

Author

Rating

Popularity

300+

Description

JAVA API for Leaflet maps library.

Based on leaflet4vaadin.

Features

Sample code

MapOptions options = new DefaultMapOptions();
options.setCenter(new LatLng(47.070121823, 19.204101562500004));
options.setZoom(7);
LeafletMap leafletMap = new LeafletMap(options );
leafletMap.setBaseUrl("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");
add(leafletMap);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Warning: There are some breaking changes. Some classes have been removed because it relies on outdated libraries.

Remove GeoJSON extension because it's not working with the latest version of Jackson and the library is not maintained anymore with security issues.

Also removed the outdated leaflet-canvas-marker (updated 6 years ago) to avoid an issue with rbush and CanvasIconLayer.

It has been tested for Vaadin 24.4.

Released
2024-08-19
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 24.4
Vaadin 23 in 1.0.0
Vaadin 14 in 1.0.0
Vaadin 24+ in 2.0.0
Browser
N/A

Leaflet - Vaadin Add-on Directory

Leaflet component provides a JAVA API for Leaflet maps library. Leaflet - Vaadin Add-on Directory
### Description JAVA API for [Leaflet maps library](https://github.com/Leaflet/Leaflet). Based on [leaflet4vaadin](https://github.com/Gubancs/leaflet4vaadin). ### Features - map configuration - interactive layers - map and layer events - markers - tooltip and popup binding - layer groups - vector layers - dark theme - map controls (zoom, layers, scale) - map state functions - tile layers - GeoJSON support - support for Leaflet plugins: - [Leaflet.heat](https://github.com/Leaflet/Leaflet.heat) - [leaflet.fullscreen](https://github.com/brunob/leaflet.fullscreen) - [leaflet-kmz](https://github.com/Raruto/leaflet-kmz) - [Leaflet.markercluster](https://github.com/Leaflet/Leaflet.markercluster) - [Leaflet.Canvas-Markers](https://github.com/eJuke/Leaflet.Canvas-Markers) - support for [Esri Leaflet plugins](https://github.com/Esri/esri-leaflet): - L.esri.DynamicMapLayer - L.esri.TiledMapLayer - L.esri.Vector.vectorBasemapLayer
Online