From a66640923f167432ee85c672cdf175e5a0bb7eba Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期一, 29 十月 2018 14:36:00 +0800 Subject: [PATCH] 返回地图的中心点 --- gx_tieta/WebRoot/pages/js/common.js | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/gx_tieta/WebRoot/pages/js/common.js b/gx_tieta/WebRoot/pages/js/common.js index cfd0a9f..4e407d3 100644 --- a/gx_tieta/WebRoot/pages/js/common.js +++ b/gx_tieta/WebRoot/pages/js/common.js @@ -450,6 +450,21 @@ gl.CMD.e61850.getDischargeParm = 41; //鑾峰彇鍙傛暟 })(jQuery, window, document, GLOBAL); +// 鍦板浘淇℃伅 +;(function($, window, document, gl, undefined) { + // 瀹氫箟BMap鐨勫懡鍚嶇┖闂� + gl.namespace('BMap'); + // 鍦板浘鍙鍖哄煙瀹氫箟 + var mapViewArea = [ + {name: '涓浗',area:'涓浗' ,left: {lng:71.3822, lat:0.6212}, right: {lng: 139.526,lat:54.3093}}, + ]; + + // 灏嗗彉閲弇apView缁戝畾鍒癎LOBAL.BMap涓� + gl.BMap.mapViewArea = mapViewArea; + +})(jQuery, window, document, GLOBAL); + + // 鐢熸垚闃块噷鍥炬爣鐨勫厓绱� function create_ali_font(cla, color, data) { var i = $('<i class="icon iconfont"></i>'); -- Gitblit v1.9.1