vue-mapvgl is a Vue 2 component library designed to integrate Baidu's MapVGL 3D geographic information visualization library with Vue applications via vue-bmap-gl. It provides a set of pre-built components (e.g., `el-bmapv-point-layer`, `el-bmapv-heat-map-layer`) that simplify the process of adding advanced 3D data visualizations like heatmaps, flow lines, and complex geometric layers onto Baidu Maps GL instances. The package is currently at version 0.0.34, which is specific to Vue 2 environments. The project's 0.x line has been officially announced as unmaintained due to Baidu's documentation certification requirements, making it an abandoned package for Vue 2 development. A separate `@next` version exists for Vue 3, but this registry entry pertains to the 0.x series. It relies heavily on `vue-bmap-gl` for the underlying Baidu Maps GL instance.
npm install vue-mapvglVerified import paths — ran on the pinned version, not inferred.
Demonstrates the basic setup of `vue-mapvgl` with `vue-bmap-gl` in a Vue 2 application, including global plugin registration and rendering a simple point layer on a Baidu Map GL instance.
For new projects, consider `vue-mapvgl@next` (if actively maintained) or alternative mapping libraries. For existing projects, be aware of the lack of support and potential vulnerabilities.
Obtain an application key from the Baidu Maps LBS Cloud platform (lbsyun.baidu.com) and provide it during the `initBMapApiLoader` call.
Always verify the coordinate order of your data. If necessary, swap coordinates to `[longitude, latitude]` before passing them to `vue-mapvgl` layer components.
Ensure `Vue.use(VueBMap);` and `Vue.use(VueMapvgl);` are called before creating the Vue instance, typically in `main.js`.
Check your network connection. Ensure `VueBMap.initBMapApiLoader({ ak: 'YOUR_KEY' })` is called with a valid, active Baidu Maps API Key and that the key has appropriate permissions.Verify that `vue-bmap-gl` and `vue-mapvgl` are installed and registered correctly. Ensure the Baidu Maps API (including WebGL version) is loaded and the `mapvgl` script is accessible.