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)); //添加标注