var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); (function(){var V=V||{Aa:{Jc:0,Wk:[]}},wc={};V.CLASS_NAME="AMap";V.a=V.BuryPoint={tL:{},vB:{},options:{},MB:{},nG:{},oG:{},ZG:{},$G:{}}; V.a.lg=V.BuryPoint.dic={"AMap.event":{c:"ev",m:{addDomListener:"a",addListener:"b",addListenerOnce:"c",removeListener:"d",trigger:"e"}},AMap:{c:"aa",m:{convertFrom:"a"}},"AMap.Map":{c:"m",o:{view:"a",layers:"b",level:"c",center:"d",zooms:"e",lang:"f",cursor:"g",crs:"h",animateEnable:"i",isHotspot:"j",defaultLayer:"k",rotateEnable:"l",resizeEnable:"m",dragEnable:"n",zoomEnable:"o",doubleClickZoom:"p",keyboardEnable:"q",jogEnable:"r",scrollWheel:"s",touchZoom:"t",mapStyle:"u","features ":"v",zoom:"w"}, m:{setMapStyle:"a",getMapStyle:"b",getFeatures:"c",setFeatures:"d",setLang:"e",getLang:"f",setCity:"g",getCity:"h",getAdcode:"i",setLimitBounds:"j",clearLimitBounds:"k",getLimitBounds:"l",setZoom:"m",getZoom:"n",getCenter:"o",setCenter:"p",setRotation:"q",getBounds:"r",getStatus:"s",setStatus:"t",getResolution:"u",getScale:"v",getDefaultCursor:"w",setDefaultCursor:"x",zoomIn:"y",zoomOut:"z",setZoomAndCenter:"0",setBounds:"1",clearMap:"2",destroy:"3",addControl:"4",removeControl:"5",clearControl:"6", clearInfoWindow:"7",remove:"8",add:"9",getAllOverlays:"a1",getSize:"a2",getContainer:"a3",panTo:"a4",panBy:"a5",setFitView:"a6",setLayers:"a7",getLayers:"a8",getDefaultLayer:"a9",setDefaultLayer:"a0",pixelToLngLat:"b0",lnglatToPixel:"b1",drawPolyline:"b2",drawPolygon:"b3",drawCircle:"b4"}},"AMap.View2D":{c:"v",o:{center:"a",rotation:"b",zoom:"c",crs:"d"}},"AMap.Buildings":{p:"AMap.Layer",c:"b"},"AMap.CustomLayer":{p:"AMap.Layer",c:"c",o:{map:"a",zIndex:"b",opacity:"c",zooms:"d"},m:{setOpacity:"2a", getContainer:"2b",show:"2c",hide:"2d",setzIndex:"2e"}},"AMap.ImageLayer":{p:"AMap.Layer",c:"i",o:{bounds:"a",url:"b",map:"c",opacity:"d",visible:"e",zIndex:"f",zooms:"g"},m:{getMap:"4a",show:"4b",getOpacity:"4c",setOpacity:"4d",getBounds:"4e",setBounds:"4f",getImageUrl:"4g",setImageUrl:"4h",hide:"4i",setOptions:"4j",getOptions:"4k"}},"AMap.Layer":{c:"l",m:{getZooms:"a",setOpacity:"b",show:"c",hide:"d",setMap:"e",getMap:"f",setzIndex:"g"}},"AMap.MassMarks":{p:"AMap.Layer",c:"ma",o:{zIndex:"a",opacity:"b", zooms:"c",anchor:"d",url:"e",size:"f",cursor:"g",alwaysRender:"h"},m:{setData:"0a",getData:"0b",getStyle:"0c",setStyle:"0d",setMap:"0e"}},"AMap.TileLayer":{p:"AMap.Layer",c:"tl",o:{map:"a",tileSize:"b",tileUrl:"c",errorUrl:"d",getTileUrl:"e",zIndex:"f",opacity:"g",zooms:"h",detectRetina:"i"},m:{setTextIndex:"3a",getTiles:"3b",setTileUrl:"3d",getTileUrl:"3e",getZooms:"3f",stopRefresh:"3g",startRefresh:"3h",reload:"3i"}},"AMap.TileLayer.Satellite":{p:"AMap.TileLayer",c:"s",o:{map:"a",zIndex:"b",opacity:"c", zooms:"d",detectRetina:"e"}},"AMap.TileLayer.RoadNet":{p:"AMap.TileLayer",c:"r",o:{map:"a",zIndex:"b",opacity:"c",zooms:"d",detectRetina:"e"}},"AMap.TileLayer.Traffic":{p:"AMap.TileLayer",c:"t",o:{map:"a",zIndex:"b",opacity:"c",zooms:"d",detectRetina:"e",autoRefresh:"f",interval:"g"}},"AMap.Vector":{p:"AMap.Overlay",c:"v",m:{show:"4a",hide:"4b",getVisible:"4c",getOptions:"4d",setOptions:"4e",setDraggable:"4f"}},"AMap.VectorTile":{p:"AMap.Layer",c:"vt"},"AMap.Circle":{p:"AMap.Vector",c:"ci",o:{map:"a", zIndex:"b",center:"c",radius:"d",strokeColor:"e",strokeOpacity:"f",strokeWeight:"g",fillColor:"h",fillOpacity:"i",strokeStyle:"j",extData:"k",strokeDasharray:"l"},m:{setCenter:"8a",getCenter:"8b",setRadius:"8c",getRadius:"8d",contains:"8e"}},"AMap.ContextMenu":{p:"AMap.Overlay",c:"cm",o:{position:"a",content:"b",width:"c"},m:{addItem:"2a",removeItem:"2b",open:"2c",close:"2d"}},"AMap.GroundImage":{p:"AMap.ImageLayer",c:"g",o:{map:"a",clickable:"b",opacity:"c"},m:{setMap:"8a"}},"AMap.Icon":{c:"ic", o:{size:"a",imageOffset:"b",image:"c",imageSize:"c"},m:{setImageSize:"a",getImageSize:"b"}},"AMap.ImageMarker":{p:"AMap.Overlay",c:"im",m:{setPosition:"3a",getBounds:"3b",getPosition:"3c",hide:"3d",show:"3e",setCursor:"3f",setRotation:"3g",setzIndex:"3h"}},"AMap.InfoWindow":{p:"AMap.Overlay",c:"iw",o:{isCustom:"a",autoMove:"b",closeWhenClickMap:"c",content:"d",size:"e",offset:"f",position:"g",showShadow:"h"},m:{open:"1a",close:"1b",setContent:"1c",getContentU:"1d",getContent:"1e",setPosition:"1f", setOffset:"1g",getPosition:"1h",setSize:"1i",getSize:"1j",getIsOpen:"1k"}},"AMap.Marker":{p:"AMap.Overlay",c:"mk",o:{map:"a",position:"b",offset:"c",icon:"d",content:"e",topWhenClick:"f",topWhenMouseOver:"g",draggable:"h",raiseOnDrag:"j",cursor:"k",visible:"l",zIndex:"m",angle:"n",autoRotation:"o",animation:"p",shadow:"q",title:"r",clickable:"s",shape:"t",extData:"u"},m:{setRaiseOnDrag:"9a",setPosition:"9b",getPosition:"9c",setIcon:"9d",getIcon:"9e",setContent:"9f",getContent:"9g",hide:"9h",show:"9i", setCursor:"9j",setRotation:"9k",setAngle:"9l",getAngle:"9m",setOffset:"9n",getOffset:"9o",setzIndex:"9p",setOpacity:"9q",setDraggable:"9r",getDraggable:"9s",moveTo:"9t",moveAlong:"9u",stopMove:"9v",setShadow:"9w",getShadow:"9x",setClickable:"9y",getClickable:"9z",setTitle:"90",getTitle:"91",setLabel:"92",getLabel:"93",setTop:"94",getTop:"95",setShape:"96",getShape:"97",setAnimation:"98",getAnimation:"99",getMap:"9a1"}},"AMap.MarkerShape":{c:"ms",o:{coords:"a",type:"b"}},"AMap.Overlay":{c:"o",m:{show:"a", hide:"b",setMap:"c",getMap:"d",setExtData:"e",getExtData:"f"}},"AMap.Poly":{p:"AMap.Vector",c:"ly",m:{setPath:"5a",getPath:"5b"}},"AMap.Polygon":{p:"AMap.Poly",c:"gn",o:{map:"a",zIndex:"b",path:"c",strokeColor:"d",strokeOpacity:"e",strokeWeight:"f",fillColor:"g",fillOpacity:"h",extData:"i",strokeStyle:"j",strokeDasharray:"k"},m:{getArea:"6a",toString:"6b",contains:"6c"}},"AMap.Polyline":{p:"AMap.Poly",c:"le",o:{map:"a",zIndex:"b",geodesic:"c",isOutline:"d",outlineColor:"e",path:"f",strokeColor:"g", strokeOpacity:"h",strokeWeight:"i",strokeStyle:"j",strokeDasharray:"k",extData:"l"},m:{getLength:"7a"}},"AMap.Text":{p:"AMap.Overlay",c:"tt"},"AMap.Panorama":{c:"aa"},"AMap.PanoramaMarker":{c:"ar"},"AMap.PanoramaService":{c:"ae"},"AMap.AdvancedInfoWindow":{p:"AMap.InfoWindow",c:"pa",o:{autoMove:"a",closeWhenClickMap:"b",content:"c",offset:"d",position:"e",panel:"f",searchRadius:"g",placeSearch:"h",driving:"i",walking:"j",transit:"k",asOrigin:"l",asDestination:"m"},m:{clear:"aa",searchPoiByKeyWord:"ab"}}, "AMap.AntiCrabFrame":{c:"pb",m:{setMapStyle:"a"}},"AMap.ArrivalRange":{c:"pc",m:{search:"a"}},"AMap.Autocomplete":{c:"pd",o:{type:"a",city:"b",input:"c"},m:{setType:"a",setCity:"b",search:"c"}},"AMap.AutoPanby":{c:"pe"},"AMap.CircleEditor":{c:"pf",m:{open:"a",close:"b"}},"AMap.CitySearch":{c:"pg",m:{getLocalCity:"a",getCityByIp:"b"}},"AMap.CloudDataLayer":{c:"ph",o:{map:"a",query:"b",clickable:"c"},m:{reload:"a",setMap:"b",getMap:"c",setOptions:"d",wrapUrl:"e"}},"AMap.CloudDataSearch":{c:"pi",o:{keywords:"a", filter:"b",orderBy:"c",pageSize:"d",pageIndex:"e"},m:{setOptions:"a",clear:"b",setPageIndex:"c",setPageSize:"d",searchNearBy:"e",searchById:"f",searchByDistrict:"g",searchInPolygon:"h"}},"AMap.CloudDataSearchRender":{c:"pj"},"AMap.DistrictSearch":{c:"pk",o:{level:"a",extensions:"b",subdistrict:"c"},m:{setLevel:"a",setExtensions:"b",setSubdistrict:"c",search:"d"}},"AMap.DragRoute":{c:"pl",o:{polyOptions:"a",startMarkerOptions:"b",midMarkerOptions:"c",endMarkerOptions:"d",showTraffic:"e"},m:{setAvoidPolygons:"a", clearAvoidPolygons:"b",getAvoidPolygons:"c",setAvoidRoad:"d",clearAvoidRoad:"e",getAvoidRoad:"f",search:"g",setPolicy:"h",showRoute:"i",close:"j",open:"k",getWays:"l",getRoute:"m",destroy:"n",getPolyline:"o",getStart:"p",getEnd:"q",getPoint:"r",getRoutes:"s"}},"AMap.Driving":{c:"pm",o:{policy:"a",extensions:"b",map:"c",panel:"d",hideMarkers:"e"},m:{clear:"a",search:"b",setAvoidPolygons:"c",clearAvoidPolygons:"d",getAvoidPolygons:"e",setAvoidRoad:"f",clearAvoidRoad:"g",getAvoidRoad:"h",setPolicy:"i", setLocation:"j",close:"k",open:"l"}},"AMap.DrivingRender":{c:"pp"},"AMap.Geocoder":{c:"pq",o:{city:"a",radius:"b",extensions:"c"},m:{getLocation:"a",setCity:"b",getAddress:"c"}},"AMap.Geolocation":{c:"pr",o:{enableHighAccuracy:"a",timeout:"b",maximumAge:"c",convert:"d",showButton:"e",buttonDom:"f",buttonPosition:"g",buttonOffset:"h",showMarker:"i",markerOptions:"j",showCircle:"k",circleOptions:"l",panToLocation:"m",zoomToAccuracy:"n",useNative:"o"},m:{isSupported:"a",getCurrentPosition:"b",watchPosition:"c", clearWatch:"d"}},"AMap.GetLL":{c:"ps"},"AMap.Heatmap":{c:"pt",o:{radius:"a",gradient:"b",opacity:"c",zooms:"d"},m:{setOptions:"a",getOptions:"b",setDataSet:"c",getDataSet:"d",addDataPoint:"e",setMap:"f",hide:"g",show:"h",getMap:"i",setzIndex:"j",getzIndex:"k"}},"AMap.HotSpot":{c:"pu",m:{setMap:"a"}},"AMap.LineSearch":{c:"pv",o:{pageIndex:"a",pageSize:"b",city:"c",extensions:"d"},m:{setPageIndex:"a",setPageSize:"b",setCity:"c",searchById:"d",search:"e"}},"AMap.MapType":{c:"pw",m:{hide:"a",show:"b"}}, "AMap.Cluster":{c:"px"},"AMap.MarkerClusterer":{c:"py",o:{gridSize:"a",minClusterSize:"b",maxZoom:"c",averageCenter:"d",styles:"e",zoomOnClick:"f"},m:{disperse:"a",addMarker:"b",addMarkers:"c",removeMarker:"d",removeMarkers:"e",clearMarkers:"f",getClustersCount:"g",getMap:"h",setMap:"i",getMarkers:"j",setMarkers:"k",getGridSize:"l",setGridSize:"m",getMinClusterSize:"n",setMinClusterSize:"o",getMaxZoom:"p",setMaxZoom:"q",isAverageCenter:"r",setAverageCenter:"s",getStyles:"t",setStyles:"u"}},"AMap.MouseTool":{c:"pz", m:{marker:"a",polyline:"b",polygon:"c",rectangle:"d",circle:"e",rule:"f",measureArea:"g",rectZoomIn:"h",rectZoomOut:"i",close:"j"}},"AMap.OverView":{c:"p0",o:{tileLayer:"a",isOpen:"b",visible:"c"},m:{open:"a",close:"b",getTileLayer:"c",setTileLayer:"d",show:"e",hide:"f"}},"AMap.PlaceSearch":{c:"p1",o:{city:"a",type:"b",lang:"c",pageSize:"d",pageIndex:"e",extensions:"f",map:"g",panel:"h"},m:{clear:"a",setLang:"b",searchInBounds:"c",searchNearBy:"d",getDetails:"e",setType:"f",setPageIndex:"g",setPageSize:"h", setCity:"i",close:"j",open:"k"}},"AMap.PlaceSearchLayer":{c:"p2",o:{map:"a",keywords:"b"},m:{setMap:"a",setKeywords:"b"}},"AMap.PlaceSearchRender":{c:"p3"},"AMap.PolyEditor":{c:"p4",m:{open:"a",close:"b"}},"AMap.RangingTool":{c:"p5",o:{startMarkerOptions:"a",midMarkerOptions:"b",endMarkerOptions:"c",lineOptions:"d",tmpLineOptions:"e",startLabelText:"f",midLabelText:"g",endLabelText:"h",startLabelOffset:"i",midLabelOffset:"j",endLabelOffset:"k"},m:{turnOn:"a",turnOff:"b"}},"AMap.RoadInfoSearch":{c:"p6", o:{pageIndex:"a",pageSize:"b",city:"c"},m:{setPageIndex:"a",setPageSize:"b",setCity:"c",roadInfoSearchByRoadId:"d",roadInfoSearchByRoadName:"e",crossInfoSearchByCrossId:"f",crossInfoSearchByRoadName:"g"}},"AMap.Scale":{c:"p7",m:{show:"a",hide:"b"}},"AMap.StationSearch":{c:"p8",o:{pageIndex:"a",pageSize:"b",city:"c"},m:{setPageIndex:"a",setPageSize:"b",setCity:"c",searchById:"d",search:"e"}},"AMap.ToolBar":{c:"p9",o:{offset:"a",ruler:"b",direction:"c",autoPosition:"d",locationMarker:"e",useNative:"f"}, m:{getOffset:"a",setOffset:"b",hideRuler:"c",showRuler:"d",hideDirection:"e",showDirection:"f",hideLocation:"g",showLocation:"h",hide:"i",show:"j",doLocation:"k",getLocation:"l"}},"AMap.Transfer":{c:"1",o:{city:"a",policy:"b",nightflag:"c",cityd:"d",extensions:"e",map:"f",panel:"g",hideMarkers:"h"},m:{clear:"a",search:"b",leaveAt:"c",setPolicy:"d",setCity:"e",setCityd:"f",close:"g",open:"h"}},"AMap.TransferRender":{c:"2"},"AMap.UTFGrid":{c:"3",m:{setMap:"a"}},"AMap.Walking":{c:"4",o:{map:"a",panel:"b", hideMarkers:"c"},m:{clear:"a",search:"b",close:"c",open:"d"}},"AMap.WalkingRender":{c:"5"},"AMap.Weather":{c:"6",m:{getLive:"a",getForecast:"b"}},"AMap.IndoorMap":{p:"AMap.CustomLayer",c:"7",o:{alwaysShow:"9a"},m:{showIndoorMap:"9a",showFloor:"9b",showFloorBar:"9c",hideFloorBar:"9d",hideLabels:"9e",showLabels:"9f",getSelectedBuildingId:"9g",getSelectedBuilding:"9h",setSelectedBuildingId:"9i",getVisibleBuildingIds:"9j"}},"AMap.Riding":{c:"prd",o:{map:"a",panel:"b",policy:"c"},m:{clear:"a",search:"b", close:"c",open:"d",setPolicy:"e"}},"AMap.RidingRender":{c:"prdr"}};V.a.lZ=V.BuryPoint.getMethodName=function(a,b){var c;for(c=this.lg[a].m&&this.lg[a].m[b];!c&&this.lg[a].p;){var d=this.lg[a].p;c=this.lg[d].m&&this.lg[d].m[b];a=d}c||(c=b);return c};V.a.add=V.BuryPoint.add=function(a,b,c){var d=this.lg[a].c;if(d){if(b){a=this.lZ(a,b);if(!a)return;d+=","+a}this.tL[d]=1;c&&(this.vB[d]=c)}}; V.a.Za=V.BuryPoint.addOptions=function(a,b){var c=this.lg[a].c,d,f;for(f in b)b.hasOwnProperty(f)&&((d=this.lg[a].o&&this.lg[a].o[f])||(d=f),d=c+","+d,this.options[d]=1);"AMap.Map"===a&&this.jP(a,b,["mapStyle","lang","renderer","zoom"])};V.a.jP=V.BuryPoint._addOptionsValue=function(a,b,c){for(var d=0,f,g;db.length&&(h=b.length);for(;gd););d=c[d.toString()];return"number"===typeof d?a[d]:null},Gf:function(a){for(var b= [],c=0,d=a.length;cb?a:a.slice(0,b).concat(a.slice(b+1,a.length))},WX:function(a,b){var c=V.g.indexOf(a,b);return V.g.jj(a,c)},indexOf:function(a,b){if(a&&!a.length)return-1;if(a.indexOf)return a.indexOf(b);for(var c=0;cb.indexOf(a[f])&& b.push(a[f])},EJ:function(b){if(!b)return null;b=b.map.Ba;for(var d=0,f=b.length;dh)console.error("Resp len wrong!!");else if(b=u===h,d||b){d=1")},Ic:function(a,b){var c=a.style[b];!c&&a.currentStyle&&(c=a.currentStyle[b]);c&&"auto"!==c||!document.defaultView|| (c=(c=document.defaultView.getComputedStyle(a,null))?c[b]:null);c&&"auto"!==c||"height"!==b||(c=a.clientHeight+"px");c&&"auto"!==c||"width"!==b||(c=a.clientWidth+"px");return"auto"===c?null:c},Nq:function(a){if(a)return new V.ac(a.clientWidth||document.body.clientWidth,a.clientHeight||(V.j.bo?"CSS1Compat"===document.compatMode?document.documentElement.clientHeight:document.body.clientHeight:document.body.clientHeight),!0)},NJ:function(a){return new V.ac(a.clientWidth,a.clientHeight)},EA:function(a){var b= 0,c=0,d=a,f=document.body,g=document.documentElement,h,k=V.j.Vq;do{b+=d.offsetTop||0;c+=d.offsetLeft||0;b+=parseInt(V.f.Ic(d,"borderTopWidth"),10)||0;c+=parseInt(V.f.Ic(d,"borderLeftWidth"),10)||0;h=V.f.Ic(d,"position");if(d.offsetParent===f&&"absolute"===h)break;if("fixed"===h){b+=f.scrollTop||g.scrollTop||0;c+=f.scrollLeft||g.scrollLeft||0;break}d=d.offsetParent}while(d);d=a;do{if(d===f)break;b-=d.scrollTop||0;c-=d.scrollLeft||0;V.f.eY()||!V.j.q3&&!k||(c+=d.scrollWidth-d.clientWidth,k&&"hidden"!== V.f.Ic(d,"overflow-y")&&"hidden"!==V.f.Ic(d,"overflow")&&(c+=17));d=d.parentNode}while(d);return new V.K(c,b)},eY:function(){V.f.DQ||(V.f.DQ=!0,V.f.CQ="ltr"===V.f.Ic(document.body,"direction"));return V.f.CQ},create:function(a,b,c){a=document.createElement(a);c&&(a.className=c);b&&b.appendChild(a);return a},lJ:function(){document.selection&&document.selection.empty&&document.selection.empty();this.OT||(this.OT=document.onselectstart,document.onselectstart=V.g.BJ)},tJ:function(){},Zn:function(a,b){if(a&& b)return 0a.childNodes.length?a.appendChild(f):a.insertBefore(f,a.childNodes[1])};(function(a){var b=V.j;if(!V.indexedDB&&b.ud){var c=a.indexedDB||a.webkitIndexedDB||a.msIndexedDB||a.mozIndexedDB,d=a.IDBKeyRange||a.X7||a.K6||a.J6;if(c){var f=V.g,g=null;a="amap-jsapi"+(a.K3?"-debug":"");var h=V.extend({},V.ea),k;try{k=c.open(a),k.onsuccess=function(){g=this.result;h.w("dbReady",{status:"success"})},k.onerror=function(){h.w("dbReady",{status:"error"})},k.onblocked=function(){h.w("dbReady",{status:"blocked"})},k.onupgradeneeded=function(a){a.currentTarget.result.createObjectStore("tile", {keyPath:"tileKey"})}}catch(l){b.ud=!1}finally{if(!b.ud)return}var b=function(a){return function(){try{return a.apply(this,arguments)}catch(b){var c=arguments[arguments.length-1];"function"===typeof c&&setTimeout(function(){c({code:4})},1)}}},m=b(function(a,b){return null===g?(setTimeout(function(){b&&b({code:3})},1),null):g.transaction("tile",a).objectStore("tile")}),n=function(a,b){for(var c=-1,d=0,f=b.length;da){c=d;break}return c};V.indexedDB={fq:b(function(a,b){g?"function"=== typeof a&&a():h.e("dbReady",function(c){"success"===c.status?"function"===typeof a&&a():"function"===typeof b&&b({code:3,status:status})})}),count:b(function(a){var b=this,c=arguments;this.fq(function(){b.Nw.apply(b,c)},a)}),Nw:b(function(a){var b=m("readonly",a).count();b.onsuccess=function(){a(null,b.result)};b.onerror=function(){a({code:7})}}),get:b(function(a,b){var c=this,d=arguments;this.fq(function(){c.VQ.apply(c,d)},b)}),VQ:b(function(a,b){var c=m("readonly",b);if(f.isArray(a)){var g=[],h= a.slice(0);a.sort();c.openCursor(d.bound(a[0],a[a.length-1])).onsuccess=function(c){if(c=c.target.result){var d=f.indexOf(h,c.value.tileKey);-1!==d&&(g[d]=c.value);c["continue"](a[n(c.value.tileKey,a)])}else b&&b(null,g.filter(function(a){return void 0!==a}))}}else c=c.get(a),c.onsuccess=function(a){b&&b(null,a.target.result)},c.onerror=function(){b&&b({code:1})}}),add:b(function(a,b){var c=this,d=arguments;this.fq(function(){c.gP.apply(c,d)},b)}),gP:b(function(a,b){f.isArray(a)||(a=[a]);for(var c= a.length,d=0,g=c;d=t.Zv&&d()}function d(){var a=t.data.keys.length,b=Math.floor(a/2);a>t.Zv&&(b=Math.floor(a-t.Zv/2));a=t.data.keys.slice(0,b);t.data.keys=t.data.keys.slice(b+1);r.remove(a,function(a){a&&3===a.code&&(p.ud=!1)})}function f(){h();v.setItem(t.key,t.data,!0);p.ud&&r&&r.clear(function(a){a&& 3===a.code&&(p.ud=!1)})}function g(){h();var a=v.getItem(t.key,!0);a&&(a.Pv===t.data.Pv&&a.vI===t.data.vI?t.data=a:f())}function h(){t.data={Pv:p.Qo,vI:V.q.wg,keys:[],Hf:{},mg:{}};t.Cj={}}function k(a){a&&(t.data.Pv=a,p.Qo=a)}function l(a){var b="limg";/flds=([^&]+)/.test(a)&&(b=RegExp.$1);return b}function m(a){if("object"===typeof a&&null!==a){var b=[];if(q.isArray(a))if(Object.keys(a).length==a.length)b=a.map(function(a){return m(a)});else{b.push("__arrayObject");var c={},d;for(d in a)(0>parseInt(d)|| isNaN(parseInt(d)))&&a.hasOwnProperty(d)&&(c[d]=m(a[d]));b.push(c);b.push(a.map(function(a){return m(a)}))}else if(q.zu(a,"Float32Array"))b.push("__Float32Array"),b.push(Array.prototype.slice.call(a));else if(q.zu(a,"Uint16Array"))b.push("__Uint16Array"),b.push(Array.prototype.slice.call(a));else for(d in b={},a)a.hasOwnProperty(d)&&(b[d]=m(a[d]));return b}return a}function n(a){if("object"===typeof a&&null!==a){var b={};if(q.isArray(a))if("__Float32Array"===a[0])b=new Float32Array(a[1]);else if("__Uint16Array"=== a[0])b=new Uint16Array(a[1]);else if("__arrayObject"===a[0]){b=n(a[2]);a=a[1];for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])}else b=a.map(function(a){return n(a)});else for(c in a)a.hasOwnProperty(c)&&(b[c]=n(a[c]));return b}return a}var p=V.j,q=V.g;if(!V.dl&&V.j.ne&&(p.ud||p.qj)){var r=V.indexedDB,u=function(a,b){return[a?1:0,p.U?1:0,b?1:0].join()},t={Zv:1E3,key:"_AMap_data.tileKeys"},w=[],v={getItem:function(a,b){var c=localStorage.getItem(a);if(c&&b){var d;try{d=JSON.parse(c)}catch(f){d=null}c= d}return c},setItem:function(a,b,c){var d=b;c&&(d=JSON.stringify(b),1.5f||180===f?180:-180));this.O=d;this.M=f},YJ:function(){return V.g.qf(this.M,6)},WJ:function(){return V.g.qf(this.O,6)},add:function(a,b){return new V.P(this.M+a.M,this.O+a.O,b)},Xa:function(a,b){return new V.P(this.M-a.M,this.O-a.O,b)},Ob:function(a,b){return new V.P(this.M/a,this.O/a,b)},Bc:function(a,b){return new V.P(this.M* a,this.O*a,b)},Kf:function(a){a=V.g.ma(a);if(a instanceof V.P){var b=Math.cos,c=0.017453292519943295*this.O,d=0.017453292519943295*a.O;a=0.017453292519943295*a.M-0.017453292519943295*this.M;b=(1-b(d-c)+(1-b(a))*b(c)*b(d))/2;return 12756274*Math.asin(Math.sqrt(b))}if(a instanceof Array)return this.$X(a)},$X:function(a){a=V.g.ma(a);for(var b=Infinity,c=0,d=1,f=a.length;d=Math.max(Math.abs(this.O-a.O),Math.abs(this.M-a.M)):!1},toString:function(){return V.g.qf(this.M,6)+","+V.g.qf(this.O,6)},Jb:function(){return new V.P(this.M,this.O)}}); V.P.hZ=function(a,b,c){c=c+1||Math.round(Math.abs(a.M-b.M));if(!c||0.001>Math.abs(a.M-b.M))return[];var d=[],f=V.hD.UX,g=V.hD.K0,h=Math.asin,k=Math.sqrt,l=Math.sin,m=Math.pow,n=Math.cos,p=Math.atan2,q=a.O*f;a=a.M*f;var r=b.O*f;b=b.M*f;for(var h=2*h(k(m(l((q-r)/2),2)+n(q)*n(r)*m(l((a-b)/2),2))),u,t,w,v,f=1;fk&&(k+=360,0>f&&(f+=360),0>h&&(h+=360));return d.O>=b.O&&a.O<=c.O&&f>=g&&h<=k},Yd:function(a){var b=this.mb,c=this.eb,d=a.mb;a=a.eb;var f=a.M>=b.M&&d.M<=c.M;return a.O>=b.O&&d.O<=c.O&&f},Mf:function(){return new V.P(this.mb.M>this.eb.M?(this.mb.M+this.eb.M+360)/2%360:(this.mb.M+this.eb.M)/2,(this.mb.O+this.eb.O)/2)},extend:function(a){this.mb.M=Math.min(this.mb.M,a.M);this.mb.O=Math.min(this.mb.O,a.O);this.eb.M=Math.max(this.eb.M, a.M);this.eb.O=Math.max(this.eb.O,a.O);return this},U2:function(a){return this.extend(a.mb).extend(a.eb)},toString:function(){return this.mb.toString()+";"+this.eb.toString()},Jb:function(){return new V.wd(this.mb.Jb(),this.eb.Jb())},Lb:function(a){return a instanceof V.wd?this.mb.Lb(a.mb)&&this.eb.Lb(a.eb):!1},Pe:function(){return Math.abs(this.eb.M-this.mb.M)},Ne:function(){return Math.abs(this.mb.O-this.eb.O)}}); V.wd.Pn({Mq:"getSouthWest",Kq:"getNorthEast",wh:"getNorthWest",sk:"getSouthEast",contains:"contains",Yd:"intersects",Mf:"getCenter"});V.K=V.W.extend({D:function(a,b,c){if(isNaN(a)||isNaN(b))throw"Invalid Object: Pixel("+a+", "+b+")";this.x=c?Math.round(a):Number(a);this.y=c?Math.round(b):Number(b)},cd:function(){return this.x},Fc:function(){return this.y},add:function(a,b){return new V.K(this.x+a.x,this.y+a.y,b)},Xa:function(a,b){return new V.K(this.x-a.x,this.y-a.y,b)},Ob:function(a,b){return new V.K(this.x/a,this.y/a,b)},Bc:function(a,b){return new V.K(this.x*a,this.y*a,b)},Kf:function(a){var b=a.x-this.x;a=a.y-this.y;return Math.sqrt(b* b+a*a)},floor:function(){return new V.K(Math.floor(this.x),Math.floor(this.y))},round:function(){return new V.K(this.x,this.y,!0)},Lb:function(a){return a instanceof V.K&&this.x===a.x&&this.y===a.y},Jb:function(a){return new V.K(this.x,this.y,a)},toString:function(){return this.x+","+this.y}});V.K.Pn({cd:"getX",Fc:"getY",add:"add",Xa:"subtract",Ob:"divideBy",Bc:"multiplyBy",Kf:"distance",Lb:"equals",toString:"toString"});V.ac=V.W.extend({D:function(a,b,c){if(isNaN(a)||isNaN(b))throw"Invalid Object: Size("+a+", "+b+")";this.width=c?Math.round(a):Number(a);this.height=c?Math.round(b):Number(b)},Pe:function(){return this.width},Ne:function(){return this.height},Lo:function(){return new V.K(this.Pe(),this.Ne())},contains:function(a){return Math.abs(a.x)<=Math.abs(this.width)&&Math.abs(a.y)<=Math.abs(this.height)},Lb:function(a){return a instanceof V.ac&&this.width===a.width&&this.height===a.height},toString:function(){return this.Pe()+ ","+this.Ne()}});V.ac.Pn({Pe:"getWidth",Ne:"getHeight",toString:"toString"});V.fe=V.W.extend({D:function(){if(2===arguments.length)this.hb=arguments[0],this.$b=arguments[1];else if(1===arguments.length&&arguments[0]instanceof Array||4===arguments.length){var a=arguments[0]instanceof Array?arguments[0]:arguments;this.hb=new V.K(a[0],a[1]);this.$b=new V.K(a[2],a[3])}else throw"Invalid Object: PixelBounds("+arguments.join(",")+")";},Mf:function(a){return new V.K((this.hb.x+this.$b.x)/2,(this.hb.y+this.$b.y)/2,a)},contains:function(a){var b;a instanceof V.fe?(b=a.hb,a=a.$b):b= a;return b.x>this.hb.x&&a.xthis.hb.y&&a.y=c.y-b&&f.y<=d.y+b;return g.x>=c.x-b&&f.x<=d.x+b&&h},toString:function(){return this.hb+";"+this.$b},Jb:function(){return new V.fe(this.hb.Jb(),this.$b.Jb())}});V.A={};V.A.DI=function(a){for(var b=[Infinity,Infinity,-Infinity,-Infinity],c=0,d=a.length;ca[2]&&(a[2]=b[2]);b[1]a[3]&&(a[3]=b[3])};V.A.yJ=function(a,b){b[0]a[2]&&(a[2]=b[0]);b[1]a[3]&&(a[3]=b[1])};V.A.C5=function(a){return[a[0],a[1]]};V.A.D5=function(a){return[a[2],a[1]]};V.A.Mf=function(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}; V.A.K5=function(a,b,c,d,f){var g=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);g=[-g,-g,g,g];d=[-d,d,-d,d];var h,k,l;for(h=0;4>h;h+=1)k=g[h],l=d[h],g[h]=a[0]+k*b-l*c,d[h]=a[1]+k*c+l*b;return V.A.EI(g,d,f)};V.A.Ne=function(a){return a[3]-a[1]};V.A.W5=function(a){return[a[2]-a[0],a[3]-a[1]]};V.A.a6=function(a){return[a[0],a[3]]};V.A.b6=function(a){return[a[2],a[3]]};V.A.Pe=function(a){return a[2]-a[0]};V.A.Yd=function(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}; V.A.ar=function(a){return a[2]V.j.x_&&this.set("baseRender","dv");this.xz();V.j.$q&&this.ZV();c=this.get("zoom",null,!0);d=this.get("zooms"); c>d[1]?c=d[1]:cc[0];f-=1){var g=this.rb(a.mb,f),h=this.rb(a.eb,f);if(Math.abs(h.x-g.x)c[1]&&(a=c[1]);ad[1]&&(a=d[1]);af[0]&&!(c=this.rb(a.mb,h),m=this.rb(a.eb,h),a.mb.M>a.eb.M&&(m.x+=this.rb(new V.P(180,0),h).x),Math.abs(m.x-c.x)this.ps.width* this.ps.height)&&this.refreshSize();return this.ps},getContainer:function(){V.a.add(this.CLASS_NAME,"getContainer");return this.C},panTo:function(a){V.a.add(this.CLASS_NAME,"panTo");a=V.g.ma(a);this.loaded?this.set("panTo",a):this.setCenter(a)},panBy:function(a,b,c){V.a.add(this.CLASS_NAME,"panBy");var d=this.get("rotation")*Math.PI/180,f=a*Math.cos(d)+Math.sin(d)*b;a=-Math.sin(d)*a+Math.cos(d)*b;f=(this.loaded&&this.map&&this.map.Wb?this.rb(this.map.Wb.sN):this.rb(this.get("center"))).add(new V.K(-f, -a));f=this.Bf(f);!this.loaded||c?this.setCenter(f,c):this.set("panTo",f)},setFitView:function(a,b,c,d){V.a.add(this.CLASS_NAME,"setFitView");var f;if(a)if(a instanceof Fc)a=[a];else{if(!(a instanceof Array))return null}else a=this.getAllOverlays();for(var g=0;g=this.qg[0]?(b[0]this.qg[1]&&(b[1]=this.qg[1])):a.zooms=[this.qg[0],this.qg[1]];arguments.callee.cb.call(this,a);this.CLASS_NAME="AMap.TileLayer"},setTextIndex:function(a){V.a.add(this.CLASS_NAME, "setTextIndex");this.set("textIndex",a)},aB:function(){var a=this.get("getTileUrl");return a!==V.q.fr&&a!==V.q.Fr?!1:!0},zz:function(){if(!this.aB()||!V.j.ne)return!1;var a=this.get("map");return!a||"zh_cn"!==a.get("lang")||"d"===a.get("baseRender")||this.noVector?!1:!0},jg:function(a){var b=this.get("map");this.aB()&&(this.zz()?this.set("mapNumber","GS(2019)6379"):this.set("mapNumber","GS(2019)6379"));if(this.zz())if(this.Ek=!0,V.S.Tg){if("dv"===b.get("baseRender")&&!this.get("watermark")){var c= V.q.Iu;V.j.ha&&this.get("detectRetina")&&(c=V.q.Iu.replace("scl=1","scl=2"));var d=b.get("showBuildingBlock");d||(c=c.replace("ltype=3","ltype=11"));c=new V.S.Yf(this,a,this.yp(c),void 0,!0);d&&(c.Ok=new V.S.Od(new X({zooms:[16,20],innerLayer:"true"}),a),c.Ok.type="\u697c\u5757\u56fe\u5c42",c.Ok.Uc(["visible","opacity","zIndex"],c,!0),c.Ok.xa=["building"],c.Ok.Lt(b.get("mapStyle")||"normal"));c.type="\u6805\u683c\u5e95\u56fe";return c}if("v"<=b.get("baseRender")||this.get("watermark"))return a=new V.S.Od(this, a),a.type="\u77e2\u91cf\u5e95\u56fe",a}else return["vectorlayer","overlay"];else return this.Ek=!1,new V.S.Yf(this,a,null,this.G.maxDataZoom)},getTileUrlChanged:function(){var a=this.get("getTileUrl");if(a===V.q.fr||a===V.q.Fr||a===V.q.ov)this.Nu=!0;"string"===typeof a&&(a=this.yp(a));this.set("tileFun",a)},cX:function(a){this.qg||(this.qg=[this.G.zooms[0],this.G.zooms[1]]);var b;a.hasOwnProperty("detectRetina")&&!1===a.detectRetina&&(b=!0);V.j.U&&V.j.ha&&this.G.detectRetina&&!b&&(this.qg[1]-=1)}, getTiles:function(){V.a.add(this.CLASS_NAME,"getTiles");var a=this.get("tiles",null,!0);if(a&&a.length)a=a[0];else return[];for(var b=[],c,d=0;dd)return 0;for(var f=0;f=c||(1<=c?(h=k,f=g):(h+=c*l,f+=c*m));return[h,f]},vk:function(a){for(var b=a.length,c=0,d=a[b-1],f=d[0],d=d[1],g,h,k=0;k< b;k+=1)h=a[k],g=h[0],h=h[1],c+=(g-f)*(h+d),f=g,d=h;return 0=a){g=(k-g)*(a-h)/(l-h)+g;if(d===g)return c?!0:!1;p=df;f++)d[f]||(g=0|16*Math.random(),d[f]=a[19===f?g&3|8:g])}return d.join("")}}()});window.AMap.Http={};window.AMap.Http.JSONP=V.ra.Ca;V.ra.XMLHttpRequest=V.ra.gw.extend({send:function(a,b,c){var d=this.z3=new XMLHttpRequest,f=this;d.onreadystatechange=function(){4===d.readyState&&200===d.status?f.w("complete",{url:a,data:d.responseText}):404===d.status&&(d.abort(),f.w("error",{url:a,data:"404"}))};d.open(b||"GET",a);"POST"===b&&d.setRequestHeader("Content-type","application/x-www-form-urlencoded");d.send(c||void 0)},abort:function(){this.z3.abort()}}); ');_jsload_('map', 'V.Ph=V.W.extend({D:function(a,b,c,d){this.start=a;this.end=b;this.transition=c;this.precision=d||0;this.Mk=!1;return this},Lk:function(a){this.ai=+new Date;this.frames=0;this.Me=a;this.startTime=+new Date;this.Mk=!0;this.uI=V.g.Ve(this.update,this,!1)},update:function(){this.uI=V.g.Ve(this.update,this,!1);this.frames+=1;var a=+new Date,b=a-this.startTime,b=this.transition?this.transition(this.start,this.end,b,this.frames,a-this.ai):null;"number"===typeof b&&Math.abs(b-this.end)b.length?V.q.pb+"/style?name="+b+"&key="+V.q.key:V.q.ec+"/v4/map/styles?styleid="+b+"&s=rsv3&key="+V.q.key+(isPublic?\'&ispublic=1\':\'\'),{callback:"callback"}),b.e("complete",function(a){a.data&&a.data.content?this.set("style",JSON.parse(a.data.content)):this.set("style","");this.QC=!1},this),b.e("error",function(){this.QC=!1},this),this.Aj=a)}}},J1:function(a){this.C.style.background= a},resizeEnableChanged:function(){},$W:function(){var a=this.get("limitBounds"),b=this.get("bounds");b.mb.M>b.eb.M&&(b.eb.M+=360);if(!a.contains(b)){var c=this.get("center").Jb();a.Pe()b.mb.M&&(c.M+=a.mb.M-b.mb.M),a.eb.Mb.mb.O&&(c.O+=a.mb.O-b.mb.O),a.eb.Ob&&a[d].get("visible")&&(c=f,b=g)}this.set("mapNumber",c);a=this.da.getMapStyle();"GS(2019)6379"===c&&a&&"normal"!==a&&"amap://styles/normal"!==a&&(c="");c&&this.ab.ji.mL&&(this.ab.ji.mL.innerHTML="- "+c+"\\u53f7");return c}},XE:function(){V.j.qj&& V.dl&&V.dl.flush()},Kj:function(){if(!this.Nz)if(this.da.Va)1===this.ll&&13===this.get("zoom")&&(V.g.Dq.stop(this.Bs),V.Ld.De.send({id:this.da.id,params:{fps:this.Bs.Dq,type:"fps",rs:this.get("baseRender")}}),this.ll=2),this.XE();else{for(var a=this.get("layers"),b=this.get("zoom"),c=0;cd[1]||bf;f+=1)for(var g= 0;100>g;g+=1){var h=new V.P(d.M+0.02*g,d.O+0.02*f),h=new V.de({name:"point"+(100*f+g),map:this,za:new V.fa.Ce(this.Db(h))});c[100*f+g]=h;h.e("hover",a,h)}b.Cl(c);this.Ba.push(b)},bb:function(){},M4:function(a){var b=new V.S.jd,c=[],c=(new V.eO({map:this})).dv(a);b.Cl(c);this.Ba.push(b);this.set("display",0)},jg:function(a){a=a.jg(this);if(!a)return null;if(a.length){var b=this;V.Ra.tf(a,function(){b.layersChanged()})}else return a;return null},S5:function(){return this.ab},i7:function(){this.set("display", 0)},displayChanged:function(a){this.FM(a)},FM:function(a){if(a)if(V.g.Hl(this.lv),V.j.Gg){var b=this;setTimeout(function(){b.we()},0)}else this.we();else this.To||(this.lv=V.g.Ve(this.we,this),this.To=!0)},we:function(){if(!this.Nz){this.w("render");this.To=!1;var a={};if(this.Ba){for(var b=[],c=0,d=this.Ba.length;cd?1:c===d?a.sw>b.sw?1:-1:-1});a.Ba=b;a.size=this.get("size"); b=V.j.ha?Math.min(window.devicePixelRatio||1,2):1;a.AW=15E5this.get("targetLevel");a.K_=!0;a.BI=this.BI;for(var b=!1,f,c=!1,d=0;d b.get("zIndex")?-1:1});this.Ak.nA(a,this.Ba,function(a){b=a;b=c.h2(b)},function(){b=[]});return b}});V.$c.Yb({eS:function(){this.e("moveend",this.NL,this);V.j.Gg&&(V.j.MC||V.j.nz)&&this.e("zoomend",this.XC,this);this.e("movestart",this.OL,this);this.e("zoomstart",this.TL,this);this.e("zoomend",this.SL,this);this.Fw();this.ll=0;this.Bs={};"undefined"===typeof window.requestAnimationFrame&&(this.ll=2)},TL:function(){2!==this.ll&&12===this.get("zoom")&&(this.ll=1,V.g.Dq.start(this.Bs));this.Fg=!0},SL:function(){1===this.ll&&13!==this.get("zoom")&&(this.ll=0,V.g.Dq.cancel(this.Bs));this.Fg=!1;this.set("display")}, US:function(){this.F("moveend",this.NL,this);V.j.Gg&&(V.j.MC||V.j.nz)&&this.F("zoomend",this.XC,this);this.F("movestart",this.OL,this);this.F("zoomstart",this.TL,this);this.F("zoomend",this.SL,this);this.WS()},NL:function(a){this.bh=!1;this.GM();!a.WK&&this.get("limitBounds")?(a=this.$W())&&!a.Lb(this.get("center"))?this.yv(this.get("zoom"),a,!1,!0):this.pa("moveend"):this.pa("moveend");this.set("display")},OL:function(){this.bh=!0},dragEnableChanged:function(){(this.eu=this.get("dragEnable"))?this.Ew(): this.gy()},pa:function(a,b){var c;b&&(c=b.CL?{type:a,newsize:b.CL,oldsize:b.R_}:{type:a,pixel:b.Ub,target:this.da,lnglat:b.Qe});this.da.w(a,c)},Fw:function(){this.e("click",this.AG);this.e("dblclick",this.CG);V.j.vd&&this.GP();V.j.U||this.CP()},WS:function(){this.F("click",this.AG);this.F("dblclick",this.CG);V.j.vd&&this.$S();V.j.U||this.XS()},Zs:function(a,b){var c=this.get("targetLevel")||this.get("zoom"),c=0Math.abs(b)&&1>Math.abs(c))){var d=parseFloat(a.style.top)||0,f=parseFloat(a.style.left)||0,g="";this.rotation&&(g=V.f.Sk[V.f.Nd]+":rotate("+this.rotation+"deg);overflow:visible;");a.style.cssText="position:absolute;top:"+ (d+c)+"px;left:"+(f+b)+"px;"+g}},RI:function(a){var b=this.da.view.QD(),c=this.yC.height*this.N/2;return a.yb.od-c?(a.y=b.od-c,a):null},EG:function(){this.JN();100Math.abs(a.x)&&2>Math.abs(a.y))this.Wd.stop(),this.w("moveend"), this.gu(),this.ml=this.ai=null;else{var b=a.x,f=a.y,g=this.ur?this.rotation:0;g&&(g*=Math.PI/180,b=a.x*Math.cos(g)+Math.sin(g)*a.y,f=-Math.sin(g)*a.x+Math.cos(g)*a.y);b=this.get("centerCoords").Xa((new V.K(b,f)).Bc(this.N));f=this.RI(b);g=a.y;f&&(g=Math.round(this.sg(f).Xa(this.sg(b)).y));this.tj(this.ab.ak,a.x,g);b.x=(b.x+V.g.Wa)%V.g.Wa;this.set("centerCoords",b,!0);this.set("center",this.uf(b),!0);this.pa("mapmove")}};this.Wd.Lk(this)}else this.w("moveend"),this.gu(!0),this.ml=this.ai=null;else this.w("moveend"), this.gu(),this.ml=this.ai=null},n2:function(){if(!this.R.refresh){var a=this;this.R.refresh=setInterval(function(){a.set("display",0)},V.j.U?400:100)}},XC:function(){if(V.j.Gg&&(V.j.MC||V.j.nz)){for(var a=this.ab.S.childNodes,b=0;bthis.get("zooms")[1]&&(b=this.get("zooms")[1]);this.yv(b,a[1],a[2]||!this.get("animateEnable"))},zoomChanged:function(){this.N=Math.pow(2,20-this.get("zoom"));this.w("closeOverlays");this.set("display",0)},rotationChanged:function(){this.rotation=this.get("rotateEnable")? this.get("rotation"):0;this.set("display",0)},centerCoordsChanged:function(){this.w("closeOverlays");this.set("display",0)}});V.$c.Uv=V.W.extend({D:function(a){this.wc=a;this.xl=["zooms","visible","opacity","zIndex"];this.Hp=!1;this.iQ=this.IP();this.wc.e("zoomend",this.Ky,this);this.wc.e("moveend",this.Ky,this);this.Ky()},IP:function(){for(var a=[[69,2],[72,14],[89,4],[96,4],[193,2],[196,14],[213,4],[220,4],[317,2],[320,14],[337,4],[344,4],[441,1],[444,14],[461,4],[468,4],[565,1],[568,14],[585,4],[592,4],[689,1],[692,14],[709,4],[716,4],[813,1],[816,14],[833,4],[840,4],[940,14],[957,4],[964,4],[1064,15],[1081,4],[1088, 4],[1188,16],[1205,4],[1212,4],[1312,21],[1336,4],[1436,21],[1460,4],[1560,21],[1584,4],[1684,21],[1708,4],[1808,21],[1832,4],[1932,21],[1956,4],[2056,21],[2080,4],[2180,21],[2204,4],[2304,21],[2328,4],[2428,21],[2452,4],[2552,22],[2576,4],[2676,22],[2700,4],[2800,22],[2824,4],[2924,22],[2948,4],[3048,22],[3072,4],[3172,22],[3196,4],[3295,23],[3320,4],[3418,24],[3444,4],[3541,26],[3568,4],[3664,27],[3692,4],[3788,27],[3816,4],[3912,32],[4036,32],[4160,32],[4285,31],[4394,4],[4409,31],[4517,5],[4531, 33],[4640,9],[4655,33],[4764,12],[4777,35],[4887,50],[5009,1],[5011,50],[5133,53],[5257,53],[5381,60],[5506,59],[5631,58],[5742,4],[5755,58],[5859,2],[5865,6],[5879,58],[5977,8],[5987,10],[5999,2],[6002,59],[6100,78],[6222,80],[6344,82],[6464,1],[6466,84],[6586,88],[6708,90],[6831,91],[6955,91],[7078,92],[7202,92],[7327,91],[7451,91],[7575,91],[7698,92],[7820,94],[7942,96],[8065,97],[8187,99],[8310,100],[8435,99],[8558,100],[8681,101],[8805,101],[8929,102],[9053,104],[9179,3],[9183,100],[9307,104], [9435,101],[9561,48],[9613,49],[9663,1],[9686,44],[9745,44],[9810,33],[9871,42],[9934,32],[9997,40],[10058,32],[10120,41],[10181,30],[10244,42],[10306,27],[10369,3],[10374,39],[10434,18],[10501,37],[10558,19],[10626,36],[10683,18],[10752,35],[10807,17],[10880,32],[10937,10],[10997,39],[11061,9],[11121,31],[11155,5],[11186,5],[11245,31],[11311,3],[11370,29],[11494,26],[11624,18],[11748,17],[11873,16],[11997,15],[12123,13],[12246,13],[12370,12],[12498,1],[12500,2]],b=[],c=0,d=a.length;cd||101<=d||0>c||124<=c?!1:1===this.iQ[124*d+c]},rP:function(){var a=this.wc.da.getBounds();if(a){for(var a=[a.Mf(),a.Mq(),a.Kq(),a.wh(),a.sk()],b=0,c=a.length;bb.indexOf(this.bf)&&b.push(this.bf);this.KH(a,this.bf);this.bf.Zx();this.tV(); this.wc.layersChanged();this.wc.da.w("googleTileVisibleChanged",{display:!0})}},Hx:function(){return this.Hp},MR:function(a){this.Hp&&(this.Hp=!1,this.KH(a,null),this.bf&&(this.bf.set("visible",!1),a=this.wc.Ba,V.g.jj(a,a.indexOf(this.bf)),this.bf.Ue(),this.bf.Qa.F("complete",this.wc.Kj,this.wc),this.bf=null),this.LR(),this.wc.layersChanged(),this.wc.da.w("googleTileVisibleChanged",{display:!1}))},hF:function(a,b,c){if(!a)return null;a=V.f.getElementsByClassName(b,c,a);return a.length?a[0]:null}, hR:function(a){var b=this.wc.ab;if(b&&b.ji){var c=this.hF(b.ji,"google-copyright","span");!c&&a&&(c=V.f.create("span",b.ji,"google-copyright"),c.innerHTML=" - Data © Google");return c}},YH:function(a){var b=this.hR(a);b&&(b.style.display=a?"":"none");this.wc.ab&&(b=this.hF(this.wc.ab.ji,"amap-mcode","span"))&&(b.style.display=a?"none":"")},tV:function(){this.YH(!0)},LR:function(){this.YH(!1)}});V.$c.Yb({aS:function(){this.get("3rdpartyDataEnable")&&(this.yF=new V.$c.Uv(this))},Hx:function(){return this.yF&&this.yF.Hx()}});V.PO=V.W.extend({ka:[V.ea,V.yd],D:function(a,b){this.map=a;this.ye(b,!0);this.centerChanged();a.Uc("center centerCoords zoom scale rotation resolution".split(" "),this);this.Uc(["crs"],a)},getResolution:function(a){return this.map.wq.yA(a||this.get("zoom"))},QD:function(){this.tw||this.tX();return this.tw},tX:function(){var a;if(this.get("center")instanceof V.P){a=new V.wd(-180,-85,180,85);var b=this.map.Db(a.wh());a=this.map.Db(a.sk());this.tw={Se:b.x,pd:b.y,be:a.x,od:a.y}}else a=this.map.get("limitBounds"), this.tw={Se:a[0],pd:a[1],be:a[2],od:a[3]}},DA:function(){var a=this.map,b=this.get("zoom");return{zoom:b,hi:this.get("center"),ta:this.Un(),Ga:this.get("centerCoords"),rotation:a.get("rotateEnable")&&parseInt(this.get("rotation"))||0,ue:a.get("crs"),N:Math.pow(2,20-b),Kc:Math.round(b),Gd:Math.pow(2,20-Math.round(this.get("zoom")))}},centerChanged:function(){this.set("centerCoords",this.map.Db(this.get("center")),!0)},centerCoordsChanged:function(){var a=this.map,b=this.QD(),c=this.get("centerCoords"), d=a.getSize(),f=this.get("zoom",null,!0),a=this.get("center",null,!0),d=d.height*Math.pow(2,20-f)/2;a instanceof V.P?c.x=(c.x+268435456)%268435456:0>c.x?c.x=0:c.x>b.be&&(c.x=b.be);c.yb.od-d&&(c.y=b.od-d);this.set("center",this.map.uf(c),!0)}});V.QO=V.PO.extend({Un:function(){var a=this.map.get("size"),b=this.get("centerCoords"),c=(this.map.get("rotateEnable")&&parseInt(this.get("rotation")))%360||0,d=this.get("zoom",null,!0),f=Math.pow(2,20-d),c=Math.PI*c/180,a=new V.K((Math.abs(a.width*Math.cos(c))+Math.abs(a.height*Math.sin(c)))/2,(Math.abs(a.width*Math.sin(c))+Math.abs(a.height*Math.cos(c)))/2),f=new V.fe(b.Xa(a.Bc(f)),b.add(a.Bc(f))),c=this.map.get("targetLevel");if(c>d-1){var g=Math.pow(2,20-c);f.PN=new V.fe(b.Xa(a.Bc(g)),b.add(a.Bc(g)))}f.v2= c||d;f.gb=a;return f},sg:function(a,b){this.map.get("size");var c=a.Jb(),d=this.get("centerCoords"),c=c.Xa(d);c.x<-V.g.Wa/2?c.x+=V.g.Wa:c.x>V.g.Wa/2&&(c.x-=V.g.Wa);var d=this.map.get("size").Lo().Ob(2),f=(this.map.get("rotateEnable")?this.get("rotation"):0)*Math.PI/180;return d.add((new V.K(c.x*Math.cos(f)-Math.sin(f)*c.y,Math.sin(f)*c.x+Math.cos(f)*c.y)).Bc(Math.pow(2,(b||this.get("zoom"))-20)))},fk:function(a,b){var c=this.map.get("size").Lo().Ob(2),d=a.Xa(c),f=(this.map.get("rotateEnable")?this.get("rotation"): 0)*Math.PI/180,c=d.x*Math.cos(f)+Math.sin(f)*d.y,d=-Math.sin(f)*d.x+Math.cos(f)*d.y,c=this.get("centerCoords").add((new V.K(c,d)).Bc(Math.pow(2,20-(b||this.get("zoom")))));c.x=(c.x+268435456)%268435456;return c}}); ');_jsload_('anip', 'V.$c.Yb({Pr:function(a,b,c,d){function f(b){var d=this.sg(c);this.set("zoom",b);var f=this.sg(c).Xa(d),k=(this.ur?this.rotation:0)*Math.PI/180,d=f.x*Math.cos(k)+Math.sin(k)*f.y,f=-Math.sin(k)*f.x+Math.cos(k)*f.y;this.set("centerCoords",this.get("centerCoords").add((new V.K(d,f)).Bc(this.N)));d&&f&&this.pa("mapmove");b===a&&Math.floor(a)===a&&(this.set("targetLevel",null),g&&(this.pa("zoomchange"),this.pa("zoomend")),h&&this.w("moveend"),this.w("zoomend"),this.Yc=null)}if(V.j.U||V.j.nd)b=!0;a=a||this.get("zoom"); a=Math.min(Math.max(a,this.get("zooms")[0]),this.get("zooms")[1]);var g=a!==this.get("zoom"),h=!!c;this.Wd&&(this.Wd.stop(),this.Wd=null);c=c||this.get("centerCoords");var k;this.Wb&&this.Wb.Mk&&(this.Wb.stop(),this.Wb.LA&&(d=!0),this.Wb.Pq&&(k=!0),this.Wb=null,this.set("targetLevel",null));this.Yc&&this.Yc.Mk&&(this.Yc.stop(),d=!0,this.Yc.Pq&&(k=!0),this.Yc=null,this.set("targetLevel",null));g&&!d&&this.pa("zoomstart");h&&!k&&this.pa("movestart");this.w("zoomstart");b?f.call(this,a):(this.Yc=new V.Ph(this.get("zoom"), a,null,0.02),this.Yc.LA=g,this.Yc.Pq=h,this.Yc.transition=function(a,b,c){return c>=V.q.Dt?b:(b-a)*(1-Math.pow(1-c/V.q.Dt,4))+a},this.Yc.so=f,this.Yc.Lk(this),this.set("targetLevel",a))},yv:function(a,b,c,d){a||(a=this.Wb?this.Wb.u2:this.get("targetLevel")||this.get("zoom"));b||(b=this.Wb?this.Wb.sN:this.get("center"));var f=a!==this.get("zoom"),g=!b.Lb(this.get("center")),h=!1,k=!1;this.Yc&&this.Yc.Mk&&(this.Yc.stop(),h=!0,this.Yc.Pq&&(k=!0),this.Yc=null,this.set("targetLevel",null));this.Wb&&this.Wb.Mk&& (this.Wb.stop(),this.Wb.LA&&(h=!0),this.Wb.Pq&&(k=!0),this.Wb=null,this.set("targetLevel",null));this.Wd&&(this.Wd.stop(),this.Wd=null);if(f||g){if(!this.get("bounds").contains(b)||f&&(V.j.U||V.j.nd))c=!0;if(c)f&&(h||(this.w("zoomstart"),this.pa("zoomstart")),this.set("zoom",a),this.pa("zoomchange"),this.pa("zoomend"),this.w("zoomend")),g&&(k||d||(this.pa("movestart"),this.w("movestart")),this.set("center",b),this.pa("mapmove"),this.w("moveend",{WK:d})),this.set("targetLevel",null);else{this.set("targetLevel", a);var l=a-this.get("zoom"),m=b.Xa(this.get("center"));this.Wb=new V.Ph(1,0,null,0.001);this.Wb.LA=f;this.Wb.Pq=g;this.Wb.sN=b;this.Wb.u2=a;this.Wb.transition=function(a,b,c){return Math.pow(1-Math.min(V.q.Dt,c)/V.q.Dt,2)};this.Wb.so=function(c){if(0.02>c)this.Wb&&(this.Wb.stop(),this.Wb=null),f&&(this.set("zoom",a),this.pa("zoomchange"),this.pa("zoomend"),f=!1,this.w("zoomend")),g&&(c=b,this.set("center",c),this.w("mapmove"),this.w("moveend",{WK:d})),this.set("targetLevel",null);else if(f&&this.set("zoom", a-l*c),g){c=b.Xa(m.Bc(c));if(V.j.U){var h=this.rb(this.get("center")),k=this.rb(c);this.tj(this.ab.ak,h.x-k.x,h.y-k.y);this.set("center",c,!0);this.set("centerCoords",this.Db(c),!0)}else this.set("center",c);this.pa("mapmove")}this.set("display",1)};this.Wb.Lk(this);f&&!h&&(this.w("zoomstart"),this.pa("zoomstart"));!g||k||d||(this.w("movestart"),this.pa("movestart"))}}}}); ');_jsload_('layers', 'V.S={}; V.S.Wf=V.W.extend({ka:[V.ea,V.yd],D:function(a,b){this.Qa=a;this.Zc=[3,18];this.sw=V.g.Bb(this);a&&this.Uc(["opacity","visible","zIndex","zooms"],a);this.l=b;this.Q("display",b)},Ue:function(){this.zi&&this.Ez();if(V.Aa&&V.Aa.Wk&&V.Aa.Wk.length){var a=V.g.indexOf(V.Aa.Wk,this);-1!==a&&(V.Aa.Wk=V.g.jj(V.Aa.Wk,a))}if(a=this.ob){if(a.length)for(var b=0;bc.M&&(0this.Ck&&(this.Ck=a.Jk,this.no=this.Ck/ this.map.get("resolution",20))},Bt:function(a){this.Lf.add(a);if(!this.du&&!this.Qa.yi){if(0===a.name.indexOf("circle")){a.e("rad",this.L0,this);var b=a.get("radius");this.Ck?b>this.Ck&&(this.Ck=b,this.no=this.Ck/this.map.get("resolution",20)):(this.Ck=b,this.no=this.Ck/this.map.get("resolution",20))}b=a.get("strokeWeight")||0;if(!this.oo||b>this.oo)this.oo=b}this.k2||a.Q("feature",this,!0)},Cl:function(a){this.yh=!0;for(var b=0,c=a.length;ba[0]?(b=[a[0]+V.g.Wa,a[1],V.g.Wa,a[3]],a=[0,a[1],a[2],a[3]],b=this.Lf.vh(b),a=this.Lf.vh(a),V.extend(b,a)):a[2]>V.g.Wa?(b=[a[0],a[1],V.g.Wa,a[3]],a=[0,a[1],a[2]-V.g.Wa,a[3]],b=this.Lf.vh(b),a=this.Lf.vh(a),V.extend(b,a)):this.Lf.vh(a)},P5:function(a){var b,c=this.get("style"),d=a.vg;c instanceof V.jw||(c=this.x0(c));if(d&&0=this.$I&&(a=this.vj.Cb.Ma.value,a.fj&&(this.vj.remove(a.url),this.WD(a)));for(;this.sm.count&&!(this.vj.count>=this.$I);)this.AQ(this.sm.shift())},wS:function(){if(!this.rE){this.rE=!0;var a=this;setTimeout(function(){a.rE=!1;a.pE()},0)}},AQ:function(a){var b=document.createElement("img");b.src=a.url;a.va=b;a.p_=this; a.startTime=+new Date;a.mC=!0;b.complete?Yc(a,!0):(this.vj.set(a.url,a),b.onload=Xc(a,!0),b.onerror=Xc(a,!1,!0),b.onabort=Xc(a,!1),a.E2=setTimeout(Xc(a,!1,!0),this.timeout))},WD:function(a){a.mC&&(Yc(a,!1),a.fj=!0,a.L4=!0)},y6:function(a,b,c){return this.gL(a.url,b,c,!0,a.Fa.z+"_"+a.Fa.x+"_"+a.Fa.y)},gL:function(a,b,c,d,f){var g=this.vj.get(a);if(g&&g.fj)g.fj=!1,g.sc=b,g.JJ=c;else{g=new Wc(a,b,c);g.XZ=d;g.key=f;if(this.sm.get(V.g.Bb(g)))return;this.sm.set(V.g.Bb(g),g);this.pE(!0)}return g},SW:function(a){a.fj|| (a.fj=!0,this.sm.remove(V.g.Bb(a)))},clear:function(a){this.sm.forEach(function(a){a.fj=!0});this.sm.clear();if(a)for(;a=this.vj.pop();)this.WD(a);else this.vj.forEach(function(a){a.fj=!0})}});var Zc=function(){function a(a){this.ow[V.g.Bb(a)]=a;return this}function b(a){this.ow[V.g.Bb(a)]=null;return this}return function(){function c(){var a=c.ow,b,g=[],h;for(h in a)Object.prototype.hasOwnProperty.call(a,h)&&g.push(a[h]);for(a=g.length-1;0<=a;a-=1)h=g[a].apply(this,arguments),void 0!==h&&(b=h);return b}c.ow={};c.XV=a;c.g7=b;return c}}(); V.xd=V.W.extend({ka:[V.ea],D:function(a,b){this.Lj=a|0;this.hs=!!b;this.count=0;this.JL=Zc();this.clear();this.Rs=[]},ar:function(){return!this.count},l6:function(){return this.count>=this.Lj},w7:function(a){this.Lj!==a&&(this.Lj=a|0)&&this.bI(this.Lj)},zc:function(a){return!!this.l[a]},get:function(a,b){var c=this.VE(a);return c?c.value:b},set:function(a,b){var c=this.VE(a);c?c.value=b:(c=new V.xd.bl(a,b),this.l[a]=c,this.LF(c),this.count+=1)},Dj:function(a){this.remove(a)},remove:function(a){return Object.prototype.hasOwnProperty.call(this.l, a)?(this.Up(this.l[a]),!0):!1},forEach:function(a,b){for(var c=this.Cb.next;c!==this.Cb;c=c.next)a.call(b,c.value,c.key,this)},uo:function(a,b){return Object.prototype.hasOwnProperty.call(this.l,a)?this.l[a].value:b},Y6:function(){return this.Cb.next.value},Z6:function(){return this.Cb.Ma.value},shift:function(){return this.fH(this.Cb.next)},jX:function(){this.Rs.length=0},s_:function(a){this.Rs.push(a)},push:function(a){a=new V.xd.bl("",a);0===this.count?(this.Cb.Ma=null,a.Ma=this.Cb,this.Cb.next= a):(this.cq.next=a,a.Ma=this.cq);this.count+=1;this.cq=a},Nv:function(a){a=new V.xd.bl("",a);0===this.count?(this.Cb.Ma=null,a.Ma=this.Cb,this.cq=this.Cb.next=a):(this.Cb.next.Ma=a,a.next=this.Cb.next,a.Ma=this.Cb,this.Cb.next=a);this.count+=1},N_:function(){if(this.count){this.count-=1;var a=this.Cb.next;a.next?(a.next.Ma=this.Cb,this.Cb.next=a.next):(this.Cb.next=null,this.cq=this.Cb.Ma=null);a.next=null;a.Ma=null;return a.value}return null},pop:function(){return this.fH(this.Cb.Ma)},VE:function(a){if(Object.prototype.hasOwnProperty.call(this.l, a))return a=this.l[a],this.hs&&(a.remove(),this.LF(a)),a},LF:function(a){this.hs?(a.next=this.Cb.next,a.Ma=this.Cb,this.Cb.next=a,a.next.Ma=a):(a.Ma=this.Cb.Ma,a.next=this.Cb,this.Cb.Ma=a,a.Ma.next=a);this.Lj&&this.iV(this.Lj)},iV:function(){var a=this;a.dq||(a.dq=setTimeout(function(){a.dq=null;a.bI(a.Lj)},0))},bI:function(a){this.dq&&(clearTimeout(this.dq),this.dq=null);for(var b=this.hs?this.Cb.Ma:this.Cb.next,c={},d=0,f=this.Rs.length;da&&(d=this.hs? b.Ma:b.next,b.key&&!c[b.key]&&(this.Up(b),this.JL(b.value)),b=d,b!==this.Cb&&b!==this.cq););},Up:function(a){a.remove();delete this.l[a.key];this.count-=1},fH:function(a){this.Cb!==a&&this.Up(a);return a.value},clear:function(){this.l={};this.Cb=new V.xd.bl("",null);this.Cb.Ma=this.Cb.next=this.Cb;this.count=0}});V.xd.bl=function(a,b){this.key=a;this.value=b};V.xd.bl.prototype.Ma=null;V.xd.bl.prototype.next=null; V.xd.bl.prototype.remove=function(){this.Ma.next=this.next;this.next.Ma=this.Ma;this.next=this.Ma=null};V.Xf=V.W.extend({D:function(a){this.rL="undefined"!==typeof a?a:6;this.Lu=Math.floor(this.rL/2);this.rv={A:[Infinity,Infinity,-Infinity,-Infinity],Ha:[]};this.count=0},dX:function(a,b){var c=-1,d=[],f;d.push(b);var g=b.Ha;do{-1!==c&&(d.push(g[c]),g=g[c].Ha,c=-1);for(var h=g.length-1;0<=h;h-=1){var k=g[h];if("undefined"!==typeof k.gm){c=-1;break}var l=V.Xf.Ho(k.A[2]-k.A[0],k.A[3]-k.A[1],k.Ha.length+1),k=V.Xf.Ho((k.A[2]>a.A[2]?k.A[2]:a.A[2])-(k.A[0]a.A[3]?k.A[3]:a.A[3])- (k.A[1]c||Math.abs(k-l)d.length&&(c.Ha.push(g[0]),d.push(c),f=g[1]))}else V.A.extend(c.A,f.A),f={A:V.A.Jb(c.A)}}while(0a[c].A[0]?c=g:h.A[2]a[f].A[1]?f=g:h.A[3]Math.abs(a[d].A[3]-a[f].A[1])?b>c?(b=a.splice(b,1)[0],c=a.splice(c,1)[0]):(c=a.splice(c,1)[0],b=a.splice(b,1)[0]):d>f?(b=a.splice(d,1)[0],c=a.splice(f,1)[0]):(c=a.splice(f,1)[0],b=a.splice(d,1)[0]);return[{A:V.A.Jb(b.A),Ha:[b]},{A:V.A.Jb(c.A),Ha:[c]}]},B0:function(a,b,c){for(var d=V.Xf.Ho(b.A[2]-b.A[0],b.A[3]-b.A[1],b.Ha.length+1),f=V.Xf.Ho(c.A[2]-c.A[0],c.A[3]- c.A[1],c.Ha.length+1),g,h,k,l=a.length-1;0<=l;l-=1){var m=a[l],n=[b.A[0]m.A[2]?b.A[2]:m.A[2],b.A[1]m.A[3]?b.A[3]:m.A[3]],n=Math.abs(V.Xf.Ho(n[1]-n[0],n[3]-n[2],b.Ha.length+2)-d),m=[c.A[0]m.A[2]?c.A[2]:m.A[2],c.A[1]m.A[3]?c.A[3]:m.A[3]],m=Math.abs(V.Xf.Ho(m[1]-m[0],m[3]-m[2],c.Ha.length+2)-f),p=Math.abs(m-n);if(!h||!g||p=c.Ha.length?(h=this.Eo(c,!0,h,c),c.Ha.length=0,d.push(c),f.push(1)):0this.map.Zb.Rk){this.map.Zb.Rk=a; var b=this.map.Zb.Hv;b&&b.H&&b.H.X&&(b.H.X.style.zIndex=a+10)}this.H&&this.H.X&&(this.H.X.style.zIndex=this.get("isTop")?this.map.Zb.Rk+10:this.get("zIndex"))},opacityChanged:function(){var a=this.get("contentDom"),b=this.get("shadowDom");a&&V.f.Nk(a,this.get("opacity"));b&&V.f.Nk(b,this.get("opacity"))},GI:function(a){var b;b=document.createElement("div");b.className="amap-marker-content";"string"!==typeof a?b.appendChild(a):(b.innerHTML=a,b.childNodes[0]&&!b.childNodes[0].style&&(b.style["white-space"]= "pre"));V.f.Nk(b,this.get("opacity"));return b},tz:function(a){var b,c=0,d=0,f,g,h,k;a?("string"===typeof a?(b=a,k=!0):(b=a.get("image"),d=a.get("size"),f=a.get("imageSize"),c=d.width,d=d.height,f&&(g=f.width,h=f.height)),c||(c=0),d||(d=0),a="string"!==typeof a?a.get("imageOffset"):{x:0,y:0}):(b=V.q.Re+"/mark_bs.png",a={x:0,y:0},c=19,d=33,g=19,h=33);f=document.createElement("div");f.className="amap-icon";f.style.position="absolute";k&&!V.j.nd&&(f.style.overflow="inherit");c&&(f.style.width=c+"px"); d&&(f.style.height=d+"px");c=document.createElement("img");c.src=b;g&&h&&(c.style.width=g+"px",c.style.height=h+"px");c.style.top=a.y+"px";c.style.left=a.x+"px";V.j.nd&&k||f.appendChild(c);V.f.Nk(V.j.nd&&k?c:f,this.get("opacity"));return V.j.nd&&k?c:f},JI:function(a,b){var c=this.tz(a,b);c.style.zIndex=-1;return c},moveChanged:function(){var a=this.get("move");if(!1===a)return this.p2();void 0!==a&&("pause"===a.action?this.z0():"[object Array]"===Object.prototype.toString.call(a.Qe)?a.Qe&&("resume"=== a.action&&this.Os?this.moveTo(a.Qe[a.Qe.Xi||0],a.speed,a.La):(this.Os&&this.w("movestop"),a.Qe.Xi=0,this.set("position",a.Qe[0]),this.H_(a.Qe,a.speed,a.La,a.fX))):this.moveTo(a.Qe,a.speed,a.La,!0))},moveTo:function(a,b,c,d){var f=this.get("position");a.Xa(f);var g=Math.round(a.Kf(f)/1E3/b*36E5);if(0===g)return this.w("moveend");this.Te&&(this.Te.stop(),this.Te=null);this.Te=new V.Ph(f,a);c=c||function(a){return a};this.Te.transition=function(a,b,d){if(d>=g)return b;var f=(b.M-a.M)*c(d/g)+a.M;a=(b.O- a.O)*c(d/g)+a.O;return new V.P(f,a)};this.Te.so=function(b){this.set("position",b);d&&this.bc.w("moving",{passedPath:[this.Te.start,this.get("position")]});this.w("moving");b.Lb(a)&&(this.Te&&(this.Te.stop(),this.Te=null),this.bc.w("moveend"),this.w("moveend"))};this.get("autoRotation")&&!V.j.nd&&(b=this.bR(f,a),this.set("angle",b));this.Te.Lk(this)},p2:function(){this.Te&&(this.Te.stop(),this.Te=null,this.w("movestop"))},z0:function(){this.Te&&(this.Te.stop(),this.Te=null,this.w("movepause"))},H_:function(a, b,c,d){function f(){var b=a.slice(0,a.Xi||0);b.push(this.get("position"));this.bc.w("moving",{passedPath:b})}function g(){a.Xih?f=Math.PI+f:0>g&&0>=h?f=Math.PI+f:0>g&&0<=h&&(f=2*Math.PI+f)):f=c.y>d.y?Math.PI/2:3*Math.PI/2;return V.g.qf(180*f/Math.PI,1)}});V.Ia.Tv=V.Ia.Fj.extend({D:function(a,b){arguments.callee.cb.apply(this,arguments);this.Q("items",a,!0);this.Q("content",a,!0);this.Q("resolution",b);this.Q("centerCoords",b);this.oq=a},GL:function(){this.re();this.No();this.Uk();this.map.e("movestart",this.dh,this);this.map.e("mapmove",this.dh,this);this.map.e("zoomstart",this.dh,this);this.map.e("click",this.dh,this);this.map.e("closeOverlays",this.dh,this);this.map.e("rotate",this.dh,this)},dh:function(){this.oq.map&&this.oq.close()},mapChanged:function(){}, positionChanged:function(){this.Uk()},re:function(){this.C&&(this.C.parentNode&&this.C.parentNode.removeChild(this.C),this.C=null);var a=V.f.create("div",null,"amap-menu");V.B.e(a,"mousedown",function(a){V.B.stopPropagation(a)},this);this.C=a;this.map.ab.Ia.appendChild(this.C)},No:function(){var a=this,b=this.C;b.innerHTML="";var c=this.get("content");if("object"===typeof c)b.appendChild(c);else if("string"===typeof c)b.innerHTML=c;else if((c=this.get("items"))&&c.length){var d=V.f.create("ul",b, "amap-menu-outer");c.sort(function(a,b){return isNaN(a.Tu)||isNaN(b.Tu)?0:a.Tu-b.Tu});for(b=0;b a.width-d.width-5&&(b-=d.width);c>a.height-d.height-5&&(c-=d.height);this.C.style.right="";this.C.style.bottom="";this.C.style.left=b+"px";this.C.style.top=c+"px"}},Ue:function(){this.C&&(this.map.F("click",this.uE,this),this.map.ab.Ia.removeChild(this.C),this.oq.mh=!1,this.C=this.oq.Qi.map=null,this.map.F("movestart",this.dh,this),this.map.F("zoomstart",this.dh,this),this.map.F("click",this.dh,this),this.map.F("closeOverlays",this.dh,this),this.map.F("rotate",this.dh,this))},visibleChanged:function(){this.C&& (this.get("visible")?this.C.style.display="block":this.C.style.display="none")},itemsChanged:function(){this.C&&this.No()}});V.Ia.Rh=V.Ia.Fj.extend({D:function(a,b){arguments.callee.cb.apply(this,arguments);this.Uc("content contentDom position contentU isCustom autoMove showShadow closeWhenClickMap size offset".split(" "),a);this.Q("retainWhenClose",a,!0);a.Q("toBeClose",this);this.Dl=a},GL:function(a){this.xX||(this.re(),this.No(),this.pX());this.Ii("resolution");this.Ii("centerCoords");this.Ii("render");this.Q("resolution",a);this.Q("centerCoords",a);this.Q("render",a);this.map=a;a.ab.Ia.appendChild(this.jb);this.PC(); this.Uk();this.$D();this.xX=!0;this.bc.w("onAdd",{type:"onAdd",target:this.bc})},re:function(){var a=V.f.create("div");a.className="amap-info";var b=V.f.create("div",a),c=V.f.create("div",a),d=V.f.create("div",c);a.style.position="absolute";c.style.position="absolute";c.style.bottom=-1*(this.get("offset").y||0)+"px";c.style.left=(this.get("offset").x||0)+"px";b.style.position="absolute";b.style.bottom=-1*(this.get("offset").y||0)+"px";b.style.left=(this.get("offset").x||0)+"px";this.jb=a;this.Pc= c;this.yr=b;this.Le=d;this.set("contentDom",this.Le,!0)},No:function(){var a=this.get("contentU");if(a){var b=this.get("isCustom"),c=this.Le,d=this.yr;c.innerHTML="";var f=null;if(b){if("string"===typeof a)c.innerHTML=a;else if(a instanceof Array)for(f=0;f=c;c+=1)d=V.f.create("div",a),g=[],g.push("position:absolute;"),g.push(b),g.push("top:"+f[c].top+"px;"),g.push("left:"+f[c].left+"px;"),g.push("width:"+ f[c].width+"px;"),g.push("height:"+f[c].height+"px;"),g.push("background-position:"+-f[c].offsetX+"px "+-f[c].offsetY+"px;"),d.style.cssText=g.join("")}},O7:function(){},Uk:function(){var a=this.map,b=this.jb,c=this.get("position");if(a&&b&&c){var c=Math.pow(2,20-this.map.get("zoom")),d=a.Db(this.get("position")),f=this.get("centerCoords"),b=(d.x-f.x)/c,c=(d.y-f.y)/c,a=a.get("size"),d=V.f.Nq(this.Le);if(V.j.Mg||V.j.Vq)d.width=this.Le.childNodes[0].offsetWidth+14;d=this.get("isCustom")?d.width/2:(d.width- 30)/2;this.jb.style.left=Math.round(b+a.width/2-d)+"px";this.jb.style.top=Math.round(c+a.height/2)+"px";b=this.yX;if(this.Dz&&b.childNodes[0]){for(c=a=0;c(this.get("size").height||b.clientHeight)?this.Dz.style.right="20px":this.Dz.style.right="5px"}}},mQ:function(){var a=new V.K(2-this.Le.offsetWidth/2,2-this.Le.offsetHeight),b=this.get("offset")||new V.K(0,0);this.get("isCustom")||(a=a.add(new V.K(0,-23)));return a.add(b)},$D:function(){if(this.get("position")&& this.get("autoMove")&&this.Le){var a=this.map,b=new V.ac(this.Le.offsetWidth,this.Le.offsetHeight);a.kB(this.get("position"));for(var c=a.kB(this.get("position")).add(this.mQ()),d=c.add(b.Lo()),f=a.get("size"),g=a.RY(),h=0,k=0,l=0;ln&&0n&&0>p&&(Math.abs(n)p&&(Math.abs(n)c.x||b.Pe()>f.Pe()?g=20-c.x:f.Pe()c.y||b.Ne()>f.Ne()?l=5-c.y:f.Ne()b.Rn?-1:1}):d.sort(function(a,b){return a.get("isTop")?-1:b.get("isTop")?1:a.get("zIndex")>b.get("zIndex")||a.get("zIndex")===b.get("zIndex")&&a.Rn>b.Rn?-1:1});b(d,f)}else b([], f)}},VZ:function(a,b,c){var d=(b[0]-c[0][0])/this.N;b=(b[1]-c[0][1])/this.N;a=a.get("params");c=a.offset;var d=[d-c.x,b-c.y],f;a=a.shape;if("circle"===a.G.type){if(b=a.G.coords[0],c=a.G.coords[1],Math.sqrt((d[0]-b)*(d[0]-b)+(d[1]-c)*(d[1]-c))<=a.G.coords[2])return!0}else{if("poly"===a.G.type)return f=a.G.coords,f=this.UW(f),V.Tc.Dd(d,f);if("rect"===a.G.type)return f=a.G.coords,a=f[0],b=f[1],c=f[2],f=f[3],f=[[a,b],[c,b],[c,f],[a,f]],V.Tc.Dd(d,f)}return!1},UW:function(a){for(var b=[],c=0;c/2g&&("opacity"in a.style?(k.push("opacity"),k.push(":"),k.push(g),k.push(";")):8<=document.documentMode?(k.push("-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity="),k.push(Math.ceil(100*g)),k.push(")\';")):(k.push("filter:alpha(opacity="),k.push(Math.ceil(100* g)),k.push(");")));k.push("z-index:"+h+";");V.f.RM(a,k.join(""))}});V.J.$c=V.W.extend({ka:[V.ea,V.yd],D:function(a){this.l=a;this.kl=a.kl;this.C=a.ab.S;this.Q("display",a);this.Q("rotateEnable",a);this.Q("style",a);this.Q("hightlight",a)},nA:function(a,b,c,d){function f(a,d){a.length&&(h[V.g.indexOf(b,d)]=a);k-=1;0>=k&&(c(h),k=0)}for(var g=b.length,h=[],k=0,l,m=[],n=0;nb.zoom||l.Zc[1]Math.abs(r)&&(r=0);1E-5>Math.abs(u)&&(u=0);var w=[];w.push("position:absolute"); w.push("z-index:"+(n.Vf||c[g].get("zIndex")));c[g].du?(w.push("top:"+Math.floor(f/2+u)+"px"),w.push("left:"+Math.floor(d/2+r)+"px")):m.UK?(w.push("height:"+m.height*t+"px"),w.push("width:"+m.width*t+"px"),w.push("top:"+(f/2-u*t)+"px"),w.push("left:"+(d/2-r*t)+"px")):(1!==t&&(w.push(V.f.Sk[V.f.Nd]+"-origin:"+r+"px "+u+"px"),w.push(V.f.Sk[V.f.Nd]+":scale3d("+t+","+t+",1)")),w.push("top:"+Math.floor(f/2-u)+"px"),w.push("left:"+Math.floor(d/2-r)+"px"),k.Bh&&(w.push("height:"+m.height+"px"),w.push("width:"+ m.width+"px")));k.Bu||1===l.opacity||"number"!==typeof l.opacity||w.push(V.f.ZJ(m,l.opacity));(m.parentNode!==this.C||V.j.Gg)&&this.C.appendChild(m);V.f.RM(m,w.join(";"))}}}}a=this.l.ab.ak;h=this.l.ab.S;c=this.l.ab.Ia;V.f.Nd&&"number"===typeof b.rotation&&0!==b.rotation?(a.style[V.f.Nd+"Origin"]=d/2+"px "+f/2+"px",a.style[V.f.Nd]="rotate("+b.rotation+"deg)",a.style.overflow="visible",h.style.overflow="visible",c.style.overflow="visible"):(a.style.cssText="",h.style.cssText="-webkit-transform: translateZ(0);", c.style.cssText="");this.l.Av=!1}});V.J.Sg=V.J.Wf.extend({D:function(a,b){arguments.callee.cb.apply(this,arguments);this.Q("reload",a,!0);var c=V.j.size;if(this.l&&this.l.da){var d=this.l.da.get("tileCacheSize");d&&0a.be||ca.od?!1:!0},gN:function(a,b){if(a.length){var c=this.Ga.Ob(this.fd<<20-a[0].Fa.z),d=Math.floor(c.x),f=Math.floor(c.y); a.sort(function(a,c){var k=a.Fa,l=c.Fa,m=k.x-d,k=k.y-f,n=l.x-d,l=l.y-f;return(b?-1:1)*(n*n+l*l-(m*m+k*k))})}},clear:function(){this.TA.clear()},Zu:function(a,b){this.ej=!1;b.ri!==this.ri&&(this.ri=b.ri,this.Na.clear());this.clear();this.Wh=b.Wh;this.Vh=b.Vh;this.fd=b.fd;var c=a.Z;this.ue=b.ue||a.Z.ue;this.hi=c.hi;this.size=a.size;this.rotation=c.rotation;this.Ga=c.Ga;this.ta=a.Z.ta;this.zoom&&(this.IB=c.zoom>this.zoom?"in":c.zoomthis.Rf&&(this.qc=this.Rf);this.N=c.N;this.Gd=c.Gd;c=a.Z.ta;this.rg=this.Tt(c,b.A);this.Nr=c.PN?this.Tt(c.PN,b.A):null;var d=this.rg,f=this.ta.v2,g=null,g=f=this.qc;){t[q+""]|=R;v=q.x>>1;s=q.y>>1;u=v<<1;K=s<<1;l=0;for(I=2;0l.gs)&&(v=!0))):(r=!1,this.WA(d,I,B)&&(v=!0),l.status||this.Kc!==f||this.Nr&&!this.WA(this.Nr,I,B)||m.push(l)),v&&p.push(l);r?(this.GJ||(this.GJ=!0),this.r.Va||(l={key:"rb",index:1,id:this.l.da.id},this.r.fo&&(l.key="rl"),V.Ld.De.end(l),V.Ld.De.push({key:"ftc",Vk:n.length,id:this.l.da.id}))):this.r.Va=!1;this.ej=r;n.length&&this.GJ&& (h.push(n),n.ej=r);k.push(m);m=!1;if(this.Vh){p=p.slice(0);g=[];for(r=p.length-1;0<=r;r-=1)l=p[r],t[l.key]&4||g.push(l);l=b.Zc[1];for(u=this.qc+1;p.length&&u<=l;u+=1){n=[];f=p;p=[];q.z=u;for(r=f.length-1;0<=r;r-=1)if(I=f[r],R=t[I.key],R&7)for(v=I.Fa.x<<1,s=I.Fa.y<<1,I=1;0<=I;I-=1)for(q.x=v+I,B=1;0<=B;B-=1)q.y=s+B,R=q+"",K=this.Na.uo(R),t[R]&5&&K&&K.va?(K.ey=!0,K.Jd=this.Jd,n.push(K)):p.push(new V.Yf(q.Jb(),""));n.length&&(m=!0,h.push(n))}p=g}if(!m&&this.Wh)for(I=!h.length||this.Bh?b.Zc[0]:Math.max(b.Zc[0], this.qc-2),B=Math.max(I,this.qc-this.v4),u=this.qc-1;p.length&&u>=I;u-=1){s=u>=B;m=[];n=[];g={};f=p;p=[];for(r=f.length-1;0<=r;r-=1)l=f[r],q.z=u,q.x=l.Fa.x>>1,q.y=l.Fa.y>>1,l=this.pu(q,!s),g[l.key]||(g[l.key]=1,v=!1,l.va&&(!this.A4||t[l.key]&64)?(q.x=Math.min(d.be,Math.max(d.Se,q.x<w[R]?v=!0:l.ey=!0,l.Jd=this.Jd,n.push(l)):v=!0,v&&p.push(l));n.length&&h.push(n);s&&m.length&&k.push(m)}this.oB= this.pB=0;this.jL(k,c);this.Dr=h;this.r.set("tiles",h)},c7:function(){if(!this.zi){for(var a=this.rg.be+1,b=this.rg.od+1,c=this.rg.Se-1,d=this.rg.pd-1,f,g=[],h=c;h<=a;h+=1)for(var k=d;k<=b;k+=1)if(h===c||h===a||k===d||k===b)f=new V.Qh(this.Kc,h,k),this.Na.uo(void 0)||(f=this.pu(f),g.push(f));this.jL([g])}}});V.J.uc.Sg=V.J.Sg.extend({D:function(a,b){arguments.callee.cb.apply(this,arguments);this.Om=120;this.zi=!1;this.re();this.Rf=a.Rf},Nf:function(){return this.ob},re:function(){this.ob=document.createElement("div");this.ob.className=this.r.Qa.get("className")||"amap-layer";this.Tl=document.createDocumentFragment()},vm:function(a){var b=Math.pow(2,a.Z.zoom-this.qd),c=a.Z.Ga.Xa(this.wk).Ob(this.Sf);this.transform={translate:this.transform.translate.add(c),scale:b,rotate:0};this.Ga=a.Z.Ga},pz:function(a, b){if(!this.oa||3E4V.g.Wa/2&&(g.x-=V.g.Wa);this.vz=g.Ob(this.Gd);return[d,f,c,b]},Bo:function(a,b){var c=this.pz(a,b);this.mv.apply(this,c);this.Sc(a);this.ej&& !this.r.Va&&(c=this.r,V.Ld.De.end({id:this.l.da.id,key:"rb",index:2}),c.Va=!0,c.of?c.pa("renderComplete"):(c.of=!0,c.pa("complete")))},we:function(a,b){this.Xo=a.Xo;this.pg=a.pg;this.Zu(a,b);this.wk&&V.j.Gg&&(a.Kd||a.pg)?this.vm(a,b):this.Bo(a,b);this.wk=this.Ga;this.zj&&this.set("display",0)},pr:function(){for(var a=this.ob.childNodes,b=a.length-1;0<=b;b-=1)a[b]&&a[b].fc!==this.fc&&this.ob.removeChild(a[b])},eC:function(a,b){return a.pd===b.pd&&a.Se===b.Se&&a.od===b.od&&a.be===b.be},mv:function(a){var b= this.fc;this.fc+=1;var c=!1,d,f,g;f=!1;var h=[];this.oa.x-this.Ga.x<-V.g.Wa/2?this.oa=new V.K(this.oa.x+V.g.Wa,this.oa.y):this.oa.x-this.Ga.x>V.g.Wa/2&&(this.oa=new V.K(this.oa.x-V.g.Wa,this.oa.y));for(d=a.length-1;0<=d;d-=1)if(g=a[d],g.length){f=g[0].Fa.z;for(var k,l,m=this.Bv(this.Kc,f),n=g.length-1;0<=n;n-=1){l=g[n];this.DM(l);if(!l.pc&&this.oa===l.oa&&l.qd===this.qd){var p=l.cc;if(p&&p.parentNode===this.ob&&1===l.gs){h.push(l);p.fc=this.fc;l.fc=this.fc;continue}}l.oa=this.oa;l.qd=this.qd;k=l.Fa; var c=!0,q=(new V.K((k.x<<20-f)*this.fd,(k.y<<20-f)*this.fd)).Xa(this.oa),q=q.Ob(this.Gd);q.x=Math.floor(q.x);q.y=Math.floor(q.y);var r=1;if(!l.NE||this.oP&&l.fc!==b)l.NE=this.currentTime;this.Ug&&!l.ey?(p=Math.max(0,Math.abs(k.z-this.zoom)-1),r=Math.min(1,(this.currentTime-l.NE)/(1/Math.pow(1.32,p)*this.Om)),1!==r&&(this.zj=!0)):l.ey=!1;l.fc=this.fc;l.gs=r;l.va?(p=l.cc,!p&&l.pc&&l.pc.cc&&(p=l.pc.cc),0!==r&&p&&(this.TJ(p,q.x,q.y,m,m,r,k.z),p.parentNode!==this.ob&&(V.j.Mg&&"overlayer"===this.r.get("type")&& (p.style.display="none"),this.Tl.appendChild(p)),p.fc=this.fc,l.Kc=this.Kc,h.push(l))):l.Jd=null}f=!0}1g&&!p&&(m=q,n=-g,p=!0);for(p=0;n+p<=k;)n=d?f:Math.round(f/(d[0]+d[1])),h=(d[0]+d[1])/f*2*Math.PI;d=d[0]/f*2*Math.PI;for(f=0;fparseFloat(window.opera.version())&&(c=-c)):a.detail&&(c=-a.detail);this.R.xq=(this.R.xq||0)+c;this.w("mousewheel",b)},pK:function(a){if(this.get("scrollWheel"))if(this.MS(a),a.preventDefault)a.preventDefault();else return!1},IA:function(a,b){V.B.preventDefault(a);b=this.Og(a);var c=this.R;if(!this.kr(b.Ub,c.ol)){c.ol=b.Ub;if(c.Jj){if(!c.xc&& (b.Ub.x!==this.R.Ui.x||b.Ub.y!==this.R.Ui.y)){var d;this.TF(c.nl)&&c.nl.get("draggable")&&(d=c.nl);!d&&this.get("dragEnable")&&(d=this);d&&(c.xc=!0,c.zq=d,c.Pf=c.Ui,c.mJ=c.$B)}c.xc&&(c.yq=b,this.iH())}if(a.preventDefault)a.preventDefault();else return!1}},tu:function(a){V.f.Ab(this.C,"amap-drag");a=this.Og(a);V.f.xY();V.f.tJ();this.R&&(this.R.xc=!1);this.rh&&(this.rh.stop(),this.R.xc=!1,this.set("display"));this.R.jl&&(this.R.jl=!1,this.R.xc=!1,this.R.zq.w("dragend",a));this.R.Jj=!1;this.R.ol=null; this.R.Pf=null;V.B.F(document,"mousemove",this.IA,this);V.B.F(document,"mouseup",this.tu,this);try{V.B.F(window.parent.document,"mouseup",this.tu,this)}catch(b){}V.B.V2(this.ab.Ed)},yZ:function(a,b){b=b||this.Og(a);var c=this.get("size"),d;0<=b.Ub.x&&b.Ub.x<=c.width&&0<=b.Ub.y&&b.Ub.y<=c.height&&(d=!0);this.RK&&!d?this.w("mouseout",b):!this.RK&&d&&this.w("mouseover",b);this.RK=d},rK:function(a){V.B.preventDefault(a);V.j.bo&&(a=window.event);if(a){a=this.Og(a);var b=this.R,c=a.le,d;this.R.Jj||(c instanceof V.Ia.Fj?d=c.bc.get("cursor"):c instanceof V.S.Wf?d=c.get("cursor"):c===this&&(d=c.get("defaultCursor")),d=this.da.get("optimalCursor")||d,this.C.style.cursor=d||"");d=b.uS;var f=a.yl;d!==f&&(d&&b.cG&&b.cG.w("mouseout",a),f&&c&&(c.w("mouseover",a),c.get("topWhenMouseOver")&&c.bc.setTop(!0)));a.le.w("mousemove",a);a.le!==this&&this.w("mousemove",a);b.uS=a.yl||null;b.cG=a.le||null}},R:{xc:!1},qK:function(a){this.Gx=!0;V.f.ZX();V.f.lJ();this.rh&&(this.rh.stop(),this.R.xc=!1);this.R.ol=null;this.R.Pf= null;var b=this.Og(a,!0);this.R.gY=new Date;this.R.nl=b.le;this.R.Ui=b.Ub;this.R.sS=b.button;this.R.Jj=!0;this.R.tS=b;this.R.xc||(this.R.$B=b);this.Wd&&this.Wd.stop();var c=b.le;!c.bc&&c.get("dragEnable")&&(this.R.Jj=!0);V.f.tb(this.C,"amap-drag");b.le.w("mousedown",b);b.le!==this&&this.w("mousedown",b);V.B.K1(this.ab.Ed);V.B.e(document,"mousemove",this.IA,this);V.B.e(document,"mouseup",this.tu,this);try{window.parent.document&&V.j.bo&&V.B.e(window.parent.document,"mouseup",this.tu,this)}catch(d){}V.B.stopPropagation(a)}, wL:function(a){this.yZ(a.event,a.lL)},q5:function(a){this.IA(a.event,a.lL)},sK:function(a){a=this.Og(a);var b=a.le,c=this.da.get("allBubble")||b.get("bubble");b!==document&&(b.w("mouseup",a),a.le!==this&&c&&this.w("mouseup",a));this.kr(a.Ub,this.R.Ui)&&(this.hg&&this.kr(this.R.Kx,a.Ub)&&a.button===this.R.sS?(clearTimeout(this.hg),this.hg=null,V.B.VK(a)?c?(b.w("dblclick",a),b!==this&&this.w("dblclick",a)):b.w("dblclick",a):b.w("rdblclick",a),this.R.Kx=null):(V.B.VK(a)?(c?(b.w("click",a),b!==this&& this.w("click",a)):(b.w("click",a),this.w("closeOverlays",a)),this.w("closeInfo",a),b.get("topWhenClick")&&b.bc.setTop(!0)):c?(b.w("rightclick",a),b!==this&&this.w("rightclick",a),this.w("contextmenu",a)):(b.w("rightclick",a),b.w("contextmenu",a)),this.R.Kx=a.Ub,this.hg&&clearTimeout(this.hg),this.hg=setTimeout(V.g.bind(function(){clearTimeout(this.hg);this.hg=null;this.R.Kx=null},this),260)))}});V.$c.Yb({LG:function(a){this.pa("mousewheel",a);var b=this;if(1<=Math.abs(this.R.xq)&&!this.ON){var c=this.R.xq;if(1<=c)c=1;else if(-1>=c)c=-1;else return;b.Zs(a.Ik,c);this.R.xq=0;this.ON=!0;setTimeout(function(){b.ON=!1;b.R.xq=0},V.j.Hu?50:40)}},HG:function(a){this.pa("mousemove",a)},IG:function(a){this.pa("mouseout",a)},JG:function(a){this.pa("mouseover",a)},KG:function(a){this.pa("mouseup",a)},GG:function(a){this.pa("mousedown",a)},MG:function(a){this.pa("rightclick",a)},BG:function(a){this.pa("contextmenu", a)},NG:function(a){this.get("doubleClickZoom")&&this.get("zoomEnable")&&this.Zs(a.Ik,-1);this.pa("rdblclick",a)}});V.$c.Yb({dS:function(){this.Fp={left:[37],right:[39],fY:[40],OC:[38],A3:[187,107,61],B3:[189,109,173]};this.cQ={left:this.Bn(this.Xs(100,0)),right:this.Bn(this.Xs(-100,0)),fY:this.Bn(this.Xs(0,-100)),OC:this.Bn(this.Xs(0,100)),A3:this.Bn(this.lI(1)),B3:this.Bn(this.lI(-1))}},zP:function(){this.get("keyboardEnable")&&(this.Fp||this.dS(),V.B.e(document,"keydown",this.Vs,this),V.B.e(document,"keyup",this.zG,this))},hy:function(){V.B.F(document,"keydown",this.Vs,this);V.B.F(document,"keyup",this.zG,this)}, zG:function(a){var b=a.keyCode;!a.ctrlKey||37!==b&&39!==b||this.set("refresh",1)},Vs:function(a){var b=a.keyCode,c;for(c in this.Fp)if(this.Fp.hasOwnProperty(c))for(var d=0;dh)b.setUint8(c++,h>>>0&127|0);else if(2048>h)b.setUint8(c++,h>>>6&31|192),b.setUint8(c++,h>>>0&63|128);else if(65536>h)b.setUint8(c++,h>>>12&15|224),b.setUint8(c++,h>>>6&63|128),b.setUint8(c++,h>>>0&63|128);else if(1114112>h)b.setUint8(c++,h>>>18&7|240),b.setUint8(c++,h>>>12&63|128),b.setUint8(c++,h>>>6&63|128),b.setUint8(c++,h>>>0&63|128);else throw Error("bad codepoint "+h); }}function c(a,b,c){var d="",f=b;for(b+=c;ff)b+=1;else if(2048>f)b+=2;else if(65536>f)b+=3;else if(1114112>f)b+=4;else throw Error("bad codepoint "+f);}return b}function f(a,b){this.offset=b||0;this.view=a}function g(c,f,h){var k=typeof c;if("string"===k){var q=d(c);if(32>q)return f.setUint8(h,q|160),a(f,h+1,c),1+q;if(256>q)return f.setUint8(h,217),f.setUint8(h+1,q),a(f,h+2,c),2+q;if(65536>q)return f.setUint8(h,218),f.setUint16(h+1,q),a(f,h+3,c),3+q;if(4294967296>q)return f.setUint8(h,219), f.setUint32(h+1,q),a(f,h+5,c),5+q}if(c instanceof ArrayBuffer){q=c.byteLength;if(256>q)return f.setUint8(h,196),f.setUint8(h+1,q),(new Uint8Array(f.buffer)).set(new Uint8Array(c),h+2),2+q;if(65536>q)return f.setUint8(h,197),f.setUint16(h+1,q),(new Uint8Array(f.buffer)).set(new Uint8Array(c),h+3),3+q;if(4294967296>q)return f.setUint8(h,198),f.setUint32(h+1,q),(new Uint8Array(f.buffer)).set(new Uint8Array(c),h+5),5+q}if("number"===k){if(c<<0!==c)return f.setUint8(h,203),f.setFloat64(h+1,c),9;if(0<= c){if(128>c)return f.setUint8(h,c),1;if(256>c)return f.setUint8(h,204),f.setUint8(h+1,c),2;if(65536>c)return f.setUint8(h,205),f.setUint16(h+1,c),3;if(4294967296>c)return f.setUint8(h,206),f.setUint32(h+1,c),5;throw Error("Number too big 0x"+c.toString(16));}if(-32<=c)return f.setInt8(h,c),1;if(-128<=c)return f.setUint8(h,208),f.setInt8(h+1,c),2;if(-32768<=c)return f.setUint8(h,209),f.setInt16(h+1,c),3;if(-2147483648<=c)return f.setUint8(h,210),f.setInt32(h+1,c),5;throw Error("Number too small -0x"+ (-c).toString(16).substr(1));}if("undefined"===k)return f.setUint8(h,212),f.setUint8(h+1,0),f.setUint8(h+2,0),3;if(null===c)return f.setUint8(h,192),1;if("boolean"===k)return f.setUint8(h,c?195:194),1;if("object"===k){var k=0,r=Array.isArray(c),u=null;r?q=c.length:(u=Object.keys(c),q=u.length);16>q?(f.setUint8(h,q|(r?144:128)),k=1):65536>q?(f.setUint8(h,r?220:222),f.setUint16(h+1,q),k=3):4294967296>q&&(f.setUint8(h,r?221:223),f.setUint32(h+1,q),k=5);if(r)for(r=0;rc)return 1+c;if(256>c)return 2+c;if(65536>c)return 3+c;if(4294967296>c)return 5+c}if(a instanceof ArrayBuffer){c=a.byteLength;if(256>c)return 2+c;if(65536>c)return 3+c;if(4294967296>c)return 5+c}if("number"===b){if(a<<0!==a)return 9;if(0<=a){if(128>a)return 1;if(256>a)return 2;if(65536>a)return 3;if(4294967296>a)return 5;if(1.8446744073709552E19> a)return 9;throw Error("Number too big 0x"+a.toString(16));}if(-32<=a)return 1;if(-128<=a)return 2;if(-32768<=a)return 3;if(-2147483648<=a)return 5;if(-9223372036854775E3<=a)return 9;throw Error("Number too small -0x"+a.toString(16).substr(1));}if("undefined"===b)return 3;if("boolean"===b||null===a)return 1;if("object"===b){b=0;if(Array.isArray(a))for(var c=a.length,f=0;fc)return 1+b;if(65536> c)return 3+b;if(4294967296>c)return 5+b;throw Error("Array or object too long 0x"+c.toString(16));}throw Error("Unknown type "+b);}var k={j6:function(a){if(void 0===a)return"undefined";var b,c;a instanceof ArrayBuffer?(c="ArrayBuffer",b=new DataView(a)):a instanceof DataView&&(c="DataView",b=a);if(!b)return JSON.stringify(a);for(var d=[],f=0;f"}};k.S7=a; k.R7=c;k.Q7=d;f.prototype.map=function(a){for(var b={},c=0;ck.z&&this.JY(h)?this.set("display",0):h.status="loading"}this.AU(a,b,V.g.bind(function(a,c){if(c.length){for(var f=0,g=c.length;f< g;f++){var h=c[f].Fa,k=h.x,l=h.y,h=h.z;if(10>h){var m=Math.pow(2,h);if(k>=m||0>k)k=(k+m)%m}d.push(V.g.Xz(k,l,h).join(","))}!this.fo&&this.ub&&"unsupport"!==this.ub.Sb?(1>this.ub.count||3=b){var d=this;V.dl.get({type:this.l.da.Va?"NFS":"FS",td:this.l.da.get("showBuildingBlock"),B2:a,Zd:!!this.Bh,S:this.r,url:this.Tn(b,[])},function(f,g){if(!f&&g.OA.length){g.OA.length===a.length&&V.Ld.De.end({key:d.sF(),index:0,id:d.l.da.id});if(g.ce){d.hk=g.Hf["x-vd-v"];d.$n=g.Hf.tv;var h="#"+g.Hf.bgc;d.l.ge!==h&&(d.l.ge=h);g.OA.forEach(function(a){a.status="loaded"});h=d.pF(b,g.ce);d.FB(h)}else g.f_.forEach(function(a){d.Su(a,b,[], g.Hf["x-vd-v"],!0)}),d.set("display");a=g.C_}c(null,a)})}else c(null,a)},n_:function(a,b,c){var d=(new Date).getTime()+"-"+(this.ub.count+1&65535),f={command:"tiles",reqId:d,payload:{t:c,opt:b,cs:{level:b,flds:this.r.xa.join(",")}}},g;if(!this.ub.NK()){var h=this;setTimeout(function(){h.ub&&!h.ub.NK()&&(h.Py?h.Py++:h.Py=1,h.ub.rY(g)&&(delete h.Qd[d],h.nB(a,b,c)))},300)}g=this.ub.send(f);this.Qd[d]={Io:a,Bi:b}},HB:function(a){a.Va||(a.status="",a.Va=void 0,a.va=null,a.cc=null,a.pc&&(a.pc.cc=null,a.pc.pc= null,a.pc=null),this.Na.Dj(a.key))},pF:function(a,b){return{LW:this.r.td,Mt:V.q.Mt||null,X4:this.r.get("businessIconsID"),hk:this.hk,$n:this.$n,f6:this.r.get("iconsID"),cL:this.r.Yh,Gu:a,ce:b,U:this.r.get("forceBig")||V.j.U,mode:this.r.get("mode"),H0:V.q.dc,IM:this.r.get("forceBig")?1:this.r.Eb,tr:this.r.get("forceBig")?!1:this.r.ha}},OX:function(a){a=a.split(";");for(var b=0,c=a.length;b=b&&V.dl.set({ce:c.data.ce,"x-vd-v":k.hk,tv:k.$n,vdataVersion:k.Qo,bgc:k.l.ge,Zd:!!k.Bh,url:k.Tn(10,[]),S:k.r,td:k.l.da.get("showBuildingBlock")},function(){});c.data&&k.FB(c.data)}})})()}}},Su:function(a,b,c){function d(d,f,g){f=[g,d,f].join("/");18k&&(g<=f&&d(g+q,h,k),g>=q-f&&d(g-q,h,k));d(g,h,k)},bC:function(a){this.Al||(this.Al=[]);this.Al.push(a)},th:function(){if(this.Al&&this.Al.length){for(var a=0,b=this.Al.length;aMath.floor(c.be/b)||dMath.floor(c.od/b)||fV.g.Wa/2&&(d.x-=V.g.Wa);this.vz=d.Ob(this.Gd);for(d=c.length-1;0<=d;d-=1){var f=c[d];if(f.length){var g=f[0].Fa.z,h=!1;!1===a.vW||!f.ej||V.Aa.Jc||!(g<=this.zoom&&"in"=== this.IB||g>=this.zoom&&"out"===this.IB)&&this.IB||this.labels&&this.labels.length&&!a.Dh&&this.eC(this.labels.Cr,this.rg)||(h=!0,this.labels&&this.labels.Ch?(this.xk=this.labels.Ch,this.xk.zoom=this.labels.zoom):(this.xk=[],this.xk.zoom=null),this.labels=[],this.labels.zoom=g,this.labels.Cr=this.rg);if(h){for(g=f.length-1;0<=g;g-=1){var k=f[g],h=!1,l=k.xa;!l&&k.pc&&k.pc.xa&&(l=k.pc.xa,h=!0);if(l){for(var k=0,m=l.length;kb.Kk?-1:a.pe>=b.pe?-1:1})}}}this.ZW(a)&&this.d1(a);this.M_=!1;this.Sc(a);this.ej&&!this.r.Va&&(c=this.r,V.Ld.De.end({id:this.l.da.id,key:"rl",index:2}),c.Va=!0,c.of?c.pa("renderComplete"):(c.of=!0,c.pa("complete")))},we:function(a,b){this.im=a.im;this.Xo=a.Xo;this.Zu(a,b);this.Kd||this.th();this.wk&&(a.CN||a.JC&&V.j.Gg||a.pg&&!a.Kd&&a.AW)?this.vm(a,b):this.Bo(a,b);this.wk=this.Ga;this.kj=this.labels;this.zj&&this.set("display",0)},Sc:function(a){var b=this.Ga.Xa(this.oa);b.x<-V.g.Wa/ 2&&(b.x+=V.g.Wa);b.x>V.g.Wa/2&&(b.x-=V.g.Wa);this.transform={translate:new V.K(a.Z.ta.gb.x*(this.r.ha?this.r.Eb:1),a.Z.ta.gb.y*(this.r.ha?this.r.Eb:1)),scale:1/(this.r.ha?this.r.Eb:1),rotate:0}},eC:function(a,b){return a.pd===b.pd&&a.Se===b.Se&&a.od===b.od&&a.be===b.be},Iq:function(a,b){var c;if(this.zoom){var d=a.Ob(Math.pow(2,20-this.zoom));this.labels&&(c=this.bZ(d,b))&&(c.TK=!1);!c&&this.Gb&&(c=this.aZ(d))&&(c.TK=!0)}return c?[c]:[]},bZ:function(a,b){for(var c=a.x,d=a.y,f=this.labels.Ch||this.labels, g=f.length-1;0<=g;g-=1){var h=f[g],k=h.Ka[0]/this.N,l=h.Ka[1]/this.N;if((h.jr||!b)&&this.PK(h,c,d,k,l))return h}},aZ:function(a){var b=a.x;a=a.y;for(var c=this.Gb.length-1;0<=c;c-=1){var d=this.Gb[c],f=d.Ka[0]/this.N,g=d.Ka[1]/this.N;if(d.jr&&this.PK(d,b,a,f,g))return d}},PK:function(a,b,c,d,f){for(var g=0;g=d+l-1&&b<=d+l+h+1&&c>=f+m-1&&c<=f+m+k+1)return!0}return!1}, reloadChanged:function(){this.r&&(this.r.Va=!1);this.Na.clear();this.labels=[];this.Rq=[];this.dr=[];this.ob&&this.ob.parentNode&&this.ob.parentNode.removeChild(this.ob);this.$g&&this.$g.parentNode&&this.$g.parentNode.removeChild(this.$g);this.set("display")},Nf:function(){return this.$g},HJ:function(a,b){if("roadlabel"===a||"poilabel"===a)for(var c=0;c=b&&V.dl.set({Ng:!0,data:g,url:this.Tn(b,[]),yf:g[0].split("-").slice(0,3).join("/"),S:this.r,vdataVersion:this.Qo,"x-vd-v":this.hk, tv:this.$n,bgc:this.l.ge,td:this.l.da.get("showBuildingBlock")})))}this.set("display")}},jM:function(a,b){var c=0,d=0,f=1,c=256*b.x,d=256*b.y,f=b.N;return[(c+a[0])*f,(d+a[1])*f]},Su:function(a,b,c,d,f){function g(c,g,l){if(c=p.Na.get([l,c,g].join("/"))){g=c.Fa;var m=V.q.dc+"://vdata.amap.com/icons/"+(h||k?"b":"n")+(10>g.z?"39":"18")+"/1/";if(c&&"loaded"!==c.status)if(p.wN(c,u)){if(-1!==r.indexOf(q))if("limg"===q)a[1]&&(c.Ng={url:"data:image/png;base64,"+a[1],Oo:"limg-"+c.key+"-"+p.r.Yh},V.ui.hm(c.Ng, !0));else{if("roadlabel"===q)for(var n=1;nO[0]||256<=O[0]||0>O[1]||256<=O[1])){var J=p.jM(O,g),O={Ka:J,name:w[0],co:!0,Ik:O,Aa:[],lb:[],visible:!0,ym:!0},W=O.name;O.vr=15>w[2]%90||75O[0]||256<=O[0]||0>O[1]||256<=O[1])){J=p.jM(O,g);O={Ka:J,name:w[0].replace("^",""),Eu:!0,Ik:O,Aa:[],lb:[],visible:!0,ym:!0};C=0;O.Kk=w[8];w[6]&&("v5"===d?(x=w[6].split(":"),C=x[1],Q=Math.floor((parseInt(x[0].split("_")[1])- 28)/2)):C=w[6]);if(C&&w[3]){if("v5"===d){x=V.q.dc+"://vdata.amap.com/style_icon/icon-"+(1===Q?"biz-":"normal-")+(h||k?"big":"small")+".png";O.Aa.push(x);C=parseInt(C)-1;x=Math.floor(C/10);G=C%10;k?(y=48,A=40,D=28):h?(y=A=40,D=28):(y=A=24,D=20);z=y;if(151===C||152===C||153===C)D-=4,M=w[7][0][2],z=y*Math.max(M+2,D)/D;x=[-z/2,-y/2,z,y,A*G,A*x,A,A]}else x=m+C+".png",V.ui.hm(x),O.Aa.push(x),x=[-Math.round(w[3][0]/2),-Math.round(w[3][1]/2),w[3][0],w[3][1]],k&&!f&&(x[0]*=t,x[1]*=t,x[2]*=t,x[3]*=t);O.lb.push(x)}if(w[2]&& w[7])for(M=w[2],x=0;xn&&(c<=l&&g(c+w,m,n),c>=w-l&&g(c-w,m,n));g(c,m,n)}});V.J.canvas.yg.Yb({d1:function(a){this.vn++;var b=this.$g,c=this.Bg;this.Xn={};var d=this.r.ha?this.r.Eb:1,f;0!==a.Z.rotation?(f=2*Math.floor(a.Z.ta.gb.x)*d,d*=2*Math.floor(a.Z.ta.gb.y)):(f=a.size.width*d,d*=a.size.height);V.f.Fi(b,f,d,!0);c.textBaseline="bottom";this.xK=0;a.Gb&&(this.kM(a.Gb,1,a.Gb),0===a.Gb.length&&this.labels&&this.labels.Ch&&this.labels.zoom===this.zoom&&this.labels.Ch.length!==this.labels.length&&(this.labels.Ch=null));this.labels&&this.kM(this.labels,0,a.Gb);!V.j.U&&this.xk&& this.xk.length&&this.$Y(a);this.Rq=this.Rq&&this.wM(c,this.Rq,480);this.dr=this.dr&&this.wM(c,this.dr,200);a.Gb&&this.zM(a.Gb,c,V.Ze.UJ(this.l.da),this.fc,f,d);this.labels&&this.zM(this.labels,c,V.Ze.UJ(this.l.da),this.fc,f,d);this.xk=[];this.labels&&(this.labels.Co=this.zoom,this.labels.zo=this.Ga,this.labels.sr=this.rotation,this.labels.AM=this.r.ha,this.labels.size=a.size);a.Gb&&(this.Gb=a.Gb);this.Gb&&(this.Gb.Co=this.zoom,this.Gb.zo=this.Ga,this.Gb.sr=this.rotation,this.Gb.size=a.size);this.w("afterLabelRender")}, xM:function(a,b,c){var d=void 0===b.ym?!0:b.ym,f=1,g=void 0===b.visible?!0:b.visible,h=null;if(b.xb&&this.l.Hc){var k=h="",l="";b.gd&&this.Rz&&(l=b.gd[0],h=l[3],k=l[4],l=b.co?"":l[7]);if(h=this.Nb.lu&&this.Nb.lu(h,k,l,b.xb))g=h[4],d=h[3],f=h[5]}if(g){if(this.Bg.globalAlpha!==c||f)this.Bg.globalAlpha=c||f;g=0;for(k=b.Aa.length;gV.g.Wa/2? c-=V.g.Wa:c<-V.g.Wa/2&&(c+=V.g.Wa));return this.ii(c,b[1])},ii:function(a,b){var c=this.r.ha?this.r.Eb:1,d=this.N,f=0,g=0,f=(a-this.oc[0])/d,g=(b-this.oc[1])/d;return[Math.round(f*c),Math.round(g*c)]},gZ:function(a){var b=a.Ka,c=b[0];a.reverse&&(c>V.g.Wa/2?c-=V.g.Wa:cb.$b.x||c[1]>b.$b.y||c[0]f&&this.IZ(m,l,0n[0]||n[0]>d+20||-20>n[1]||n[1]>f+20||this.xM(n,l,m)}else l.NA=void 0}g.length&&(this.xK=this.zj=1);return g},zM:function(a,b,c,d,f,g){d=a.zoom!==this.zoom;18===a.zoom&&18l[0]|| l[0]>f+20||-20>l[1]||l[1]>g+20||this.xM(l,k)}}},ZW:function(a){this.kj&&this.kj.AM!==this.r.ha&&this.r.set("reload");if(this.xK)return!0;if(a.Gb&&a.Gb.length)if(this.Gb&&this.Gb.length){if(this.Gb!==a.Gb||this.Gb.Co!==this.zoom||this.Gb.zo!==this.Ga||this.Gb.sr!==this.rotation||!this.Gb.size.Lb(a.size))return!0}else return!0;else if(this.Gb&&this.Gb.length)return!0;return!this.labels||this.labels===this.kj&&this.kj&&this.kj.Co===this.zoom&&this.kj.zo===this.Ga&&!a.Dh&&this.kj.sr===this.rotation&& this.kj.AM===this.r.ha&&this.kj.size.Lb(a.size)?!1:!0},IZ:function(a,b,c,d,f){if(!f&&!c&&!d)return!0;var g;f=b.Aa.length;if(b.km>this.zoom)g=!0;else if(!c&&d)g=!1;else for(var h=0;ha?0:255c;c++)a[b+c]=this.JV(a[b+c]);return a},Hy:function(a,b){var c=259*(b+255)/(255*(259-b));return[c*(a[0]-128)+128,c*(a[1]-128)+128,c*(a[2]-128)+128]},fV:function(a){return[255-a[0],255-a[1],255-a[2]]},Iy:function(a,b){isNaN(b)&&(b=20);var c=Math.max(0,0.299*a[0]+0.587*a[1]+0.114*a[2]-b);switch(this.im){case "amap://styles/normal":case "normal":return[1*c,1.2*c,255];case "amap://styles/light":case "light":return[1*c,1*c,255];case "amap://styles/fresh":case "fresh":return[1* c,1*c,220];case "amap://styles/grey":case "amap://styles/dark":case "insight":case "dark":return[1.5*a[0],1.5*a[1],1*a[2]];case "amap://styles/blue":case "amap://styles/darkblue":case "blue_night":case "mapv":return[2*a[0],1.5*a[1],1*a[2]]}return!1},UR:function(a,b){var c=20,d=10;switch(b.am){case "active":c+=20,d+=20}return this.Hy(this.Iy(a,c),d)},DF:function(a,b){var c=-110;switch(b.am){case "active":c+=30}return this.Hy(this.Iy(this.fV(a),c),50)},RR:function(a){return this.Hy(a,20)},CF:function(a, b,c,d,f,g){var h=a[b],k=a[b+1],l=a[b+2];a=a[b+3];0b[m+3])){f++;kh[0]&&(h[0]=k);l>h[1]&&(h[1]=l);for(var n=!0,p=0;4>p;p++)if(220>b[m+p]){n=!1;break}n&&d++}}return{u3:0Math.abs(a[0]-b[0])&&0.1>Math.abs(a[1]-b[1])},xV:function(a,b){for(var c=[a[0]],d=1,f=a.length;d=f&&g<=n)for(f=0;f=f&&g<=n)for(f=c-1;0<=f&&!this.rt(a,g,f,b,c,m,d);f--);}if(!l.length|| !m.length)return null;m.reverse();h.reverse();if(this.nn(l[l.length-1],k[0])&&this.nn(k[k.length-1],m[0])&&this.nn(m[m.length-1],h[0])&&this.nn(h[h.length-1],l[0])){b=[m,h,l,k];f=0;for(a=b.length;fb[f].length||(b[f]=this.xV(b[f],d.qL),b[f])))return null;return[].concat(b[0]).concat(b[1].slice(1)).concat(b[2].slice(1)).concat(b[3].slice(1))}return null},WQ:function(a){for(var b=[Infinity,Infinity],c=[-Infinity,-Infinity],d=0,f=a.length;dg&&(b[0]=g); b[1]>h&&(b[1]=h);c[0]f?this.aE(a,b,c,d):d&&d.call(this)}},this):d&&d.call(this)},lQ:function(a,b,c){a=a.createImageData(b.width,b.height);var d=a.data,f=a.width,g=a.height,h=c[0]+c[2],k=c[1],l=c[1]+c[3];for(c=c[0];cp;p++)d[n+p]=b.data[n+p];return a},yS:function(a,b,c){var d=a[1]+(b[1]-a[1])*c;return[Math.round(a[0]+(b[0]-a[0])*c),Math.round(d)]},jS:function(a,b,c){for(var d=1/c,f=[],g=1;gg&&(this.ij=g);this.l2()}},bM:function(){var a=new Date,b=!1;do if(b=this.parse(),new Date-a>=this.kD)break;while(!b);this.ZL=b?null:V.g.Ve(this.bM, this)},l2:function(){this.ZL||(this.ZL=V.g.Ve(this.bM,this))},cJ:function(){return document.createElement("canvas")},parse:function(){var a,b=!1,c=this.ij,d=this.Br[this.ij];if(d.ar())6===c&&(b=!0),this.ij=(this.ij+1)%7;else{a=d.N_();var f=a[3],g=f.ha?512:256;if("groupcomplete"===a[0])f.set("display",0);else{var h=a[2],k=h.Bi,l,m=h.key+(18g?g:365.25-g)/182.62*47)},Rp:function(a,b,c,d){return{x:a.x-b*c,y:a.y-b*d}},hC:function(a,b){var c=a.data,d=Math.pow(2,b.Z.zoom-18);this.N=b.Z.N;this.ta=b.Z.ta;for(var f in c)if(c.hasOwnProperty(f)){for(var g=c[f],h=[],k= [],l=[],m=0,n=g.length;mf.length)){c.moveTo(f[0],f[1]);for(var g=0,h=f.length;gf.length)){c.moveTo(f[0],f[1]);for(var g=2,h=f.length;g< h;g+=2)c.lineTo(f[g],f[g+1])}}c.closePath();c.fillStyle=b;c.fill()},ii:function(a){return{x:(a[0]-this.ta.hb.x)/this.N*(this.r.ha?this.r.Eb:1),y:(a[1]-this.ta.hb.y)/this.N*(this.r.ha?this.r.Eb:1)}}});V.J.canvas.Od=V.J.uc.Sg.extend({ka:[V.lw],D:function(a,b){arguments.callee.cb.apply(this,arguments);this.Om=120;this.zi=!0;this.Rf=null;this.Q("mapStyle",a.l);this.Q("style",a.l);a.l.da.ho&&this.Gw(a,b);this.mn=V.S.ds.em;a.l.e("zoomend",this.th,this);a.l.e("moveend",this.th,this)},reloadChanged:function(){this.r&&(this.r.Va=!1);this.Na.clear();this.ob&&this.ob.parentNode&&this.ob.parentNode.removeChild(this.ob);this.set("display")},Nf:function(){return this.bd?[this.ob,this.jp]:[this.ob]},re:function(){this.ob= document.createElement("div");this.ob.className="amap-layer";this.jp=document.createElement("canvas");this.jp.className="amap-layer";this.jp.UK=!0;this.kE=new V.J.canvas.NO(this.jp,this.r);this.Tl=document.createDocumentFragment()},vm:function(a){var b=Math.pow(2,a.Z.zoom-this.qd),c=this.r.ha?this.r.Eb:1,d=a.Z.Ga.Xa(this.wk).Ob(this.Sf);this.transform=[{translate:this.transform[0].translate.add(d),scale:b,rotate:0},{translate:this.transform[1].translate.add(d),scale:b/c,rotate:0,Vf:this.r.get("zIndex")+ 1}];this.Ga=a.Z.Ga},Bo:function(a,b){this.Kd||this.th();var c=this.pz(a,b);this.Dh=a.Dh;this.mv.apply(this,c);this.Sc(a);if(a.pg||a.Kd){if(!this.mf)return;var c=Math.pow(2,a.Z.zoom-this.mf.Co),d=this.r.ha?this.r.Eb:1,f=a.Z.Ga.Xa(this.mf.zo).Ob(this.mf.Sf/(this.r.ha?this.r.Eb:1));this.transform[1]={translate:this.transform[1].translate.add(f),scale:c/d,rotate:0,Vf:this.r.get("zIndex")+1}}else this.hC(a,c[1],c[2]);this.ej&&!this.r.Va&&(c=this.r,V.Ld.De.end({id:this.l.da.id,key:"rb",index:2}),c.Va=!0, c.of?c.pa("renderComplete"):(c.of=!0,c.pa("complete")))},aX:function(a){if(this.bd!==this.mf||a.Dh||!this.mf||this.mf.Co!==this.zoom||this.mf.zo!==this.Ga||this.mf.sr!==this.rotation||!this.mf.size.Lb(a.size))return!0},z_:function(a){for(var b={},c=0,d=a.length;cthis.zoom||(this.kE.hC(g,a),this.mf=this.bd,this.mf.Co=this.zoom,this.mf.zo=this.Ga,this.mf.Sf=this.N,this.mf.sr=this.rotation,this.mf.size=a.size))},Sc:function(a){var b=Math.pow(2,this.zoom-this.Kc),c=this.Ga.Xa(this.oa);c.x<-V.g.Wa/2&&(c.x+=V.g.Wa);c.x>V.g.Wa/2&&(c.x-=V.g.Wa);c.Ob(this.Gd);a=new V.K(a.Z.ta.gb.x*(this.r.ha?this.r.Eb:1),a.Z.ta.gb.y*(this.r.ha?this.r.Eb:1));this.transform=[{translate:this.vz,scale:b,rotate:0},{translate:a,scale:1/ (this.r.ha?this.r.Eb:1),rotate:0,Vf:this.r.get("zIndex")+1}]},HJ:function(a,b){if("region"===a)for(var c in b){if(b.hasOwnProperty(c)){var d=b[c],f;for(f in d)if(d.hasOwnProperty(f)){var g=d[f];!this.l.Hc&&g.xb&&(g.face=this.Nb.mu(g.face,g.xb,!0))}}}else if("road"===a)for(c in b){if(b.hasOwnProperty(c))for(f in d=b[c],d)d.hasOwnProperty(f)&&(g=d[f],!this.l.Hc&&g.xb&&(g.oz=this.Nb.rk(g.oz,g.xb,!1,!0),g.nC=this.Nb.rk(g.nC,g.xb,!0,!0)))}else if("building"===a)for(c in b)if(b.hasOwnProperty(c))for(f in d= b[c],d)if(d.hasOwnProperty(f)&&(g=d[f],!this.l.Hc&&g.xb)){var h=this.Nb.Gq(g.face,g.border,g.xb,!0);g.face=h[0];g.border=h[1]}}});V.J.canvas.Od.jd=V.W.extend({D:function(a){this.r=a;this.Aa={}},kv:function(a,b,c,d,f){var g;c=[];for(var h in a)a.hasOwnProperty(h)&&(a[h].Zk=parseInt(h),c.push(a[h]));c.sort(function(a,b){return a.Zk>b.Zk?1:a.Zkb.Zk?1:-1});for(c in b)if(b.hasOwnProperty(c)){a=b[c];var d,f;for(d in a)if(a.hasOwnProperty(d)){f=a[d];var g=f.oz;f.xb&&this.Nb.l.Hc&&(g=this.Nb.rk(g,f.xb,!1,!0));(f.Wc=g)&&this.BM(f,g,f.Ft,f.wW,f.xW)}for(d in a)a.hasOwnProperty(d)&&(f=a[d],g=f.nC,f.xb&&this.Nb.l.Hc&&(g=this.Nb.rk(g,f.xb,!0, !0)),(f.Wc=g)&&this.BM(f,g,f.qv,f.y1,f.z1))}},BM:function(a,b,c,d,f){var g=this.wa.getContext("2d");g.save();if(!(0>=c)&&b)return g.lineWidth=c,g.strokeStyle=b,g.lineCap=d,g.lineJoin="bevel",g.setLineDash?(this.FI(g,a),f&&(g.setLineDash(f),g.lineDashOffset=f[0])):f&&1