Browse Source

党群服务中心、社区自组织选择坐标初始化更改默认坐标

shibei_master
dai 3 years ago
parent
commit
33327fdd3a
  1. 7
      src/views/modules/communityService/dqfwzx/cpts/edit.vue
  2. 7
      src/views/modules/communityService/sqzzz/cpts/edit.vue

7
src/views/modules/communityService/dqfwzx/cpts/edit.vue

@ -438,8 +438,13 @@ export default {
}, },
// init // init
initMap() { initMap() {
let { latitude, longitude } = this.$store.state.user;
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
}
// //
var center = new window.TMap.LatLng(36.0722275, 120.38945519); var center = new window.TMap.LatLng(latitude, longitude);
// map TMap.Map() // map TMap.Map()
map = new window.TMap.Map(document.getElementById("app"), { map = new window.TMap.Map(document.getElementById("app"), {
center: center, // center: center, //

7
src/views/modules/communityService/sqzzz/cpts/edit.vue

@ -391,8 +391,13 @@ export default {
}, },
// init // init
initMap() { initMap() {
let { latitude, longitude } = this.$store.state.user;
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
longitude = 116.39743841556731;
}
// //
var center = new window.TMap.LatLng(36.0722275, 120.38945519); var center = new window.TMap.LatLng(latitude, longitude);
// map TMap.Map() // map TMap.Map()
map = new window.TMap.Map(document.getElementById("app"), { map = new window.TMap.Map(document.getElementById("app"), {
center: center, // center: center, //

Loading…
Cancel
Save