|
|
@ -114,7 +114,7 @@ import BasicInfoCommunity from "./basicInfoCommunity"; |
|
|
|
import PeopleSearch from "./peopleSearch"; |
|
|
|
import People from "./people"; |
|
|
|
import cptCard from "@/views/modules/visual/cpts/card"; |
|
|
|
|
|
|
|
var centerPointGlobal = [120.38945519, 36.0722275] |
|
|
|
|
|
|
|
let loading;//加载动画 |
|
|
|
|
|
|
@ -532,11 +532,15 @@ const vueGis = { |
|
|
|
}, |
|
|
|
//设置地图定位的中心点和缩放级别 |
|
|
|
setMapLocation () { |
|
|
|
this.centerPoint = [] |
|
|
|
|
|
|
|
|
|
|
|
if (this.orgData.longitude && this.orgData.latitude) { |
|
|
|
this.centerPoint = [] |
|
|
|
this.centerPoint.push(this.orgData.longitude) |
|
|
|
this.centerPoint.push(this.orgData.latitude) |
|
|
|
} else { |
|
|
|
|
|
|
|
this.centerPoint = centerPointGlobal |
|
|
|
} |
|
|
|
|
|
|
|
this.setZoom(this.orgData.agencyLevel) |
|
|
|