Description
vue-leaflet is a set of Vue 3 components for building maps with Leaflet 1.x. It is the Vue 3 successor to Vue2Leaflet, and most component props mirror the vanilla Leaflet options as closely as possible, staying close to their Vue 2 counterparts. Components that already work include LMap, LTileLayer, LWmsTileLayer, LMarker, LPopup, LTooltip, LIcon, LCircle, LCircleMarker, LPolygon, LPolyline, LRectangle, LGeoJson, LFeatureGroup, LImageOverlay and the attribution, layers, scale and zoom controls. Unlike the Vue 2 version, the library is fully compatible with server-side rendering, though Leaflet itself is not; for SSR and tree-shaking you can turn off the useGlobalLeaflet option so it imports Leaflet's ESM build asynchronously. The project is still a beta and may be unstable. Until full documentation is written, usage is shown in a component playground and a demo project.…
Highlights
- Vue 3 components for Leaflet 1.x
- Markers, popups, tooltips, shapes and GeoJSON layers
- Tile and WMS tile layers
- Attribution, layers, scale and zoom controls
- SSR-compatible with async Leaflet imports
Ratings & Reviews
No ratings yet
Be the first to rate @vue-leaflet/vue-leaflet.
People also visit
@vue-leaflet/vue-leaflet FAQ
What is vue-leaflet?
A library of Vue 3 components that wrap Leaflet 1.x so you can build interactive maps declaratively.
Is it stable?
It is a beta version and may still be unstable. The maintainers welcome help through issues, Discord or discussions.
Does it support server-side rendering?
Yes, unlike the Vue 2 version. Leaflet itself does not support SSR, so disable useGlobalLeaflet on LMap and import Leaflet methods asynchronously in the @ready event.
Where is the documentation?
Full documentation is still in progress. Use the component playground (clone the repo and run the dev server) or the demo project for examples.
How close is it to the Leaflet API?
Most component props mimic vanilla Leaflet options and generally match their Vue2Leaflet counterparts.
What are the best @vue-leaflet/vue-leaflet alternatives?
Popular alternatives to @vue-leaflet/vue-leaflet include vue3-openlayers, @indoorequal/vue-maplibre-gl and vue-maplibre-gl. See all @vue-leaflet/vue-leaflet alternatives


















