window.TILE_VERSION={"ditu":{"normal":{"version":"088","updateDate":"20180118"},"satellite":{"version":"009","updateDate":"20180118"},"normalTraffic":{"version":"081","updateDate":"20180118"},"satelliteTraffic":{"version":"083","updateDate":"20180118"},"mapJS":{"version":"104","updateDate":"20180118"},"satelliteStreet":{"version":"083","updateDate":"20180118"},"panoClick":{"version":"1033","updateDate":"20180111"},"panoUdt":{"version":"20180111","updateDate":"20180111"},"panoSwfAPI":{"version":"20150123","updateDate":"20150123"},"panoSwfPlace":{"version":"20141112","updateDate":"20141112"},"earthVector":{"version":"001","updateDate":"20180118"}},"webapp":{"high_normal":{"version":"001","updateDate":"20180118"},"lower_normal":{"version":"002","updateDate":"20180118"}},"api_for_mobile":{"vector":{"version":"002","updateDate":"20180118"},"vectorIcon":{"version":"002","updateDate":"20180118"}}};window.BMAP_AUTHENTIC_KEY="";(function(){var Twindow=window,Tdocument=document,TMath=Math,TRegExp=RegExp,TparseInt=parseInt,TparseFloat=parseFloat,Tprototype="prototype",TappendChild="appendChild",TremoveChild="removeChild",Tlength="length",Textend="extend",Twidth="width",Theight="height",ToffsetX="offsetX",ToffsetY="offsetY",TaddEventListener="addEventListener",TremoveEventListener="removeEventListener",Tstyle="style",Tanchor="anchor",TparentNode="parentNode",Tposition="position";var T,baidu=T=baidu||{version:"1.3.4"};baidu.guid="$BAIDU$";window[baidu.guid]=window[baidu.guid]||{};baidu.object=baidu.object||{};baidu[Textend]=baidu.object[Textend]=function(target,source){for(var p in source)if(source.hasOwnProperty(p))target[p]=source[p];return target};baidu.dom=baidu.dom||{};baidu.dom.g=function(id){if("string"==typeof id||id instanceof String)return Tdocument.getElementById(id);else if(id&&id.nodeName&&(id.nodeType==1||id.nodeType==9))return id;return null}; baidu.g=baidu.G=baidu.dom.g;baidu.dom.hide=function(element){element=baidu.dom.g(element);element.style.display="none";return element};baidu.hide=baidu.dom.hide;baidu.lang=baidu.lang||{};baidu.lang.isString=function(source){return"[object String]"==Object[Tprototype].toString.call(source)};baidu.isString=baidu.lang.isString;baidu.dom._g=function(id){if(baidu.lang.isString(id))return Tdocument.getElementById(id);return id};baidu._g=baidu.dom._g; baidu.dom.contains=function(container,contained){var g=baidu.dom._g;container=g(container);contained=g(contained);return container.contains?container!=contained&&container.contains(contained):!!(container.compareDocumentPosition(contained)&16)};baidu.browser=baidu.browser||{};if(/msie (\d+\.\d)/i.test(navigator.userAgent))baidu.browser.ie=baidu.ie=Tdocument.documentMode||+TRegExp["$1"]; baidu.dom._NAME_ATTRS=function(){var result={"cellpadding":"cellPadding","cellspacing":"cellSpacing","colspan":"colSpan","rowspan":"rowSpan","valign":"vAlign","usemap":"useMap","frameborder":"frameBorder"};if(baidu.browser.ie<8){result["for"]="htmlFor";result["class"]="className"}else{result["htmlFor"]="for";result["className"]="class"}return result}(); baidu.dom.setAttr=function(element,key,value){element=baidu.dom.g(element);if("style"==key)element.style.cssText=value;else{key=baidu.dom._NAME_ATTRS[key]||key;element.setAttribute(key,value)}return element};baidu.setAttr=baidu.dom.setAttr;baidu.dom.setAttrs=function(element,attributes){element=baidu.dom.g(element);for(var key in attributes)baidu.dom.setAttr(element,key,attributes[key]);return element};baidu.setAttrs=baidu.dom.setAttrs;baidu.string=baidu.string||{}; (function(){var trimer=new TRegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");baidu.string.trim=function(source){return String(source).replace(trimer,"")}})();baidu.trim=baidu.string.trim; baidu.string.format=function(source,opts){source=String(source);var data=Array[Tprototype].slice.call(arguments,1),toString=Object[Tprototype].toString;if(data[Tlength]){data=data[Tlength]==1?opts!==null&&/\[object Array\]|\[object Object\]/.test(toString.call(opts))?opts:data:data;return source.replace(/#\{(.+?)\}/g,function(match,key){var replacer=data[key];if("[object Function]"==toString.call(replacer))replacer=replacer(key);return"undefined"==typeof replacer?"":replacer})}return source}; baidu.format=baidu.string.format;baidu.dom.removeClass=function(element,className){element=baidu.dom.g(element);var oldClasses=element.className.split(/\s+/),newClasses=className.split(/\s+/),lenOld,lenDel=newClasses[Tlength],j,i=0;for(;i0&&doc.getBoxObjectFor&&getStyle(element,"position")=="absolute"&&(element.style.top===""||element.style.left===""),pos={"left":0,"top":0},viewport=browser.ie&&!browser.isStrict?doc.body:doc.documentElement,parent,box;if(element==viewport)return pos;if(element.getBoundingClientRect){box=element.getBoundingClientRect(); pos.left=TMath.floor(box.left)+TMath.max(doc.documentElement.scrollLeft,doc.body.scrollLeft);pos.top=TMath.floor(box.top)+TMath.max(doc.documentElement.scrollTop,doc.body.scrollTop);pos.left-=doc.documentElement.clientLeft;pos.top-=doc.documentElement.clientTop;var htmlDom=doc.body,htmlBorderLeftWidth=TparseInt(getStyle(htmlDom,"borderLeftWidth")),htmlBorderTopWidth=TparseInt(getStyle(htmlDom,"borderTopWidth"));if(browser.ie&&!browser.isStrict){pos.left-=isNaN(htmlBorderLeftWidth)?2:htmlBorderLeftWidth; pos.top-=isNaN(htmlBorderTopWidth)?2:htmlBorderTopWidth}}else{parent=element;do{pos.left+=parent.offsetLeft;pos.top+=parent.offsetTop;if(browser.isWebkit>0&&getStyle(parent,"position")=="fixed"){pos.left+=doc.body.scrollLeft;pos.top+=doc.body.scrollTop;break}parent=parent.offsetParent}while(parent&&parent!=element);if(browser.opera>0||browser.isWebkit>0&&getStyle(element,"position")=="absolute")pos.top-=doc.body.offsetTop;parent=element.offsetParent;while(parent&&parent!=doc.body){pos.left-=parent.scrollLeft; if(!browser.opera||parent.tagName!="TR")pos.top-=parent.scrollTop;parent=parent.offsetParent}}return pos};if(/firefox\/(\d+\.\d)/i.test(navigator.userAgent))baidu.browser.firefox=+TRegExp["$1"];(function(){var ua=navigator.userAgent;if(/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(ua)&&!/chrome/i.test(ua))baidu.browser.safari=+(TRegExp["$1"]||TRegExp["$2"])})();if(/chrome\/(\d+\.\d)/i.test(navigator.userAgent))baidu.browser.chrome=+TRegExp["$1"];baidu.array=baidu.array||{}; baidu.array.each=function(source,iterator){var returnValue,item,i,len=source[Tlength];if("function"==typeof iterator)for(i=0;i-1};baidu.enableTapEvent=function(){function Tap(element){if(!Tdocument[TaddEventListener])return;this.element=element;this.eventStart=this.hasTouch?"touchstart":"mousedown";this.eventMove=this.hasTouch?"touchmove":"mousemove";this.eventEnd=this.hasTouch?"touchend":"mouseup";this.moved=false;this.startX=0;this.startY=0;this.element[TaddEventListener](this.eventStart,this,false);T.on(this.element,"mousedown",function(){});this.handleEvent(null)}Tap[Tprototype]={hasTouch:"ontouchstart"in window||"createTouch"in document,start:function(e){stopBubble(e);this.moved=false;this.startX=this.hasTouch?e.touches[0].clientX:e.clientX;this.startY=this.hasTouch?e.touches[0].clientY:e.clientY;this.element[TaddEventListener](this.eventMove,this,false);this.element[TaddEventListener](this.eventEnd,this,false)},move:function(e){stopAndPrevent(e);var x=this.hasTouch?e.touches[0].clientX:e.clientX,y=this.hasTouch?e.touches[0].clientY:e.clientY;if(TMath.abs(x-this.startX)>10||TMath.abs(y-this.startY)>10)this.moved=true},end:function(e){stopAndPrevent(e); if(!this.moved){var tapEvent=Tdocument.createEvent("Event");tapEvent.initEvent("tap",false,true);this.element.dispatchEvent(tapEvent)}this.element[TremoveEventListener](this.eventMove,this,false);this.element[TremoveEventListener](this.eventEnd,this,false)},handleEvent:function(e){if(e)switch(e.type){case this.eventStart:this.start(e);break;case this.eventMove:this.move(e);break;case this.eventEnd:this.end(e);break}}};return function(element){return new Tap(element)}}();var BMap=window["BMap"]||{};BMap.version="1.4";BMap._register=[];BMap.register=function(handler){this._register.push(handler)};BMap.apiLoad=BMap["apiLoad"]||function(){};var AUTHENTIC_KEY=window["BMAP_AUTHENTIC_KEY"];window["BMAP_AUTHENTIC_KEY"]=null;var TIME_LINE={};TIME_LINE.startLoadScript=window["BMap_loadScriptTime"];TIME_LINE.loadScriptEnd=(new Date).getTime();TIME_LINE.loadedMap=null;var isFirstTilesLoaded=true;function Map(element,opts){element=baidu.g(element);if(!element)return;var me=this;baidu.lang.Class.call(me);var opts=opts||{};me.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:MapConfig.defaultCursor,draggingCursor:MapConfig.draggingCursor,isOverviewMap:!!opts.isOverviewMap,minZoom:opts["minZoom"]|| 1,maxZoom:opts["maxZoom"]||18,mapType:opts["mapType"]||BMAP_NORMAL_MAP,restrictBounds:false,enableInertialDragging:false,drawMargin:500,enableHighResolution:!(opts["enableHighResolution"]===false),enableMapClick:!(opts["enableMapClick"]===false)};if(opts["enableAutoResize"])me.config.enableAutoResize=opts["enableAutoResize"];me.container=element;me._setStyle(element);element.unselectable="on";element.innerHTML="";element[TappendChild](me.render());if(opts["size"])this.setSize(opts["size"]);var domSize= me.getSize();me[Twidth]=domSize[Twidth];me[Theight]=domSize[Theight];me[ToffsetX]=0;me[ToffsetY]=0;me.platform=element.firstChild;me.maskLayer=me.platform.firstChild;me.maskLayer.style[Twidth]=me[Twidth]+"px";me.maskLayer.style[Theight]=me[Theight]+"px";me._panes={};me.centerPoint=new Point(0,0);me.mercatorCenter=new Point(0,0);me.zoomLevel=1;me.lastLevel=0;me.defaultZoomLevel=null;me.defaultCenter=null;me.currentCity="";me.cityCode="";me._hotspots={};me._hotspots["custom"]={};me.currentOperation= 0;opts=opts||{};var mapType=me.mapType=me.config.mapType;me.projection=mapType.getProjection();if(mapType===BMAP_PERSPECTIVE_MAP)_addStat(5002);if(mapType===BMAP_SATELLITE_MAP||mapType===BMAP_HYBRID_MAP)_addStat(5003);var config=me.config;config.userMinZoom=opts["minZoom"];config.userMaxZoom=opts["maxZoom"];me._checkZoom();me.temp={operating:false,arrow:0,lastDomMoveTime:0,lastLoadTileTime:0,lastMovingTime:0,canKeyboard:false,registerIndex:-1,curSpots:[]};me.platform.style.cursor=me.config.defaultCursor; for(var i=0;ilevelMax){exceeded=true;targetZoom=levelMax}return{zoom:targetZoom,exceeded:exceeded}},getContainer:function(){return this.container}, pointToPixel:function(point,zoom){zoom=zoom||this.getZoom();return this.projection.pointToPixel(point,zoom,this.mercatorCenter,this.getSize(),this.currentCity)},pixelToPoint:function(pixel,zoom){zoom=zoom||this.getZoom();return this.projection.pixelToPoint(pixel,zoom,this.mercatorCenter,this.getSize(),this.currentCity)},pointToOverlayPixel:function(point,zoom){if(!point)return;var pt=new Point(point["lng"],point["lat"]);var pixel=this.pointToPixel(pt,zoom);pixel.x-=this[ToffsetX];pixel.y-=this[ToffsetY]; return pixel},overlayPixelToPoint:function(pixel,zoom){if(!pixel)return;var pix=new Pixel(pixel.x,pixel.y);pix.x+=this[ToffsetX];pix.y+=this[ToffsetY];return this.pixelToPoint(pix,zoom)},"pointToPixelFor3D":function(point,callback){var me=this;var mapType=me.mapType,curCity=map.currentCity;if(mapType==BMAP_PERSPECTIVE_MAP&&curCity)CoordTransUtils.convertPtToPix3D(point,me,callback)},pixelToPointFor3D:function(pixel,callback){var me=this;var mapType=me.mapType,curCity=map.currentCity;if(mapType==BMAP_PERSPECTIVE_MAP&& curCity)CoordTransUtils.convertPixToPt3D(pixel,me,callback)},pointToOverlayPixelFor3D:function(point,callback){var me=this;var mapType=me.mapType,curCity=map.currentCity;if(mapType==BMAP_PERSPECTIVE_MAP&&curCity){var innerCbk=function(innerPixel){innerPixel.x-=me[ToffsetX];innerPixel.y-=me[ToffsetY];callback&&callback(innerPixel)};CoordTransUtils.convertPtToPix3D(point,me,innerCbk)}},overlayPixelToPointFor3D:function(pixel,callback){var me=this;var mapType=me.mapType,curCity=map.currentCity;if(mapType== BMAP_PERSPECTIVE_MAP&&curCity){pixel.x+=me[ToffsetX];pixel.y+=me[ToffsetY];CoordTransUtils.convertPixToPt3D(pixel,me,callback)}},getBounds:function(){if(!this.isLoaded())return new Bounds;var opts=arguments[0]||{},margins=opts["margins"]||[0,0,0,0],zoom=opts["zoom"]||null,pt1=this.pixelToPoint({x:margins[3],y:this[Theight]-margins[2]},zoom),pt2=this.pixelToPoint({x:this[Twidth]-margins[1],y:margins[0]},zoom);return new Bounds(pt1,pt2)},isLoaded:function(){return!!this.loaded},_getBestLevel:function(bounds, opts){var mapType=this.getMapType();var margins=opts["margins"]||[10,10,10,10],zoomFactor=opts["zoomFactor"]||0,ew=margins[1]+margins[3],eh=margins[0]+margins[2],minLevel=mapType.getMinZoom(),maxLevel=mapType.getMaxZoom();for(var level=maxLevel;level>=minLevel;level--){var zoomUnits=this.getMapType().getZoomUnits(level);if(bounds.toSpan()["lng"]/zoomUnitsmaxLevel)level= maxLevel;return level},getViewport:function(view,opts){var curViewport={"center":this.getCenter(),"zoom":this.getZoom()};if(!view||!view instanceof Bounds&&view[Tlength]==0||view instanceof Bounds&&view.isEmpty())return curViewport;var points=[];if(view instanceof Bounds){points.push(view.getNorthEast());points.push(view.getSouthWest())}else points=view.slice(0);opts=opts||{};var mercatorPts=[];for(var i=0,l=points[Tlength];i=0;i--)bounds[Textend](mercatorPts[i]);if(bounds.isEmpty())return curViewport;var center=bounds.getCenter();var zoom=this._getBestLevel(bounds,opts);if(opts["margins"]){var margins=opts["margins"],wBias=(margins[1]-margins[3])/2,hBias=(margins[0]-margins[2])/2,zoomUnit=this.getMapType().getZoomUnits(zoom);if(opts["offset"]){wBias=opts["offset"][Twidth];hBias=opts["offset"][Theight]}center["lng"]=center["lng"]+zoomUnit*wBias;center["lat"]=center["lat"]+ zoomUnit*hBias}center=this.projection.mercatorToLngLat(center,this.currentCity);return{"center":center,"zoom":zoom}},setViewport:function(view,opts){var viewport;if(view&&view["center"])viewport=view;else viewport=this.getViewport(view,opts);opts=opts||{};var delay=opts["delay"]||200;if(viewport.zoom==this.zoomLevel&&opts["enableAnimation"]!=false){var me=this;setTimeout(function(){me.panTo(viewport["center"],{"duration":210})},delay)}else this.centerAndZoom(viewport["center"],viewport["zoom"])}, getPanes:function(){return this._panes},getInfoWindow:function(){if(this.temp.infoWin&&this.temp.infoWin.isOpen())return this.temp.infoWin;return null},"getDistance":function(start,end){if(!start||!end)return;var dis=0;dis=MercatorProjection.getDistanceByLL(start,end);return dis},getOverlays:function(){var results=[],overlays=this._overlays,customOverlays=this._customOverlays;if(overlays)for(var i in overlays)if(overlays[i]instanceof OverlayInternal)results.push(overlays[i]);if(customOverlays)for(var i= 0,l=customOverlays[Tlength];i1},addHotspot:function(hotspot,tag){if(!tag)tag= "custom";else if(!this._hotspots[tag])this._hotspots[tag]={};hotspot["tag"]=tag;if(hotspot instanceof Hotspot){this._hotspots[tag][hotspot.guid]=hotspot;hotspot.initialize(this)}var me=this;ModuleMgr.load("hotspot",function(){me._asyncRegister()})},removeHotspot:function(hotspot,tag){if(!tag)tag="custom";if(this._hotspots[tag][hotspot.guid])delete this._hotspots[tag][hotspot.guid]},clearHotspots:function(tag){if(!tag)tag="custom";this._hotspots[tag]={}},_checkZoom:function(){var mapTypeMinZoom=this.highResolutionEnabled()? this.mapType._opts.highMinZoom:this.mapType.getMinZoom();var mapTypeMaxZoom=this.highResolutionEnabled()?this.mapType._opts.highMaxZoom:this.mapType.getMaxZoom();var config=this.config;config.minZoom=config.userMinZoom||mapTypeMinZoom;config.maxZoom=config.userMaxZoom||mapTypeMaxZoom;if(config.minZoommapTypeMaxZoom)config.maxZoom=mapTypeMaxZoom},"setMinZoom":function(zoom){if(zoom>this.config.maxZoom)zoom=this.config.maxZoom;this.config.userMinZoom= zoom;this._updateZoom()},"setMaxZoom":function(zoom){if(zoomconfig.maxZoom)this.setZoom(config.maxZoom);var e=new BaseEvent("onzoomspanchange");e.minZoom=config.minZoom;e.maxZoom=config.maxZoom;this.dispatchEvent(e)},getViewTiles:function(){return this._viewTiles}, "getKey":function(){return AUTHENTIC_KEY}});var BMAP_API_VERSION="1.4",BMAP_COORD_LNGLAT=0,BMAP_COORD_MERCATOR=1; function _addStat(code,opts){if(!code)return;opts=opts||{};var extq="";for(var i in opts)extq=extq+"&"+i+"="+encodeURIComponent(opts[i]);var sendStat=function(q){if(!q)return;_addStat._sending=true;setTimeout(function(){_addStat._img.src=MapConfig.imgPath+"blank.gif?"+q.src},50)};var reqNext=function(){var nq=_addStat._reqQueue.shift();if(nq)sendStat(nq)};var ts=(TMath.random()*1E8).toFixed(0);if(_addStat._sending)_addStat._reqQueue.push({src:"product=jsapi&v="+BMap.version+"&t="+ts+"&code="+code+ extq});else sendStat({src:"product=jsapi&v="+BMap.version+"&t="+ts+"&code="+code+extq});if(!_addStat._binded){baidu.on(_addStat._img,"load",function(){_addStat._sending=false;reqNext()});baidu.on(_addStat._img,"error",function(){_addStat._sending=false;reqNext()});_addStat._binded=true}}_addStat._reqQueue=[];_addStat._img=new Image;_addStat(5E3);function Animation(opts){var defaultOptions={duration:1E3,fps:30,delay:0,transition:Transitions.linear,onStop:function(){}};this._anis=[];if(opts)for(var i in opts)defaultOptions[i]=opts[i];this._opts=defaultOptions;if(isNumber(defaultOptions.delay)){var me=this;setTimeout(function(){me.start()},defaultOptions.delay)}else if(defaultOptions.delay!=Animation.INFINITE)this.start()}Animation.INFINITE="INFINITE"; Animation[Tprototype].start=function(){this._beginTime=getCurrentTime();this._endTime=this._beginTime+this._opts.duration;this._launch()};Animation[Tprototype].add=function(ani){this._anis.push(ani)}; Animation[Tprototype]._launch=function(){var me=this;var now=getCurrentTime();if(now>=me._endTime){if(isFunction(me._opts.render))me._opts.render(me._opts.transition(1));if(isFunction(me._opts.finish))me._opts.finish();if(me._anis[Tlength]>0){var newAni=me._anis[0];newAni._anis=[].concat(me._anis.slice(1));newAni.start()}return}me.schedule=me._opts.transition((now-me._beginTime)/me._opts.duration);if(isFunction(me._opts.render))me._opts.render(me.schedule);if(!me.terminative)me._timer=setTimeout(function(){me._launch()}, 1E3/me._opts.fps)};Animation[Tprototype].stop=function(gotoEnd){this.terminative=true;for(var i=0;i0)this._anis[this._anis[Tlength]-1]._opts.finish=callback;else this._opts.finish=callback}; var Transitions={linear:function(t){return t},reverse:function(t){return 1-t},easeInQuad:function(t){return t*t},easeInCubic:function(t){return TMath.pow(t,3)},easeOutQuad:function(t){return-(t*(t-2))},easeOutCubic:function(t){return TMath.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 TMath.pow(t,3)*4;else return TMath.pow(t-1,3)*4+1},easeInOutSine:function(t){return(1-TMath.cos(TMath.PI*t))/2}}; Transitions["ease-in"]=Transitions.easeInQuad;Transitions["ease-out"]=Transitions.easeOutQuad;var MapConfig={imgPath:"http://api.map.baidu.com/images/",cityNames:{"\u5317\u4eac":{pinyin:"bj",pt:new Point(116.403874,39.914889)},"\u4e0a\u6d77":{pinyin:"sh",pt:new Point(121.487899,31.249162)},"\u6df1\u5733":{pinyin:"sz",pt:new Point(114.025974,22.546054)},"\u5e7f\u5dde":{pinyin:"gz",pt:new Point(113.30765,23.120049)}},fontFamily:"arial,sans-serif"}; if(baidu.browser.firefox){baidu[Textend](MapConfig,{distCursor:"url("+MapConfig.imgPath+"ruler.cur),crosshair",defaultCursor:"-moz-grab",draggingCursor:"-moz-grabbing"});if(baidu.platform.isWindows)MapConfig.fontFamily="arial,simsun,sans-serif"}else if(baidu.browser.chrome||baidu.browser.safari)baidu[Textend](MapConfig,{distCursor:"url("+MapConfig.imgPath+"ruler.cur) 2 6,crosshair",defaultCursor:"url("+MapConfig.imgPath+"openhand.cur) 8 8,default",draggingCursor:"url("+MapConfig.imgPath+"closedhand.cur) 8 8,move"}); else baidu[Textend](MapConfig,{distCursor:"url("+MapConfig.imgPath+"ruler.cur),crosshair",defaultCursor:"url("+MapConfig.imgPath+"openhand.cur),default",draggingCursor:"url("+MapConfig.imgPath+"closedhand.cur),move"});function Copyright(id,bounds,content){this.id=id;this.bounds=bounds;this.content=content};var Operation={undo:1,redo:2,zoom:4,drag:8,move:16,mousewheel:32,toolbarOperation:64,stdMapCtrlDrag:128,dblclick:256};function setPosition(obj,position){var s=obj.style;s.left=position[0]+"px";s.top=position[1]+"px"}function setUnSelectable(obj){if(baidu.browser.ie>0)obj.unselectable="on";else obj.style.MozUserSelect="none"}function isInDocument(obj){return obj&&obj[TparentNode]&&obj[TparentNode].nodeType!=11}function beforeEndHTML(parent,chlidHTML){baidu.dom.insertHTML(parent,"beforeEnd",chlidHTML);return parent.lastChild} function getPosition(obj){var pos={left:0,top:0};while(obj&&obj.offsetParent){pos.left+=obj.offsetLeft;pos.top+=obj.offsetTop;obj=obj.offsetParent}return pos}function stopBubble(e){var e=window.event||e;e.stopPropagation?e.stopPropagation():e.cancelBubble=true}function preventDefault(e){var e=window.event||e;e.preventDefault?e.preventDefault():e.returnValue=false;return false}function stopAndPrevent(e){stopBubble(e);return preventDefault(e)} function getScroll(){var dd=Tdocument.documentElement,db=Tdocument.body;if(dd&&(dd.scrollTop||dd.scrollLeft))return[dd.scrollTop,dd.scrollLeft];else if(db)return[db.scrollTop,db.scrollLeft];else return[0,0]}function getDistanceByPixel(px1,px2){if(!px1||!px2)return;return TMath.round(TMath.sqrt(TMath.pow(px1.x-px2.x,2)+TMath.pow(px1.y-px2.y,2)))}function jsonToQuery(json,encode){var s=[];encode=encode||function(v){return v};for(var n in json)s.push(n+"="+encode(json[n]));return s.join("&")} function create(tag,attr,ns){var e=Tdocument.createElement(tag);if(ns)e=Tdocument.createElementNS(ns,tag);return baidu.dom.setAttrs(e,attr||{})}function getCurrentStyle(el){if(el.currentStyle)return el.currentStyle;else if(el.ownerDocument&&el.ownerDocument.defaultView)return el.ownerDocument.defaultView.getComputedStyle(el,null)}function isFunction(func){return typeof func=="function"}function isNumber(number){return typeof number=="number"} function isString(string){return typeof string=="string"}function isDefined(object){return typeof object!="undefined"}function isObject(object){return typeof object=="object"}function isArray(source){return"[object Array]"==Object[Tprototype].toString.call(source)}var b64array="ABCDEFGHIJKLMNOP"+"QRSTUVWXYZabcdef"+"ghijklmnopqrstuv"+"wxyz0123456789+/"+"="; function decode64(input){var output="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;var base64test=/[^A-Za-z0-9\+\/\=]/g;if(!input||base64test.exec(input))return input;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=b64array.indexOf(input.charAt(i++));enc2=b64array.indexOf(input.charAt(i++));enc3=b64array.indexOf(input.charAt(i++));enc4=b64array.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1); if(enc3!=64)output=output+String.fromCharCode(chr2);if(enc4!=64)output=output+String.fromCharCode(chr3);chr1=chr2=chr3="";enc1=enc2=enc3=enc4=""}while(i';var b=a.firstChild;if(!b.style)return false;b.style["behavior"]="url(#default#VML)";var supported=b?typeof b["adj"]=="object":true;a[TparentNode][TremoveChild](a);return supported}function isSvg(){return!!Tdocument.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape","1.1")}function isCanvas(){return!!create("canvas").getContext};var DataMgr={request:function(url){var script=create("script",{"src":url,"type":"text/javascript","charset":"utf-8"});if(script[TaddEventListener])script[TaddEventListener]("load",function(e){var t=e.target;t[TparentNode][TremoveChild](t)},false);else if(script.attachEvent)script.attachEvent("onreadystatechange",function(e){var t=window.event.srcElement;if(t&&(t.readyState=="loaded"||t.readyState=="complete"))t[TparentNode][TremoveChild](t)});setTimeout(function(){Tdocument.getElementsByTagName("head")[0][TappendChild](script); script=null},1)}};var ModuleVersion={"map":"20180102095227","tile":"20180102095227","marker":"20180102095227","markeranimation":"20180102095227","poly":"20180102095227","draw":"20180102095227","drawbysvg":"20180102095227","drawbyvml":"20180102095227","drawbycanvas":"20180102095227","infowindow":"20180102095227","oppc":"20180102095227","opmb":"20180102095227","menu":"20180102095227","control":"20180102095227","navictrl":"20180102095227","geoctrl":"20180102095227","copyrightctrl":"20180102095227", "scommon":"20180102095227","local":"20180102095227","route":"20180102095227","othersearch":"20180102095227","buslinesearch":"20180102095227","hotspot":"20180102095227","autocomplete":"20180102095227","coordtrans":"20180102095227","coordtransutils":"20180102095227","mapclick":"20180102095227"}; baidu.storage=function(){var _prefix="BMap_",ls=window.localStorage,_isSupportLocalStorage="localStorage"in window&&ls!==null&&ls!==undefined;function _getRealyModuleName(moduleName){return _prefix+moduleName+"_"+ModuleVersion[moduleName]}function _check(moduleName){return _isSupportLocalStorage&&!!ls[_getRealyModuleName(moduleName)]}function _set(moduleName,moduleCode){if(_isSupportLocalStorage){_remove(moduleName);try{ls.setItem(_getRealyModuleName(moduleName),moduleCode)}catch(e){ls.clear()}}} function _remove(moduleName){var prefix=_prefix+moduleName+"_",l=ls[Tlength],strKey;while(l--){strKey=ls.key(l);if(strKey.indexOf(prefix)>-1)ls.removeItem(strKey)}}function _get(moduleName){if(_isSupportLocalStorage&&_check(moduleName))return ls.getItem(_getRealyModuleName(moduleName));else return false}return{isSupportLocalStorage:_isSupportLocalStorage,set:_set,get:_get,check:_check}}();function ModuleMgr(){} baidu.object[Textend](ModuleMgr,{Request:{INITIAL:-1,WAITING:0,COMPLETED:1},getDependency:function(){var drawType="drawbysvg";if(isSvg())drawType="drawbysvg";else if(isVml())drawType="drawbyvml";else if(isCanvas())drawType="drawbycanvas";return{"control":[],"marker":[],"poly":["marker",drawType],"drawbysvg":["draw"],"drawbyvml":["draw"],"drawbycanvas":["draw"],"infowindow":["marker"],"menu":[],"oppc":[],"opmb":[],"scommon":[],"local":["scommon"],"route":["scommon"],"othersearch":["scommon"],"autocomplete":["scommon"], "mapclick":["scommon"],"buslinesearch":["route"],"hotspot":[],"coordtransutils":["coordtrans"]}},preLoaded:{},Config:{_baseUrl:"http://api.map.baidu.com/getmodules?v=1.4",_timeout:5E3},delayFlag:false,Module:{_modules:{},_arrMdls:[],_tempMdls:[]},load:function(moduleName,callback,bExeLoadedCbk){var currentModule=this.current(moduleName);if(currentModule._status==this.Request.COMPLETED){if(bExeLoadedCbk)callback();return}else{if(currentModule._status==this.Request.INITIAL){this.combine(moduleName); this.pushUniqueMdl(moduleName);var me=this;if(me.delayFlag==false){me.delayFlag=true;setTimeout(function(){var mdlsFromServer=[];for(var i=0,l=me.Module._arrMdls[Tlength];i"); if(this._visible==false)baidu.dom.hide(this._container);return this._container},_setPosition:function(){this.setAnchor(this._opts.anchor)},setAnchor:function(anchor){if(this.anchorFixed||!isNumber(anchor)||isNaN(anchor)||anchorBMAP_ANCHOR_BOTTOM_RIGHT)anchor=this["defaultAnchor"];this._opts=this._opts||{printable:false};this._opts.offset=this._opts.offset||this["defaultOffset"];var preAnchor=this._opts.anchor;this._opts[Tanchor]=anchor;if(!this._container)return;var c= this._container;var x=this._opts.offset[Twidth];var y=this._opts.offset[Theight];c.style.left=c.style.top=c.style.right=c.style.bottom="auto";switch(anchor){case BMAP_ANCHOR_TOP_LEFT:c.style.top=y+"px";c.style.left=x+"px";break;case BMAP_ANCHOR_TOP_RIGHT:c.style.top=y+"px";c.style.right=x+"px";break;case BMAP_ANCHOR_BOTTOM_LEFT:c.style.bottom=y+"px";c.style.left=x+"px";break;case BMAP_ANCHOR_BOTTOM_RIGHT:c.style.bottom=y+"px";c.style.right=x+"px";break;default:break}var a=["TL","TR","BL","BR"];baidu.dom.removeClass(this._container, "anchor"+a[preAnchor]);baidu.dom.addClass(this._container,"anchor"+a[anchor])},getAnchor:function(){return this._opts.anchor},setOffset:function(size){if(!(size instanceof Size))return;this._opts=this._opts||{printable:false};this._opts.offset=new Size(size[Twidth],size[Theight]);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)baidu.dom.show(this._container)}, hide:function(){if(this._visible==false)return;this._visible=false;if(this._container)baidu.dom.hide(this._container)},"isPrintable":function(){return!!this._opts.printable},isVisible:function(){if(!this._container&&!this._map)return false;return!!this._visible}});var BMAP_ANCHOR_TOP_LEFT=0,BMAP_ANCHOR_TOP_RIGHT=1,BMAP_ANCHOR_BOTTOM_LEFT=2,BMAP_ANCHOR_BOTTOM_RIGHT=3;var BMAP_NAVIGATION_CONTROL_LARGE=0,BMAP_NAVIGATION_CONTROL_SMALL=1,BMAP_NAVIGATION_CONTROL_PAN=2,BMAP_NAVIGATION_CONTROL_ZOOM=3; function NavigationControl(opts){Control.call(this);opts=opts||{};this._opts={printable:false,showZoomInfo:opts["showZoomInfo"]||true,anchor:opts["anchor"],offset:opts["offset"],type:opts["type"]};this["defaultAnchor"]=isMobile()?BMAP_ANCHOR_BOTTOM_RIGHT:BMAP_ANCHOR_TOP_LEFT;this["defaultOffset"]=new Size(10,10);this.setAnchor(opts["anchor"]);this.setType(opts["type"]);this._asyncLoadCode()}baidu.lang.inherits(NavigationControl,Control,"NavigationControl"); baidu[Textend](NavigationControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},setType:function(type){if(isNumber(type)&&type>=BMAP_NAVIGATION_CONTROL_LARGE&&type<=BMAP_NAVIGATION_CONTROL_ZOOM)this._opts.type=type;else this._opts.type=BMAP_NAVIGATION_CONTROL_LARGE},getType:function(){return this._opts.type},_asyncLoadCode:function(){var me=this;ModuleMgr.load("navictrl",function(){me._asyncLoad()})}});function GeolocationControl(opts){Control.call(this);opts=opts||{};this._opts={anchor:opts["anchor"],offset:opts["offset"],showAddressBar:opts["showAddressBar"],enableAutoLocation:opts["enableAutoLocation"],locationIcon:opts["locationIcon"]};this["defaultAnchor"]=BMAP_ANCHOR_BOTTOM_LEFT;this["defaultOffset"]=new Size(0,4);this._asyncLoadCode()}baidu.lang.inherits(GeolocationControl,Control,"GeolocationControl"); baidu[Textend](GeolocationControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},_asyncLoadCode:function(){var me=this;ModuleMgr.load("geoctrl",function(){me._asyncLoad()})},"getAddressComponent":function(){return this.addressComponent||null},"location":function(){this._opts.enableAutoLocation=true}});function CopyrightControl(opts){Control.call(this);opts=opts||{};this._opts={printable:false,anchor:opts["anchor"],offset:opts["offset"]};this._copyrightCollection=[];this["defaultAnchor"]=BMAP_ANCHOR_BOTTOM_LEFT;this["defaultOffset"]=new Size(5,2);this.setAnchor(opts["anchor"]);this._canShow=true;this.blockInfoWindow=false;this._asyncLoadCode()}baidu.lang.inherits(CopyrightControl,Control,"CopyrightControl"); baidu.object[Textend](CopyrightControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},addCopyright:function(copyright){if(!copyright||!isNumber(copyright["id"])||isNaN(copyright["id"]))return;var ncpy={"bounds":null,"content":""};for(var i in copyright)ncpy[i]=copyright[i];var cp=this.getCopyright(copyright["id"]);if(cp)for(var o in ncpy)cp[o]=ncpy[o];else this._copyrightCollection.push(ncpy)},getCopyright:function(id){for(var i=0,l=this._copyrightCollection[Tlength];i< l;i++)if(this._copyrightCollection[i]["id"]==id)return this._copyrightCollection[i]},getCopyrightCollection:function(){return this._copyrightCollection},removeCopyright:function(id){for(var i=0,l=this._copyrightCollection[Tlength];i0?size[Twidth]:150;size[Theight]=size[Theight]>0?size[Theight]:150;this._opts.size= size},getSize:function(){return this._opts.size},isOpen:function(){return this._opts.isOpen},_asyncLoadCode:function(){var me=this;ModuleMgr.load("control",function(){me._asyncLoad()})}});function ScaleControl(opts){Control.call(this);opts=opts||{};this._opts={printable:false,color:"black",unit:"metric",offset:opts["offset"]};this["defaultAnchor"]=BMAP_ANCHOR_BOTTOM_LEFT;this["defaultOffset"]=new Size(81,18);this.setAnchor(opts["anchor"]);this._units={"metric":{name:"metric",conv:1,incon:1E3,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()}var BMAP_UNIT_METRIC="metric",BMAP_UNIT_IMPERIAL="us";baidu.lang.inherits(ScaleControl,Control,"ScaleControl"); baidu.object[Textend](ScaleControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},setColor:function(color){this._opts.color=color+""},getColor:function(){return this._opts.color},setUnit:function(unit){this._opts.unit=this._units[unit]&&this._units[unit].name||this._opts.unit},getUnit:function(){return this._opts.unit},_asyncLoadCode:function(){var me=this;ModuleMgr.load("control",function(){me._asyncLoad()})}});var BMAP_MAPTYPE_CONTROL_HORIZONTAL=0,BMAP_MAPTYPE_CONTROL_DROPDOWN=1; function MapTypeControl(opts){Control.call(this);opts=opts||{};this["defaultAnchor"]=BMAP_ANCHOR_TOP_RIGHT;this["defaultOffset"]=new Size(10,10);this._opts={printable:false,mapTypes:[BMAP_NORMAL_MAP,BMAP_SATELLITE_MAP,BMAP_HYBRID_MAP,BMAP_PERSPECTIVE_MAP],type:opts["type"]||BMAP_MAPTYPE_CONTROL_HORIZONTAL,offset:opts["offset"]||this["defaultOffset"],enableSwitch:true};this.setAnchor(opts["anchor"]);if(isArray(opts["mapTypes"]))this._opts.mapTypes=opts["mapTypes"].slice(0);this._asyncLoadCode()} baidu.lang.inherits(MapTypeControl,Control,"MapTypeControl");baidu.object[Textend](MapTypeControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},_asyncLoadCode:function(){var me=this;ModuleMgr.load("control",function(){me._asyncLoad()})}});function ContextMenu(opts){baidu.lang.Class.call(this);this._opts={container:null,cursor:"default"};this._opts=baidu[Textend](this._opts,opts);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 me=this;ModuleMgr.load("menu",function(){me._draw()})}baidu.lang.inherits(ContextMenu,baidu.lang.Class,"ContextMenu"); baidu.object[Textend](ContextMenu[Tprototype],{initialize:function(map,overlay){this._map=map;this._overlay=overlay||null},remove:function(){this._map=this._overlay=null},addItem:function(item){if(!item||item._type!="menuitem"||item._text==""||item._width<=0)return;for(var i=0,l=this._items[Tlength];iindex)this._items[i]._dIndex--}this._dividers.splice(index,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(cursor){if(!cursor)return;this._opts.cursor=cursor},getItem:function(index){return this._rItems[index]}});function MenuItem(text,callback,opts){if(!text||!isFunction(callback))return;baidu.lang.Class.call(this);this._opts={width:100,id:""};opts=opts||{};this._opts[Twidth]=opts["width"]*1?opts["width"]:100;this._opts.id=opts["id"]?opts["id"]:"";this._text=text+"";this._callback=callback;this._map=null;this._type="menuitem";this._contextmenu=null;this._container=null;this._enabled=true;var me=this;ModuleMgr.load("menu",function(){me._draw()})}baidu.lang.inherits(MenuItem,baidu.lang.Class,"MenuItem"); baidu.object[Textend](MenuItem[Tprototype],{initialize:function(map,menu){this._map=map;this._contextmenu=menu},remove:function(){this._contextmenu=null;this._map=null},setText:function(text){if(!text)return;this._text=text+""},getDom:function(){return this._container},enable:function(){this._enabled=true},disable:function(){this._enabled=false}});function Bounds(sw,ne){if(sw&&!ne)ne=sw;this._sw=this._ne=null;this._swLng=this._swLat=null;this._neLng=this._neLat=null;if(sw){this._sw=new Point(sw["lng"],sw["lat"]);this._ne=new Point(ne["lng"],ne["lat"]);this._swLng=sw["lng"];this._swLat=sw["lat"];this._neLng=ne["lng"];this._neLat=ne["lat"]}} baidu.object[Textend](Bounds[Tprototype],{isEmpty:function(){return!this._sw||!this._ne},equals:function(other){if(!(other instanceof Bounds)||this.isEmpty())return false;return this.getSouthWest().equals(other.getSouthWest())&&this.getNorthEast().equals(other.getNorthEast())},getSouthWest:function(){return this._sw},getNorthEast:function(){return this._ne},containsBounds:function(bounds){if(!(bounds instanceof Bounds)||this.isEmpty()||bounds.isEmpty())return false;return bounds._swLng>this._swLng&& bounds._neLngthis._swLat&&bounds._neLatTMath.max(this._swLng,this._neLng)||TMath.max(bounds._swLat,bounds._neLat)TMath.max(this._swLat,this._neLat))return null;var newMinX=TMath.max(this._swLng,bounds._swLng);var newMaxX=TMath.min(this._neLng,bounds._neLng);var newMinY=TMath.max(this._swLat,bounds._swLat);var newMaxY=TMath.min(this._neLat,bounds._neLat);return new Bounds(new Point(newMinX,newMinY),new Point(newMaxX,newMaxY))},containsPoint:function(point){if(!(point instanceof Point)||this.isEmpty())return false;return point["lng"]>=this._swLng&&point["lng"]<=this._neLng&& point["lat"]>=this._swLat&&point["lat"]<=this._neLat},extend:function(point){if(!(point instanceof Point))return;var lng=point["lng"],lat=point["lat"];if(!this._sw)this._sw=new Point(0,0);if(!this._ne)this._ne=new Point(0,0);if(!this._swLng||this._swLng>lng)this._sw["lng"]=this._swLng=lng;if(!this._neLng||this._neLnglat)this._sw["lat"]=this._swLat=lat;if(!this._neLat||this._neLat=-180&&pt["lat"]<=74&&pt["lat"]>=-74};Point[Tprototype].equals=function(other){return other&&this["lat"]==other["lat"]&&this["lng"]==other["lng"]};function Projection(){}Projection[Tprototype].lngLatToPoint=function(){throw"lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0";};Projection[Tprototype].pointToLngLat=function(){throw"pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0";};function CoordTrans(){};var CoordTransUtils={convertPtToPix3D:function(point,map,cbk){ModuleMgr.load("coordtransutils",function(){CoordTransUtils.asyncConvertPtToPix3D(point,map,cbk)},true)},convertPixToPt3D:function(pixel,map,cbk){ModuleMgr.load("coordtransutils",function(){CoordTransUtils.asyncConvertPixToPt3D(pixel,map,cbk)},true)}};function MercatorProjection(){}MercatorProjection[Tprototype]=new Projection; baidu[Textend](MercatorProjection,{EARTHRADIUS:6370996.81,MCBAND:[1.289059486E7,8362377.87,5591021,3481989.83,1678043.12,0],LLBAND:[75,60,45,30,15,0],MC2LL:[[1.410526172116255E-8,8.98305509648872E-6,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-0.03801003308653,1.73379812E7],[-7.435856389565537E-9,8.983055097726239E-6,-0.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375, 1.026014486E7],[-3.030883460898826E-8,8.98305509983578E-6,0.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,0.32710905363475,6856817.37],[-1.981981304930552E-8,8.983055099779535E-6,0.03278182852591,40.31678527705744,0.65659298677277,-4.44255534477492,0.85341911805263,0.12923347998204,-0.04625736007561,4482777.06],[3.09191371068437E-9,8.983055096812155E-6,6.995724062E-5,23.10934304144901,-2.3663490511E-4,-0.6321817810242,-0.00663494467273,0.03430082397953, -0.00466043876332,2555164.4],[2.890871144776878E-9,8.983055095805407E-6,-3.068298E-8,7.47137025468032,-3.53937994E-6,-0.02145144861037,-1.234426596E-5,1.0322952773E-4,-3.23890364E-6,826088.5]],LL2MC:[[-0.0015702102444,111320.7020616939,1704480524535203,-10338987376042340,26112667856603880,-35149669176653700,26595700718403920,-10725012454188240,1800819912950474,82.5],[8.277824516172526E-4,111320.7020463578,6.477955746671607E8,-4.082003173641316E9,1.077490566351142E10,-1.517187553151559E10,1.205306533862167E10, -5.124939663577472E9,9.133119359512032E8,67.5],[0.00337398766765,111320.7020202162,4481351.045890365,-2.339375119931662E7,7.968221547186455E7,-1.159649932797253E8,9.723671115602145E7,-4.366194633752821E7,8477230.501135234,52.5],[0.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-3.441963504368392E-4,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118, 9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-3.218135878613132E-4,111320.7020701615,0.00369383431289,823725.6402795718,0.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,0.37238884252424,7.45]],getDistanceByMC:function(point1,point2){if(!point1||!point2)return 0;var x1,y1,x2,y2;point1=this.convertMC2LL(point1);if(!point1)return 0;x1=this.toRadians(point1["lng"]);y1=this.toRadians(point1["lat"]);point2=this.convertMC2LL(point2);if(!point2)return 0;x2=this.toRadians(point2["lng"]); y2=this.toRadians(point2["lat"]);return this.getDistance(x1,x2,y1,y2)},getDistanceByLL:function(point1,point2){if(!point1||!point2)return 0;point1["lng"]=this.getLoop(point1["lng"],-180,180);point1["lat"]=this.getRange(point1["lat"],-74,74);point2["lng"]=this.getLoop(point2["lng"],-180,180);point2["lat"]=this.getRange(point2["lat"],-74,74);var x1,x2,y1,y2;x1=this.toRadians(point1["lng"]);y1=this.toRadians(point1["lat"]);x2=this.toRadians(point2["lng"]);y2=this.toRadians(point2["lat"]);return this.getDistance(x1, x2,y1,y2)},convertMC2LL:function(point){var temp,factor;temp=new Point(TMath.abs(point["lng"]),TMath.abs(point["lat"]));for(var i=0;i=this.MCBAND[i]){factor=this.MC2LL[i];break}var lnglat=this.convertor(point,factor);var point=new Point(lnglat["lng"].toFixed(6),lnglat["lat"].toFixed(6));return point},convertLL2MC:function(point){var temp,factor;point["lng"]=this.getLoop(point["lng"],-180,180);point["lat"]=this.getRange(point["lat"],-74,74);temp=new Point(point["lng"], point["lat"]);for(var i=0;i=this.LLBAND[i]){factor=this.LL2MC[i];break}if(!factor)for(var i=this.LLBAND[Tlength]-1;i>=0;i--)if(temp["lat"]<=-this.LLBAND[i]){factor=this.LL2MC[i];break}var mc=this.convertor(point,factor);var point=new Point(mc["lng"].toFixed(2),mc["lat"].toFixed(2));return point},convertor:function(fromPoint,factor){if(!fromPoint||!factor)return;var x=factor[0]+factor[1]*TMath.abs(fromPoint["lng"]);var temp=TMath.abs(fromPoint["lat"])/factor[9]; var y=factor[2]+factor[3]*temp+factor[4]*temp*temp+factor[5]*temp*temp*temp+factor[6]*temp*temp*temp*temp+factor[7]*temp*temp*temp*temp*temp+factor[8]*temp*temp*temp*temp*temp*temp;x*=fromPoint["lng"]<0?-1:1;y*=fromPoint["lat"]<0?-1:1;return new Point(x,y)},getDistance:function(x1,x2,y1,y2){return this.EARTHRADIUS*TMath.acos(TMath.sin(y1)*TMath.sin(y2)+TMath.cos(y1)*TMath.cos(y2)*TMath.cos(x2-x1))},toRadians:function(angdeg){return TMath.PI*angdeg/180},toDegrees:function(angrad){return 180*angrad/ TMath.PI},getRange:function(v,a,b){if(a!=null)v=TMath.max(v,a);if(b!=null)v=TMath.min(v,b);return v},getLoop:function(v,a,b){while(v>b)v-=b-a;while(v1)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";this.domElement=null;this._bounds=new Bounds(0,0,0,0);this._parseCache=[];this.vertexMarkers=[];this._temp={}}baidu.lang.inherits(Graph,OverlayInternal,"Graph"); Graph.getGraphPoints=function(points){var result=[];if(!points)return result;if(isString(points)){var pts=points.split(";");baidu.array.each(pts,function(pt){var ptxy=pt.split(",");result.push(new Point(ptxy[0],ptxy[1]))})}if(Object[Tprototype].toString.apply(points)=="[object Array]"&&points[Tlength]>0)result=points;return result};Graph.parseTolerance=[0.09,0.0050,1.0E-4,1.0E-5]; baidu[Textend](Graph[Tprototype],{"initialize":function(map){this.map=map;return null},"draw":function(){return;if(!this.domElement)return;if(this._drawer)this._drawer.setPath(this.domElement,this._getDisplayPixels(this.points))},_setPath:function(points){this._parseCache[Tlength]=0;this.points=Graph.getGraphPoints(points).slice(0);this._calcBounds()},setPath:function(points){this._setPath(points)},_calcBounds:function(){if(!this.points)return;var me=this;me._bounds=new Bounds;baidu.array.each(this.points, function(point){me._bounds[Textend](point)})},getPath:function(){return this.points},setPositionAt:function(index,point){if(!point||!this.points[index])return;this._parseCache[Tlength]=0;this.points[index]=new Point(point["lng"],point["lat"]);this._calcBounds()},setStrokeColor:function(color){this._config.strokeColor=color},getStrokeColor:function(){return this._config.strokeColor},setStrokeWeight:function(weight){if(weight>0)this._config.strokeWeight=weight},getStrokeWeight:function(){return this._config.strokeWeight}, setStrokeOpacity:function(opacity){if(!opacity||opacity>1||opacity<0)return;this._config.strokeOpacity=opacity},getStrokeOpacity:function(){return this._config.strokeOpacity},setFillOpacity:function(opacity){if(opacity>1||opacity<0)return;this._config.fillOpacity=opacity},getFillOpacity:function(){return this._config.fillOpacity},setStrokeStyle:function(strokeStyle){if(strokeStyle!="solid"&&strokeStyle!="dashed")return;this._config.strokeStyle=strokeStyle},getStrokeStyle:function(){return this._config.strokeStyle}, setFillColor:function(color){this._config.fillColor=color||""},getFillColor:function(){return this._config.fillColor},getBounds:function(){return this._bounds},remove:function(){if(this.map)this.map[TremoveEventListener]("onmousemove",this._graphMouseEvent);OverlayInternal[Tprototype].remove.call(this);this._parseCache[Tlength]=0},enableEditing:function(){if(this.points[Tlength]<2)return;this._config.enableEditing=true;var me=this;ModuleMgr.load("poly",function(){me.addVertexs()},true)},disableEditing:function(){this._config.enableEditing= false;var me=this;ModuleMgr.load("poly",function(){me.clearVertexs()},true)}});function Division(opts){OverlayInternal.call(this);this.map=null;this.domElement=null;this._config={width:0,height:0,offset:new Size(0,0),opacity:1,background:"transparent",lineStroke:1,lineColor:"#000",lineStyle:"solid",point:null};this.setConfig(opts);this.point=this._config.point}baidu.lang.inherits(Division,OverlayInternal,"Division"); baidu[Textend](Division[Tprototype],{_addDom:function(){var config=this._config;var content=this.content;var html=['
');html.push(content);html.push("
");this.domElement=beforeEndHTML(this.map.getPanes().markerMouseTarget,html.join(""))},"initialize":function(map){this.map=map;this._addDom();if(this.domElement){var eventName=isMobile()?"touchstart":"mousedown";baidu.on(this.domElement,eventName,function(e){stopBubble(e)})}return this.domElement},"draw":function(){var pix=this.map.pointToOverlayPixel(this._config.point);this._config.offset=new Size(-TMath.round(this._config[Twidth]/2)- TMath.round(this._config.lineStroke),-TMath.round(this._config[Theight]/2)-TMath.round(this._config.lineStroke));this.domElement.style.left=pix.x+this._config.offset[Twidth]+"px";this.domElement.style.top=pix.y+this._config.offset[Theight]+"px"},getPosition:function(){return this._config.point},_getPixel:function(point){return this.map.pointToPixel(this.getPosition())},setPosition:function(point){this._config.point=point;this["draw"]()},setDimension:function(w,h){this._config[Twidth]=TMath.round(w); this._config[Theight]=TMath.round(h);if(this.domElement){this.domElement.style[Twidth]=this._config[Twidth]+"px";this.domElement.style[Theight]=this._config[Theight]+"px";this["draw"]()}}});function Icon(imageUrl,size,opts){if(!imageUrl||!size)return;this["imageUrl"]=imageUrl;this["size"]=size;var defaultAnchor=new Size(TMath.floor(size[Twidth]/2),TMath.floor(size[Theight]/2));opts=opts||{};var _config={anchor:opts["anchor"]||defaultAnchor,imageOffset:opts["imageOffset"]||new Size(0,0)};this["imageSize"]=opts["imageSize"];this["anchor"]=_config.anchor;this["imageOffset"]=_config.imageOffset;this["infoWindowAnchor"]=opts["infoWindowAnchor"]||this["anchor"];this["printImageUrl"]=opts["printImageUrl"]|| ""}var IconPrototype=Icon[Tprototype]; baidu[Textend](Icon[Tprototype],{setImageUrl:function(url){if(!url)return;this["imageUrl"]=url},setPrintImageUrl:function(url){if(!url)return;this["printImageUrl"]=url},setSize:function(size){if(!size)return;this["size"]=new Size(size[Twidth],size[Theight])},setAnchor:function(size){if(!size)return;this["anchor"]=new Size(size[Twidth],size[Theight])},setImageOffset:function(size){if(!size)return;this["imageOffset"]=new Size(size[Twidth],size[Theight])},setInfoWindowAnchor:function(size){if(!size)return;this["infoWindowAnchor"]= new Size(size[Twidth],size[Theight])},setImageSize:function(size){if(!size)return;this["imageSize"]=new Size(size[Twidth],size[Theight])},toString:function(){return"Icon"}});function InfoWindow(content,opts){baidu.lang.Class.call(this);this.content=content;this.map=null;opts=opts||{};this._config={width:opts["width"]||0,height:opts["height"]||0,maxWidth:opts["maxWidth"]||600,offset:opts["offset"]||new Size(0,0),title:opts["title"]||"",maxContent:opts["maxContent"]||"",enableMaximize:opts["enableMaximize"]||false,enableAutoPan:opts["enableAutoPan"]===false?false:true,enableCloseOnClick:opts["enableCloseOnClick"]===false?false:true,margin:[10,10,40,10],collisions:[[10, 10],[10,10],[10,10],[10,10]],ifMaxScene:false,onClosing:function(){return true},enableSearchTool:opts["enableSearchTool"]===true?true:false};if(this._config[Twidth]!=0){if(this._config[Twidth]<220)this._config[Twidth]=220;if(this._config[Twidth]>730)this._config[Twidth]=730}if(this._config[Theight]!=0){if(this._config[Theight]<60)this._config[Theight]=60;if(this._config[Theight]>650)this._config[Theight]=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=MapConfig.imgPath;this.overlay=null;var me=this;ModuleMgr.load("infowindow",function(){me._draw()})}baidu.lang.inherits(InfoWindow,baidu.lang.Class,"InfoWindow"); baidu[Textend](InfoWindow[Tprototype],{"setWidth":function(width){if(!width&&width!=0||isNaN(width)||width<0)return;if(width!=0){if(width<220)width=220;if(width>730)width=730}this._config[Twidth]=width},"setHeight":function(height){if(!height&&height!=0||isNaN(height)||height<0)return;if(height!=0){if(height<60)height=60;if(height>650)height=650}this._config[Theight]=height},setMaxWidth:function(width){if(!width&&width!=0||isNaN(width)||width<0)return;if(width!=0){if(width<220)width=220;if(width> 730)width=730}this._config.maxWidth=width},setTitle:function(title){this._config.title=title},"getTitle":function(){return this._config.title},setContent:function(content){this.content=content},getContent:function(){return this.content},setMaxContent:function(content){this._config.maxContent=content+""},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}});Map[Tprototype].openInfoWindow=function(infoWin,point){if(!(infoWin instanceof InfoWindow)||!(point instanceof Point))return;var t=this.temp;if(!t.marker){var icon=new Icon(MapConfig.imgPath+"blank.gif",{"width":1,"height":1});t.marker=new Marker(point,{"icon":icon,"offset":new Size(0,0),"clickable":false});t.marker._fromMap=1}else t.marker.setPosition(point);this.addOverlay(t.marker);t.marker.openInfoWindow(infoWin)}; Map[Tprototype].closeInfoWindow=function(){var infoWin=this.temp.infoWin||this.temp._infoWin;if(infoWin&&infoWin.overlay)infoWin.overlay.closeInfoWindow()};OverlayInternal[Tprototype].openInfoWindow=function(infoWin){if(this.map){this.map.closeInfoWindow();infoWin._visible=true;this.map.temp._infoWin=infoWin;infoWin.overlay=this;baidu.lang.Class.call(infoWin,infoWin.guid)}}; OverlayInternal[Tprototype].closeInfoWindow=function(){if(this.map&&this.map.temp._infoWin){this.map.temp._infoWin._visible=false;baidu.lang.decontrol(this.map.temp._infoWin.guid);this.map.temp._infoWin=null}};function Label(content,opts){OverlayInternal.call(this);this.content=content;this.map=null;this.domElement=null;opts=opts||{};this._config={width:0,offset:opts["offset"]||new Size(0,0),styles:{backgroundColor:"#fff",border:"1px solid #f00",padding:"1px",whiteSpace:"nowrap",font:"12px "+MapConfig.fontFamily,zIndex:"80",MozUserSelect:"none"},position:opts["position"]||null,enableMassClear:opts["enableMassClear"]===false?false:true,clickable:true};if(this._config[Twidth]<0)this._config[Twidth]=0;if(isDefined(opts["enableClicking"]))this._config.clickable= opts["enableClicking"];this.point=this._config[Tposition];var me=this;ModuleMgr.load("marker",function(){me._draw()})}baidu.lang.inherits(Label,OverlayInternal,"Label"); baidu[Textend](Label[Tprototype],{getPosition:function(){if(this._marker)return this._marker.getPosition();return this.point},setPosition:function(point){if(point instanceof Point&&!this.getMarker())this.point=this._config[Tposition]=new Point(point["lng"],point["lat"])},setContent:function(content){this.content=content},setOpacity:function(opacity){if(opacity>=0&&opacity<=1)this._config.opacity=opacity},setOffset:function(size){if(!(size instanceof Size))return;this._config.offset=new Size(size[Twidth], size[Theight])},getOffset:function(){return this._config.offset},setStyle:function(styles){styles=styles||{};this._config.styles=baidu[Textend](this._config.styles,styles)},setStyles:function(styles){return this.setStyle(styles)},setTitle:function(title){this._config.title=title||""},"getTitle":function(){return this._config.title},setMarker:function(marker){this._marker=marker;if(marker)this.point=this._config[Tposition]=marker.getPosition();else this.point=this._config[Tposition]=null},getMarker:function(){return this._marker|| null}});var BMAP_ANIMATION_DROP=1,BMAP_ANIMATION_BOUNCE=2;var DEFAULT_ICON=new Icon(MapConfig.imgPath+"marker_red_sprite.png",new Size(19,25),{"anchor":new Size(10,25),"infoWindowAnchor":new Size(10,0)});var DEFAULT_SHADOW=new Icon(MapConfig.imgPath+"marker_red_sprite.png",new Size(20,11),{"anchor":new Size(6,11),"imageOffset":new Size(-19,-13)}); function Marker(point,opts){OverlayInternal.call(this);opts=opts||{};this.point=point;this.map=null;this._animation=null;this._config={offset:opts["offset"]||new Size(0,0),icon:opts["icon"]||DEFAULT_ICON,shadow:DEFAULT_SHADOW,title:opts["title"]||"",label:null,baseZIndex:opts["baseZIndex"]||0,clickable:true,zIndexFixed:false,isTop:false,enableMassClear:true,enableDragging:false,raiseOnDrag:opts["raiseOnDrag"]||false,restrictDraggingArea:false,draggingCursor:opts["draggingCursor "]||MapConfig.draggingCursor}; if(opts["icon"]&&!opts["shadow"])this._config.shadow=null;if(opts["enableDragging"])this._config.enableDragging=opts["enableDragging"];if(opts["enableMassClear"])this._config.enableMassClear=opts["enableMassClear"];if(isDefined(opts["enableClicking"]))this._config.clickable=opts["enableClicking"];var me=this;ModuleMgr.load("marker",function(){me._draw()})}Marker.TOP_ZINDEX=Overlay.getZIndex(-90)+1E6;Marker.DRAG_ZINDEX=Marker.TOP_ZINDEX+1E6;baidu.lang.inherits(Marker,OverlayInternal,"Marker"); baidu[Textend](Marker[Tprototype],{setIcon:function(icon){if(icon instanceof Icon)this._config.icon=icon},getIcon:function(){return this._config.icon},setShadow:function(shadow){if(shadow instanceof Icon)this._config.shadow=shadow},"getShadow":function(){return this._config.shadow},setLabel:function(label){this._config.label=label||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(point){if(point instanceof Point)this.point=new Point(point["lng"],point["lat"])},setTop:function(top,addi){this._config.isTop=!!top;if(top)this._addi=addi||0},setTitle:function(title){this._config.title=title+""},"getTitle":function(){return this._config.title},setOffset:function(offset){if(offset instanceof Size)this._config.offset=offset},getOffset:function(){return this._config.offset},setAnimation:function(animation){this._animation= animation}});function Polygon(points,opts){Graph.call(this,opts);opts=opts||{};this._config.fillOpacity=opts["fillOpacity"]?opts["fillOpacity"]:0.65;if(opts.fillColor=="")this._config.fillColor="";else this._config.fillColor=opts["fillColor"]?opts["fillColor"]:"#fff";this.setPath(points);var me=this;ModuleMgr.load("poly",function(){me._draw()})}baidu.lang.inherits(Polygon,Graph,"Polygon"); baidu[Textend](Polygon[Tprototype],{setPath:function(points,flag){this._userPoints=Graph.getGraphPoints(points).slice(0);var pts=Graph.getGraphPoints(points).slice(0);if(pts[Tlength]>1&&!pts[0].equals(pts[pts[Tlength]-1]))pts.push(new Point(pts[0]["lng"],pts[0]["lat"]));Graph[Tprototype].setPath.call(this,pts,flag)},setPositionAt:function(index,point){if(!this._userPoints[index])return;this._userPoints[index]=new Point(point["lng"],point["lat"]);this.points[index]=new Point(point["lng"],point["lat"]); if(index==0&&!this.points[0].equals(this.points[this.points[Tlength]-1]))this.points[this.points[Tlength]-1]=new Point(point["lng"],point["lat"]);this._calcBounds()},getPath:function(){var res=this._userPoints;if(res[Tlength]==0)res=this.points;return res}});function Polyline(points,opts){Graph.call(this,opts);this._setPath(points);var me=this;ModuleMgr.load("poly",function(){me._draw()})}baidu.lang.inherits(Polyline,Graph,"Polyline");function Circle(center,radius,opts){this.point=center;this.radius=TMath.abs(radius);Polygon.call(this,[],opts)}Circle.parseTolerance=[0.01,1.0E-4,1.0E-5,4.0E-6];baidu.lang.inherits(Circle,Polygon,"Circle"); baidu[Textend](Circle[Tprototype],{"initialize":function(map){this.map=map;this.points=this._getPerimeterPoints(this.point,this.radius);this._calcBounds();return null},getCenter:function(){return this.point},setCenter:function(point,keepVertexCache){if(!point)return;this.point=point},getRadius:function(){return this.radius},setRadius:function(radius){this.radius=TMath.abs(radius)},_getPerimeterPoints:function(center,radius){if(!center||!radius||!this.map)return[];var map=this.map;var cx=center["lng"], cy=center["lat"];var points=[];var d=radius/6378800,lat1=TMath.PI/180*cy,lng1=TMath.PI/180*cx;for(var i=0;i<360;i+=9){var tc=TMath.PI/180*i,y=TMath.asin(TMath.sin(lat1)*TMath.cos(d)+TMath.cos(lat1)*TMath.sin(d)*TMath.cos(tc)),dlng=TMath.atan2(TMath.sin(tc)*TMath.sin(d)*TMath.cos(lat1),TMath.cos(d)-TMath.sin(lat1)*TMath.sin(y)),x=(lng1-dlng+TMath.PI)%(2*TMath.PI)-TMath.PI,point=new Point(x*(180/TMath.PI),y*(180/TMath.PI));points.push(point)}var fstPoint=points[0];points.push(new Point(fstPoint["lng"], fstPoint["lat"]));return points}});var MarkerAnimations={};function TileMgr(map){this.map=map;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);map.platform[TappendChild](this._mapTypeLayerContainer);map.platform[TappendChild](this._normalLayerContainer)}BMap.register(function(map){var mgr=new TileMgr(map);mgr.initialize()}); baidu[Textend](TileMgr[Tprototype],{initialize:function(){var me=this,map=me.map;map[TaddEventListener]("loadcode",function(){me.loadTiles()});map[TaddEventListener]("addtilelayer",function(e){me.addTileLayer(e)});map[TaddEventListener]("removetilelayer",function(e){me.removeTileLayer(e)});map[TaddEventListener]("setmaptype",function(e){me.setMapType(e)});map[TaddEventListener]("zoomstartcode",function(e){me._zoom(e)})},loadTiles:function(){var me=this;if(baidu.browser.ie)try{Tdocument.execCommand("BackgroundImageCache", false,true)}catch(e){}if(!this.loaded)me.initMapTypeTiles();me.moveGridTiles();if(!this.loaded){this.loaded=true;ModuleMgr.load("tile",function(){me._asyncLoadTiles()})}},initMapTypeTiles:function(){var mapType=this.map.getMapType();var layers=mapType.getTileLayers();for(var i=0;iinfo[0]||toRow<=info[0]||fromColumn>info[1]||toColumn<=info[1]))this.hideTile(tile)}var divLeft= -map[ToffsetX]+map[Twidth]/2;var divTop=-map[ToffsetY]+map[Theight]/2;tilelayer.tilesDiv.style.left=TMath.ceil(centerPixX+divLeft)-centerPosition[0]+"px";tilelayer.tilesDiv.style.top=TMath.ceil(centerPixY+divTop)-centerPosition[1]+"px";var tilesOrder=[];for(var i=fromRow;i0&&me._transparentPng)me.img.style.cssText+= ';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+me.src+'",sizingMethod=scale);'}var bufDiffer=tileMgr.realBufferNumber-tileMgr.bufferNumber;for(var tileName in bufferTiles){if(bufDiffer<=0)break;if(!tileMgr.mapTiles[tileName]){bufferTiles[tileName].mgr=null;var img=bufferTiles[tileName].img;if(img&&img[TparentNode]){img[TparentNode][TremoveChild](img);purge(img)}img=null;bufferTiles[tileName].img=null;delete bufferTiles[tileName];tileMgr.realBufferNumber--;bufDiffer--}}if(fadeInTile)new Animation({fps:20, duration:200,render:function(s){if(me.img&&me.img.style)me.img.style.opacity=s*1},finish:function(){if(me.img&&me.img.style)delete me.img.style.opacity}});me._callCbks()};this.img.onerror=function(){me._callCbks();if(!me.mgr)return;var tileMgr=me.mgr;var mapType=tileMgr.map.getMapType();if(mapType.getErrorImageUrl()){me.error=true;me.img.src=mapType.getErrorImageUrl();if(me.img&&!isInDocument(me.img))tilelayer.tilesDiv[TappendChild](me.img)}};tileImg=null}Tile[Tprototype]._addLoadCbk=function(cbk){this._cbks.push(cbk)}; Tile[Tprototype]._load=function(){if(baidu.browser.ie>0&&baidu.browser.ie<=6&&this._transparentPng)this.img.src=MapConfig.imgPath+"blank.gif";else this.img.src=this.src};Tile[Tprototype]._callCbks=function(){var me=this;for(var i=0;i8;function TileLayer(opts){this.opts=opts||{};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=TileLayer._guid++}TileLayer._guid=0;baidu.lang.inherits(TileLayer,baidu.lang.Class,"TileLayer"); baidu[Textend](TileLayer[Tprototype],{initialize:function(map,container){if(this.baseLayer)this.zIndex=-100;this.map=map;if(!this.tilesDiv){var div=create("div");var style=div.style;style[Tposition]="absolute";style.overflow="visible";style.zIndex=this.zIndex;style.left=TMath.ceil(-map[ToffsetX]+map[Twidth]/2)+"px";style.top=TMath.ceil(-map[ToffsetY]+map[Theight]/2)+"px";container[TappendChild](div);this.tilesDiv=div}var mapType=map.getMapType();if(map.highResolutionEnabled()&&mapType==BMAP_NORMAL_MAP){mapType._opts.tileSize= 128;var getZoomUnits=function(zoom){return TMath.pow(2,18-zoom)*2};mapType.getZoomUnits=getZoomUnits;mapType._opts.projection.getZoomUnits=getZoomUnits}},remove:function(){if(this.tilesDiv&&this.tilesDiv[TparentNode]){this.tilesDiv.innerHTML="";this.tilesDiv[TparentNode][TremoveChild](this.tilesDiv)}delete this.tilesDiv},isTransparentPng:function(){return this.transparentPng},"getTilesUrl":function(tileCoord,zoom){var url="";if(this.opts["tileUrlTemplate"]){url=this.opts["tileUrlTemplate"].replace(/\{X\}/, tileCoord.x);url=url.replace(/\{Y\}/,tileCoord.y);url=url.replace(/\{Z\}/,zoom)}return url},getCopyright:function(){return this.copyright},getMapType:function(){return this.mapType||BMAP_NORMAL_MAP}});function TrafficLayer(opts){TileLayer.call(this,opts);this._opts=opts||{};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/"}TrafficLayer[Tprototype]=new TileLayer; TrafficLayer[Tprototype].initialize=function(map,container){TileLayer[Tprototype].initialize.call(this,map,container);this._map=map};TrafficLayer[Tprototype].isTransparentPng=function(){return true}; TrafficLayer[Tprototype]["getTilesUrl"]=function(point,level){var pDate="";if(this._opts["predictDate"])pDate="HistoryService?"+"day="+(this._opts["predictDate"]["weekday"]-1)+"&hour="+this._opts["predictDate"]["hour"]+"&t="+(new Date).getTime()+"&";else{pDate="TrafficTileService?"+"time="+(new Date).getTime()+"&";if(!this._map.highResolutionEnabled())pDate+="label=web2D&v=016&"}var map=this._map,row=point.x,column=point.y,px=TMath.floor(row/200),py=TMath.floor(column/200),url=this._tileUrl+pDate+ "level="+level+"&x="+row+"&y="+column;return url.replace(/-(\d+)/gi,"M$1")};function MapType(name,layer,opts){this._name=name;this._layers=layer instanceof TileLayer?[layer]:layer.slice(0);opts=opts||{};this._opts={tips:opts["tips"]||"",labelText:"",minZoom:opts["minZoom"]||3,maxZoom:opts["maxZoom"]||19,highMinZoom:opts["minZoom"]||3,highMaxZoom:opts["maxZoom"]||18,tileSize:256,textColor:opts["textColor"]||"black",errorImageUrl:opts["errorImageUrl"]||"",projection:opts["projection"]||new MercatorProjection};if(this._layers[Tlength]>=1)this._layers[0].baseLayer=true;baidu[Textend](this._opts, opts)} baidu[Textend](MapType[Tprototype],{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}, getTileSize:function(){return this._opts.tileSize},getZoomUnits:function(zoom){return TMath.pow(2,18-zoom)},getZoomFactor:function(zoom){return this.getZoomUnits(zoom)*this.getTileSize()}});var TILE_BASE_URLS=["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 TILE_ONLINE_URLS=["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 normalMapTileLayer=new TileLayer; normalMapTileLayer["getTilesUrl"]=function(tileCoord,zoom){var row=tileCoord.x;var column=tileCoord.y;var udt="20150518";var styles="pl";if(this.map.highResolutionEnabled())styles="ph";var url=TILE_ONLINE_URLS[TMath.abs(row+column)%TILE_ONLINE_URLS[Tlength]]+"?qt=tile&x="+(row+"").replace(/-/gi,"M")+"&y="+(column+"").replace(/-/gi,"M")+"&z="+zoom+"&styles="+styles+(baidu.browser.ie==6?"&color_dep=32&colors=50":"")+"&udt="+udt;return url.replace(/-(\d+)/gi,"M$1")}; var BMAP_NORMAL_MAP=new MapType("\u5730\u56fe",normalMapTileLayer,{"tips":"\u663e\u793a\u666e\u901a\u5730\u56fe"});var PerspectiveTileLayer=new TileLayer;PerspectiveTileLayer.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/"]; PerspectiveTileLayer["getTilesUrl"]=function(tileCoord,zoom){var row=tileCoord.x;var column=tileCoord.y;var scale=TMath.pow(2,20-zoom)*256;column=TMath.round((9998336-scale*column)/scale)-1;url=this.tileUrls[TMath.abs(row+column)%this.tileUrls[Tlength]]+this.map.currentCity+"/"+this.map.cityCode+"/3/"+"lv"+(21-zoom)+"/"+row+","+column+"."+"jpg";return url}; var BMAP_PERSPECTIVE_MAP=new MapType("\u4e09\u7ef4",PerspectiveTileLayer,{"tips":"\u663e\u793a\u4e09\u7ef4\u5730\u56fe","minZoom":15,"maxZoom":20,"textColor":"white","projection":new PerspectiveProjection});BMAP_PERSPECTIVE_MAP.getZoomUnits=function(zoom){return TMath.pow(2,20-zoom)};BMAP_PERSPECTIVE_MAP.getCityName=function(cname){if(!cname)return"";var cns=MapConfig.cityNames;for(var cn in cns)if(cname.search(cn)>-1)return cns[cn].pinyin;return""}; BMAP_PERSPECTIVE_MAP.getCityCode=function(city){return{"bj":2,"gz":1,"sz":14,"sh":4}[city]};var satelliteTileLayer=new TileLayer({baseLayer:true});satelliteTileLayer["getTilesUrl"]=function(tileCoord,zoom){var row=tileCoord.x;var column=tileCoord.y;var url=TILE_BASE_URLS[TMath.abs(row+column)%TILE_BASE_URLS[Tlength]]+"u=x="+row+";y="+column+";z="+zoom+";v=009;type=sate&fm=46&udt=20141015";return url.replace(/-(\d+)/gi,"M$1")}; var BMAP_SATELLITE_MAP=new MapType("\u536b\u661f",satelliteTileLayer,{"tips":"\u663e\u793a\u536b\u661f\u5f71\u50cf","minZoom":1,"maxZoom":19,"textColor":"white"});var streetLayer=new TileLayer({"transparentPng":true}); streetLayer["getTilesUrl"]=function(tileCoord,zoom){var row=tileCoord.x;var column=tileCoord.y;var udt="20141015";var styles="sl";var url=TILE_ONLINE_URLS[TMath.abs(row+column)%TILE_ONLINE_URLS[Tlength]]+"?qt=tile&x="+(row+"").replace(/-/gi,"M")+"&y="+(column+"").replace(/-/gi,"M")+"&z="+zoom+"&styles="+styles+(baidu.browser.ie==6?"&color_dep=32&colors=50":"")+"&udt="+udt;return url.replace(/-(\d+)/gi,"M$1")}; var BMAP_HYBRID_MAP=new MapType("\u6df7\u5408",[satelliteTileLayer,streetLayer],{"tips":"\u663e\u793a\u5e26\u6709\u8857\u9053\u7684\u536b\u661f\u5f71\u50cf","labelText":"\u8def\u7f51","minZoom":1,"maxZoom":19,"textColor":"white"});var BMAP_POI_TYPE_NORMAL=0,BMAP_POI_TYPE_BUSSTOP=1,BMAP_POI_TYPE_BUSLINE=2,BMAP_POI_TYPE_SUBSTOP=3,BMAP_POI_TYPE_SUBLINE=4;var ROUTE_TYPE_DEFAULT=0;var ROUTE_TYPE_TRANSIT=1;var APIPack={};window.APIPack=APIPack;function BaseSearch(loc,opts){baidu.lang.Class.call(this);this._loc={};this.setLocation(loc);opts=opts||{};opts.renderOptions=opts["renderOptions"]||{};this._opts={renderOptions:{panel:opts.renderOptions["panel"]||null,map:opts.renderOptions["map"]||null,autoViewport:opts.renderOptions["autoViewport"]||true,selectFirstResult:opts.renderOptions["selectFirstResult"],highlightMode:opts.renderOptions["highlightMode"],enableDragging:opts.renderOptions["enableDragging"]||false},onSearchComplete:opts["onSearchComplete"]|| function(){},onMarkersSet:opts["onMarkersSet"]||function(){},onInfoHtmlSet:opts["onInfoHtmlSet"]||function(){},onResultsHtmlSet:opts["onResultsHtmlSet"]||function(){},onGetBusListComplete:opts["onGetBusListComplete"]||function(){},onGetBusLineComplete:opts["onGetBusLineComplete"]||function(){},onBusListHtmlSet:opts["onBusListHtmlSet"]||function(){},onBusLineHtmlSet:opts["onBusLineHtmlSet"]||function(){},onPolylinesSet:opts["onPolylinesSet"]||function(){},reqFrom:opts["reqFrom"]||""};if(typeof opts!= "undefined"&&typeof opts["renderOptions"]!="undefined"&&typeof opts["renderOptions"]["autoViewport"]!="undefined")this._opts.renderOptions.autoViewport=opts["renderOptions"]["autoViewport"];else this._opts.renderOptions.autoViewport=true;this._opts.renderOptions.panel=baidu.G(this._opts.renderOptions.panel)}baidu.inherits(BaseSearch,baidu.lang.Class); baidu[Textend](BaseSearch[Tprototype],{"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(loc){if(!loc)return;this._loc.src=loc},setSearchCompleteCallback:function(cbk){this._opts.onSearchComplete=cbk||function(){}},"setMarkersSetCallback":function(cbk){this._opts.onMarkersSet=cbk|| function(){}},"setPolylinesSetCallback":function(cbk){this._opts.onPolylinesSet=cbk||function(){}},"setInfoHtmlSetCallback":function(cbk){this._opts.onInfoHtmlSet=cbk||function(){}},"setResultsHtmlSetCallback":function(cbk){this._opts.onResultsHtmlSet=cbk||function(){}},getStatus:function(){return this._status}});var SearchRequestMgr={REQ_BASE_URL:"http://api.map.baidu.com/",request:function(cbk,params,userData,path,disableLog){var timeStamp=(TMath.random()*1E5).toFixed(0);BMap["_rd"]["_cbk"+timeStamp]=function(json){userData=userData||{};cbk&&cbk(json,userData);delete BMap["_rd"]["_cbk"+timeStamp]};path=path||"";var reqParam;if(userData&&userData.useEncodeURI)reqParam=jsonToQuery(params,encodeURI);else reqParam=jsonToQuery(params,encodeURIComponent);var me=this,url=me.REQ_BASE_URL+path+"?"+reqParam+"&ie=utf-8&oue=1&fromproduct=jsapi"; if(!disableLog)url+="&res=api";url+="&callback=BMap._rd._cbk"+timeStamp;DataMgr.request(url)}};window.SearchRequestMgr=SearchRequestMgr;BMap["_rd"]={};var SUtil={};window.SUtil=SUtil;SUtil.removeHtml=function(s){return s.replace(/<\/?b>/g,"")};SUtil.parseGeoExtReg1=function(s){return s.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;")};SUtil.parseGeoExtReg2=function(s,factor){var _re=new TRegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){"+factor+"}","ig");return s.replace(_re,"$1")};var BMAP_STATUS_SUCCESS=0,BMAP_STATUS_CITY_LIST=1,BMAP_STATUS_UNKNOWN_LOCATION=2,BMAP_STATUS_UNKNOWN_ROUTE=3,BMAP_STATUS_INVALID_KEY=4,BMAP_STATUS_INVALID_REQUEST=5,BMAP_STATUS_PERMISSION_DENIED=6,BMAP_STATUS_SERVICE_UNAVAILABLE=7,BMAP_STATUS_TIMEOUT=8;var BMAP_ROUTE_TYPE_WALKING=2,BMAP_ROUTE_TYPE_DRIVING=3;var BMAP_ROUTE_STATUS_NORMAL=0,BMAP_ROUTE_STATUS_EMPTY=1,BMAP_ROUTE_STATUS_ADDRESS=2;var QUERY_TYPE_CURRENT_CITY="cur";var QUERY_TYPE_CENTER="cen";var QUERY_TYPE_POI_SEARCH="s"; var QUERY_TYPE_POI_SEARCH_CON="con";var QUERY_TYPE_SEARCH_INBOUNDS="bd";var QUERY_TYPE_SEARCH_NEARBY="nb";var QUERY_TYPE_TRANSIT="bt";var QUERY_TYPE_DRIVING="nav";var QUERY_TYPE_WALKING="walk";var QUERY_TYPE_GEOCODER="gc";var QUERY_TYPE_REVERSE_GEOCODER="rgc";var QUERY_TYPE_LOCALCITY="dec";var QUERY_TYPE_TRANSIT_SINGLE="bse";var QUERY_TYPE_DRIVING_SINGLE="nse";var QUERY_TYPE_BUSLIST="bl";var QUERY_TYPE_BUSLINE="bsl";var QUERY_TYPE_SEARCH_INBOUNDS_MULTIKEY="bda";var QUERY_TYPE_SEARCH_MULTIKEY="sa"; var QUERY_TYPE_SEARCH_NEARBY_MULTIKEY="nba";var QUERY_TYPE_DARG="drag";var QUERY_TYPE_EXT="ext";var RETURN_TYPE_CURRENT_CITY=2;var RETURN_TYPE_CENTER=4;var RETURN_TYPE_CITY_LIST=7;var RETURN_TYPE_POI_SEARCH=11;var RETURN_TYPE_SEARCH_NEARBY=12;var RETURN_TYPE_TRANSIT=14;var RETURN_TYPE_BUSLIST=15;var RETURN_TYPE_BUSLINE=18;var RETURN_TYPE_DRIVING=20;var RETURN_TYPE_SEARCH_INBOUNDS=21;var RETURN_TYPE_ROUTE_ADDRESS=23;var RETURN_TYPE_SPECIAL_REGION=26;var RETURN_TYPE_NODATA_REGION=28; var RETURN_TYPE_WALKING=31;var RETURN_TYPE_GEOCODER=35;var RETURN_TYPE_REVERSE_GEOCODER=44;var RETURN_TYPE_SEARCH_INBOUNDS_MULTIKEY=45;var RETURN_TYPE_SEARCH_MULTIKEY=46;var RETURN_TYPE_SEARCH_NEARBY_MULTIKEY=47;var LOC_TYPE_UNKNOWN=-1;var LOC_TYPE_MAP=0;var LOC_TYPE_POINT=1;var LOC_TYPE_STRING=2;var LOC_TYPE_NUMBER=3;var MAP_URL="http://map.baidu.com/";var API_URL="http://api.map.baidu.com/";BMap["I"]=window["Instance"]=baidu.lang.instance;var LocalSearch=function(loc,opts){BaseSearch.call(this,loc,opts);opts=opts||{};opts["renderOptions"]=opts["renderOptions"]||{};this.setPageCapacity(opts["pageCapacity"]);if(typeof opts["renderOptions"]["selectFirstResult"]!="undefined"&&!opts["renderOptions"]["selectFirstResult"])this.disableFirstResultSelection();else this.enableFirstResultSelection();this._overlays=[];this._arrPois=[];this._curIndex=-1;this._queryList=[];var me=this;ModuleMgr.load("local",function(){me._check()},true)}; baidu.inherits(LocalSearch,BaseSearch,"LocalSearch");LocalSearch.DEFAULT_PAGE_CAPACITY=10;LocalSearch.MIN_PAGE_CAPACITY=1;LocalSearch.MAX_PAGE_CAPACITY=100;LocalSearch.DEFAULT_RADIUS=2E3;LocalSearch.MAX_RADIUS=1E5; baidu[Textend](LocalSearch[Tprototype],{search:function(keyword,options){this._queryList.push({method:"search",arguments:[keyword,options]})},searchInBounds:function(keyword,bounds,options){this._queryList.push({method:"searchInBounds",arguments:[keyword,bounds,options]})},searchNearby:function(keyword,center,radius,options){this._queryList.push({method:"searchNearby",arguments:[keyword,center,radius,options]})},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(cap){if(typeof cap=="number"&&!isNaN(cap))this._opts.pageCapacity=cap<1?LocalSearch.DEFAULT_PAGE_CAPACITY:cap>LocalSearch.MAX_PAGE_CAPACITY?LocalSearch.DEFAULT_PAGE_CAPACITY: cap;else this._opts.pageCapacity=LocalSearch.DEFAULT_PAGE_CAPACITY},getPageCapacity:function(){return this._opts.pageCapacity},toString:function(){return"LocalSearch"}});var LocalSearchP=LocalSearch[Tprototype]; exportSymbol(LocalSearchP,{"clearResults":LocalSearchP.clearResults,"setPageCapacity":LocalSearchP.setPageCapacity,"getPageCapacity":LocalSearchP.getPageCapacity,"gotoPage":LocalSearchP.gotoPage,"searchNearby":LocalSearchP.searchNearby,"searchInBounds":LocalSearchP.searchInBounds,"search":LocalSearchP.search,"enableFirstResultSelection":LocalSearchP.enableFirstResultSelection,"disableFirstResultSelection":LocalSearchP.disableFirstResultSelection});var BaseRoute=function(loc,opts){BaseSearch.call(this,loc,opts)};baidu.inherits(BaseRoute,BaseSearch,"BaseRoute");baidu[Textend](BaseRoute[Tprototype],{clearResults:function(){}});var BMAP_TRANSIT_POLICY_LEAST_TIME=0,BMAP_TRANSIT_POLICY_LEAST_TRANSFER=2,BMAP_TRANSIT_POLICY_LEAST_WALKING=3,BMAP_TRANSIT_POLICY_AVOID_SUBWAYS=4;var BMAP_LINE_TYPE_BUS=0,BMAP_LINE_TYPE_SUBWAY=1,BMAP_LINE_TYPE_FERRY=2; function TransitRoute(loc,opts){BaseRoute.call(this,loc,opts);opts=opts||{};this.setPolicy(opts["policy"]);this.setPageCapacity(opts["pageCapacity"]);this.QUERY_TYPE=QUERY_TYPE_TRANSIT;this.RETURN_TYPE=RETURN_TYPE_TRANSIT;this.ROUTE_TYPE=ROUTE_TYPE_TRANSIT;this._overlays=[];this._curIndex=-1;this._queryList=[];var me=this;ModuleMgr.load("route",function(){me._asyncSearch()})}TransitRoute.MAX_PAGE_CAPACITY=100;TransitRoute.LINE_TYPE_MAPPING=[0,1,0,0,0,0,0,0,2,0,0,0,1,1,1]; baidu.inherits(TransitRoute,BaseRoute,"TransitRoute"); baidu[Textend](TransitRoute[Tprototype],{setPolicy:function(policy){if(policy>=BMAP_TRANSIT_POLICY_LEAST_TIME&&policy<=BMAP_TRANSIT_POLICY_AVOID_SUBWAYS)this._opts.policy=policy;else this._opts.policy=BMAP_TRANSIT_POLICY_LEAST_TIME},_internalSearch:function(sn,en){this._queryList.push({method:"_internalSearch",arguments:[sn,en]})},search:function(start,end){this._queryList.push({method:"search",arguments:[start,end]})},setPageCapacity:function(cp){if(typeof cp=="string"){cp=TparseInt(cp);if(isNaN(cp)){this._opts.pageCapacity= TransitRoute.MAX_PAGE_CAPACITY;return}}if(typeof cp!="number"){this._opts.pageCapacity=TransitRoute.MAX_PAGE_CAPACITY;return}if(cp>=1&&cp<=TransitRoute.MAX_PAGE_CAPACITY)this._opts.pageCapacity=TMath.round(cp);else this._opts.pageCapacity=TransitRoute.MAX_PAGE_CAPACITY},toString:function(){return"TransitRoute"},_shortTitle:function(title){return title.replace(/\(.*\)/,"")}});var BMAP_HIGHLIGHT_STEP=1,BMAP_HIGHLIGHT_ROUTE=2; var DWRoute=function(location,opts){BaseRoute.call(this,location,opts);this._overlays=[];this._curIndex=-1;this._queryList=[];var me=this;var renderOptions=this._opts.renderOptions;if(renderOptions.highlightMode!=BMAP_HIGHLIGHT_STEP&&renderOptions.highlightMode!=BMAP_HIGHLIGHT_ROUTE)renderOptions.highlightMode=BMAP_HIGHLIGHT_STEP;this._enableDragging=this._opts.renderOptions.enableDragging?true:false;ModuleMgr.load("route",function(){me._asyncSearch()});if(this.init_d)this.init_d()}; DWRoute.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"];baidu.inherits(DWRoute,BaseRoute,"DWRoute");baidu[Textend](DWRoute[Tprototype],{search:function(start,end,opts){this._queryList.push({method:"search",arguments:[start,end,opts]})}});var BMAP_DRIVING_POLICY_LEAST_TIME=0,BMAP_DRIVING_POLICY_LEAST_DISTANCE=1,BMAP_DRIVING_POLICY_AVOID_HIGHWAYS=2;function DrivingRoute(location,opts){DWRoute.call(this,location,opts);opts=opts||{};this.setPolicy(opts["policy"]);this.QUERY_TYPE=QUERY_TYPE_DRIVING;this.RETURN_TYPE=RETURN_TYPE_DRIVING;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_DRIVING}baidu.inherits(DrivingRoute,DWRoute,"DrivingRoute"); baidu[Textend](DrivingRoute[Tprototype],{setPolicy:function(policy){if(policy>=BMAP_DRIVING_POLICY_LEAST_TIME&&policy<=BMAP_DRIVING_POLICY_AVOID_HIGHWAYS)this._opts.policy=policy;else this._opts.policy=BMAP_DRIVING_POLICY_LEAST_TIME}});function WalkingRoute(location,opts){DWRoute.call(this,location,opts);this.QUERY_TYPE=QUERY_TYPE_WALKING;this.RETURN_TYPE=RETURN_TYPE_WALKING;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_WALKING;this._enableDragging=false}baidu.inherits(WalkingRoute,DWRoute,"WalkingRoute");function Geocoder(opts){this._opts={};baidu[Textend](this._opts,opts);this._queryList=[];var me=this;ModuleMgr.load("othersearch",function(){me._asyncSearch()})}baidu.inherits(Geocoder,baidu.lang.Class,"Geocoder");baidu[Textend](Geocoder[Tprototype],{getPoint:function(address,callback,city){this._queryList.push({method:"getPoint",arguments:[address,callback,city]})},getLocation:function(point,callback,opts){this._queryList.push({method:"getLocation",arguments:[point,callback,opts]})},"toString":function(){return"Geocoder"}}); var GeocoderP=Geocoder[Tprototype];exportSymbol(GeocoderP,{"getPoint":GeocoderP.getPoint,"getLocation":GeocoderP.getLocation});function Geolocation(opts){this._opts={};baidu[Textend](this._opts,opts);this._queryList=[];var me=this;ModuleMgr.load("othersearch",function(){me._asyncSearch()})}baidu[Textend](Geolocation[Tprototype],{getCurrentPosition:function(callback,opts){this._queryList.push({method:"getCurrentPosition",arguments:[callback,opts]})},getStatus:function(){return this._status}});var GeolocationP=Geolocation[Tprototype];exportSymbol(GeolocationP,{"getCurrentPosition":GeolocationP.getCurrentPosition,"getStatus":GeolocationP.getStatus});function LocalCity(opts){opts=opts||{};opts.renderOptions=opts["renderOptions"]||{};this._opts={renderOptions:{map:opts.renderOptions["map"]||null}};this._queryList=[];var me=this;ModuleMgr.load("othersearch",function(){me._asyncSearch()})}baidu.inherits(LocalCity,baidu.lang.Class,"LocalCity");baidu[Textend](LocalCity[Tprototype],{"get":function(callback){this._queryList.push({method:"get",arguments:[callback]})},"toString":function(){return"LocalCity"}});function Boundary(){this._queryList=[];var me=this;ModuleMgr.load("othersearch",function(){me._asyncSearch()})}baidu.inherits(Boundary,baidu.lang.Class,"Boundary");baidu[Textend](Boundary[Tprototype],{get:function(name,cbk){this._queryList.push({method:"get",arguments:[name,cbk]})},toString:function(){return"Boundary"}});function BusLineSearch(loc,opts){BaseSearch.call(this,loc,opts);this.QUERY_TYPE_BUSLIST=QUERY_TYPE_BUSLIST;this.RETURN_TYPE_BUSLIST=RETURN_TYPE_BUSLIST;this.QUERY_TYPE_BUSLINE=QUERY_TYPE_BUSLINE;this.RETURN_TYPE_BUSLINE=RETURN_TYPE_BUSLINE;this._queryList=[];var me=this;ModuleMgr.load("buslinesearch",function(){me._asyncSearch()})}BusLineSearch._iconOpen=MapConfig.imgPath+"iw_plus.gif";BusLineSearch._iconClose=MapConfig.imgPath+"iw_minus.gif";BusLineSearch._stopUrl=MapConfig.imgPath+"stop_icon.png"; baidu.inherits(BusLineSearch,BaseSearch); baidu[Textend](BusLineSearch[Tprototype],{"getBusList":function(lineName){this._queryList.push({method:"getBusList",arguments:[lineName]})},"getBusLine":function(busListItem){this._queryList.push({method:"getBusLine",arguments:[busListItem]})},"setGetBusListCompleteCallback":function(cbk){this._opts.onGetBusListComplete=cbk||function(){}},"setGetBusLineCompleteCallback":function(cbk){this._opts.onGetBusLineComplete=cbk||function(){}},"setBusListHtmlSetCallback":function(cbk){this._opts.onBusListHtmlSet=cbk|| function(){}},"setBusLineHtmlSetCallback":function(cbk){this._opts.onBusLineHtmlSet=cbk||function(){}},"setPolylinesSetCallback":function(cbk){this._opts.onPolylinesSet=cbk||function(){}}});function Autocomplete(opts){BaseSearch.call(this,opts);opts=opts||{};this._options={input:opts["input"]||null,baseDom:opts["baseDom"]||null,types:opts["types"]||[],onSearchComplete:opts["onSearchComplete"]||function(){}};this._loc.src=opts["location"]||"\u5168\u56fd";this._word="";this._show=false;this._suggestion=null;this._inputValue="";this._initialize();_addStat(5011);var me=this;ModuleMgr.load("autocomplete",function(){me._asyncSearch()})}baidu.inherits(Autocomplete,BaseSearch,"Autocomplete"); baidu[Textend](Autocomplete[Tprototype],{_initialize:function(){},show:function(){this._show=true},hide:function(){this._show=false},setTypes:function(types){this._options.types=types},setLocation:function(location){this._loc.src=location},search:function(word){this._word=word},setInputValue:function(value){this._inputValue=value}});var MapPoiClick;function makeGlobal(name,value){BMap[name]=value}makeGlobal("Map",Map);makeGlobal("Hotspot",Hotspot);makeGlobal("MapType",MapType);makeGlobal("Point",Point);makeGlobal("Pixel",Pixel);makeGlobal("Size",Size);makeGlobal("Bounds",Bounds);makeGlobal("TileLayer",TileLayer);makeGlobal("Projection",Projection);makeGlobal("MercatorProjection",MercatorProjection);makeGlobal("PerspectiveProjection",PerspectiveProjection);makeGlobal("Copyright",Copyright);makeGlobal("Overlay",Overlay);makeGlobal("Label",Label); makeGlobal("Marker",Marker);makeGlobal("Icon",Icon);makeGlobal("Polyline",Polyline);makeGlobal("Polygon",Polygon);makeGlobal("InfoWindow",InfoWindow);makeGlobal("Circle",Circle);makeGlobal("Control",Control);makeGlobal("NavigationControl",NavigationControl);makeGlobal("GeolocationControl",GeolocationControl);makeGlobal("OverviewMapControl",OverviewMapControl);makeGlobal("CopyrightControl",CopyrightControl);makeGlobal("ScaleControl",ScaleControl);makeGlobal("MapTypeControl",MapTypeControl); makeGlobal("TrafficLayer",TrafficLayer);makeGlobal("ContextMenu",ContextMenu);makeGlobal("MenuItem",MenuItem);makeGlobal("LocalSearch",LocalSearch);makeGlobal("TransitRoute",TransitRoute);makeGlobal("DrivingRoute",DrivingRoute);makeGlobal("WalkingRoute",WalkingRoute);makeGlobal("Autocomplete",Autocomplete);makeGlobal("Geocoder",Geocoder);makeGlobal("LocalCity",LocalCity);makeGlobal("Geolocation",Geolocation);makeGlobal("BusLineSearch",BusLineSearch);makeGlobal("Boundary",Boundary);function exportProperty(object,publicName,symbol){object[publicName]=symbol}function exportSymbol(object,opts){for(var property in opts)object[property]=opts[property]}exportSymbol(window,{"BMap":BMap,"_jsload":_jsload,"BMAP_API_VERSION":BMAP_API_VERSION});var MapP=Map[Tprototype]; exportSymbol(MapP,{"getBounds":MapP.getBounds,"getCenter":MapP.getCenter,"getMapType":MapP.getMapType,"getSize":MapP.getSize,"setSize":MapP.setSize,"getViewport":MapP.getViewport,"getZoom":MapP.getZoom,"centerAndZoom":MapP.centerAndZoom,"panTo":MapP.panTo,"panBy":MapP.panBy,"setCenter":MapP.setCenter,"setCurrentCity":MapP.setCurrentCity,"setMapType":MapP.setMapType,"setViewport":MapP.setViewport,"setZoom":MapP.setZoom,"highResolutionEnabled":MapP.highResolutionEnabled,"zoomTo":MapP.zoomTo,"zoomIn":MapP.zoomIn, "zoomOut":MapP.zoomOut,"addHotspot":MapP.addHotspot,"removeHotspot":MapP.removeHotspot,"clearHotspots":MapP.clearHotspots,"checkResize":MapP.checkResize,"addControl":MapP.addControl,"removeControl":MapP.removeControl,"getContainer":MapP.getContainer,"addContextMenu":MapP.addContextMenu,"removeContextMenu":MapP.removeContextMenu,"addOverlay":MapP.addOverlay,"removeOverlay":MapP.removeOverlay,"clearOverlays":MapP.clearOverlays,"openInfoWindow":MapP.openInfoWindow,"closeInfoWindow":MapP.closeInfoWindow, "pointToOverlayPixel":MapP.pointToOverlayPixel,"overlayPixelToPoint":MapP.overlayPixelToPoint,"getInfoWindow":MapP.getInfoWindow,"getOverlays":MapP.getOverlays,"getPanes":function(){return{"floatPane":this._panes.floatPane,"markerMouseTarget":this._panes.markerMouseTarget,"floatShadow":this._panes.floatShadow,"labelPane":this._panes.labelPane,"markerPane":this._panes.markerPane,"markerShadow":this._panes.markerShadow,"mapPane":this._panes.mapPane}},"addTileLayer":MapP.addTileLayer,"removeTileLayer":MapP.removeTileLayer, "pixelToPoint":MapP.pixelToPoint,"pointToPixel":MapP.pointToPixel});var MapTypeP=MapType[Tprototype];exportSymbol(MapTypeP,{"getTileLayer":MapTypeP.getTileLayer,"getMinZoom":MapTypeP.getMinZoom,"getMaxZoom":MapTypeP.getMaxZoom,"getProjection":MapTypeP.getProjection,"getTextColor":MapTypeP.getTextColor,"getTips":MapTypeP.getTips});exportSymbol(window,{"BMAP_NORMAL_MAP":BMAP_NORMAL_MAP,"BMAP_PERSPECTIVE_MAP":BMAP_PERSPECTIVE_MAP,"BMAP_SATELLITE_MAP":BMAP_SATELLITE_MAP,"BMAP_HYBRID_MAP":BMAP_HYBRID_MAP}); var MercatorProjectionP=MercatorProjection[Tprototype];exportSymbol(MercatorProjectionP,{"lngLatToPoint":MercatorProjectionP.lngLatToPoint,"pointToLngLat":MercatorProjectionP.pointToLngLat});var PerspectiveProjectionP=PerspectiveProjection[Tprototype];exportSymbol(PerspectiveProjectionP,{"lngLatToPoint":PerspectiveProjectionP.lngLatToPoint,"pointToLngLat":PerspectiveProjectionP.pointToLngLat});var BoundsP=Bounds[Tprototype]; exportSymbol(BoundsP,{"equals":BoundsP.equals,"containsPoint":BoundsP.containsPoint,"containsBounds":BoundsP.containsBounds,"intersects":BoundsP.intersects,"extend":BoundsP[Textend],"getCenter":BoundsP.getCenter,"isEmpty":BoundsP.isEmpty,"getSouthWest":BoundsP.getSouthWest,"getNorthEast":BoundsP.getNorthEast,"toSpan":BoundsP.toSpan});var OverlayP=Overlay[Tprototype];exportSymbol(OverlayP,{"isVisible":OverlayP.isVisible,"show":OverlayP.show,"hide":OverlayP.hide}); exportProperty(Overlay,"getZIndex",Overlay.getZIndex);var OverlayInternalP=OverlayInternal[Tprototype];exportSymbol(OverlayInternalP,{"openInfoWindow":OverlayInternalP.openInfoWindow,"closeInfoWindow":OverlayInternalP.closeInfoWindow,"enableMassClear":OverlayInternalP.enableMassClear,"disableMassClear":OverlayInternalP.disableMassClear,"show":OverlayInternalP.show,"hide":OverlayInternalP.hide,"getMap":OverlayInternalP.getMap});var MarkerP=Marker[Tprototype]; exportSymbol(MarkerP,{"setIcon":MarkerP.setIcon,"getIcon":MarkerP.getIcon,"setPosition":MarkerP.setPosition,"getPosition":MarkerP.getPosition,"setOffset":MarkerP.setOffset,"getOffset":MarkerP.getOffset,"getLabel":MarkerP.getLabel,"setLabel":MarkerP.setLabel,"setTitle":MarkerP.setTitle,"setTop":MarkerP.setTop,"enableDragging":MarkerP.enableDragging,"disableDragging":MarkerP.disableDragging,"setZIndex":MarkerP.setZIndex,"getMap":MarkerP.getMap,"addContextMenu":MarkerP.addContextMenu,"removeContextMenu":MarkerP.removeContextMenu, "setAnimation":MarkerP.setAnimation,"setShadow":MarkerP.setShadow,"hide":MarkerP.hide});exportSymbol(window,{"BMAP_ANIMATION_DROP":BMAP_ANIMATION_DROP,"BMAP_ANIMATION_BOUNCE":BMAP_ANIMATION_BOUNCE});var LabelP=Label[Tprototype]; exportSymbol(LabelP,{"setStyle":LabelP.setStyle,"setStyles":LabelP.setStyles,"setContent":LabelP.setContent,"setPosition":LabelP.setPosition,"getPosition":LabelP.getPosition,"setOffset":LabelP.setOffset,"getOffset":LabelP.getOffset,"setTitle":LabelP.setTitle,"setZIndex":LabelP.setZIndex,"getMap":LabelP.getMap});var IconP=Icon[Tprototype]; exportSymbol(IconP,{"setImageUrl":IconP.setImageUrl,"setSize":IconP.setSize,"setAnchor":IconP.setAnchor,"setImageOffset":IconP.setImageOffset,"setImageSize":IconP.setImageSize,"setInfoWindowAnchor":IconP.setInfoWindowAnchor,"setPrintImageUrl":IconP.setPrintImageUrl});var InfoWindowP=InfoWindow[Tprototype]; exportSymbol(InfoWindowP,{"redraw":InfoWindowP.redraw,"setTitle":InfoWindowP.setTitle,"setContent":InfoWindowP.setContent,"getContent":InfoWindowP.getContent,"getPosition":InfoWindowP.getPosition,"enableMaximize":InfoWindowP.enableMaximize,"disableMaximize":InfoWindowP.disableMaximize,"isOpen":InfoWindowP.isOpen,"setMaxContent":InfoWindowP.setMaxContent,"maximize":InfoWindowP.maximize,"enableAutoPan":InfoWindowP.enableAutoPan});var GraphP=Graph[Tprototype]; exportSymbol(GraphP,{"getPath":GraphP.getPath,"setPath":GraphP.setPath,"setPositionAt":GraphP.setPositionAt,"getStrokeColor":GraphP.getStrokeColor,"setStrokeWeight":GraphP.setStrokeWeight,"getStrokeWeight":GraphP.getStrokeWeight,"setStrokeOpacity":GraphP.setStrokeOpacity,"getStrokeOpacity":GraphP.getStrokeOpacity,"setFillOpacity":GraphP.setFillOpacity,"getFillOpacity":GraphP.getFillOpacity,"setStrokeStyle":GraphP.setStrokeStyle,"getStrokeStyle":GraphP.getStrokeStyle,"getFillColor":GraphP.getFillColor, "getBounds":GraphP.getBounds,"enableEditing":GraphP.enableEditing,"disableEditing":GraphP.disableEditing});var CircleP=Circle[Tprototype];exportSymbol(CircleP,{"setCenter":CircleP.setCenter,"getCenter":CircleP.getCenter,"getRadius":CircleP.getRadius,"setRadius":CircleP.setRadius});var PolygonP=Polygon[Tprototype];exportSymbol(PolygonP,{"getPath":PolygonP.getPath,"setPath":PolygonP.setPath,"setPositionAt":PolygonP.setPositionAt});var HotspotP=Hotspot[Tprototype]; exportSymbol(HotspotP,{"getPosition":HotspotP.getPosition,"setPosition":HotspotP.setPosition,"getText":HotspotP.getText,"setText":HotspotP.setText});exportProperty(Point[Tprototype],"equals",Point[Tprototype].equals);exportProperty(Pixel[Tprototype],"equals",Pixel[Tprototype].equals);exportProperty(Size[Tprototype],"equals",Size[Tprototype].equals); exportSymbol(window,{"BMAP_ANCHOR_TOP_LEFT":BMAP_ANCHOR_TOP_LEFT,"BMAP_ANCHOR_TOP_RIGHT":BMAP_ANCHOR_TOP_RIGHT,"BMAP_ANCHOR_BOTTOM_LEFT":BMAP_ANCHOR_BOTTOM_LEFT,"BMAP_ANCHOR_BOTTOM_RIGHT":BMAP_ANCHOR_BOTTOM_RIGHT});var ControlP=Control[Tprototype];exportSymbol(ControlP,{"setAnchor":ControlP.setAnchor,"getAnchor":ControlP.getAnchor,"setOffset":ControlP.setOffset,"getOffset":ControlP.getOffset,"show":ControlP.show,"hide":ControlP.hide,"isVisible":ControlP.isVisible,"toString":ControlP.toString}); var NavigationControlP=NavigationControl[Tprototype];exportSymbol(NavigationControlP,{"getType":NavigationControlP.getType,"setType":NavigationControlP.setType});exportSymbol(window,{"BMAP_NAVIGATION_CONTROL_LARGE":BMAP_NAVIGATION_CONTROL_LARGE,"BMAP_NAVIGATION_CONTROL_SMALL":BMAP_NAVIGATION_CONTROL_SMALL,"BMAP_NAVIGATION_CONTROL_PAN":BMAP_NAVIGATION_CONTROL_PAN,"BMAP_NAVIGATION_CONTROL_ZOOM":BMAP_NAVIGATION_CONTROL_ZOOM});var OverviewMapControlP=OverviewMapControl[Tprototype]; exportSymbol(OverviewMapControlP,{"changeView":OverviewMapControlP.changeView,"setSize":OverviewMapControlP.setSize,"getSize":OverviewMapControlP.getSize});var ScaleControlP=ScaleControl[Tprototype];exportSymbol(ScaleControlP,{"getUnit":ScaleControlP.getUnit,"setUnit":ScaleControlP.setUnit});exportSymbol(window,{"BMAP_UNIT_METRIC":BMAP_UNIT_METRIC,"BMAP_UNIT_IMPERIAL":BMAP_UNIT_IMPERIAL});var CopyrightControlP=CopyrightControl[Tprototype]; exportSymbol(CopyrightControlP,{"addCopyright":CopyrightControlP.addCopyright,"removeCopyright":CopyrightControlP.removeCopyright,"getCopyright":CopyrightControlP.getCopyright,"getCopyrightCollection":CopyrightControlP.getCopyrightCollection});exportSymbol(window,{"BMAP_MAPTYPE_CONTROL_HORIZONTAL":BMAP_MAPTYPE_CONTROL_HORIZONTAL,"BMAP_MAPTYPE_CONTROL_DROPDOWN":BMAP_MAPTYPE_CONTROL_DROPDOWN});var TileLayerP=TileLayer[Tprototype]; exportSymbol(TileLayerP,{"getMapType":TileLayerP.getMapType,"getCopyright":TileLayerP.getCopyright,"isTransparentPng":TileLayerP.isTransparentPng});var ContextMenuP=ContextMenu[Tprototype];exportSymbol(ContextMenuP,{"addItem":ContextMenuP.addItem,"addSeparator":ContextMenuP.addSeparator,"removeSeparator":ContextMenuP.removeSeparator});var MenuItemP=MenuItem[Tprototype];exportSymbol(MenuItemP,{"setText":MenuItemP.setText});var BaseSearchP=BaseSearch[Tprototype]; exportSymbol(BaseSearchP,{"getStatus":BaseSearchP.getStatus,"setSearchCompleteCallback":BaseSearchP.setSearchCompleteCallback,"getPageCapacity":BaseSearchP.getPageCapacity,"setPageCapacity":BaseSearchP.setPageCapacity,"setLocation":BaseSearchP.setLocation,"disableFirstResultSelection":BaseSearchP.disableFirstResultSelection,"enableFirstResultSelection":BaseSearchP.enableFirstResultSelection,"gotoPage":BaseSearchP.gotoPage,"searchNearby":BaseSearchP.searchNearby,"searchInBounds":BaseSearchP.searchInBounds, "search":BaseSearchP.search});exportSymbol(window,{"BMAP_STATUS_SUCCESS":BMAP_STATUS_SUCCESS,"BMAP_STATUS_CITY_LIST":BMAP_STATUS_CITY_LIST,"BMAP_STATUS_UNKNOWN_LOCATION":BMAP_STATUS_UNKNOWN_LOCATION,"BMAP_STATUS_UNKNOWN_ROUTE":BMAP_STATUS_UNKNOWN_ROUTE,"BMAP_STATUS_INVALID_KEY":BMAP_STATUS_INVALID_KEY,"BMAP_STATUS_INVALID_REQUEST":BMAP_STATUS_INVALID_REQUEST,"BMAP_STATUS_PERMISSION_DENIED":BMAP_STATUS_PERMISSION_DENIED,"BMAP_STATUS_SERVICE_UNAVAILABLE":BMAP_STATUS_SERVICE_UNAVAILABLE,"BMAP_STATUS_TIMEOUT":BMAP_STATUS_TIMEOUT}); exportSymbol(window,{"BMAP_POI_TYPE_NORMAL":BMAP_POI_TYPE_NORMAL,"BMAP_POI_TYPE_BUSSTOP":BMAP_POI_TYPE_BUSSTOP,"BMAP_POI_TYPE_BUSLINE":BMAP_POI_TYPE_BUSLINE,"BMAP_POI_TYPE_SUBSTOP":BMAP_POI_TYPE_SUBSTOP,"BMAP_POI_TYPE_SUBLINE":BMAP_POI_TYPE_SUBLINE}); exportSymbol(window,{"BMAP_TRANSIT_POLICY_LEAST_TIME":BMAP_TRANSIT_POLICY_LEAST_TIME,"BMAP_TRANSIT_POLICY_LEAST_TRANSFER":BMAP_TRANSIT_POLICY_LEAST_TRANSFER,"BMAP_TRANSIT_POLICY_LEAST_WALKING":BMAP_TRANSIT_POLICY_LEAST_WALKING,"BMAP_TRANSIT_POLICY_AVOID_SUBWAYS":BMAP_TRANSIT_POLICY_AVOID_SUBWAYS,"BMAP_LINE_TYPE_BUS":BMAP_LINE_TYPE_BUS,"BMAP_LINE_TYPE_SUBWAY":BMAP_LINE_TYPE_SUBWAY,"BMAP_LINE_TYPE_FERRY":BMAP_LINE_TYPE_FERRY});var BaseRouteP=BaseRoute[Tprototype];exportSymbol(BaseRouteP,{"clearResults":BaseRouteP.clearResults}); var TransitRouteP=TransitRoute[Tprototype];exportSymbol(TransitRouteP,{"setPolicy":TransitRouteP.setPolicy,"toString":TransitRouteP.toString,"setPageCapacity":TransitRouteP.setPageCapacity});exportSymbol(window,{"BMAP_DRIVING_POLICY_LEAST_TIME":BMAP_DRIVING_POLICY_LEAST_TIME,"BMAP_DRIVING_POLICY_LEAST_DISTANCE":BMAP_DRIVING_POLICY_LEAST_DISTANCE,"BMAP_DRIVING_POLICY_AVOID_HIGHWAYS":BMAP_DRIVING_POLICY_AVOID_HIGHWAYS});exportSymbol(window,{"BMAP_HIGHLIGHT_STEP":BMAP_HIGHLIGHT_STEP,"BMAP_HIGHLIGHT_ROUTE":BMAP_HIGHLIGHT_ROUTE}); exportSymbol(window,{"BMAP_ROUTE_TYPE_DRIVING":BMAP_ROUTE_TYPE_DRIVING,"BMAP_ROUTE_TYPE_WALKING":BMAP_ROUTE_TYPE_WALKING});exportSymbol(window,{"BMAP_ROUTE_STATUS_NORMAL":BMAP_ROUTE_STATUS_NORMAL,"BMAP_ROUTE_STATUS_EMPTY":BMAP_ROUTE_STATUS_EMPTY,"BMAP_ROUTE_STATUS_ADDRESS":BMAP_ROUTE_STATUS_ADDRESS});var DrivingRouteP=DrivingRoute[Tprototype];exportSymbol(DrivingRouteP,{"setPolicy":DrivingRouteP.setPolicy});var AutocompleteP=Autocomplete[Tprototype]; exportSymbol(AutocompleteP,{"show":AutocompleteP.show,"hide":AutocompleteP.hide,"setTypes":AutocompleteP.setTypes,"setLocation":AutocompleteP.setLocation,"search":AutocompleteP.search,"setInputValue":AutocompleteP.setInputValue});var BoundaryP=Boundary[Tprototype];exportSymbol(BoundaryP,{"get":BoundaryP.get});BMap.apiLoad(); })()