vue3-baidu-map-gl

A Vue 3 baidu map gl Component Library.
18,603 466
Install
npm install vue3-baidu-map-gl
Latest Version:2.6.5
Vue:3
License:MIT
Last Updated:Oct 19, 2026
Links: GitHub  ·  npm
Maintainer: yue1123

基于百度地图 JavaScript GL 版(使用了 WebGL 对地图、覆盖物等进行渲染,支持 3D 视角展示地图) API 封装设计的 Vue3 组件/hooks 库,开箱即用。

Star

如果喜欢这个项目,右上角给我们点个星星吧,这对我们意义非凡!

特性

  • 🚀 自动加载百度地图 SDK,将百度地图繁琐的 Api 封装进组件,你只需关注组件本身
  • 📦 20+ 高质量的开箱即用 Vue 3 组件以及 8+ hooks 封装
  • 📐 遵循直觉的、简约的 Api 设计
  • ⚡ Composition Api,更好的性能
  • 🔨 完整的 TypeScript 支持,更好的体验
  • 🧩 tree shaking 支持,模块分包,只打包你想要的的
  • 🌏 基于百度地图 Gl 版 SDK,通过 WebGL 对地图、覆盖物等进行渲染,支持 3D 视角展示地图
  • 🚀 支持 volar,组件提供完善的代码提示

安装

推荐使用 pnpm 安装

# with pnpm
pnpm add vue3-baidu-map-gl

# or with yarn
yarn add vue3-baidu-map-gl

# or with npm
npm install vue3-baidu-map-gl

文档

中文

赞助

此项目使用 MIT 协议,完全免费使用,如果您觉得项目对您有帮助,可以考虑适当的 赞助 支持此项目的开发

开发参与贡献

# 环境
# pnpm >= 6.0.0
# node >= 12.0.0

# clone
git clone https://github.com/yue1123/vue3-baidu-map-gl
cd ./vue3-baidu-map-gl

# install
pnpm install

# 运行 dev, 实时构建组件库
pnpm dev

# 运行文档站点,用来测试组件,预览文档
pnpm docs:dev

Star History

Star History Chart

License

MIT licenses

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

Version History

Version Released License
2.6.5 MIT
2.6.4 MIT
2.6.3 MIT
2.6.2 MIT
2.6.1 MIT
Pre-releases (8)
Version Released License
2.2.0-pre.1 MIT
0.0.0-beta.8
0.0.0-beta.7
0.0.0-beta.6
0.0.0-beta.4