提交 132af0b9 authored 作者: 王健's avatar 王健

中心点以及缩放级别控制

上级 a4722184
<template> <template>
<div class="amap-wrapper"> <div class="amap-wrapper">
<el-amap class="amap-box" :vid="'amap-vue'" :style="{height: clientHeight}"></el-amap> <el-amap :zoom="zoom" :center="center" :vid="'amap-vue'" :style="{height: clientHeight}"></el-amap>
</div> </div>
</template> </template>
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
export default { export default {
data () { data () {
return { return {
clientHeight: '' clientHeight: '',
zoom: 7,
center: [118.28495, 36.335823]
} }
}, },
mounted () { mounted () {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论