From 78916beb282abb04b600b3cd225f87b70ba305b4 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Tue, 30 Dec 2025 13:57:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=BB=E7=BA=BF=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE-=E7=BB=98=E5=88=B6=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- czl-screen/js/map_amplify.js | 2 +- czl-screen/js/map_data.js | 4 ++-- czl-web/pages/project/ProjectMap.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/czl-screen/js/map_amplify.js b/czl-screen/js/map_amplify.js index 8938acb..c699b0f 100644 --- a/czl-screen/js/map_amplify.js +++ b/czl-screen/js/map_amplify.js @@ -204,7 +204,7 @@ function setPlace(){ function myFun(){ var pp = local.getResults().getPoi(0).point; //获取第一个智能搜索的结果 console.log('经度:'+pp.lng, '纬度:'+pp.lat); - map.centerAndZoom(pp, 18); + map.centerAndZoom(pp, 14); map.setMinZoom(6); // 设置最小缩放级别 map.setMaxZoom(14); map.addOverlay(new BMap.Marker(pp)); //添加标注 diff --git a/czl-screen/js/map_data.js b/czl-screen/js/map_data.js index 19634d0..cf54725 100644 --- a/czl-screen/js/map_data.js +++ b/czl-screen/js/map_data.js @@ -65,7 +65,7 @@ function initMap(){ //alert("cityName="+cityName+" ,selectLon="+selectLon+" ,selectLat="+selectLat); // 百度地图API功能 map = new BMap.Map("allmap"); // 创建Map实例 - map.centerAndZoom(new BMap.Point(selectLon !=""?selectLon:112.98,selectLat !="" ?selectLat:28.19), 15); // 初始化地图,设置中心点坐标和地图级别 + map.centerAndZoom(new BMap.Point(selectLon !=""?selectLon:112.98,selectLat !="" ?selectLat:28.19), 14); // 初始化地图,设置中心点坐标和地图级别 map.setMinZoom(6); // 设置最小缩放级别 map.setMaxZoom(14); //添加地图类型控件 @@ -132,7 +132,7 @@ function setPlace(){ function myFun(){ var pp = local.getResults().getPoi(0).point; //获取第一个智能搜索的结果 console.log('经度:'+pp.lng, '纬度:'+pp.lat); - map.centerAndZoom(pp, 18); + map.centerAndZoom(pp, 14); map.setMinZoom(6); // 设置最小缩放级别 map.setMaxZoom(14); map.addOverlay(new BMap.Marker(pp)); //添加标注 diff --git a/czl-web/pages/project/ProjectMap.html b/czl-web/pages/project/ProjectMap.html index 6e9f835..9edb903 100644 --- a/czl-web/pages/project/ProjectMap.html +++ b/czl-web/pages/project/ProjectMap.html @@ -168,7 +168,7 @@ function myFun(){ var pp = local.getResults().getPoi(0).point; //获取第一个智能搜索的结果 console.log('经度:'+pp.lng, '纬度:'+pp.lat); - map.centerAndZoom(pp, 18); + map.centerAndZoom(pp, 14); map.setMinZoom(6); // 设置最小缩放级别 map.setMaxZoom(14); map.addOverlay(new BMap.Marker(pp)); //添加标注