百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vueleaflet

> 前端框架
开源

Leaflet 地图的 Vue 组件

191 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

Leaflet 地图的 Vue 组件

️ 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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptcomponentsleaflet-mapvitevitejs

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

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