Baidu Map components for Vue 2.x
https://dafrok.github.io/vue-baidu-map-offline
npm i --save vue-baidu-map-offline
import Vue from 'vue'
import BaiduMapOffline from 'vue-baidu-map-offline'
Vue.use(BaiduMapOffline, {
/* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
ak: 'YOUR_APP_KEY'
})
<template>
<baidu-map-offline class="map">
</baidu-map-offline>
</template>
<style>
/* The container of BaiduMapOffline must be set width & height. */
.map {
width: 100%;
height: 300px;
}
</style>
Copyright (c) 2016-present, Dafrok o.o@mug.dog