# vaadin-leaflet-example **Repository Path**: mirrors_vaadin/vaadin-leaflet-example ## Basic Information - **Project Name**: vaadin-leaflet-example - **Description**: Vaadin 14 integration example of Leaflet JavaScript map library. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-07-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ⚠️ This repository is deprecated **An up-to-date example of integrating a JS/ES library you can use the [web component integration sample](https://github.com/vaadin/component-starter-flow). A map component is available at [start.vaadin.com](https://start.vaadin.com/) (select the Map view).** # Project example for integrating a JS library with Vaadin Flow This project demonstrates how to integrate a 3rd party JS library (LeafletJS in this case) into a Vaadin application, as a custom web component. [![Vaadin 14 Leaflet Example](leaflet-example.png)](https://labs.vaadin.com/leaflet-example/) The integration can be found in two files, LeafletMap.java and leaflet-map.js. MainView.java is a Vaadin application that demonstrates how to use the component. ## Running the Application Import the project to the IDE of your choosing as a Maven project. Run the application using `mvn spring-boot:run`. Open http://localhost:8080/ in your browser. If you want to run the application locally in production mode, run `mvn spring-boot:run -Pproduction`.