支持vue2,vue3,vite|webpack

vue2:先安装vue2-baidu-map

vue3: 先安装vue-baidu-map-3x

使用

import BaiduMapOffline from 'vue-baidu-map-offline';
import BaiduMap from 'vue-baidu-map-3x'

app.use(BaiduMapOffline, {
    offline: true
});
app.use(BaiduMap, {
    ak: 'Yp57V71dkOPiXjiN8VdcFRsVELzlVNKK',
    v: '3.0',
    // type: 'WebGL'
});

1
2
3
4
5
6
7
8
9
10
11
12

详细使用请扫码查看(前端男海小程序)