@halobear/vue-amap
v1.1.0
Published
vue高德地图
Downloads
1
Readme
@halobear/vue-amap
vue 地图组件
安装
yarn add @halobear/vue-amap
使用
<template>
<div>
<vue-map v-model="center" keyword="上海"></vue-map>
<div class="res">结果:{{center}}</div>
</div>
</template>
<script>
import VueMap from "@halobear/vue-amap";
export default {
components: {
VueMap
},
data() {
return {
center: [116.39, 39.9]
};
}
};
</script>