Browse Source

地图坐标问题

feature
mk 2 years ago
parent
commit
8d5bde0e54
  1. 15
      src/views/modules/base/organization/organization.vue

15
src/views/modules/base/organization/organization.vue

@ -1298,9 +1298,6 @@ export default {
}, 1000);
}
},
"latitude":function(val){
console.log(val);
}
},
mounted () {
},
@ -2461,7 +2458,7 @@ export default {
modifyOrgInfo () {
this.judgeOrgInfoLevel =
this.breadcrumbArr[this.breadcrumbArr.length - 1];
console.log(this.judgeOrgInfoLevel.type);
this.searchValue = ''
if (this.judgeOrgInfoLevel.type === "agency") {
this.getOrgDetailsById();
setTimeout(() => {
@ -2665,11 +2662,12 @@ export default {
let lng = longitude || storeLongitude
console.log( document.getElementById(id));
console.log(lat,lng);
this.$nextTick(()=>{
map = new daiMap(
document.getElementById(id),
{ lat , lng },
{ lat,lng },
{
zoom: 16.2, //
zoom: 17.2, //
pitch: 43.5, //
rotation: 45, //
}
@ -2679,8 +2677,9 @@ export default {
this.handleMoveCenter(e);
});
map.setCenter(latitude, longitude);
map.setMarker(latitude, longitude);
map.setCenter(lat, lng);
map.setMarker(lat, lng);
})
},
async handleMoveCenter() {

Loading…
Cancel
Save