diff --git a/src/views/modules/base/community/buildForm.vue b/src/views/modules/base/community/buildForm.vue index e0335a6cb..9393d5d9d 100644 --- a/src/views/modules/base/community/buildForm.vue +++ b/src/views/modules/base/community/buildForm.vue @@ -372,9 +372,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/base/community/communityForm.vue b/src/views/modules/base/community/communityForm.vue index c3d8f4203..13f0437a2 100644 --- a/src/views/modules/base/community/communityForm.vue +++ b/src/views/modules/base/community/communityForm.vue @@ -285,9 +285,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/communityParty/heart/heartForm.vue b/src/views/modules/communityParty/heart/heartForm.vue index 1203f9cf5..093b3e690 100644 --- a/src/views/modules/communityParty/heart/heartForm.vue +++ b/src/views/modules/communityParty/heart/heartForm.vue @@ -1,221 +1,279 @@ - - diff --git a/src/views/modules/shequzhili/csgltc/csglForm.vue b/src/views/modules/shequzhili/csgltc/csglForm.vue index cdde575ea..854e03e15 100644 --- a/src/views/modules/shequzhili/csgltc/csglForm.vue +++ b/src/views/modules/shequzhili/csgltc/csglForm.vue @@ -307,7 +307,7 @@ export default { // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById('app'), { center: center, // 设置地图中心点坐标 - zoom: 17.2, // 设置地图缩放级别 + zoom: 16.2, // 设置地图缩放级别 pitch: 43.5, // 设置俯仰角 rotation: 45 // 设置地图旋转角度 }) @@ -352,9 +352,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.formData.address, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue index dfb95312d..fd2048832 100644 --- a/src/views/modules/shequzhili/event/cpts/add.vue +++ b/src/views/modules/shequzhili/event/cpts/add.vue @@ -625,7 +625,7 @@ export default { // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById("app"), { center: center, // 设置地图中心点坐标 - zoom: 17.2, // 设置地图缩放级别 + zoom: 16.2, // 设置地图缩放级别 pitch: 43.5, // 设置俯仰角 rotation: 45, // 设置地图旋转角度 }); @@ -670,9 +670,11 @@ export default { markers.setGeometries([]); // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.keyWords, - bounds: map.getBounds(), + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result; diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue index ceeb3ab97..c4b6d3bdc 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue @@ -284,7 +284,7 @@ export default { // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById('app'), { center: center, // 设置地图中心点坐标 - zoom: 17.2, // 设置地图缩放级别 + zoom: 16.2, // 设置地图缩放级别 pitch: 43.5, // 设置俯仰角 rotation: 45 // 设置地图旋转角度 }) @@ -329,9 +329,11 @@ export default { markers.setGeometries([]) // 在地图显示范围内以给定的关键字搜索地点 search - .searchRectangle({ + .searchNearby({ keyword: this.formData.address, - bounds: map.getBounds() + radius: 1000, + autoExtend: true, + center: map.getCenter(), }) .then((result) => { let { data } = result