Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vueleaflet

> 前端框架
Open source

Vue components for Leaflet maps

191 stars0 likes3 views
WebsiteGitHub

About

Vue components for Leaflet maps

️ vueleaflet

Vue 3 components for building Leaflet maps with a declarative component API.

vueleaflet wraps common Leaflet map primitives as Vue components, so maps can be composed with familiar templates, props, slots, and events. It is inspired by react-leaflet and vue-google-maps.

✨ Highlights

  • Declarative map composition with Vue components.
  • ️ Layer containers via LLayerGroup and LFeatureGroup.
  • ️ Raster and overlay support for tile layers, WMS, image, video, and SVG overlays.
  • Marker, popup, tooltip, vector, and GeoJSON components for common map workflows.
  • ️ Built-in and custom controls with Vue slot content.
  • ⚡ Vite Plus powered toolchain with vp scripts for dev, build, and test.
  • ✅ Typed builds and unit tests for safer library changes.

Installation

bash
npm install vueleaflet vue leaflet

Leaflet CSS is required in your app entry:

typescript
import 'leaflet/dist/leaflet.css';

Quick Start

xml

  
    

    
      
    
  

Component Coverage

Category Components
️ Map LMap, LPane
️ Layer containers LLayerGroup, LFeatureGroup
Raster layers LTilelayer, LTileLayer, LTileLayerWMS
Marker/overlays LMarker, LPopup, LTooltip, LImageOverlay, LVideoOverlay, LSVGOverlay
Vector layers LCircle, LCircleMarker, LPolygon, LPolyline, LRectangle, LGeojson
️ Controls LControl, LControlAttribution, LControlLayers, LControlScale, LControlZoom

See docs/components.md for the full props and events reference.

️ Layer Groups and Overlays

xml

  
    

    
      
      
    

    
  

️ Custom Controls

xml

  
    

    
      Reset view
    
  

Documentation

  • Component reference
  • Leaflet component roadmap
  • ✅ Optimization todo
  • Plugin extension template
  • Release workflow

️ Development

bash
# install dependencies
pnpm install

# run the example app
pnpm dev

# run unit tests
pnpm test

# build the library
pnpm build

# build the example app
pnpm build:example

# verify distribution artifacts
pnpm check:dist

Contributing

Pull requests are welcome. For component changes, please include focused tests and update the relevant docs or examples.

License

MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptcomponentsleaflet-mapvitevitejs

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架