window.TILE_VERSION={"ditu":{"normal":{"version":"088","updateDate":"20180330"},"satellite":{"version":"009","updateDate":"20180330"},"normalTraffic":{"version":"081","updateDate":"20180330"},"satelliteTraffic":{"version":"083","updateDate":"20180330"},"mapJS":{"version":"104","updateDate":"20180330"},"satelliteStreet":{"version":"083","updateDate":"20180330"},"panoClick":{"version":"1033","updateDate":"20180322"},"panoUdt":{"version":"20180322","updateDate":"20180322"},"panoSwfAPI":{"version":"20150123","updateDate":"20150123"},"panoSwfPlace":{"version":"20141112","updateDate":"20141112"},"earthVector":{"version":"001","updateDate":"20180330"}},"webapp":{"high_normal":{"version":"001","updateDate":"20180330"},"lower_normal":{"version":"002","updateDate":"20180330"}},"api_for_mobile":{"vector":{"version":"002","updateDate":"20180330"},"vectorIcon":{"version":"002","updateDate":"20180330"}}};window.BMAP_AUTHENTIC_KEY="";(function(){var bU,a1=bU=a1||{version:"1.3.4"};a1.guid="$BAIDU$";window[a1.guid]=window[a1.guid]||{};a1.object=a1.object||{};a1.extend=a1.object.extend=function(cD,T){for(var cC in T){if(T.hasOwnProperty(cC)){cD[cC]=T[cC]}}return cD};a1.dom=a1.dom||{};a1.dom.g=function(T){if("string"==typeof T||T instanceof String){return document.getElementById(T)}else{if(T&&T.nodeName&&(T.nodeType==1||T.nodeType==9)){return T}}return null};a1.g=a1.G=a1.dom.g;a1.dom.hide=function(T){T=a1.dom.g(T);T.style.display="none";return T};a1.hide=a1.dom.hide;a1.lang=a1.lang||{};a1.lang.isString=function(T){return"[object String]"==Object.prototype.toString.call(T)};a1.isString=a1.lang.isString;a1.dom._g=function(T){if(a1.lang.isString(T)){return document.getElementById(T)}return T};a1._g=a1.dom._g;a1.dom.contains=function(T,cC){var cD=a1.dom._g;T=cD(T);cC=cD(cC);return T.contains?T!=cC&&T.contains(cC):!!(T.compareDocumentPosition(cC)&16)};a1.browser=a1.browser||{};if(/msie (\d+\.\d)/i.test(navigator.userAgent)){a1.browser.ie=a1.ie=document.documentMode||+RegExp["\x241"]}a1.dom._NAME_ATTRS=(function(){var T={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};if(a1.browser.ie<8){T["for"]="htmlFor";T["class"]="className"}else{T.htmlFor="for";T.className="class"}return T})();a1.dom.setAttr=function(cC,T,cD){cC=a1.dom.g(cC);if("style"==T){cC.style.cssText=cD}else{T=a1.dom._NAME_ATTRS[T]||T;cC.setAttribute(T,cD)}return cC};a1.setAttr=a1.dom.setAttr;a1.dom.setAttrs=function(cD,T){cD=a1.dom.g(cD);for(var cC in T){a1.dom.setAttr(cD,cC,T[cC])}return cD};a1.setAttrs=a1.dom.setAttrs;a1.string=a1.string||{};(function(){var T=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+\x24)","g");a1.string.trim=function(cC){return String(cC).replace(T,"")}})();a1.trim=a1.string.trim;a1.string.format=function(cD,T){cD=String(cD);var cC=Array.prototype.slice.call(arguments,1),cE=Object.prototype.toString;if(cC.length){cC=cC.length==1?(T!==null&&(/\[object Array\]|\[object Object\]/.test(cE.call(T)))?T:cC):cC;return cD.replace(/#\{(.+?)\}/g,function(cF,cH){var cG=cC[cH];if("[object Function]"==cE.call(cG)){cG=cG(cH)}return("undefined"==typeof cG?"":cG)})}return cD};a1.format=a1.string.format;a1.dom.removeClass=function(cG,cH){cG=a1.dom.g(cG);var cE=cG.className.split(/\s+/),cI=cH.split(/\s+/),cC,T=cI.length,cD,cF=0;for(;cF0&&cK.getBoxObjectFor&&cH(T,"position")=="absolute"&&(T.style.top===""||T.style.left===""),cI={left:0,top:0},cG=(cE.ie&&!cE.isStrict)?cK.body:cK.documentElement,cL,cC;if(T==cG){return cI}if(T.getBoundingClientRect){cC=T.getBoundingClientRect();cI.left=Math.floor(cC.left)+Math.max(cK.documentElement.scrollLeft,cK.body.scrollLeft);cI.top=Math.floor(cC.top)+Math.max(cK.documentElement.scrollTop,cK.body.scrollTop);cI.left-=cK.documentElement.clientLeft;cI.top-=cK.documentElement.clientTop;var cJ=cK.body,cM=parseInt(cH(cJ,"borderLeftWidth")),cF=parseInt(cH(cJ,"borderTopWidth"));if(cE.ie&&!cE.isStrict){cI.left-=isNaN(cM)?2:cM;cI.top-=isNaN(cF)?2:cF}}else{cL=T;do{cI.left+=cL.offsetLeft;cI.top+=cL.offsetTop;if(cE.isWebkit>0&&cH(cL,"position")=="fixed"){cI.left+=cK.body.scrollLeft;cI.top+=cK.body.scrollTop;break}cL=cL.offsetParent}while(cL&&cL!=T);if(cE.opera>0||(cE.isWebkit>0&&cH(T,"position")=="absolute")){cI.top-=cK.body.offsetTop}cL=T.offsetParent;while(cL&&cL!=cK.body){cI.left-=cL.scrollLeft;if(!cE.opera||cL.tagName!="TR"){cI.top-=cL.scrollTop}cL=cL.offsetParent}}return cI};if(/firefox\/(\d+\.\d)/i.test(navigator.userAgent)){a1.browser.firefox=+RegExp["\x241"]}(function(){var T=navigator.userAgent;if(/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(T)&&!/chrome/i.test(T)){a1.browser.safari=+(RegExp["\x241"]||RegExp["\x242"])}})();if(/chrome\/(\d+\.\d)/i.test(navigator.userAgent)){a1.browser.chrome=+RegExp["\x241"]}a1.array=a1.array||{};a1.array.each=function(cG,cE){var cD,cF,cC,T=cG.length;if("function"==typeof cE){for(cC=0;cC-1};window.BMap=window.BMap||{};window.BMap.version="1.2";window.BMap._register=[];window.BMap.register=function(T){this._register.push(T)};window.BMap.apiLoad=window.BMap.apiLoad||function(){};function bs(cE,cG){cE=a1.g(cE);if(!cE){return}var cF=this;a1.lang.Class.call(cF);cF.config={clickInterval:200,enableDragging:true,enableKeyboard:false,enableDblclickZoom:true,enableContinuousZoom:false,enableWheelZoom:false,enableMouseDown:true,enablePinchToZoom:true,enableAutoResize:true,fps:25,zoomerDuration:240,actionDuration:450,defaultCursor:b3.defaultCursor,draggingCursor:b3.draggingCursor,isOverviewMap:false,minZoom:1,maxZoom:18,mapType:BMAP_NORMAL_MAP,restrictBounds:false,drawer:BMAP_SYS_DRAWER,enableInertialDragging:false,drawMargin:500,enableHighResolution:false};a1.extend(cF.config,cG||{});if(cF.highResolutionEnabled()){var cI=document.querySelector("meta[name=viewport]");cI.content="initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no, target-densitydpi=high-dpi"}cF.container=cE;cF._setStyle(cE);cE.unselectable="on";cE.innerHTML="";cE.appendChild(cF.render());var cC=cF.getSize();cF.width=cC.width;cF.height=cC.height;cF.offsetX=0;cF.offsetY=0;cF.platform=cE.firstChild;cF.maskLayer=cF.platform.firstChild;cF.maskLayer.style.width=cF.width+"px";cF.maskLayer.style.height=cF.height+"px";cF._panes={};cF.centerPoint=new b4(0,0);cF.mercatorCenter=new b4(0,0);cF.zoomLevel=1;cF.lastLevel=0;cF.defaultZoomLevel=null;cF.defaultCenter=null;cF.currentCity="";cF.cityCode="";cF._hotspots={};cF.currentOperation=0;cG=cG||{};var cH=cF.mapType=cF.config.mapType;cF.projection=cH.getProjection();if(cH===BMAP_PERSPECTIVE_MAP){_addStat(5002)}if(cH===BMAP_SATELLITE_MAP||cH===BMAP_HYBRID_MAP){_addStat(5003)}var T=cF.config;T.userMinZoom=cG.minZoom;T.userMaxZoom=cG.maxZoom;cF._checkZoom();cF.temp={operating:false,arrow:0,lastDomMoveTime:0,lastLoadTileTime:0,lastMovingTime:0,canKeyboard:false,registerIndex:-1,curSpots:[]};cF.platform.style.cursor=cF.config.defaultCursor;for(var cD=0;cDT){cE=true;cD=T}return{zoom:cD,exceeded:cE}},getContainer:function(){return this.container},pointToPixel:function(T,cC){cC=cC||this.getZoom();return this.projection.pointToPixel(T,cC,this.mercatorCenter,this.getSize(),this.currentCity)},pixelToPoint:function(T,cC){cC=cC||this.getZoom();return this.projection.pixelToPoint(T,cC,this.mercatorCenter,this.getSize(),this.currentCity)},pointToOverlayPixel:function(T,cD){if(!T){return}var cE=new b4(T.lng,T.lat);var cC=this.pointToPixel(cE,cD);cC.x-=this.offsetX;cC.y-=this.offsetY;return cC},overlayPixelToPoint:function(T,cD){if(!T){return}var cC=new bn(T.x,T.y);cC.x+=this.offsetX;cC.y+=this.offsetY;return this.pixelToPoint(cC,cD)},getBounds:function(){if(!this.isLoaded()){return new bF()}var cC=arguments[0]||{},cE=cC.margins||[0,0,0,0],T=cC.zoom||null,cF=this.pixelToPoint({x:cE[3],y:this.height-cE[2]},T),cD=this.pixelToPoint({x:this.width-cE[1],y:cE[0]},T);return new bF(cF,cD)},isLoaded:function(){return !!this.loaded},_getBestLevel:function(cC,cD){var cG=this.getMapType();var cI=cD.margins||[10,10,10,10],cF=cD.zoomFactor||0,cJ=cI[1]+cI[3],cH=cI[0]+cI[2],T=cG.getMinZoom(),cL=cG.getMaxZoom();for(var cE=cL;cE>=T;cE--){var cK=this.getMapType().getZoomUnits(cE);if(cC.toSpan().lng/cKcL){cE=cL}return cE},getViewport:function(cK,cC){var cO={center:this.getCenter(),zoom:this.getZoom()};if(!cK||!cK instanceof bF&&cK.length==0||cK instanceof bF&&cK.isEmpty()){return cO}var cM=[];if(cK instanceof bF){cM.push(cK.getNorthEast());cM.push(cK.getSouthWest())}else{cM=cK.slice(0)}cC=cC||{};var cG=[];for(var cH=0,cF=cM.length;cH=0;cH--){cD.extend(cG[cH])}if(cD.isEmpty()){return cO}var T=cD.getCenter();var cN=this._getBestLevel(cD,cC);if(cC.margins){var cJ=cC.margins,cI=(cJ[1]-cJ[3])/2,cL=(cJ[0]-cJ[2])/2,cE=this.getMapType().getZoomUnits(cN);T.lng=T.lng+cE*cI;T.lat=T.lat+cE*cL}T=this.projection.mercatorToLngLat(T,this.currentCity);return{center:T,zoom:cN}},setViewport:function(cC,cF){var T;if(cC&&cC.center){T=cC}else{T=this.getViewport(cC,cF)}cF=cF||{};var cD=cF.delay||200;if(T.zoom==this.zoomLevel&&cF.enableAnimation!=false){var cE=this;setTimeout(function(){cE.panTo(T.center,{duration:210})},cD)}else{this.centerAndZoom(T.center,T.zoom)}},getPanes:function(){return this._panes},getInfoWindow:function(){if(this.temp.infoWin&&this.temp.infoWin.isOpen()){return this.temp.infoWin}return null},getDistance:function(cD,T){if(!cD||!T){return}var cC=0;cC=a3.getDistanceByLL(cD,T);return cC},getOverlays:function(){var cE=[],cF=this._overlays,cD=this._customOverlays;if(cF){for(var cC in cF){if(cF[cC] instanceof U){cE.push(cF[cC])}}}if(cD){for(var cC=0,T=cD.length;cC1},addHotspot:function(cC){if(cC instanceof cd){this._hotspots[cC.guid]=cC;cC.initialize(this)}var T=this;cr.load("hotspot",function(){T._asyncRegister()})},removeHotspot:function(T){if(this._hotspots[T.guid]){delete this._hotspots[T.guid]}},clearHotspots:function(){this._hotspots={}},_checkZoom:function(){var cC=this.mapType.getMinZoom();var cD=this.mapType.getMaxZoom();var T=this.config;T.minZoom=T.userMinZoom||cC;T.maxZoom=T.userMaxZoom||cD;if(T.minZoomcD){T.maxZoom=cD}},setMinZoom:function(T){if(T>this.config.maxZoom){T=this.config.maxZoom}this.config.userMinZoom=T;this._updateZoom()},setMaxZoom:function(T){if(TT.maxZoom){this.setZoom(T.maxZoom)}}var cC=new a9("onzoomspanchange");cC.minZoom=T.minZoom;cC.maxZoom=T.maxZoom;this.dispatchEvent(cC)}});window.BMAP_API_VERSION="1.2";window.BMAP_COORD_LNGLAT=0;window.BMAP_COORD_MERCATOR=1;window.BMAP_SYS_DRAWER=0;window.BMAP_SVG_DRAWER=1;window.BMAP_VML_DRAWER=2;window.BMAP_CANVAS_DRAWER=3;window._addStat=function(cG,cF){if(!cG){return}cF=cF||{};var cE="";for(var cC in cF){cE=cE+"&"+cC+"="+encodeURIComponent(cF[cC])}var cH=function(cI){if(!cI){return}_addStat._sending=true;setTimeout(function(){_addStat._img.src=b3.imgPath+"blank.gif?"+cI.src},50)};var T=function(){var cI=_addStat._reqQueue.shift();if(cI){cH(cI)}};var cD=(Math.random()*100000000).toFixed(0);if(_addStat._sending){_addStat._reqQueue.push({src:"t="+cD+"&code="+cG+cE})}else{cH({src:"t="+cD+"&code="+cG+cE})}if(!_addStat._binded){a1.on(_addStat._img,"load",function(){_addStat._sending=false;T()});a1.on(_addStat._img,"error",function(){_addStat._sending=false;T()});_addStat._binded=true}};window._addStat._reqQueue=[];window._addStat._img=new Image();_addStat(5000,{v:BMap.version});function g(cE){var T={duration:1000,fps:30,delay:0,transition:aq.linear,onStop:function(){}};this._anis=[];if(cE){for(var cC in cE){T[cC]=cE[cC]}}this._opts=T;if(aE(T.delay)){var cD=this;setTimeout(function(){cD.start()},T.delay)}else{if(T.delay!=g.INFINITE){this.start()}}}g.INFINITE="INFINITE";g.prototype.start=function(){this._beginTime=az();this._endTime=this._beginTime+this._opts.duration;this._launch()};g.prototype.add=function(T){this._anis.push(T)};g.prototype._launch=function(){var cD=this;var T=az();if(T>=cD._endTime){if(G(cD._opts.render)){cD._opts.render(cD._opts.transition(1))}if(G(cD._opts.finish)){cD._opts.finish()}if(cD._anis.length>0){var cC=cD._anis[0];cC._anis=[].concat(cD._anis.slice(1));cC.start()}return}cD.schedule=cD._opts.transition((T-cD._beginTime)/cD._opts.duration);if(G(cD._opts.render)){cD._opts.render(cD.schedule)}if(!cD.terminative){cD._timer=setTimeout(function(){cD._launch()},1000/cD._opts.fps)}};g.prototype.stop=function(cC){this.terminative=true;for(var T=0;T0){this._anis[this._anis.length-1]._opts.finish=T}else{this._opts.finish=T}};var aq={linear:function(T){return T},reverse:function(T){return 1-T},easeInQuad:function(T){return T*T},easeInCubic:function(T){return Math.pow(T,3)},easeOutQuad:function(T){return -(T*(T-2))},easeOutCubic:function(T){return Math.pow((T-1),3)+1},easeInOutQuad:function(T){if(T<0.5){return T*T*2}else{return -2*(T-2)*T-1}return},easeInOutCubic:function(T){if(T<0.5){return Math.pow(T,3)*4}else{return Math.pow(T-1,3)*4+1}},easeInOutSine:function(T){return(1-Math.cos(Math.PI*T))/2}};aq["ease-in"]=aq.easeInQuad;aq["ease-out"]=aq.easeOutQuad;var b3={imgPath:"http://api.map.baidu.com/images/",cityNames:{"\u5317\u4eac":"bj","\u4e0a\u6d77":"sh","\u6df1\u5733":"sz","\u5e7f\u5dde":"gz"},fontFamily:"arial,sans-serif"};if(a1.browser.firefox){a1.extend(b3,{distCursor:"url("+b3.imgPath+"ruler.cur),crosshair",defaultCursor:"-moz-grab",draggingCursor:"-moz-grabbing"});if(a1.platform.isWindows){b3.fontFamily="arial,simsun,sans-serif"}}else{if(a1.browser.chrome||a1.browser.safari){a1.extend(b3,{distCursor:"url("+b3.imgPath+"ruler.cur) 2 6,crosshair",defaultCursor:"url("+b3.imgPath+"openhand.cur) 8 8,default",draggingCursor:"url("+b3.imgPath+"closedhand.cur) 8 8,move"})}else{a1.extend(b3,{distCursor:"url("+b3.imgPath+"ruler.cur),crosshair",defaultCursor:"url("+b3.imgPath+"openhand.cur),default",draggingCursor:"url("+b3.imgPath+"closedhand.cur),move"})}}function ap(cD,cC,T){this.id=cD;this.bounds=cC;this.content=T}var bg={undo:1,redo:2,zoom:4,drag:8,move:16,mousewheel:32,toolbarOperation:64,stdMapCtrlDrag:128,dblclick:256};function bB(cD,T){var cC=cD.style;cC.left=T[0]+"px";cC.top=T[1]+"px"}function cn(T){if(a1.browser.ie>0){T.unselectable="on"}else{T.style.MozUserSelect="none"}}function w(T){return T&&T.parentNode&&T.parentNode.nodeType!=11}function an(cC,T){a1.dom.insertHTML(cC,"beforeEnd",T);return cC.lastChild}function bQ(T){var cC={left:0,top:0};while(T&&T.offsetParent){cC.left+=T.offsetLeft;cC.top+=T.offsetTop;T=T.offsetParent}return cC}function aJ(T){var T=window.event||T;T.stopPropagation?T.stopPropagation():T.cancelBubble=true}function ct(T){var T=window.event||T;T.preventDefault?T.preventDefault():T.returnValue=false;return false}function cf(T){aJ(T);return ct(T)}function cx(){var T=document.documentElement,cC=document.body;if(T&&(T.scrollTop||T.scrollLeft)){return[T.scrollTop,T.scrollLeft]}else{if(cC){return[cC.scrollTop,cC.scrollLeft]}else{return[0,0]}}}function ck(cC,T){if(!cC||!T){return}return Math.round(Math.sqrt(Math.pow(cC.x-T.x,2)+Math.pow(cC.y-T.y,2)))}function M(T,cD){var cC=[];cD=cD||function(cF){return cF};for(var cE in T){cC.push(cE+"="+cD(T[cE]))}return cC.join("&")}function W(cC,T,cD){var cE=document.createElement(cC);if(cD){cE=document.createElementNS(cD,cC)}return a1.dom.setAttrs(cE,T||{})}function aD(T){if(T.currentStyle){return T.currentStyle}else{if(T.ownerDocument&&T.ownerDocument.defaultView){return T.ownerDocument.defaultView.getComputedStyle(T,null)}}}function G(T){return typeof T=="function"}function aE(T){return typeof T=="number"}function bV(T){return typeof T=="string"}function b8(T){return typeof T!="undefined"}function cA(T){return typeof T=="object"}function aS(T){return"[object Array]"==Object.prototype.toString.call(T)}var b6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function bN(cE){var cC="";var cL,cJ,cH="";var cK,cI,cG,cF="";var cD=0;var T=/[^A-Za-z0-9\+\/\=]/g;if(!cE||T.exec(cE)){return cE}cE=cE.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{cK=b6.indexOf(cE.charAt(cD++));cI=b6.indexOf(cE.charAt(cD++));cG=b6.indexOf(cE.charAt(cD++));cF=b6.indexOf(cE.charAt(cD++));cL=(cK<<2)|(cI>>4);cJ=((cI&15)<<4)|(cG>>2);cH=((cG&3)<<6)|cF;cC=cC+String.fromCharCode(cL);if(cG!=64){cC=cC+String.fromCharCode(cJ)}if(cF!=64){cC=cC+String.fromCharCode(cH)}cL=cJ=cH="";cK=cI=cG=cF=""}while(cD");if(this._visible==false){a1.dom.hide(this._container)}return this._container},_setPosition:function(){this.setAnchor(this._opts.anchor)},setAnchor:function(cE){if(this.anchorFixed||!aE(cE)||isNaN(cE)||cEBMAP_ANCHOR_BOTTOM_RIGHT){cE=this.defaultAnchor}this._opts=this._opts||{printable:false};this._opts.offset=this._opts.offset||this.defaultOffset;var cD=this._opts.anchor;this._opts.anchor=cE;if(!this._container){return}var cG=this._container;var T=this._opts.offset.width;var cF=this._opts.offset.height;cG.style.left=cG.style.top=cG.style.right=cG.style.bottom="auto";switch(cE){case BMAP_ANCHOR_TOP_LEFT:cG.style.top=cF+"px";cG.style.left=T+"px";break;case BMAP_ANCHOR_TOP_RIGHT:cG.style.top=cF+"px";cG.style.right=T+"px";break;case BMAP_ANCHOR_BOTTOM_LEFT:cG.style.bottom=cF+"px";cG.style.left=T+"px";break;case BMAP_ANCHOR_BOTTOM_RIGHT:cG.style.bottom=cF+"px";cG.style.right=T+"px";break;default:break}var cC=["TL","TR","BL","BR"];a1.dom.removeClass(this._container,"anchor"+cC[cD]);a1.dom.addClass(this._container,"anchor"+cC[cE])},getAnchor:function(){return this._opts.anchor},setOffset:function(T){if(!(T instanceof aB)){return}this._opts=this._opts||{printable:false};this._opts.offset=new aB(T.width,T.height);if(!this._container){return}this.setAnchor(this._opts.anchor)},getOffset:function(){return this._opts.offset},getDom:function(){return this._container},show:function(){if(this._visible==true){return}this._visible=true;if(this._container){a1.dom.show(this._container)}},hide:function(){if(this._visible==false){return}this._visible=false;if(this._container){a1.dom.hide(this._container)}},isPrintable:function(){return !!this._opts.printable},isVisible:function(){if(!this._container&&!this._map){return false}return !!this._visible}});window.BMAP_ANCHOR_TOP_LEFT=0;window.BMAP_ANCHOR_TOP_RIGHT=1;window.BMAP_ANCHOR_BOTTOM_LEFT=2;window.BMAP_ANCHOR_BOTTOM_RIGHT=3;window.BMAP_NAVIGATION_CONTROL_LARGE=0;window.BMAP_NAVIGATION_CONTROL_SMALL=1;window.BMAP_NAVIGATION_CONTROL_PAN=2;window.BMAP_NAVIGATION_CONTROL_ZOOM=3;function J(T){cg.call(this);T=T||{};this._opts={printable:false,showZoomInfo:true};a1.object.extend(this._opts,T);this.defaultAnchor=BMAP_ANCHOR_TOP_LEFT;this.defaultOffset=new aB(10,10);this.setAnchor(T.anchor);this.setType(T.type);this._asyncLoadCode()}a1.lang.inherits(J,cg,"NavigationControl");a1.extend(J.prototype,{initialize:function(T){this._map=T;return this._container},setType:function(T){if(aE(T)&&T>=BMAP_NAVIGATION_CONTROL_LARGE&&T<=BMAP_NAVIGATION_CONTROL_ZOOM){this._opts.type=T}else{this._opts.type=BMAP_NAVIGATION_CONTROL_LARGE}},getType:function(){return this._opts.type},_asyncLoadCode:function(){var T=this;cr.load("control",function(){T._asyncDraw()})}});function ai(T){cg.call(this);T=T||{};this._opts={printable:false};a1.object.extend(this._opts,T);this._copyrightCollection=[];this.defaultAnchor=BMAP_ANCHOR_BOTTOM_LEFT;this.defaultOffset=new aB(5,2);this.setAnchor(T.anchor);this._canShow=true;this.blockInfoWindow=false;this._asyncLoadCode()}a1.lang.inherits(ai,cg,"CopyrightControl");a1.object.extend(ai.prototype,{initialize:function(T){this._map=T;return this._container},addCopyright:function(cD){if(!cD||!aE(cD.id)||isNaN(cD.id)){return}var T={bounds:null,content:""};for(var cC in cD){T[cC]=cD[cC]}var cE=this.getCopyright(cD.id);if(cE){for(var cF in T){cE[cF]=T[cF]}}else{this._copyrightCollection.push(T)}},getCopyright:function(cD){for(var cC=0,T=this._copyrightCollection.length;cC0?T.width:150;T.height=T.height>0?T.height:150;this._opts.size=T},getSize:function(){return this._opts.size},isOpen:function(){return this._opts.isOpen},_asyncLoadCode:function(){var T=this;cr.load("control",function(){T._asyncDraw()})}});function bC(T){cg.call(this);T=T||{};this._opts={printable:false};this._opts=a1.object.extend(a1.object.extend(this._opts,{color:"black",unit:"metric"}),T);this.defaultAnchor=BMAP_ANCHOR_BOTTOM_LEFT;this.defaultOffset=new aB(81,18);this.setAnchor(T.anchor);this._units={metric:{name:"metric",conv:1,incon:1000,u1:"\u7c73",u2:"\u516c\u91cc"},us:{name:"us",conv:3.2808,incon:5280,u1:"\u82f1\u5c3a",u2:"\u82f1\u91cc"}};if(!this._units[this._opts.unit]){this._opts.unit="metric"}this._scaleText=null;this._numberArray={};this._asyncLoadCode()}window.BMAP_UNIT_METRIC="metric";window.BMAP_UNIT_IMPERIAL="us";a1.lang.inherits(bC,cg,"ScaleControl");a1.object.extend(bC.prototype,{initialize:function(T){this._map=T;return this._container},setColor:function(T){this._opts.color=T+""},getColor:function(){return this._opts.color},setUnit:function(T){this._opts.unit=this._units[T]&&this._units[T].name||this._opts.unit},getUnit:function(){return this._opts.unit},_asyncLoadCode:function(){var T=this;cr.load("control",function(){T._asyncDraw()})}});window.BMAP_MAPTYPE_CONTROL_HORIZONTAL=0;window.BMAP_MAPTYPE_CONTROL_DROPDOWN=1;function aF(T){cg.call(this);T=T||{};this._opts={printable:false,mapTypes:[BMAP_NORMAL_MAP,BMAP_SATELLITE_MAP,BMAP_HYBRID_MAP,BMAP_PERSPECTIVE_MAP],type:BMAP_MAPTYPE_CONTROL_HORIZONTAL};this.defaultAnchor=BMAP_ANCHOR_TOP_RIGHT;this.defaultOffset=new aB(10,10);this.setAnchor(T.anchor);this._opts=a1.extend(a1.extend(this._opts,{offset:this.defaultOffset,enableSwitch:true}),T);if(aS(T.mapTypes)){this._opts.mapTypes=T.mapTypes.slice(0)}this._asyncLoadCode()}a1.lang.inherits(aF,cg,"MapTypeControl");a1.object.extend(aF.prototype,{initialize:function(T){this._map=T;return this._container},_asyncLoadCode:function(){var T=this;cr.load("control",function(){T._asyncDraw()})}});function cq(cC){a1.lang.Class.call(this);this._opts={container:null,cursor:"default"};this._opts=a1.extend(this._opts,cC);this._type="contextmenu";this._map=null;this._container;this._shadow;this._left=0;this._top=0;this._items=[];this._rItems=[];this._dividers=[];this.curPixel=null;this.curPoint=null;this._isOpen=false;var T=this;cr.load("menu",function(){T._draw()})}a1.lang.inherits(cq,a1.lang.Class,"ContextMenu");a1.object.extend(cq.prototype,{initialize:function(cC,T){this._map=cC;this._overlay=T||null},remove:function(){this._map=this._overlay=null},addItem:function(cD){if(!cD||cD._type!="menuitem"||cD._text==""||cD._width<=0){return}for(var cC=0,T=this._items.length;cCcC){this._items[cD]._dIndex--}}this._dividers.splice(cC,1)},getDom:function(){return this._container},show:function(){if(this._isOpen==true){return}this._isOpen=true},hide:function(){if(this._isOpen==false){return}this._isOpen=false},setCursor:function(T){if(!T){return}this._opts.cursor=T},getItem:function(T){return this._rItems[T]}});function a7(cD,cE,cC){if(!cD||!G(cE)){return}a1.lang.Class.call(this);this._opts={width:100,id:""};cC=cC||{};this._opts.width=(cC.width*1)?cC.width:100;this._opts.id=cC.id?cC.id:"";this._text=cD+"";this._callback=cE;this._map=null;this._type="menuitem";this._contextmenu=null;this._container=null;this._enabled=true;var T=this;cr.load("menu",function(){T._draw()})}a1.lang.inherits(a7,a1.lang.Class,"MenuItem");a1.object.extend(a7.prototype,{initialize:function(T,cC){this._map=T;this._contextmenu=cC},remove:function(){this._contextmenu=null;this._map=null},setText:function(T){if(!T){return}this._text=T+""},getDom:function(){return this._container},enable:function(){this._enabled=true},disable:function(){this._enabled=false}});function bF(T,cC){if(T&&!cC){cC=T}this._sw=this._ne=null;this._swLng=this._swLat=null;this._neLng=this._neLat=null;if(T){this._sw=new b4(T.lng,T.lat);this._ne=new b4(cC.lng,cC.lat);this._swLng=T.lng;this._swLat=T.lat;this._neLng=cC.lng;this._neLat=cC.lat}}a1.object.extend(bF.prototype,{isEmpty:function(){return !this._sw||!this._ne},equals:function(T){if(!(T instanceof bF)||this.isEmpty()){return false}return this.getSouthWest().equals(T.getSouthWest())&&this.getNorthEast().equals(T.getNorthEast())},getSouthWest:function(){return this._sw},getNorthEast:function(){return this._ne},containsBounds:function(T){if(!(T instanceof bF)||this.isEmpty()||T.isEmpty()){return false}return(T._swLng>this._swLng&&T._neLngthis._swLat&&T._neLatMath.max(this._swLng,this._neLng)||Math.max(cD._swLat,cD._neLat)Math.max(this._swLat,this._neLat)){return null}var cF=Math.max(this._swLng,cD._swLng);var cC=Math.min(this._neLng,cD._neLng);var cE=Math.max(this._swLat,cD._swLat);var T=Math.min(this._neLat,cD._neLat);return new bF(new b4(cF,cE),new b4(cC,T))},containsPoint:function(T){if(!(T instanceof b4)||this.isEmpty()){return false}return(T.lng>=this._swLng&&T.lng<=this._neLng&&T.lat>=this._swLat&&T.lat<=this._neLat)},extend:function(T){if(!(T instanceof b4)){return}var cC=T.lng,cD=T.lat;if(!this._sw){this._sw=new b4(0,0)}if(!this._ne){this._ne=new b4(0,0)}if(!this._swLng||this._swLng>cC){this._sw.lng=this._swLng=cC}if(!this._neLng||this._neLngcD){this._sw.lat=this._swLat=cD}if(!this._neLat||this._neLat=-180&&T.lat<=74&&T.lat>=-74};b4.prototype.equals=function(T){return T&&this.lat==T.lat&&this.lng==T.lng};function a6(){}a6.prototype.lngLatToPoint=function(){throw"lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0"};a6.prototype.pointToLngLat=function(){throw"pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0"};function bX(){}a1.extend(bX,{num:{bj:{num:Math.sin(Math.PI/4),num2:Math.sin(Math.PI/6)},gz:{num:Math.sin(Math.PI/4),num2:Math.sin(Math.PI/4)},sz:{num:Math.sin(Math.PI/4),num2:Math.sin(Math.PI/4)},sh:{num:Math.sin(Math.PI/4),num2:Math.sin(Math.PI/4)}},correct_pts:{bj:[{j:116.305687,w:39.990912,utm_x:12947230.73,utm_y:4836903.65,x:630412,y:547340},{j:116.381837,w:40.000198,utm_x:12955707.8,utm_y:4838247.62,x:667412,y:561832},{j:116.430651,w:39.995216,utm_x:12961141.81,utm_y:4837526.55,x:686556,y:573372},{j:116.474111,w:39.976323,utm_x:12965979.81,utm_y:4834792.55,x:697152,y:586816},{j:116.280328,w:39.953159,utm_x:12944407.75,utm_y:4831441.53,x:603272,y:549976},{j:116.316117,w:39.952496,utm_x:12948391.8,utm_y:4831345.64,x:618504,y:557872},{j:116.350477,w:39.938107,utm_x:12952216.78,utm_y:4829264.65,x:627044,y:568220},{j:116.432025,w:39.947158,utm_x:12961294.76,utm_y:4830573.59,x:666280,y:584016},{j:116.46873,w:39.949516,utm_x:12965380.79,utm_y:4830914.63,x:683328,y:591444},{j:116.280077,w:39.913823,utm_x:12944379.8,utm_y:4825753.62,x:586150,y:558552},{j:116.308625,w:39.91374,utm_x:12947557.79,utm_y:4825741.62,x:598648,y:564732},{j:116.369853,w:39.912979,utm_x:12954373.73,utm_y:4825631.62,x:624561,y:578039},{j:116.433552,w:39.914694,utm_x:12961464.75,utm_y:4825879.53,x:652972,y:591348},{j:116.457034,w:39.914273,utm_x:12964078.78,utm_y:4825818.67,x:663028,y:596444},{j:116.490927,w:39.914127,utm_x:12967851.77,utm_y:4825797.57,x:677968,y:604188},{j:116.483839,w:39.877198,utm_x:12967062.73,utm_y:4820460.67,x:658596,y:610312},{j:116.405777,w:39.864461,utm_x:12958372.82,utm_y:4818620.62,x:619256,y:596088},{j:116.35345,w:39.859774,utm_x:12952547.74,utm_y:4817943.6,x:594633,y:585851},{j:116.403818,w:39.9141,utm_x:12958154.74,utm_y:4825793.66,x:639699,y:585226},{j:116.318111,w:39.891101,utm_x:12948613.78,utm_y:4822469.56,x:592856,y:571480},{j:116.413047,w:39.907238,utm_x:12959182.12,utm_y:4824801.76,x:640680,y:588704},{j:116.390843,w:39.906113,utm_x:12956710.35,utm_y:4824639.16,x:630620,y:584108},{j:116.446527,w:39.899438,utm_x:12962909.14,utm_y:4823674.4,x:651752,y:597416},{j:116.388665,w:39.95527,utm_x:12956467.9,utm_y:4831746.87,x:650656,y:572800},{j:116.398343,w:39.939704,utm_x:12957545.26,utm_y:4829495.6,x:648036,y:578452},{j:116.355101,w:39.973581,utm_x:12952731.53,utm_y:4834395.82,x:643268,y:560944},{j:116.380727,w:39.88464,utm_x:12955584.23,utm_y:4821535.94,x:616920,y:586496},{j:116.360843,w:39.946452,utm_x:12953370.73,utm_y:4830471.48,x:635293,y:568765},{j:116.340955,w:39.973421,utm_x:12951156.79,utm_y:4834372.67,x:638420,y:558632},{j:116.322585,w:40.023941,utm_x:12949111.83,utm_y:4841684.79,x:652135,y:543802},{j:116.356486,w:39.883341,utm_x:12952885.71,utm_y:4821348.24,x:606050,y:581443},{j:116.339592,w:39.992259,utm_x:12951005.06,utm_y:4837098.59,x:645664,y:554400},{j:116.3778,w:39.86392,utm_x:12955258.4,utm_y:4818542.48,x:606848,y:590328},{j:116.377354,w:39.964124,utm_x:12955208.75,utm_y:4833027.64,x:649911,y:568581},{j:116.361837,w:39.963897,utm_x:12953481.39,utm_y:4832994.8,x:643286,y:565175},{j:116.441397,w:39.939403,utm_x:12962338.06,utm_y:4829452.07,x:666772,y:587728},{j:116.359176,w:40.006631,utm_x:12953185.16,utm_y:4839178.78,x:660440,y:555411}],sz:[{j:113.88099,w:22.58884,utm_x:12677311.76,utm_y:2565810.52,x:569078,y:532290},{j:113.902002,w:22.566098,utm_x:12679650.83,utm_y:2563084.58,x:568318,y:545457},{j:113.869843,w:22.577711,utm_x:12676070.87,utm_y:2564476.5,x:561115,y:532494},{j:113.943387,w:22.555192,utm_x:12684257.84,utm_y:2561777.5,x:579437,y:558427},{j:113.899505,w:22.577052,utm_x:12679372.86,utm_y:2564397.51,x:571923,y:540181},{j:113.900376,w:22.596431,utm_x:12679469.82,utm_y:2566720.51,x:580142,y:535463},{j:113.92101,w:22.528931,utm_x:12681766.81,utm_y:2558630.58,x:560296,y:559780},{j:113.919672,w:22.517839,utm_x:12681617.86,utm_y:2557301.57,x:555296,y:562549},{j:113.938716,w:22.505569,utm_x:12683737.86,utm_y:2555831.55,x:557349,y:571072},{j:113.919203,w:22.483494,utm_x:12681565.66,utm_y:2553187.17,x:540853,y:572118},{j:113.942875,w:22.492046,utm_x:12684200.84,utm_y:2554211.57,x:553296,y:575994},{j:113.9567,w:22.530183,utm_x:12685739.85,utm_y:2558780.59,x:573378,y:568442},{j:113.989102,w:22.52697,utm_x:12689346.86,utm_y:2558395.61,x:584796,y:578728},{j:114.015467,w:22.533746,utm_x:12692281.83,utm_y:2559207.53,x:597126,y:584075},{j:113.972977,w:22.55702,utm_x:12687551.81,utm_y:2561996.58,x:591204,y:565924},{j:113.990368,w:22.561133,utm_x:12689487.79,utm_y:2562489.51,x:599240,y:569528},{j:114.143745,w:22.580535,utm_x:12706561.83,utm_y:2564815,x:663830,y:605622},{j:114.150374,w:22.557704,utm_x:12707299.77,utm_y:2562078.56,x:657016,y:613828},{j:114.106905,w:22.541858,utm_x:12702460.77,utm_y:2560179.58,x:634284,y:606528},{j:114.083927,w:22.535065,utm_x:12699902.85,utm_y:2559365.58,x:623132,y:602096},{j:114.049584,w:22.517997,utm_x:12696079.76,utm_y:2557320.5,x:603390,y:597564},{j:114.056304,w:22.542425,utm_x:12696827.84,utm_y:2560247.52,x:615980,y:592534},{j:114.051552,w:22.551321,utm_x:12696298.84,utm_y:2561313.59,x:617887,y:588719},{j:114.096377,w:22.559064,utm_x:12701288.79,utm_y:2562241.55,x:637568,y:598739},{j:114.135858,w:22.575851,utm_x:12705683.84,utm_y:2564253.55,x:659024,y:604806},{j:114.092029,w:22.575592,utm_x:12700804.77,utm_y:2564222.51,x:642776,y:592932},{j:114.054795,w:22.570617,utm_x:12696659.85,utm_y:2563626.21,x:626988,y:584142},{j:114.03075,w:22.553687,utm_x:12693983.15,utm_y:2561597.14,x:611068,y:582552},{j:114.074153,w:22.554124,utm_x:12698814.8,utm_y:2561649.51,x:627380,y:594008},{j:113.926721,w:22.546028,utm_x:12682402.56,utm_y:2560679.29,x:569340,y:556468},{j:113.938125,w:22.538296,utm_x:12683672.07,utm_y:2559752.74,x:570548,y:561748}],gz:[{j:113.335098,w:23.147289,utm_x:12616542.68,utm_y:2632892.7,x:1129109,y:1073920},{j:113.320932,w:23.146956,utm_x:12614965.71,utm_y:2632852.62,x:1125620,y:1071640},{j:113.321435,w:23.140119,utm_x:12615021.7,utm_y:2632029.65,x:1124032,y:1072882},{j:113.321471,w:23.119165,utm_x:12615025.71,utm_y:2629507.68,x:1118932,y:1076530},{j:113.340201,w:23.118616,utm_x:12617110.75,utm_y:2629441.61,x:1123238,y:1079667},{j:113.358068,w:23.116323,utm_x:12619099.71,utm_y:2629165.66,x:1126968,y:1083116},{j:113.357529,w:23.131271,utm_x:12619039.71,utm_y:2630964.68,x:1130508,y:1080440},{j:113.365811,w:23.150595,utm_x:12619961.67,utm_y:2633290.66,x:1137205,y:1078567},{j:113.294145,w:23.118467,utm_x:12611983.76,utm_y:2629423.68,x:1112245,y:1072043},{j:113.28615,w:23.121525,utm_x:12611093.75,utm_y:2629791.7,x:1110993,y:1070197},{j:113.307152,w:23.055497,utm_x:12613431.71,utm_y:2621847.21,x:1100144,y:1085123},{j:113.333445,w:23.052687,utm_x:12616358.66,utm_y:2621509.2,x:1105784,y:1089948},{j:113.347476,w:23.048755,utm_x:12617920.6,utm_y:2621036.24,x:1108099,y:1093064},{j:113.385774,w:23.036574,utm_x:12622183.96,utm_y:2619571.12,x:1113850,y:1101834},{j:113.364185,w:22.89798,utm_x:12619780.66,utm_y:2602910.64,x:1073186,y:1123374},{j:113.404577,w:22.906481,utm_x:12624277.13,utm_y:2603932.06,x:1084888,y:1128692},{j:113.430856,w:22.913156,utm_x:12627202.52,utm_y:2604734.12,x:1092892,y:1131761},{j:113.384554,w:22.933021,utm_x:12622048.15,utm_y:2607121.32,x:1086975,y:1120403},{j:113.263566,w:23.146333,utm_x:12608579.68,utm_y:2632777.63,x:1111742,y:1062098},{j:113.239213,w:23.152996,utm_x:12605868.69,utm_y:2633579.69,x:1107616,y:1056740},{j:113.253865,w:23.131628,utm_x:12607499.76,utm_y:2631007.65,x:1105912,y:1062966},{j:113.240767,w:23.088434,utm_x:12606041.68,utm_y:2625809.7,x:1092270,y:1068184},{j:113.279628,w:23.088284,utm_x:12610367.72,utm_y:2625791.65,x:1101412,y:1074883},{j:113.462271,w:23.107058,utm_x:12630699.66,utm_y:2628050.7,x:1148752,y:1101736},{j:113.401618,w:23.052957,utm_x:12623947.73,utm_y:2621541.68,x:1121925,y:1101535},{j:113.422504,w:23.05905,utm_x:12626272.77,utm_y:2622274.61,x:1128470,y:1104049},{j:113.362506,w:23.107149,utm_x:12619593.75,utm_y:2628061.65,x:1125835,y:1085505},{j:113.419629,w:23.143176,utm_x:12625952.73,utm_y:2632397.61,x:1148133,y:1089052},{j:113.23315,w:23.062251,utm_x:12605193.75,utm_y:2622659.67,x:1084184,y:1071368},{j:113.314525,w:23.101412,utm_x:12614252.48,utm_y:2627371.29,x:1113011,y:1078426},{j:113.307947,w:23.131369,utm_x:12613520.21,utm_y:2630976.47,x:1118622,y:1072198}],sh:[{j:121.524411,w:31.245875,utm_x:13528182.75,utm_y:3642354.51,x:1086581,y:1065728},{j:121.419229,w:31.244887,utm_x:13516473.81,utm_y:3642226.51,x:1032616,y:1029148},{j:121.405637,w:31.237871,utm_x:13514960.74,utm_y:3641317.54,x:1022724,y:1027244},{j:121.415348,w:31.222879,utm_x:13516041.78,utm_y:3639375.47,x:1018548,y:1036980},{j:121.422561,w:31.224261,utm_x:13516844.73,utm_y:3639554.48,x:1022976,y:1038908},{j:121.412581,w:31.204148,utm_x:13515733.75,utm_y:3636949.48,x:1006568,y:1043696},{j:121.443025,w:31.206202,utm_x:13519122.8,utm_y:3637215.49,x:1022656,y:1053704},{j:121.524061,w:31.246917,utm_x:13528143.79,utm_y:3642489.52,x:1082052,y:1064124},{j:121.529343,w:31.217769,utm_x:13528731.78,utm_y:3638713.59,x:1072696,y:1079064},{j:121.530268,w:31.210341,utm_x:13528834.75,utm_y:3637751.53,x:1068748,y:1082416},{j:121.511601,w:31.227303,utm_x:13526756.73,utm_y:3639948.53,x:1069276,y:1068716},{j:121.4966,w:31.243614,utm_x:13525086.81,utm_y:3642061.58,x:1071220,y:1056805},{j:121.485021,w:31.26138,utm_x:13523797.82,utm_y:3644363.54,x:1075708,y:1045540},{j:121.465114,w:31.278803,utm_x:13521581.76,utm_y:3646621.48,x:1073740,y:1031268},{j:121.454784,w:31.266566,utm_x:13520431.82,utm_y:3645035.58,x:1063591,y:1033191},{j:121.46851,w:31.24951,utm_x:13521959.81,utm_y:3642825.48,x:1060200,y:1044520},{j:121.446384,w:31.248422,utm_x:13519496.73,utm_y:3642684.51,x:1048784,y:1037750},{j:121.509499,w:31.246469,utm_x:13526522.73,utm_y:3642431.47,x:1079309,y:1060105},{j:121.481643,w:31.283943,utm_x:13523421.78,utm_y:3647287.68,x:1087096,y:1035304},{j:121.508054,w:31.280609,utm_x:13526361.87,utm_y:3646855.56,x:1098432,y:1045648},{j:121.493854,w:31.19121,utm_x:13524781.12,utm_y:3635274.07,x:1039624,y:1077288},{j:121.500079,w:31.185541,utm_x:13525474.09,utm_y:3634540.04,x:1039960,y:1081640},{j:121.484482,w:31.202846,utm_x:13523737.82,utm_y:3636780.87,x:1041388,y:1069232},{j:121.480877,w:31.189587,utm_x:13523336.51,utm_y:3635063.92,x:1032484,y:1073640},{j:121.502652,w:31.195209,utm_x:13525760.52,utm_y:3635791.9,x:1046384,y:1078728}]},getLnglatIndex:function(cE,cI,cH){var cD=0;var cC=0;var cJ=10000000,cG=1000000000;for(var cF=0;cF=this.MCBAND[cE]){cF=this.MC2LL[cE];break}}var T=this.convertor(cC,cF);var cC=new b4(T.lng.toFixed(6),T.lat.toFixed(6));return cC},convertLL2MC:function(T){var cC,cE;T.lng=this.getLoop(T.lng,-180,180);T.lat=this.getRange(T.lat,-74,74);cC=new b4(T.lng,T.lat);for(var cD=0;cD=this.LLBAND[cD]){cE=this.LL2MC[cD];break}}if(!cE){for(var cD=this.LLBAND.length-1;cD>=0;cD--){if(cC.lat<=-this.LLBAND[cD]){cE=this.LL2MC[cD];break}}}var cF=this.convertor(T,cE);var T=new b4(cF.lng.toFixed(2),cF.lat.toFixed(2));return T},convertor:function(cD,cE){if(!cD||!cE){return}var T=cE[0]+cE[1]*Math.abs(cD.lng);var cC=Math.abs(cD.lat)/cE[9];var cF=cE[2]+cE[3]*cC+cE[4]*cC*cC+cE[5]*cC*cC*cC+cE[6]*cC*cC*cC*cC+cE[7]*cC*cC*cC*cC*cC+cE[8]*cC*cC*cC*cC*cC*cC;T*=(cD.lng<0?-1:1);cF*=(cD.lat<0?-1:1);return new b4(T,cF)},getDistance:function(cC,T,cE,cD){return this.EARTHRADIUS*Math.acos((Math.sin(cE)*Math.sin(cD)+Math.cos(cE)*Math.cos(cD)*Math.cos(T-cC)))},toRadians:function(T){return Math.PI*T/180},toDegrees:function(T){return(180*T)/Math.PI},getRange:function(cD,cC,T){if(cC!=null){cD=Math.max(cD,cC)}if(T!=null){cD=Math.min(cD,T)}return cD},getLoop:function(cD,cC,T){while(cD>T){cD-=T-cC}while(cD1){this._config.strokeOpacity=0.65}if(this._config.fillOpacity<0||this._config.fillOpacity>1){this._config.fillOpacity=0.65}if(this._config.strokeStyle!="solid"&&this._config.strokeStyle!="dashed"){this._config.strokeStyle="solid"}if(b8(T.enableClicking)){this._config.clickable=T.enableClicking}this.domElement=null;this._bounds=new BMap.Bounds(0,0,0,0);this._parseCache=[];this.vertexMarkers=[];this._temp={}}a1.lang.inherits(cw,U,"Graph");cw.getGraphPoints=function(cC){var T=[];if(!cC){return T}if(bV(cC)){var cD=cC.split(";");a1.array.each(cD,function(cF){var cE=cF.split(",");T.push(new b4(cE[0],cE[1]))})}if(cC.constructor==Array&&cC.length>0){T=cC}return T};cw.parseTolerance=[0.09,0.005,0.0001,0.00001];a1.extend(cw.prototype,{initialize:function(T){this.map=T;return null},draw:function(){return;if(!this.domElement){return}if(this._drawer){this._drawer.setPath(this.domElement,this._getDisplayPixels(this.points))}},setPath:function(T){this._parseCache.length=0;this.points=cw.getGraphPoints(T).slice(0);this._calcBounds()},_calcBounds:function(){if(!this.points){return}var T=this;T._bounds=new bF();a1.array.each(this.points,function(cC){T._bounds.extend(cC)})},getPath:function(){return this.points},setPositionAt:function(cC,T){if(!T||!this.points[cC]){return}this._parseCache.length=0;this.points[cC]=new b4(T.lng,T.lat);this._calcBounds()},setStrokeColor:function(T){this._config.strokeColor=T},getStrokeColor:function(){return this._config.strokeColor},setStrokeWeight:function(T){if(T>0){this._config.strokeWeight=T}},getStrokeWeight:function(){return this._config.strokeWeight},setStrokeOpacity:function(T){if(!T||T>1||T<0){return}this._config.strokeOpacity=T},getStrokeOpacity:function(){return this._config.strokeOpacity},setFillOpacity:function(T){if(T>1||T<0){return}this._config.fillOpacity=T},getFillOpacity:function(){return this._config.fillOpacity},setStrokeStyle:function(T){if(T!="solid"&&T!="dashed"){return}this._config.strokeStyle=T},getStrokeStyle:function(){return this._config.strokeStyle},setFillColor:function(T){this._config.fillColor=T||""},getFillColor:function(){return this._config.fillColor},getBounds:function(){return this._bounds},remove:function(){if(this.map){this.map.removeEventListener("onmousemove",this._graphMouseEvent)}U.prototype.remove.call(this);this._parseCache.length=0},enableEditing:function(){this._config.enableEditing=true},disableEditing:function(){this._config.enableEditing=false}});function l(T){U.call(this);this.map=null;this.domElement=null;this._config={width:0,height:0,offset:new aB(0,0),opacity:1,background:"transparent",lineStroke:1,lineColor:"#000",lineStyle:"solid",point:null};this.setConfig(T);this.point=this._config.point}a1.lang.inherits(l,U,"Division");a1.extend(l.prototype,{_addDom:function(){var T=this._config;var cD=this.content;var cC=['
');cC.push(cD);cC.push("
");this.domElement=an(this.map.getPanes().markerMouseTarget,cC.join(""))},initialize:function(T){this.map=T;this._addDom();if(this.domElement){a1.on(this.domElement,"mousedown",function(cC){aJ(cC)})}return this.domElement},draw:function(){var T=this.map.pointToOverlayPixel(this._config.point);this._config.offset=new aB(-Math.round(this._config.width/2)-Math.round(this._config.lineStroke),-Math.round(this._config.height/2)-Math.round(this._config.lineStroke));this.domElement.style.left=T.x+this._config.offset.width+"px";this.domElement.style.top=T.y+this._config.offset.height+"px"},getPosition:function(){return this._config.point},_getPixel:function(T){return this.map.pointToPixel(this.getPosition())},setPosition:function(T){this._config.point=T;this.draw()},setDimension:function(T,cC){this._config.width=Math.round(T);this._config.height=Math.round(cC);if(this.domElement){this.domElement.style.width=this._config.width+"px";this.domElement.style.height=this._config.height+"px";this.draw()}}});function K(cC,cD,cE){if(!cC||!cD){return}this.imageUrl=cC;this.size=cD;var T=new aB(Math.floor(cD.width/2),Math.floor(cD.height/2));var cF={anchor:T,imageOffset:new aB(0,0)};cE=cE||{};a1.extend(cF,cE);this.anchor=cF.anchor;this.imageOffset=cF.imageOffset;this.infoWindowAnchor=cE.infoWindowAnchor||this.anchor;this.printImageUrl=cE.printImageUrl||""}var bw=K.prototype;bw.setImageUrl=function(T){if(!T){return}this.imageUrl=T};bw.setPrintImageUrl=function(T){if(!T){return}this.printImageUrl=T};bw.setSize=function(T){if(!T){return}this.size=new aB(T.width,T.height)};bw.setAnchor=function(T){if(!T){return}this.anchor=new aB(T.width,T.height)};bw.setImageOffset=function(T){if(!T){return}this.imageOffset=new aB(T.width,T.height)};bw.setInfoWindowAnchor=function(T){if(!T){return}this.infoWindowAnchor=new aB(T.width,T.height)};bw.toString=function(){return"Icon"};function bH(cD,cC){a1.lang.Class.call(this);this.content=cD;this.map=null;this._config={width:0,height:0,maxWidth:600,offset:new aB(0,0),title:"",maxContent:"",enableMaximize:false,enableAutoPan:true,enableCloseOnClick:true,margin:[10,10,40,10],collisions:[[10,10],[10,10],[10,10],[10,10]],ifMaxScene:false,onClosing:function(){return true}};a1.extend(this._config,cC||{});if(this._config.width!=0){if(this._config.width<220){this._config.width=220}if(this._config.width>730){this._config.width=730}}if(this._config.height!=0){if(this._config.height<60){this._config.height=60}if(this._config.height>650){this._config.height=650}}if(this._config.maxWidth!=0){if(this._config.maxWidth<220){this._config.maxWidth=220}if(this._config.maxWidth>730){this._config.maxWidth=730}}this.isWinMax=false;this.IMG_PATH=b3.imgPath;this.overlay=null;var T=this;cr.load("infowindow",function(){T._draw()})}a1.lang.inherits(bH,a1.lang.Class,"InfoWindow");a1.extend(bH.prototype,{setWidth:function(T){if(!T&&T!=0||isNaN(T)||T<0){return}if(T!=0){if(T<220){T=220}if(T>730){T=730}}this._config.width=T},setHeight:function(T){if(!T&&T!=0||isNaN(T)||T<0){return}if(T!=0){if(T<60){T=60}if(T>650){T=650}}this._config.height=T},setMaxWidth:function(T){if(!T&&T!=0||isNaN(T)||T<0){return}if(T!=0){if(T<220){T=220}if(T>730){T=730}}this._config.maxWidth=T},setTitle:function(T){this._config.title=T},getTitle:function(){return this._config.title},setContent:function(T){this.content=T},getContent:function(){return this.content},setMaxContent:function(T){this._config.maxContent=T+""},redraw:function(){},enableAutoPan:function(){this._config.enableAutoPan=true},disableAutoPan:function(){this._config.enableAutoPan=false},enableCloseOnClick:function(){this._config.enableCloseOnClick=true},disableCloseOnClick:function(){this._config.enableCloseOnClick=false},enableMaximize:function(){this._config.enableMaximize=true},disableMaximize:function(){this._config.enableMaximize=false},show:function(){this._visible=true},hide:function(){this._visible=false},close:function(){this.hide()},maximize:function(){this.isWinMax=true},restore:function(){this.isWinMax=false},isVisible:function(){return this.isOpen()},isOpen:function(){return false},getPosition:function(){if(this.overlay&&this.overlay.getPosition){return this.overlay.getPosition()}},getOffset:function(){return this._config.offset}});bs.prototype.openInfoWindow=function(cE,T){if(!(cE instanceof bH)||!(T instanceof b4)){return}var cC=this.temp;if(!cC.marker){var cD=new K(b3.imgPath+"blank.gif",{width:1,height:1});cC.marker=new Z(T,{icon:cD,width:1,height:1,offset:new aB(0,0),infoWindowOffset:new aB(0,0),clickable:false});cC.marker._fromMap=1}else{cC.marker.setPosition(T)}this.addOverlay(cC.marker);cC.marker.openInfoWindow(cE)};bs.prototype.closeInfoWindow=function(){var T=this.temp.infoWin||this.temp._infoWin;if(T&&T.overlay){T.overlay.closeInfoWindow()}};U.prototype.openInfoWindow=function(T){if(this.map){this.map.closeInfoWindow();T._visible=true;this.map.temp._infoWin=T;T.overlay=this;a1.lang.Class.call(T,T.guid)}};U.prototype.closeInfoWindow=function(){if(this.map&&this.map.temp._infoWin){this.map.temp._infoWin._visible=false;a1.lang.decontrol(this.map.temp._infoWin.guid);this.map.temp._infoWin=null}};function ac(cD,cC){U.call(this);this.content=cD;this.map=null;this.domElement=null;this._config={width:0,offset:new aB(0,0),styles:{backgroundColor:"#fff",border:"1px solid #f00",padding:"1px",whiteSpace:"nowrap",font:"12px "+b3.fontFamily,zIndex:"80",MozUserSelect:"none"},position:null,enableMassClear:true,clickable:true};cC=cC||{};this.setConfig(cC);if(this._config.width<0){this._config.width=0}if(b8(cC.enableClicking)){this._config.clickable=cC.enableClicking}this.point=this._config.position;var T=this;cr.load("marker",function(){T._draw()})}a1.lang.inherits(ac,U,"Label");a1.extend(ac.prototype,{getPosition:function(){if(this._marker){return this._marker.getPosition()}return this.point},setPosition:function(T){if(T instanceof b4&&!this.getMarker()){this.point=this._config.position=new b4(T.lng,T.lat)}},setContent:function(T){this.content=T},setOpacity:function(T){if(T>=0&&T<=1){this._config.opacity=T}},setOffset:function(T){if(!(T instanceof aB)){return}this._config.offset=new aB(T.width,T.height)},getOffset:function(){return this._config.offset},setStyle:function(T){T=T||{};this._config.styles=a1.extend(this._config.styles,T)},setStyles:function(T){return this.setStyle(T)},setTitle:function(T){this._config.title=T||""},getTitle:function(){return this._config.title},setMarker:function(T){this._marker=T;if(T){this.point=this._config.position=T.getPosition()}else{this.point=this._config.position=null}},getMarker:function(){return this._marker||null}});window.BMAP_ANIMATION_DROP=1;window.BMAP_ANIMATION_BOUNCE=2;var ao=new K(b3.imgPath+"marker_red_sprite.png",new aB(19,25),{anchor:new aB(10,25),infoWindowAnchor:new aB(10,0)});var am=new K(b3.imgPath+"marker_red_sprite.png",new aB(20,11),{anchor:new aB(6,11),imageOffset:new aB(-19,-13)});function Z(T,cD){U.call(this);cD=cD||{};this.point=T;this.map=null;this._animation=null;this._config={offset:new aB(0,0),icon:ao,shadow:am,title:"",label:null,baseZIndex:0,clickable:true,zIndexFixed:false,isTop:false,enableMassClear:true,enableDragging:false,raiseOnDrag:false,restrictDraggingArea:false,draggingCursor:b3.draggingCursor};this.setConfig(cD);if(cD.icon&&!cD.shadow){this._config.shadow=null}if(b8(cD.enableClicking)){this._config.clickable=cD.enableClicking}var cC=this;cr.load("marker",function(){cC._draw()})}Z.TOP_ZINDEX=bz.getZIndex(-90)+1000000;Z.DRAG_ZINDEX=Z.TOP_ZINDEX+1000000;a1.lang.inherits(Z,U,"Marker");a1.extend(Z.prototype,{setIcon:function(T){if(T instanceof K){this._config.icon=T}},getIcon:function(){return this._config.icon},setShadow:function(T){if(T instanceof K){this._config.shadow=T}},getShadow:function(){return this._config.shadow},setLabel:function(T){this._config.label=T||null},getLabel:function(){return this._config.label},enableDragging:function(){this._config.enableDragging=true},disableDragging:function(){this._config.enableDragging=false},getPosition:function(){return this.point},setPosition:function(T){if(T instanceof b4){this.point=new b4(T.lng,T.lat)}},setTop:function(cC,T){this._config.isTop=!!cC;if(cC){this._addi=T||0}},setTitle:function(T){this._config.title=T+""},getTitle:function(){return this._config.title},setOffset:function(T){if(T instanceof aB){this._config.offset=T}},getOffset:function(){return this._config.offset},setAnimation:function(T){this._animation=T}});function ce(T,cD){cw.call(this,cD);cD=cD||{};this._config.fillOpacity=cD.fillOpacity?cD.fillOpacity:0.65;if(cD.fillColor==""){this._config.fillColor=""}else{this._config.fillColor=cD.fillColor?cD.fillColor:"#fff"}this.setPath(T);var cC=this;cr.load("poly",function(){cC._draw()})}a1.lang.inherits(ce,cw,"Polygon");a1.extend(ce.prototype,{setPath:function(cC,T){this._userPoints=cw.getGraphPoints(cC).slice(0);var cD=cw.getGraphPoints(cC).slice(0);if(cD.length>1&&!cD[0].equals(cD[cD.length-1])){cD.push(new b4(cD[0].lng,cD[0].lat))}cw.prototype.setPath.call(this,cD,T)},setPositionAt:function(cC,T){if(!this._userPoints[cC]){return}this._userPoints[cC]=new b4(T.lng,T.lat);this.points[cC]=new b4(T.lng,T.lat);if(cC==0&&!this.points[0].equals(this.points[this.points.length-1])){this.points[this.points.length-1]=new b4(T.lng,T.lat)}this._calcBounds()},getPath:function(){var T=this._userPoints;if(T.length==0){T=this.points}return T}});function f(T,cD){cw.call(this,cD);this.setPath(T);var cC=this;cr.load("poly",function(){cC._draw()})}a1.lang.inherits(f,cw,"Polyline");function a(cC,T,cD){this.point=cC;this.radius=Math.abs(T);ce.call(this,[],cD)}a.parseTolerance=[0.01,0.0001,0.00001,0.000004];a1.lang.inherits(a,ce,"Circle");a1.extend(a.prototype,{initialize:function(T){this.map=T;this.points=this._getPerimeterPoints(this.point,this.radius);this._calcBounds();return null},getCenter:function(){return this.point},setCenter:function(T,cC){if(!T){return}this.point=T},getRadius:function(){return this.radius},setRadius:function(T){this.radius=Math.abs(T)},_getPerimeterPoints:function(T,cJ){if(!T||!cJ||!this.map){return[]}var cC=this.map;var cG=T.lng,cE=T.lat;var cQ=[];var cL=cJ/6378800,cI=(Math.PI/180)*cE,cO=(Math.PI/180)*cG;for(var cH=0;cH<360;cH+=9){var cF=(Math.PI/180)*cH,cM=Math.asin(Math.sin(cI)*Math.cos(cL)+Math.cos(cI)*Math.sin(cL)*Math.cos(cF)),cK=Math.atan2(Math.sin(cF)*Math.sin(cL)*Math.cos(cI),Math.cos(cL)-Math.sin(cI)*Math.sin(cM)),cN=((cO-cK+Math.PI)%(2*Math.PI))-Math.PI,cP=new b4(cN*(180/Math.PI),cM*(180/Math.PI));cQ.push(cP)}var cD=cQ[0];cQ.push(new b4(cD.lng,cD.lat));return cQ}});function bJ(T){this.map=T;this.mapTypeLayers=[];this.tileLayers=[];this.bufferNumber=300;this.realBufferNumber=0;this.mapTiles={};this.bufferTiles={};this.numLoading=0;this._mapTypeLayerContainer=this._createDiv(1);this._normalLayerContainer=this._createDiv(2);T.platform.appendChild(this._mapTypeLayerContainer);T.platform.appendChild(this._normalLayerContainer)}BMap.register(function(cC){var T=new bJ(cC);T.initialize()});a1.extend(bJ.prototype,{initialize:function(){var T=this,cC=T.map;cC.addEventListener("loadcode",function(){T.loadTiles()});cC.addEventListener("addtilelayer",function(cD){T.addTileLayer(cD)});cC.addEventListener("removetilelayer",function(cD){T.removeTileLayer(cD)});cC.addEventListener("setmaptype",function(cD){T.setMapType(cD)});cC.addEventListener("zoomstartcode",function(cD){T._zoom(cD)})},loadTiles:function(){var T=this;if(a1.browser.ie){try{document.execCommand("BackgroundImageCache",false,true)}catch(cC){}}if(!this.loaded){T.initMapTypeTiles()}T.moveGridTiles();if(!this.loaded){this.loaded=true;cr.load("tile",function(){T._asyncLoadTiles()})}},initMapTypeTiles:function(){var cC=this.map.getMapType();var cD=cC.getTileLayers();for(var T=0;Tc4[0]||cY<=c4[0]||cE>c4[1]||cP<=c4[1]))){this.hideTile(c9)}}var cI=-c7.offsetX+c7.width/2;var cR=-c7.offsetY+c7.height/2;cG.tilesDiv.style.left=Math.round(cK+cI)-c5[0]+"px";cG.tilesDiv.style.top=Math.round(cJ+cR)-c5[1]+"px";var T=[];for(var c0=c2;c00&&cG._transparentPng){cG.img.style.cssText+=';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+cG.src+'",sizingMethod=scale);'}}}var cN=cL.realBufferNumber-cL.bufferNumber;for(var cO in cK){if(cN<=0){break}if(!cL.mapTiles[cO]){cK[cO].mgr=null;var cM=cK[cO].img;if(cM&&cM.parentNode){cM.parentNode.removeChild(cM);H(cM)}cM=null;cK[cO].img=null;delete cK[cO];cL.realBufferNumber--;cN--}}if(C){new g({fps:20,duration:200,render:function(cQ){if(cG.img&&cG.img.style){cG.img.style.opacity=cQ*1}},finish:function(){if(cG.img&&cG.img.style){delete cG.img.style.opacity}}})}cG._callCbks()};this.img.onerror=function(){cG._callCbks();if(!cG.mgr){return}var cK=cG.mgr;var cL=cK.map.getMapType();if(cL.getErrorImageUrl()){cG.error=true;cG.img.src=cL.getErrorImageUrl();if(cG.img&&!w(cG.img)){cE.tilesDiv.appendChild(cG.img)}}};cJ=null}bM.prototype._addLoadCbk=function(T){this._cbks.push(T)};bM.prototype._load=function(){if(a1.browser.ie>0&&a1.browser.ie<=6&&this._transparentPng){this.img.src=b3.imgPath+"blank.gif"}else{this.img.src=this.src}};bM.prototype._callCbks=function(){var cC=this;for(var T=0;T8);function n(T){this.opts=T||{};this.copyright=this.opts.copyright||null;this.transparentPng=this.opts.transparentPng||false;this.baseLayer=this.opts.baseLayer||false;this.zIndex=this.opts.zIndex||0;this.guid=n._guid++}n._guid=0;a1.lang.inherits(n,a1.lang.Class,"TileLayer");a1.extend(n.prototype,{initialize:function(cD,T){if(this.baseLayer){this.zIndex=-100}this.map=cD;if(!this.tilesDiv){var cE=W("div");var cC=cE.style;cC.position="absolute";cC.zIndex=this.zIndex;cC.left=Math.ceil(-cD.offsetX+cD.width/2)+"px";cC.top=Math.ceil(-cD.offsetY+cD.height/2)+"px";T.appendChild(cE);this.tilesDiv=cE}},remove:function(){if(this.tilesDiv&&this.tilesDiv.parentNode){this.tilesDiv.innerHTML="";this.tilesDiv.parentNode.removeChild(this.tilesDiv)}delete this.tilesDiv},isTransparentPng:function(){return this.transparentPng},getTilesUrl:function(cC,cD){var T="";if(this.opts.tileUrlTemplate){T=this.opts.tileUrlTemplate.replace(/\{X\}/,cC.x);T=T.replace(/\{Y\}/,cC.y);T=T.replace(/\{Z\}/,cD)}return T},getCopyright:function(){return this.copyright},getMapType:function(){return this.mapType||BMAP_NORMAL_MAP}});function ax(T){n.call(this,T);this._opts={};T=T||{};this._opts=a1.object.extend(this._opts,T);if(this._opts.predictDate){if(this._opts.predictDate.weekday<1||this._opts.predictDate.weekday>7){this._opts.predictDate=1}if(this._opts.predictDate.hour<0||this._opts.predictDate.hour>23){this._opts.predictDate.hour=0}}this._tileUrl="http://its.map.baidu.com:8002/traffic/"}ax.prototype=new n();ax.prototype.initialize=function(cC,T){n.prototype.initialize.call(this,cC,T);this._map=cC};ax.prototype.isTransparentPng=function(){return true};ax.prototype.getTilesUrl=function(cH,cC){var cI="";if(this._opts.predictDate){cI="HistoryService?day="+(this._opts.predictDate.weekday-1)+"&hour="+this._opts.predictDate.hour+"&t="+new Date().getTime()+"&"}else{cI="TrafficTileService?time="+new Date().getTime()+"&"}var cD=this._map,cJ=cH.x,cE=cH.y,cG=Math.floor(cJ/200),cF=Math.floor(cE/200),T=this._tileUrl+cI+"level="+cC+"&x="+cJ+"&y="+cE;return T.replace(/-(\d+)/gi,"M$1")};function cl(T,cC,cD){this._name=T;this._layers=cC instanceof n?[cC]:cC.slice(0);this._opts={tips:"",labelText:"",minZoom:1,maxZoom:19,tileSize:256,textColor:"black",errorImageUrl:"",projection:new a3()};if(this._layers.length==1){this._layers[0].baseLayer=true}a1.extend(this._opts,cD||{})}a1.extend(cl.prototype,{getName:function(){return this._name},getTips:function(){return this._opts.tips},getLabelText:function(){return this._opts.labelText},getTileLayer:function(){return this._layers[0]},getTileLayers:function(){return this._layers},getTileSize:function(){return this._opts.tileSize},getMinZoom:function(){return this._opts.minZoom},getMaxZoom:function(){return this._opts.maxZoom},getTextColor:function(){return this._opts.textColor},getProjection:function(){return this._opts.projection},getErrorImageUrl:function(){return this._opts.errorImageUrl},getZoomUnits:function(T){return Math.pow(2,(18-T))},getZoomFactor:function(T){return this.getZoomUnits(T)*256}});var bY=["http://shangetu0.map.bdimg.com/it/","http://shangetu1.map.bdimg.com/it/","http://shangetu2.map.bdimg.com/it/","http://shangetu3.map.bdimg.com/it/","http://shangetu4.map.bdimg.com/it/"];var i=["http://online0.map.bdimg.com/tile/","http://online1.map.bdimg.com/tile/","http://online2.map.bdimg.com/tile/","http://online3.map.bdimg.com/tile/","http://online4.map.bdimg.com/tile/"];var aN=new n();aN.getTilesUrl=function(cD,cG){var cH=cD.x;var cE=cD.y;var T="20150518";var cF="pl";if(this.map.highResolutionEnabled()){cF="ph"}var cC=i[Math.abs(cH+cE)%i.length]+"?qt=tile&x="+(cH+"").replace(/-/gi,"M")+"&y="+(cE+"").replace(/-/gi,"M")+"&z="+cG+"&styles="+cF+(a1.browser.ie==6?"&color_dep=32&colors=50":"")+"&udt="+T;return cC.replace(/-(\d+)/gi,"M$1")};window.BMAP_NORMAL_MAP=new cl("\u5730\u56fe",aN,{tips:"\u663e\u793a\u666e\u901a\u5730\u56fe"});var bl=new n();bl.tileUrls=["http://d0.map.baidu.com/resource/mappic/","http://d1.map.baidu.com/resource/mappic/","http://d2.map.baidu.com/resource/mappic/","http://d3.map.baidu.com/resource/mappic/"];bl.getTilesUrl=function(T,cD){var cF=T.x;var cC=T.y;var cE=Math.pow(2,(20-cD))*256;cC=Math.round((9998336-cE*(cC))/cE)-1;url=this.tileUrls[Math.abs(cF+cC)%this.tileUrls.length]+this.map.currentCity+"/"+this.map.cityCode+"/3/lv"+(21-cD)+"/"+cF+","+cC+".jpg";return url};window.BMAP_PERSPECTIVE_MAP=new cl("\u4e09\u7ef4",bl,{tips:"\u663e\u793a\u4e09\u7ef4\u5730\u56fe",minZoom:15,maxZoom:20,textColor:"white",projection:new cv()});BMAP_PERSPECTIVE_MAP.getZoomUnits=function(T){return Math.pow(2,(20-T))};BMAP_PERSPECTIVE_MAP.getCityName=function(T){if(!T){return""}var cC=b3.cityNames;for(var cD in cC){if(T.search(cD)>-1){return cC[cD]}}return""};BMAP_PERSPECTIVE_MAP.getCityCode=function(T){return({bj:2,gz:1,sz:14,sh:4})[T]};var bI=new n({baseLayer:true});bI.getTilesUrl=function(cC,cE){var cF=cC.x;var cD=cC.y;var T=bY[Math.abs(cF+cD)%bY.length]+"u=x="+cF+";y="+cD+";z="+cE+";v=009;type=sate&fm=46&udt=20141015";return T.replace(/-(\d+)/gi,"M$1")};window.BMAP_SATELLITE_MAP=new cl("\u536b\u661f",bI,{tips:"\u663e\u793a\u536b\u661f\u5f71\u50cf",minZoom:1,maxZoom:19,textColor:"white"});var m=new n({transparentPng:true});m.getTilesUrl=function(cE,cG){var cH=cE.x;var cF=cE.y;var T="20141015";var cC="015";var cD=i[Math.abs(cH+cF)%i.length]+"?qt=tile&x="+(cH+"").replace(/-/gi,"M")+"&y="+(cF+"").replace(/-/gi,"M")+"&z="+cG+"&styles=sl"+(a1.browser.ie==6?"&color_dep=32&colors=50":"")+"&v="+cC+"&udt="+T;return cD.replace(/-(\d+)/gi,"M$1")};window.BMAP_HYBRID_MAP=new cl("\u6df7\u5408",[bI,m],{tips:"\u663e\u793a\u5e26\u6709\u8857\u9053\u7684\u536b\u661f\u5f71\u50cf",labelText:"\u8def\u7f51",minZoom:1,maxZoom:19,textColor:"white"});window.BMAP_POI_TYPE_NORMAL=0;window.BMAP_POI_TYPE_BUSSTOP=1;window.BMAP_POI_TYPE_BUSLINE=2;window.BMAP_POI_TYPE_SUBSTOP=3;window.BMAP_POI_TYPE_SUBLINE=4;var F=0;var ba=1;var aj={};function u(cC,T){a1.lang.Class.call(this);this._loc={};this.setLocation(cC);this._opts={renderOptions:{panel:null,map:null,autoViewport:true},onSearchComplete:function(){},onMarkersSet:function(){},onInfoHtmlSet:function(){},onResultsHtmlSet:function(){},onGetBusListComplete:function(){},onGetBusLineComplete:function(){},onBusListHtmlSet:function(){},onBusLineHtmlSet:function(){},onPolylinesSet:function(){},reqFrom:""};a1.extend(this._opts,T);if(typeof T!="undefined"&&typeof T.renderOptions!="undefined"&&typeof T.renderOptions.autoViewport!="undefined"){this._opts.renderOptions.autoViewport=T.renderOptions.autoViewport}else{this._opts.renderOptions.autoViewport=true}this._opts.renderOptions.panel=a1.G(this._opts.renderOptions.panel)}a1.inherits(u,a1.lang.Class);a1.extend(u.prototype,{getResults:function(){if(!this._isMultiKey){return this._results}else{return this._arrResults}},enableAutoViewport:function(){this._opts.renderOptions.autoViewport=true},disableAutoViewport:function(){this._opts.renderOptions.autoViewport=false},setLocation:function(T){if(!T){return}this._loc.src=T},setSearchCompleteCallback:function(T){this._opts.onSearchComplete=T||function(){}},setMarkersSetCallback:function(T){this._opts.onMarkersSet=T||function(){}},setPolylinesSetCallback:function(T){this._opts.onPolylinesSet=T||function(){}},setInfoHtmlSetCallback:function(T){this._opts.onInfoHtmlSet=T||function(){}},setResultsHtmlSetCallback:function(T){this._opts.onResultsHtmlSet=T||function(){}},getStatus:function(){return this._status}});var a4={REQ_BASE_URL:"http://api.map.baidu.com/",request:function(cC,cI,T,cH){var cD=(Math.random()*100000).toFixed(0);BMap._rd["_cbk"+cD]=function(cJ){T=T||{};cC&&cC(cJ,T);delete BMap._rd["_cbk"+cD]};cH=cH||"";var cF;if(T&&T.useEncodeURI){cF=M(cI,encodeURI)}else{cF=M(cI,encodeURIComponent)}var cG=this,cE=cG.REQ_BASE_URL+cH+"?"+cF+"&ie=utf-8&oue=1&res=api&callback=BMap._rd._cbk"+cD;co.request(cE)}};BMap._rd={};var P={};P.removeHtml=function(T){return T.replace(/<\/?b>/g,"")};P.parseGeoExtReg1=function(T){return T.replace(/([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g,"$1,$2;")};P.parseGeoExtReg2=function(cC,T){var cD=new RegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){"+T+"}","ig");return cC.replace(cD,"$1")};window.BMAP_STATUS_SUCCESS=0;window.BMAP_STATUS_CITY_LIST=1;window.BMAP_STATUS_UNKNOWN_LOCATION=2;window.BMAP_STATUS_UNKNOWN_ROUTE=3;window.BMAP_STATUS_INVALID_KEY=4;window.BMAP_STATUS_INVALID_REQUEST=5;window.BMAP_STATUS_PERMISSION_DENIED=6;window.BMAP_STATUS_SERVICE_UNAVAILABLE=7;window.BMAP_STATUS_TIMEOUT=8;window.BMAP_ROUTE_TYPE_WALKING=2;window.BMAP_ROUTE_TYPE_DRIVING=3;var cm="cur";var c="cen";var ca="s";var N="con";var ah="bd";var b2="nb";var D="bt";var bE="nav";var bo="walk";var bt="gc";var d="rgc";var Q="dec";var aK="bse";var e="nse";var E="bl";var a8="bsl";var aA="bda";var ae="sa";var aU="nba";var b9="drag";var p=2;var aY=4;var bm=7;var S=11;var aH=12;var bb=14;var aV=15;var cp=18;var s=20;var O=21;var al=26;var bx=28;var x=31;var bj=35;var bv=44;var ar=45;var aa=46;var bK=47;var aT=-1;var X=0;var ch=1;var aZ=2;var z=3;var cz="http://map.baidu.com/";var v="http://api.map.baidu.com/";BMap.I=window.Instance=a1.lang.instance;var aX=function(cD,cC){u.call(this,cD,cC);cC=cC||{};cC.renderOptions=cC.renderOptions||{};this.setPageCapacity(cC.pageCapacity);if(typeof cC.renderOptions.selectFirstResult!="undefined"&&!cC.renderOptions.selectFirstResult){this.disableFirstResultSelection()}else{this.enableFirstResultSelection()}this._overlays=[];this._arrPois=[];this._curIndex=-1;this._queryList=[];var T=this;cr.load("local",function(){T._check()})};a1.inherits(aX,u,"LocalSearch");aX.DEFAULT_PAGE_CAPACITY=10;aX.MIN_PAGE_CAPACITY=1;aX.MAX_PAGE_CAPACITY=100;aX.DEFAULT_RADIUS=2000;aX.MAX_RADIUS=100000;a1.extend(aX.prototype,{search:function(T){this._queryList.push({method:"search",arguments:[T]})},searchInBounds:function(T,cC){this._queryList.push({method:"searchInBounds",arguments:[T,cC]})},searchNearby:function(cD,cC,T){this._queryList.push({method:"searchNearby",arguments:[cD,cC,T]})},clearResults:function(){delete this._json;delete this._status;delete this._results;delete this._ud;this._curIndex=-1;this._setStatus();if(this._opts.renderOptions.panel){this._opts.renderOptions.panel.innerHTML=""}},gotoPage:function(){},enableFirstResultSelection:function(){this._opts.renderOptions.selectFirstResult=true},disableFirstResultSelection:function(){this._opts.renderOptions.selectFirstResult=false},setPageCapacity:function(T){if(typeof T=="number"&&!isNaN(T)){this._opts.pageCapacity=T<1?aX.DEFAULT_PAGE_CAPACITY:(T>aX.MAX_PAGE_CAPACITY?aX.DEFAULT_PAGE_CAPACITY:T)}else{this._opts.pageCapacity=aX.DEFAULT_PAGE_CAPACITY}},getPageCapacity:function(){return this._opts.pageCapacity},toString:function(){return"LocalSearch"}});var bW=function(cC,T){u.call(this,cC,T)};a1.inherits(bW,u,"BaseRoute");a1.extend(bW.prototype,{clearResults:function(){}});window.BMAP_TRANSIT_POLICY_LEAST_TIME=0;window.BMAP_TRANSIT_POLICY_LEAST_TRANSFER=2;window.BMAP_TRANSIT_POLICY_LEAST_WALKING=3;window.BMAP_TRANSIT_POLICY_AVOID_SUBWAYS=4;window.BMAP_LINE_TYPE_BUS=0;window.BMAP_LINE_TYPE_SUBWAY=1;window.BMAP_LINE_TYPE_FERRY=2;function aO(cD,cC){bW.call(this,cD,cC);cC=cC||{};this.setPolicy(cC.policy);this.setPageCapacity(cC.pageCapacity);this.QUERY_TYPE=D;this.RETURN_TYPE=bb;this.ROUTE_TYPE=ba;this._overlays=[];this._curIndex=-1;this._queryList=[];var T=this;cr.load("route",function(){T._asyncSearch()})}aO.MAX_PAGE_CAPACITY=100;aO.LINE_TYPE_MAPPING=[0,1,0,0,0,0,0,0,2,0,0,0,1,1,1];a1.inherits(aO,bW,"TransitRoute");a1.extend(aO.prototype,{setPolicy:function(T){if(T>=BMAP_TRANSIT_POLICY_LEAST_TIME&&T<=BMAP_TRANSIT_POLICY_AVOID_SUBWAYS){this._opts.policy=T}else{this._opts.policy=BMAP_TRANSIT_POLICY_LEAST_TIME}},_internalSearch:function(cC,T){this._queryList.push({method:"_internalSearch",arguments:[cC,T]})},search:function(cC,T){this._queryList.push({method:"search",arguments:[cC,T]})},setPageCapacity:function(T){if(typeof T=="string"){T=parseInt(T);if(isNaN(T)){this._opts.pageCapacity=aO.MAX_PAGE_CAPACITY;return}}if(typeof T!="number"){this._opts.pageCapacity=aO.MAX_PAGE_CAPACITY;return}if(T>=1&&T<=aO.MAX_PAGE_CAPACITY){this._opts.pageCapacity=Math.round(T)}else{this._opts.pageCapacity=aO.MAX_PAGE_CAPACITY}},toString:function(){return"TransitRoute"},_shortTitle:function(T){return T.replace(/\(.*\)/,"")}});window.BMAP_HIGHLIGHT_STEP=1;window.BMAP_HIGHLIGHT_ROUTE=2;var be=function(T,cE){bW.call(this,T,cE);this._overlays=[];this._curIndex=-1;this._queryList=[];var cD=this;var cC=this._opts.renderOptions;if(cC.highlightMode!=BMAP_HIGHLIGHT_STEP&&cC.highlightMode!=BMAP_HIGHLIGHT_ROUTE){cC.highlightMode=BMAP_HIGHLIGHT_STEP}this._enableDragging=this._opts.renderOptions.enableDragging?true:false;cr.load("route",function(){cD._asyncSearch()})};be.ROAD_TYPE=["","\u73af\u5c9b","\u65e0\u5c5e\u6027\u9053\u8def","\u4e3b\u8def","\u9ad8\u901f\u8fde\u63a5\u8def","\u4ea4\u53c9\u70b9\u5185\u8def\u6bb5","\u8fde\u63a5\u9053\u8def","\u505c\u8f66\u573a\u5185\u90e8\u9053\u8def","\u670d\u52a1\u533a\u5185\u90e8\u9053\u8def","\u6865","\u6b65\u884c\u8857","\u8f85\u8def","\u531d\u9053","\u5168\u5c01\u95ed\u9053\u8def","\u672a\u5b9a\u4e49\u4ea4\u901a\u533a\u57df","POI\u8fde\u63a5\u8def","\u96a7\u9053","\u6b65\u884c\u9053","\u516c\u4ea4\u4e13\u7528\u9053","\u63d0\u524d\u53f3\u8f6c\u9053"];a1.inherits(be,bW,"DWRoute");a1.extend(be.prototype,{search:function(cC,T){this._queryList.push({method:"search",arguments:[cC,T]})}});window.BMAP_DRIVING_POLICY_LEAST_TIME=0;window.BMAP_DRIVING_POLICY_LEAST_DISTANCE=1;window.BMAP_DRIVING_POLICY_AVOID_HIGHWAYS=2;function o(T,cC){be.call(this,T,cC);cC=cC||{};this.setPolicy(cC.policy);this.QUERY_TYPE=bE;this.RETURN_TYPE=s;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_DRIVING}a1.inherits(o,be,"DrivingRoute");a1.extend(o.prototype,{setPolicy:function(T){if(T>=BMAP_DRIVING_POLICY_LEAST_TIME&&T<=BMAP_DRIVING_POLICY_AVOID_HIGHWAYS){this._opts.policy=T}else{this._opts.policy=BMAP_DRIVING_POLICY_LEAST_TIME}}});function cu(T,cC){be.call(this,T,cC);this.QUERY_TYPE=bo;this.RETURN_TYPE=x;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_WALKING;this._enableDragging=false}a1.inherits(cu,be,"WalkingRoute");function aR(cC){this._opts={};a1.extend(this._opts,cC);this._queryList=[];var T=this;cr.load("othersearch",function(){T._asyncSearch()})}a1.inherits(aR,a1.lang.Class,"Geocoder");a1.extend(aR.prototype,{getPoint:function(T,cD,cC){this._queryList.push({method:"getPoint",arguments:[T,cD,cC]})},getLocation:function(T,cD,cC){this._queryList.push({method:"getLocation",arguments:[T,cD,cC]})},toString:function(){return"Geocoder"}});function ag(cC){this._opts={};a1.extend(this._opts,cC);this._queryList=[];var T=this;cr.load("othersearch",function(){T._asyncSearch()})}a1.extend(ag.prototype,{getCurrentPosition:function(cC,T){this._queryList.push({method:"getCurrentPosition",arguments:[cC,T]})},getStatus:function(){return this._status}});function b0(cC){this._opts={renderOptions:{map:null}};a1.extend(this._opts,cC);this._queryList=[];var T=this;cr.load("othersearch",function(){T._asyncSearch()})}a1.inherits(b0,a1.lang.Class,"LocalCity");a1.extend(b0.prototype,{get:function(T){this._queryList.push({method:"get",arguments:[T]})},toString:function(){return"LocalCity"}});function bf(cD,cC){u.call(this,cD,cC);this.QUERY_TYPE_BUSLIST=E;this.RETURN_TYPE_BUSLIST=aV;this.QUERY_TYPE_BUSLINE=a8;this.RETURN_TYPE_BUSLINE=cp;this._queryList=[];var T=this;cr.load("buslinesearch",function(){T._asyncSearch()})}bf._iconOpen=b3.imgPath+"iw_plus.gif";bf._iconClose=b3.imgPath+"iw_minus.gif";bf._stopUrl=b3.imgPath+"stop_icon.png";a1.inherits(bf,u);a1.extend(bf.prototype,{getBusList:function(T){this._queryList.push({method:"getBusList",arguments:[T]})},getBusLine:function(T){this._queryList.push({method:"getBusLine",arguments:[T]})},setGetBusListCompleteCallback:function(T){this._opts.onGetBusListComplete=T||function(){}},setGetBusLineCompleteCallback:function(T){this._opts.onGetBusLineComplete=T||function(){}},setBusListHtmlSetCallback:function(T){this._opts.onBusListHtmlSet=T||function(){}},setBusLineHtmlSetCallback:function(T){this._opts.onBusLineHtmlSet=T||function(){}},setPolylinesSetCallback:function(T){this._opts.onPolylinesSet=T||function(){}}});function br(cC){u.call(this,cC);cC=cC||{};this._options={input:null,types:[],onSearchComplete:function(){}};a1.extend(this._options,cC);this._loc.src=cC.location||"\u5168\u56fd";this._word="";this._show=false;this._suggestion=null;_addStat(5011);var T=this;cr.load("autocomplete",function(){T._asyncSearch()})}a1.inherits(br,u,"Autocomplete");a1.extend(br.prototype,{show:function(){this._show=true},hide:function(){this._show=false},setTypes:function(T){this._options.types=T},setLocation:function(T){this._loc.src=T},search:function(T){this._word=T}});function af(T,cC){window.BMap[T]=cC}af("Map",bs);af("Hotspot",cd);af("MapType",cl);af("Point",b4);af("Pixel",bn);af("Size",aB);af("Bounds",bF);af("TileLayer",n);af("Projection",a6);af("MercatorProjection",a3);af("PerspectiveProjection",cv);af("Copyright",ap);af("Overlay",bz);af("Label",ac);af("Marker",Z);af("Icon",K);af("Polyline",f);af("Polygon",ce);af("InfoWindow",bH);af("Circle",a);af("Control",cg);af("NavigationControl",J);af("OverviewMapControl",cB);af("CopyrightControl",ai);af("ScaleControl",bC);af("MapTypeControl",aF);af("TrafficLayer",ax);af("ContextMenu",cq);af("MenuItem",a7);af("LocalSearch",aX);af("TransitRoute",aO);af("DrivingRoute",o);af("WalkingRoute",cu);af("Autocomplete",br);af("Geocoder",aR);af("LocalCity",b0);af("Geolocation",ag);af("BusLineSearch",bf);window.BMap.apiLoad();})();