Commit d213f817 authored by yaqizhang's avatar yaqizhang

container

parent 2b1fdd08
......@@ -22,7 +22,7 @@
<el-button size="small" @click="$emit('dialogcancelFun')">取消</el-button
>
</el-row>
<div style="width: 47vw; height: 65vh" id="container"></div>
<div style="width: 47vw; height: 65vh" id="container1"></div>
<el-col :span="8" class="button">
<el-input id="ss" placeholder="输入地址" v-model="keyWorld" size="small" ></el-input>
......@@ -54,7 +54,7 @@
let that = this;
that.$nextTick(() => {
//初始化地图
let map = new AMap.Map("container", {
let map = new AMap.Map("container1", {
center: [114.72995, 38.37417],
// resizeEnable: true,
disableSocket: true,
......
......@@ -10,7 +10,7 @@
<el-button size="small" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
</el-row>
</div>
<div style="" id="container" ref="elD"></div>
<div style="" id="container1" ref="elD"></div>
<el-row class="lt">
<el-button type="primary" size="small" @click="confirmFun">确定</el-button>
<el-button size="small" @click="$emit('dialogcancelFun')">取消</el-button>
......@@ -110,7 +110,7 @@
.dialog{
position:relative;
}
#container{
#container1{
width: 100%;
height: 500px;
}
......
......@@ -39,7 +39,7 @@ class gaodeMap {
constructor(center) {
this.markers = [];
this.center = center ? center : defaultCenter;
map = new AMap.Map("container", {
map = new AMap.Map("container1", {
//mask: addMask(result.districtList[0].boundaries),
center: [114.72995, 38.37417],
// resizeEnable: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment