lhl 6ff0e96ad3 8-4-1 | 1 year ago | |
---|---|---|
.. | ||
.github | 1 year ago | |
build | 1 year ago | |
components | 1 year ago | |
test | 1 year ago | |
types | 1 year ago | |
.eslintrc.js | 1 year ago | |
.travis.yml | 1 year ago | |
CONTRIBUTING.md | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
README.zh.md | 1 year ago | |
index.d.ts | 1 year ago | |
index.js | 1 year ago | |
karma.conf.js | 1 year ago | |
package.json | 1 year ago |
Baidu Map components for Vue 2.x
https://dafrok.github.io/vue-baidu-map
npm i --save vue-baidu-map
import Vue from 'vue'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
/* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
ak: 'YOUR_APP_KEY'
})
<template>
<baidu-map class="map">
</baidu-map>
</template>
<style>
/* The container of BaiduMap must be set width & height. */
.map {
width: 100%;
height: 300px;
}
</style>
Copyright (c) 2016-present, Dafrok o.o@mug.dog