AdfUIComponents.createComponentClass("AdfDhtmlGeoMap",{componentType:"oracle.dss.adf.geoMap.GeoMap",propertyKeys:[{name:"id",type:"String"},{name:"centerX",type:"String"},{name:"centerY",type:"String"},{name:"centerSrid",type:"String"},{name:"currentZoom",type:"String"}],namingContainer:!0,superclass:AdfUIComponent});AdfDhtmlGeoMap.prototype._closePolygon=function(){this._setCursor("CLOSECUR",!0)};AdfDhtmlGeoMap.prototype._openPolygon=function(){this._setCursor("MAKECUR",!0)};
AdfDhtmlGeoMap.prototype._showDistanceArea=function(){var a=this.getMapTool(),b=this,c=function(c){"ruler"==a?b._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._DISTANCE,c):"area"!=a&&"polygonSelection"!=a||b._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._AREA,c)},d=null;if("ruler"==a)d=this._measureTool.getOrdinates(),null!=d&&2<=d.length&&MVSdoGeometry.createLineString(d,this.getMVMapView().srid).getLength("meter",!0,null,c);else if("area"==a||"polygonSelection"==a){var e=null;"polygonSelection"==a?e=this._redlineTool:
"area"==a&&(e=this._areaTool,d=this.getMVMapView().getFOI("__adf_areaTool_Polygon"),null!=d&&(this.getMVMapView().removeFOI(d),this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._AREA,0)));d=e.getOrdinates();this._getContextPath();if(2==d.length){var f=this._getStyleElement().getAttribute("POLYSEGMENT_IMAGE_PATH");e.setMarkerImage(f,5,5);var e=e.getPointFOIs()[0],f=this.createCallback(this._closePolygon),g=this.createCallback(this._openPolygon);e.setEventListener("mouse_over",f);e.setEventListener("mouse_out",
g)}if("polygonSelection"==a&&null!=d&&2==d.length){e=null;if(null!=this._selectTheme)f=this.getTheme(this.getActiveTheme()),null!=f&&(e=AdfDhtmlGeoMapPeer._convertThemeToArray(f,this._selectTheme),e.selectionMode="Unselect");else for(g=this._selectFOI,f=0;f<g.length;f++)null==e&&(e=[],e.selectionMode="Unselect"),AdfDhtmlGeoMapPeer._addFOIPropertyToArray(e,g[f]);null!=e&&(e=new AdfMapSelectEvent(this,e),e.setPartial(!0),this.queueEvent(e))}if(null!=d&&6<=d.length){e=[];for(f=0;f<d.length;f++)e.push(d[f]);
e.push(d[0]);e.push(d[1]);MVSdoGeometry.createPolygon(e,this.getMVMapView().srid).getArea("sq_meter",!0,null,c)}else null!=this._redlineTool&&(this._redlineTool._isStart=!0),this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._AREA,0)}};
AdfDhtmlGeoMap._themeDone=function(){var a=AdfPage.PAGE.findComponent(this.parent._mvMapViewId),b=this.getLayerName();a._getThemeEntry(b).initStatus="Done";for(var b=!0,c=0;c<a._themeInfoTable.length;c++)null!=a._themeInfoTable[c].initStatus&&"Done"!=a._themeInfoTable[c].initStatus&&(b=!1);b&&a.getMVMapView().setLoadingIconVisible(!1);this.setEventListener("after_refresh",null)};AdfDhtmlGeoMap._getDistance=function(a,b,c,d){return Math.sqrt(Math.pow(c-a,2)+Math.pow(d-b,2))};
AdfDhtmlGeoMap._blinkPoint=function(a,b,c){var d=document.getElementById(a);null!=d&&null!=d.childNodes&&null!=d.childNodes[0]&&null!=d.childNodes[0].childNodes&&null!=d.childNodes[0].childNodes[0]&&(d=d.childNodes[0].childNodes[0],"0px"!=d.style.width?(d.parentNode.style.width=d.style.width,d.style.width="0px"):"0px"==d.style.width&&(d.style.width=d.parentNode.style.width,--b),0<b?setTimeout("AdfDhtmlGeoMap._blinkPoint('"+a+"', "+b.toString()+',"'+c+'")',500):null!=c&&setTimeout(c,500))};
AdfDhtmlGeoMap._fadePoint=function(a,b,c,d,e){var f=document.getElementById(a);if(null!=f&&null!=f.parentNode){if("tempParent"!=f.parentNode.id){var g=f.parentNode,h=document.createElement("div");h.id="tempParent";h.style.opacity=b?1:0;g.insertBefore(h,f.nextSibling);g.removeChild(f);h.appendChild(f)}g=f.parentNode.style.opacity;g=b?parseFloat(g)-.2:parseFloat(g)+.2;b?0>g&&(g=e?0:1,--c):1<g&&(g=e?1:0,--c);f.parentNode.style.opacity=g;f.width=f.width;g=f.src;f.src="";f.src=g;0<c?(f="",f=e?"AdfDhtmlGeoMap._fadePoint('"+
a+"',"+b.toString()+", "+c.toString()+', "'+d+'", true)':"AdfDhtmlGeoMap._fadePoint('"+a+"',"+b.toString()+", "+c.toString()+', "'+d+'")',setTimeout(f,500)):(b||(f.parentNode.style.opacity=1),e||(g=f.parentNode.parentNode,a=f.parentNode.nextSibling,g.removeChild(f.parentNode),g.insertBefore(f,a)),null!=d&&setTimeout(d,500))}};
AdfDhtmlGeoMap._animate=function(a,b,c){"blink"==b?AdfDhtmlGeoMap._blinkPoint(a,2,c):"fade_in"==b?AdfDhtmlGeoMap._fadePoint(a,!1,1,c):"fade_out"==b?AdfDhtmlGeoMap._fadePoint(a,!0,1,c):"fade_in_and_blink"==b?AdfDhtmlGeoMap._fadePoint(a,!1,1,"AdfDhtmlGeoMap._blinkPoint('"+a+"', 2, '"+c+"')"):"blink_and_fade_out"==b?AdfDhtmlGeoMap._blinkPoint(a,2,"AdfDhtmlGeoMap._fadePoint('"+a+"', true, 1, '"+c+"')"):"fade_out_and_fade_in"==b&&AdfDhtmlGeoMap._fadePoint(a,!0,1,"AdfDhtmlGeoMap._fadePoint('"+a+"', false, 1, '"+
c+"')",!0)};AdfDhtmlGeoMap.prototype.getMVMapView=function(){return this._mapview};AdfDhtmlGeoMap.prototype.getActiveTheme=function(){return this._activeTheme};AdfDhtmlGeoMap.prototype.setActiveTheme=function(a){null!=this._activeTheme&&this._activeTheme!=a&&(this._fixSelectThemeIndex(),this._cancelSelection(),this._initMapTool());this._activeTheme=a};AdfDhtmlGeoMap.prototype._startLogging=function(){this._startTime=(new Date).getTime()};
AdfDhtmlGeoMap.prototype._endLogging=function(){var a=(new Date).getTime()-this._startTime;AdfLogger.LOGGER.info("Theme rendering time:  "+a)};
AdfDhtmlGeoMap.prototype._createInfoArea=function(){var a=this.getClientId();document.getElementById(a).onmousemove=AdfDhtmlGeoMapPeer._handleMouseMove;var b=this._getStyleElement();b.getAttribute("contextPath");var c="\x3ctable id\x3d'"+AdfRichUIPeer.CreateSubId(a,"infoArea")+"' cellpadding\x3d0 cellspacing\x3d0 align\x3d'left'";AdfAgent.getAgent().getPlatform()==AdfAgent.WEBKIT_PLATFORM&&(c+=" width\x3d'100' ");c+=" valign\x3d'center'\x3e\x3ctr\x3e";if(null==b.getAttribute("infoAreaHidden")){var d=
AdfDhtmlGeoMapPeer._X+":",e=AdfDhtmlGeoMapPeer._Y+":";if(8307==this.getMVMapView().srid||54004==this.getMVMapView().srid)d=AdfDhtmlGeoMapPeer._LONGITUDE+":",e=AdfDhtmlGeoMapPeer._LATITUDE+":";var f=b.getAttribute("xPanelStyleClass"),g=b.getAttribute("yPanelStyleClass"),h=b.getAttribute("panelLeftClass"),l=b.getAttribute("panelRightClass"),m=b.getAttribute("panelCenterClass"),n=b.getAttribute("INFO_IMAGE_PATH"),p=b.getAttribute("SEPARATOR_IMAGE_PATH"),c=c+("\x3ctd align\x3dleft valign\x3dcenter nowrap\x3e\x3ctable id\x3d'"+
a+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"latlong' style\x3d'display:none;overflow:hidden;' cellspacing\x3d'0' cellpadding\x3d'0'\x3e"),c=c+('\x3ctr\x3e\x3ctd\x3e\x3cdiv class\x3d"'+h+'"\x3e\x3c/div\x3e\x3c/td\x3e')+('\x3ctd class\x3d"'+m+'"\x3e'),c=c+("\x3cdiv height\x3d'33'  id\x3d'"+a+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"latitude' class\x3d\""+f+"\"\x3e\x3cimg src\x3d'"+n+"' style\x3d'margin-top:1px;margin-right:4px;vertical-align:text-top'/\x3e"+e+"\x26nbsp;-000.0000\x26nbsp;\x26nbsp;\x26nbsp;\x26nbsp;\x26nbsp;\x3c/div\x3e\x3c/td\x3e"),
c=c+('\x3ctd class\x3d"'+m+"\"\x3e\x3cdiv height\x3d'33'\x3e\x3cimg src\x3d'"+p+"' align\x3d'top'/\x3e\x3c/div\x3e\x3c/td\x3e"),c=c+('\x3ctd class\x3d"'+m+'"\x3e'),c=c+("\x3cdiv height\x3d'33' id\x3d'"+a+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"longitude' class\x3d\""+g+'"\x3e'+d+"\x26nbsp;-000.0000\x26nbsp;\x26nbsp;\x26nbsp;\x26nbsp;\x26nbsp;\x3c/div\x3e\x3c/td\x3e"),c=c+("\x3ctd\x3e\x3ctable id\x3d'"+a+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"longlatEnd'  cellspacing\x3d'0' cellpadding\x3d'0' style\x3d'display:none;'\x3e"),
c=c+('\x3ctr\x3e\x3ctd\x3e\x3cdiv class\x3d"'+l+'"\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e'),c=c+"\x3c/table\x3e\x3c/td\x3e",c=c+("\x3ctd\x3e\x3ctable id\x3d'"+a+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"longlatConnector' cellpadding\x3d0 cellspacing\x3d0 align\x3d'left' valign\x3d'center' style\x3d\"display:none\"\x3e"),c=c+('\x3ctr\x3e\x3ctd class\x3d"'+m+'"\x3e\x3cdiv\x3e\x26nbsp\x26nbsp\x3c/div\x3e\x3c/td\x3e'),c=c+('\x3ctd class\x3d"'+m+"\"\x3e\x3cdiv height\x3d'33'\x3e\x3cimg src\x3d\""+p+"\" align\x3d'top'/\x3e\x3c/div\x3e\x3c/td\x3e"),
c=c+('\x3ctd class\x3d"'+m+'"\x3e\x3cdiv\x3e\x26nbsp\x26nbsp\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e'),c=c+"\x3c/table\x3e\x3c/td\x3e",c=c+"\x3c/tr\x3e\x3c/table\x3e\x3c/td\x3e"}d=b.getAttribute("distAreaPanelStyleClass");c+="\x3ctd align\x3dleft valign\x3dcenter nowrap\x3e\x3ctable cellspacing\x3d'0' cellpadding\x3d'0'\x3e\x3ctr\x3e";c+="\x3ctd\x3e\x3ctable id\x3d'"+a+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"distanceAreaStart' cellpadding\x3d0 cellspacing\x3d0 align\x3d'left' valign\x3d'center' width\x3d'100%' style\x3d\"display:none\"\x3e";
c+='\x3ctr\x3e\x3ctd\x3e\x3cdiv class\x3d"'+h+'"\x3e\x3c/div\x3e\x3c/td\x3e';c+="\x3c/tr\x3e\x3c/table\x3e\x3c/td\x3e";c+='\x3ctd class\x3d"'+m+"\"\x3e\x3cdiv align\x3d'top' height\x3d'33' id\x3d'"+a+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"distanceArea' class\x3d\""+d+'" \x3e';c+="\x3c/div\x3e\x3c/td\x3e";c+="\x3ctd\x3e\x3ctable id\x3d'"+a+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"distanceAreaEnd'  width\x3d'5' border\x3d'0' cellspacing\x3d'0' cellpadding\x3d'0' style\x3d'display:none'\x3e";c+='\x3ctr\x3e\x3ctd\x3e\x3cdiv class\x3d"'+
l+'"\x3e\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e';c+="\x3c/table\x3e\x3c/td\x3e";c+="\x3c/tr\x3e\x3c/table\x3e\x3c/td\x3e\x3c/tr\x3e";c+="\x3c/table\x3e";a=new MVMapDecoration(c,0,1,0,0);a.enableEventPropagation(!0);null!=b.getAttribute("isShowScaleBar")?a.setOffset(5,-74):a.setOffset(5,-34);this.getMVMapView().addMapDecoration(a)};AdfDhtmlGeoMap.prototype._hideZoombar=function(){null!=this._navigatorDecoration&&this._navigatorDecoration.setVisible(!1)};
AdfDhtmlGeoMap.prototype._refreshZoombar=function(){var a=this.getClientId(),a=document.getElementById(AdfRichUIPeer.CreateSubId(a,"mapStyle")).getAttribute("navigatorPosition");null==this._navigatorDecoration&&null!=a&&(this._navigatorDecoration="EAST"==a?new MVMapDecoration(new MVNavigationPanel(8,!0,!0,!1),1,0,null,null,-60,10):new MVMapDecoration(new MVNavigationPanel(8,!0,!0,!1),0,0,null,null,10,10),this.getMVMapView().addMapDecoration(this._navigatorDecoration));null!=a&&this._navigatorDecoration.setVisible(!0)};
AdfDhtmlGeoMap.prototype._getStyleElement=function(){var a=this.getClientId();return document.getElementById(AdfRichUIPeer.CreateSubId(a,"mapStyle"))};AdfDhtmlGeoMap.prototype._getContextPath=function(){return"/"+this._getStyleElement().getAttribute("contextPath")+"/bi/"};AdfDhtmlGeoMap.prototype._toolDrag=function(){this._showDistanceAreaForTool()};AdfDhtmlGeoMap.prototype._toolBegin=function(){var a=this.getTheme(this.getActiveTheme());null!=a&&"object"==typeof a[0]&&this._clearSelection()};
AdfDhtmlGeoMap.prototype._getToolGeometry=function(){var a=this.getMapTool();if("rectSelection"==a)return this._rectangleTool.getRectangle();if("circleSelection"==a)return this._circleTool.getCircle();if("polygonSelection"==a)return this._redlineTool.getPolygon();if("pointSelection"==a)return this.getMVMapView().getMouseLocation()};
AdfDhtmlGeoMap.prototype._showDistanceAreaForTool=function(){var a=this.getMapTool();"rectSelection"==a?(a=this._rectangleTool,a=a.getWidth("meter")*a.getHeight("meter"),this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._AREA,a)):"circleSelection"==a&&(a=this._circleTool.getRadius("meter"),this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._RADIUS,a))};
AdfDhtmlGeoMap.prototype._checkPointInGeometry=function(a,b){var c=this.getMapTool();if("undefined"!=typeof a.getGeometry()&&a.getGeometry().isPoint()){var d=this._getToolGeometry();if(null==d)return!1;var e=a.getGeometry().getPointX(),f=a.getGeometry().getPointY();if("rectSelection"==c)return c=d.getMBR(),e>=c[0]&&e<=c[2]&&f>=c[1]&&f<=c[3]?!0:!1;if("circleSelection"==c){var d=d.getOrdinates(),c=d[2],d=d[1],g=this._circleTool.getRadius();return AdfDhtmlGeoMap._getDistance(e,f,c,d)<=g?!0:!1}if("polygonSelection"==
c)return this._inPolygon(d.getOrdinates(),e,f)?!0:!1;if("pointSelection"==c)return e=this._currentFOI,null!=e&&e.id==a.id?!0:!1}};AdfDhtmlGeoMap.prototype._selectNSDPData=function(a,b){for(var c="",d=a.split("\x3ctr\x3e"),e=0;e<d.length;e++)if(1<e)for(var f=d[e].split("\x3ctd\x3e"),g=0;g<f.length;g++){if(0<g){var h=f[g].split("\x3c/td\x3e")[0].split("\x3c/tr\x3e");1==g&&h==b&&(h=d[e].split("\x3c/table\x3e"),c+=h[0])}}else c+=d[e]+"\x3ctr\x3e";return c+"\x3c/table\x3e\x3c/nsdp_xml\x3e"};
AdfDhtmlGeoMap.prototype._refreshSelectTheme=function(a){var b=null;null==a&&(b=this._getToolGeometry());if(null!=a||null!=b){var c=this._getThemeEntry(this.getActiveTheme()),d=this.getMVMapView().getThemeBasedFOI(this.getActiveTheme());this._selectTheme=new MVThemeBasedFOI("selectTheme",d.getThemeName());this._selectTheme.setBringToTopOnMouseOver(!0);this._selectTheme.addStyle(c.selectionStyle);if(null==a)this._selectTheme.setHighlightOnly(!0),this._selectTheme.setFilteringGeom(b),this._selectTheme.setNSDP(c.nsdp);
else{var e=this._getThemeDefinitionElement(this.getActiveTheme()),d=e.getAttribute("themeName"),b=this._getDataTable(e.innerHTML),f=e.getAttribute("locationColumn"),e=new MVNSDP("defaultNSDP");e.setTheme(d);e.setKeyColumn(f);d={};d.xml=this._selectNSDPData(b,a.name);e.setParameters(d);this._selectTheme.setNSDP(e)}"ColorTheme"==c.type?(this._selectTheme.setRenderingStyle("BUCKETCOLOR"),this._selectTheme.setMaxWholeImageLevel(this._getMaxZoomLevel()-2)):"BarChartTheme"==c.type?(this._selectTheme.setRenderingStyle("BARSTYLE"),
this._isMaxWholeImage(this.getActiveTheme())&&this._selectTheme.setMaxWholeImageLevel(this._getMaxZoomLevel()-2)):"PieChartTheme"==c.type&&(this._selectTheme.setRenderingStyle("PIESTYLE"),this._isMaxWholeImage(this.getActiveTheme())&&this._selectTheme.setMaxWholeImageLevel(this._getMaxZoomLevel()-2));this._selectTheme.enableInfoWindow(!1);this.getMVMapView().addThemeBasedFOI(this._selectTheme);this._setThemeEntryIndex(c,this._selectTheme,!0);this._selectTheme.setEventListener("after_refresh",AdfDhtmlGeoMapPeer._selectThemeRefresh)}};
AdfDhtmlGeoMap.prototype._toolFinish=function(){this._toolFinishCallback()};AdfDhtmlGeoMap.prototype._selectPointFOI=function(a,b,c){var d="",d=a.isImage?this._createFOIImageHTML(a,a.width,a.height,!0):a.selectedImages;a._isSelected=!0;a.setHTMLElement(d);a.reDraw();this._selectFOI[c]=a;AdfDhtmlGeoMapPeer._addFOIPropertyToArray(b,a)};
AdfDhtmlGeoMap.prototype._toolFinishCallback=function(a){var b=this.getMapTool();if("area"==b)a=this._areaTool.getPolygon(),b=this.getPeer()._getDataSourceName(),a=new MVFOI("__adf_areaTool_Polygon",a,b+".BLACK_LINE"),this.getMVMapView().addFOI(a),this._initMapTool();else if("rectSelection"==b&&3!=this._rectangleTool.getStatus()||"circleSelection"==b&&3!=this._circleTool.getStatus())this._initMapTool();else{if("polygonSelection"==b)if(this._redlineTool._isStart)this._redlineTool._isStart=!1;else return;
if(null!=this.getActiveTheme()){b=this.getTheme(this.getActiveTheme());if("object"==typeof b[0]){this._clearSelection();var c=0,d=[];d.selectionMode="Select";if(null!=a)this._selectPointFOI(a,d,0);else for(a=0;a<b.length;a++)this._checkPointInGeometry(b[a])&&(this._selectPointFOI(b[a],d,c),c++);a=new AdfMapSelectEvent(this,d);a.setPartial(!0);this.queueEvent(a)}else"object"==typeof b&&(this._clearSelection(),this._refreshSelectTheme(a));this._initMapTool();this._displayDistanceArea(!1,AdfDhtmlGeoMapPeer._AREA,
0)}}};AdfDhtmlGeoMap.prototype._getCursorStyles=function(a,b){var c=a;if(b){var d=this._getStyleElement().getAttribute(a);AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM?c=d:(c=[],c.push("url("+d+")"),c.push("default"))}return c};
AdfDhtmlGeoMap.prototype._setCursor=function(a,b){for(var c=AdfRichUIPeer.CreateSubId(this.getClientId(),"infoArea"),c=document.getElementById(c),d=this.getClientId()+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"copyrightText",d=document.getElementById(d),e=this.getMVMapView().getAllFOIs(),f=this._getCursorStyles(a,b),g=0;g<e.length;g++)"hand.cur"==a?e[g].setMouseCursorStyle("pointer"):e[g].setMouseCursorStyle(f);this.getMVMapView().setMouseCursorStyle(f,"default");this.getMVMapView().setMouseCursorStyle(f,
"dragging");for(var g=0;g<this._themeInfoTable.length;g++)e=this._themeInfoTable[g].id,e=this.getMVMapView().getThemeBasedFOI(e),null!=e&&("hand.cur"==a?e.setMouseCursorStyle("pointer"):e.setMouseCursorStyle(f));null!=c&&(c.parentNode.style.cursor=f);null!=d&&(d.style.cursor=f)};
AdfDhtmlGeoMap.prototype._initMapTool=function(){var a=this._getContextPath(),b=this.getPeer()._getDataSourceName(),c=b+".BLACK_LINE",d=b+".NULL_STYLE";this._setDefaultCursor(a);var e=this.getMapTool(),f=this.createCallback(this._toolBegin),g=this.createCallback(this._toolFinish),h=this.createCallback(this._toolDrag),b=this.createCallback(this._showDistanceArea),l=this.getClientId()+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"distanceArea",m=document.getElementById(l),l=!1;null!=m&&(l="none"!=m.style.display);
"hand"==e?this._setDefaultCursor(a):"rectSelection"==e?(null==this._rectangleTool&&(this._rectangleTool=new MVRectangleTool(d),this.getMVMapView().addRectangleTool(this._rectangleTool)),this._rectangleTool.init(),this._rectangleTool.setDivBorderStyle("#000000",1,"dashed"),this._rectangleTool.setEventListener("on_start",f),this._rectangleTool.setEventListener("on_drag",h),this._rectangleTool.setEventListener("on_finish",g),this._setCursor("HAIRCUR",!0),l||this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._AREA,
0)):"circleSelection"==e?(null==this._circleTool&&(this._circleTool=new MVCircleTool(d),this.getMVMapView().addCircleTool(this._circleTool)),this._circleTool.init(),this._circleTool.setPlotDivFillColor("#000000",1),this._circleTool.setEventListener("on_start",f),this._circleTool.setEventListener("on_drag",h),this._circleTool.setEventListener("on_finish",g),this._setCursor("HAIRCUR",!0),l||this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._RADIUS,0)):"polygonSelection"==e?(null==this._redlineTool&&(this._redlineTool=
new MVRedlineTool(c,d),this._redlineTool.setEditingMode({deletePoint:!1,dragPoint:!1,deleteLine:!1,dragLine:!1}),this.getMVMapView().addRedLineTool(this._redlineTool),this._redlineTool.setAutoClose(!0),this._redlineTool.setControlPanelVisible(!1),this._redlineTool.attachEventListener(MVEvent.NEW_SHAPE_POINT,b),this._redlineTool.attachEventListener(MVEvent.FINISH,g)),a=this._getStyleElement().getAttribute("POLYSTART_IMAGE_PATH"),this._redlineTool.setMarkerImage(a,11,11),this._setCursor("MAKECUR",!0),
this._redlineTool.clear(),this._redlineTool.init(),l||this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._AREA,0)):"zoomIn"==e?(this._setCursor("ZOOMINCUR",!0),this._startMarqueeZoom()):"zoomOut"==e?(this._setCursor("ZOOMOUTCUR",!0),this.getMVMapView().enableDragging(!1)):"ruler"==e?(this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._DISTANCE,0),null==this._measureTool&&(this._measureTool=new MVRedlineTool(c,d),this._measureTool.setEditingMode({deletePoint:!1,dragPoint:!1,deleteLine:!1,dragLine:!1}),a=
this._getStyleElement().getAttribute("POLYSTART_IMAGE_PATH"),this._measureTool.setMarkerImage(a,11,11),this._measureTool.setControlPanelVisible(!1),this.getMVMapView().addRedLineTool(this._measureTool),this._measureTool.attachEventListener(MVEvent.NEW_SHAPE_POINT,b)),this._measureTool.init(),this._setCursor("HAIRCUR",!0),this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._DISTANCE,0)):"area"==e?(null==this._areaTool&&(this._areaTool=new MVRedlineTool(c,c),this._areaTool.setEditingMode({deletePoint:!1,
dragPoint:!1,deleteLine:!1,dragLine:!1}),this.getMVMapView().addRedLineTool(this._areaTool),this._areaTool.setAutoClose(!0),this._areaTool.setControlPanelVisible(!1),this._areaTool.attachEventListener(MVEvent.NEW_SHAPE_POINT,b),this._areaTool.attachEventListener(MVEvent.FINISH,g)),this._areaTool.clear(),this._areaTool.init(),a=this._getStyleElement().getAttribute("POLYSTART_IMAGE_PATH"),this._areaTool.setMarkerImage(a,11,11),this._setCursor("MAKECUR",!0),null==this.getMVMapView().getFOI("__adf_areaTool_Polygon")&&
this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._AREA,0)):"pointSelection"==e&&this._setCursor("default")};AdfDhtmlGeoMap.prototype._fixSelectThemeIndex=function(){null!=this._selectTheme&&(this._clearSelection(),this._setThemeIndex())};
AdfDhtmlGeoMap.prototype.setMapTool=function(a){if(this._mapTool!=a){var b=!1;if("rectSelection"==a||"circleSelection"==a||"polygonSelection"==a||"pointSelection"==a)b=!0;"rectSelection"==this._mapTool?(b||(this._fixSelectThemeIndex(),this._clearSelection()),this._rectangleTool.clear()):"circleSelection"==this._mapTool?(b||(this._fixSelectThemeIndex(),this._clearSelection()),this._circleTool.clear()):"polygonSelection"==this._mapTool?(b||(this._fixSelectThemeIndex(),this._clearSelection()),this._redlineTool.clear()):
"zoomIn"==this._mapTool?this.getMVMapView().stopMarqueeZoom():"ruler"==this._mapTool?this._measureTool.clear():"area"==this._mapTool?(this._areaTool.clear(),b=this.getMVMapView().getFOI("__adf_areaTool_Polygon"),null!=b&&this.getMVMapView().removeFOI(b)):"pointSelection"!=this._mapTool||b||(this._fixSelectThemeIndex(),this._clearSelection());this._displayDistanceArea(!1,AdfDhtmlGeoMapPeer._AREA,0);this.getMVMapView().enableDragging(!0);this.getMVMapView().enableKeyboardPanning(!0);this._mapTool=a;
this._initMapTool()}};AdfDhtmlGeoMap.prototype.getImmediate=function(){return!0};AdfDhtmlGeoMap.prototype.getMapTool=function(){return this._mapTool};AdfDhtmlGeoMap.prototype.getTheme=function(a){var b=this.getMVMapView().getThemeBasedFOI(a);return null==b?this._foiTheme[a]:b};AdfDhtmlGeoMap.prototype._getMaxZoomLevel=function(){return this._baseMap.config.zoomLevels.length-1};
AdfDhtmlGeoMap.prototype._cancelSelection=function(){"rectSelection"==this.getMapTool()?(this._rectangleTool.clear(),this._clearSelection(),this._rectangleTool.init(),this._rectangleTool.setEventListener("on_finish",AdfDhtmlGeoMap._rectFinish)):"circleSelection"==this.getMapTool()?(this._circleTool.clear(),this._clearSelection(),this._circleTool.init(),this._circleTool.setEventListener("on_finish",AdfDhtmlGeoMap._circleFinish)):"polygonSelection"==this.getMapTool()?(this._redlineTool.clear(),this._redlineTool.init(),
this._clearSelection()):"ruler"==this.getMapTool()?(this._measureTool.clear(),this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._DISTANCE,0),this._measureTool.init()):"area"==this.getMapTool()?(this._areaTool.clear(),this._displayDistanceArea(!0,AdfDhtmlGeoMapPeer._AREA,0),this._areaTool.init()):"pointSelection"==this.getMapTool()&&this._clearSelection()};
AdfDhtmlGeoMap.prototype._clearSelection=function(){for(var a=this._selectFOI,b=null,c=0;c<a.length;c++){null==b&&(b=[],b.selectionMode="Unselect");AdfDhtmlGeoMapPeer._addFOIPropertyToArray(b,a[c]);var d="",d=a[c].isImage?this._createFOIImageHTML(a[c],a[c].width,a[c].height,!1):a[c].originalImages;a[c]._isSelected=!1;a[c].setHTMLElement(d);a[c].reDraw()}null!=this._selectTheme&&(a=this.getTheme(this.getActiveTheme()),null!=a&&(b=AdfDhtmlGeoMapPeer._convertThemeToArray(a,this._selectTheme),b.selectionMode=
"Unselect",this.getMVMapView().removeThemeBasedFOI(this._selectTheme),this._selectTheme=null));null!=b&&(b=new AdfMapSelectEvent(this,b),b.setPartial(!0),this.queueEvent(b));this._selectFOIs=[]};AdfDhtmlGeoMap.prototype._setThemeEntryIndex=function(a,b,c){a=2*parseInt(a.themeIndex);c||--a;this.getMVMapView().setThemeIndex(b,a)};
AdfDhtmlGeoMap.prototype._setThemeIndex=function(){for(var a=0;a<this._themeInfoTable.length;a++){var b=this._themeInfoTable[a],c=b.id,c=this.getMVMapView().getThemeBasedFOI(c);null!=c&&this._setThemeEntryIndex(b,c)}};AdfDhtmlGeoMap.prototype._getThemeEntry=function(a){for(var b=0;b<this._themeInfoTable.length;b++)if(this._themeInfoTable[b].id==a)return this._themeInfoTable[b];return null};
AdfDhtmlGeoMap.prototype._isThemeVisibleinZoomLevel=function(a,b){return null!=a.minScale&&b<a.minScale||null!=a.maxScale&&b>a.maxScale?!1:!0};AdfDhtmlGeoMap.prototype._setNSDPThemeVisible=function(a,b){var c=a.id;a.visible=b;var d=this.getMVMapView().getThemeBasedFOI(c);if(null!=d)d.setVisible(b),b&&this._setThemeEntryIndex(a,d);else{var e=this._themeBasedFOIs;for(i=0;i<e.length;i++)if(e[i].name==c){d=e[i];break}null!=d&&b&&this._setThemeEntryIndex(a,d)}};
AdfDhtmlGeoMap.prototype._setPointFOIVisible=function(a,b,c,d){for(var e=this._foiTheme[a];b<c&&b<e.length;b++)if(null!=e[b].parent){if(e[b].isImage){var f=document.getElementById(e[b].getId());if(null!=f){var g=f.getElementsByTagName("img");null!=g&&0<g.length&&(g[0].parentNode.style.visibility=d?"visible":"hidden");e[b].setHTMLElement(f.innerHTML)}}e[b].setVisible(d)}c<e.length&&(b=c,c+=500,c>e.length&&(c=e.length),a=new Function("this._setPointFOIVisible('"+a+"', "+b.toString()+", "+c.toString()+
", "+d.toString()+");"),setTimeout(this.createCallback(a),1))};AdfDhtmlGeoMap.prototype._setPointThemeVisible=function(a,b){var c=a.id;a.visible=b;var d=this._foiTheme[c];null!=d&&0<d.length&&d[0].isVisible!=b&&this._setPointFOIVisible(c,0,500,b)};AdfDhtmlGeoMap.prototype._queueActiveThemeToServer=function(a){a=new AdfMapActiveThemeEvent(this,a);a.setPartial(!0);this.queueEvent(a)};
AdfDhtmlGeoMap._imageCallback=function(a,b,c,d,e){c.onload=null;if(null!=a&&null!=b){var f=AdfPage.PAGE.findComponent(a);if(null!=f)for(a=f._foiTheme[b],null==d&&(d=0),null==e&&(e=a?a.length:0);d<e;d++)(new RegExp(a[d].originalImages+"$")).test(c.src)&&(a[d].setWidth(c.width),a[d].setHeight(c.height),b=f._createFOIImageHTML(a[d],c.width,c.height,!1),a[d].setHTMLElement(b),a[d]._set||(f.getMVMapView().addFOI(a[d]),a[d]._set=!0),a[d]._isGeocoded&&null!=a[d].node&&a[d].setVisible(!1))}f._endLogging()};
AdfDhtmlGeoMap.prototype._updateImageWidthHeight=function(a,b,c,d,e){if(AdfDhtmlGeoMapPeer._getThemeInfoValue(this._themeInfoTable,a,"isImage")){var f=new Image;a="var f\x3darguments.callee;AdfDhtmlGeoMap._imageCallback('"+this.getClientId()+"', '"+a+"', f._image";null!=d&&null!=e&&(a+=", "+d.toString()+" , "+e.toString());a+=");";null!=c&&(a+=c);c=new Function(a);c._image=f;f.onload=c;f.src=b}};
AdfDhtmlGeoMap.prototype._createFOIImageHTML=function(a,b,c,d){var e=a._inlineStyle,f=a._inlineClass,g=a.originalImages;d&&(g=a.selectedImages);d=a._hoverHTML;var h=a._textStyle,l=a._textClass;b="background-image:url("+g+");background-repeat:no-repeat;width:"+b+"px;height:"+c+"px;";null!=e&&(";"!=e.charAt(e.length-1)&&(e+=";"),b=e+b);e="\x3cdiv style\x3d'"+b+"'";null!=f&&(e+=" class\x3d'"+f+"'");null!=d&&(e=e+(' onmouseover\x3d"'+("this.style.backgroundImage\x3d'url("+d+")';")+'"')+(" onmouseout\x3d\"this.style.backgroundImage\x3d'url("+
g+")';\""));e+="\x3e";null!=a._rowIndex&&(e+="\x3ctable width\x3d'100%' height\x3d'100%'\x3e\x3ctr\x3e\x3ctd align\x3d'center'\x3e",e+="\x3cdiv",null!=h&&(e+=" style\x3d'"+h+"'"),null!=l&&(e+=" class\x3d'"+l+"'"),e+="\x3e"+a._rowIndex+"\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e");return e+="\x3c/div\x3e"};AdfDhtmlGeoMap._htmlPointMouseOverListener=function(a,b,c){document.getElementById(rowId).innerHTML=hoverHTML;b.detachEventListener(MVEvent.MOUSE_OVER,AdfDhtmlGeoMap._htmlPointMouseOverListener)};
AdfDhtmlGeoMap._htmlPointMouseOutListener=function(a,b,c){document.getElementById(rowId).innerHTML=b._isSelected?selImageHTML:imageHTML;b.attachEventListener(MVEvent.MOUSE_OVER,AdfDhtmlGeoMap._htmlPointMouseOverListener)};
AdfDhtmlGeoMap.prototype._addPointFOI=function(a,b,c,d,e,f,g,h,l,m,n,p,q,r,w,v,x){var z=this._getStyleElement().getAttribute("startSRID"),t=null,B=!AdfDhtmlGeoMapPeer._getThemeInfoValue(this._themeInfoTable,m,"isImage"),F=AdfDhtmlGeoMapPeer._getThemeInfoValue(this._themeInfoTable,m,"hoverBehavior"),D=d;null==e&&(e=d);B||(d="\x3cdiv\x3e\x3c/div\x3e");null==b||null==c?(t=MVFOI.createHTMLFOI(a,MVSdoGeometry.createPoint(0,0,z),d),t._isGeocoded=!0):(t=MVFOI.createHTMLFOI(a,MVSdoGeometry.createPoint(b,
c,z),d),t._isGeocoded=!1);B?null!=l&&(t.setWidth(-1),t.setHeight(-1),t.attachEventListener(MVEvent.MOUSE_OVER,AdfDhtmlGeoMap._htmlPointMouseOverListener),t.attachEventListener(MVEvent.MOUSE_OUT,AdfDhtmlGeoMap._htmlPointMouseOutListener)):(t.setWidth(0),t.setHeight(0));t.attrnames=[f,"__adf_item_Label0"];t.attrs=null==p&&null==g?null:[p,g];t.name=h;t.selectedImages=e;t.originalImages=D;t.isImage=!B;t._isSelected=!1;t._themeID=m;t._category=n;t._hoverBehavior=F;t._originalPointX=b;t._originalPointY=
c;t._hoverHTML=l;t._inlineStyle=q;t._inlineClass=r;t._textStyle=w;t._textClass=v;t._rowIndex=x;"Tooltip"==F?t.setInfoTip(h):"InfoWindow"==F&&null!=p&&null!=g&&t.setEventListener("mouse_over",AdfDhtmlGeoMapPeer._showInfoWindow);t.setEventListener("mouse_click",AdfDhtmlGeoMapPeer._FOIClick);t.setEventListener("mouse_right_click",AdfDhtmlGeoMapPeer._FOIClick);null==this._foiTheme[m]&&(this._foiTheme[m]=[]);this._foiTheme[m].push(t);B&&this.getMVMapView().addFOI(t);return t};
AdfDhtmlGeoMap.prototype._createPieChartStyles=function(a,b){for(var c=b.getAttribute("sliceColor").split(";"),d=b.getAttribute("pieRadius"),e=[],f=0;f<c.length;f++)e[f]=new MVPieSlice("pieStyle"+f.toString(),c[f]);f=new MVPieChartStyle("PIESTYLE",d,e);e=[];e.push(f);var f=this._getStyleElement(),g="ffff00";null!=f.getAttribute("selectionFillColor")&&(g=f.getAttribute("selectionFillColor"));for(var h=[],f=0;f<c.length;f++)h[f]=new MVPieSlice("selPieStyle"+f.toString(),g);null!=a&&(a.selectionStyle=
new MVPieChartStyle("PIESTYLE",d,h));return e};
AdfDhtmlGeoMap.prototype._createBarChartStyles=function(a,b){for(var c=b.getAttribute("barWidth"),d=b.getAttribute("barHeight"),e=b.getAttribute("barColors").split(";"),f=b.getAttribute("showXAxis"),g=[],h=0;h<e.length;h++)g[h]=new MVBarInfo("barStyle"+h.toString(),e[h]);h=new MVBarChartStyle("BARSTYLE",c,d,g);h.setShowXAxis(f);g=[];g.push(h);var h=this._getStyleElement(),l="ffff00";null!=h.getAttribute("selectionFillColor")&&(l=h.getAttribute("selectionFillColor"));for(var m=[],h=0;h<e.length;h++)m[h]=
new MVBarInfo("barStyle"+h.toString(),l);null!=a&&(a.selectionStyle=new MVBarChartStyle("BARSTYLE",c,d,m),a.selectionStyle.setShowXAxis(f));return g};
AdfDhtmlGeoMap.prototype._createColorStyles=function(a,b){for(var c=b.getAttribute("colors").split(";"),d=b.getAttribute("minValues").split(";"),e=b.getAttribute("maxValues").split(";"),f=b.getAttribute("opacity"),g=c.length,h=[],l=[],m=0;m<g;m++){var n="colorStyle"+m.toString();colorStyle=new MVStyleColor(n,c[m].toString(),"000000");l[m]=new MVNumericRangedBucket(parseFloat(d[m]),parseFloat(e[m]),n,"label");colorStyle.setFillOpacity(f);h.push(colorStyle)}c=new MVBucketSeries("SCHEMA_CUSTOM");c.setBuckets(l);
l=new MVBucketStyle("BUCKETCOLOR",c);h.push(l);l=this._getStyleElement();d=c="ffff00";e=255;null!=l.getAttribute("selectionStrokeColor")&&(c=l.getAttribute("selectionStrokeColor"));null!=l.getAttribute("selectionFillColor")&&(d=l.getAttribute("selectionFillColor"));null!=l.getAttribute("selectionOpaque")&&(e=parseInt(l.getAttribute("selectionOpaque")));null!=a&&(a.selectionStyle=new MVStyleColor("BUCKETCOLOR",d,c),a.selectionStyle.setFillOpacity(e/100),a.selectionStyle.setStrokeOpacity(255));return h};
AdfDhtmlGeoMap.prototype._isMaxWholeImage=function(a){a=this._getThemeEntry(a);return"ColorTheme"==a.type||("BarChartTheme"==a.type||"PieChartTheme"==a.type)&&"None"==a.leftClickBehavior&&"None"==a.rightClickBehavior?!0:!1};
AdfDhtmlGeoMap.prototype._addPredefinedTheme=function(a,b,c){null==this.getMVMapView().getThemeBasedFOI(a)&&(a=new MVThemeBasedFOI(a,b),a.setBringToTopOnMouseOver(!0),a.setEventListener("mouse_click",AdfDhtmlGeoMapPeer._FOIClick),a.setMouseCursorStyle("pointer"),map._themeBasedFOIs.push(a),map.getMVMapView().addThemeBasedFOI(a))};
AdfDhtmlGeoMap.prototype._getThemeDefinitionElement=function(a){for(var b=document.getElementById(AdfRichUIPeer.CreateSubId(this.getClientId(),"themeList")).childNodes,c=0;c<b.length;c++)if(b[c].getAttribute("themeId")==a)return b[c];return null};AdfDhtmlGeoMap.prototype._getDataTable=function(a){var b=a.indexOf("\x3cnsdp_xml\x3e"),c=a.lastIndexOf("\x3c/nsdp_xml\x3e");return a.substring(b,c+11)};
AdfDhtmlGeoMap.prototype._addNSDPTheme=function(a,b,c,d,e){if(null==this.getMVMapView().getThemeBasedFOI(a)){var f=this._getThemeDefinitionElement(a);e=this._getDataTable(f.innerHTML);var g=f.getAttribute("themeName"),h=f.getAttribute("realThemeName"),l=f.getAttribute("locationColumn"),m=this._getThemeEntry(a),h=new MVThemeBasedFOI(a,h);h.setBringToTopOnMouseOver(!0);h.setEventListener("mouse_click",AdfDhtmlGeoMapPeer._FOIClick);h.setEventListener("mouse_right_click",AdfDhtmlGeoMapPeer._FOIClick);
h.setMouseCursorStyle("pointer");this._isMaxWholeImage(a)&&h.setMaxWholeImageLevel(this._getMaxZoomLevel()-2);if(null!=e&&0<=e.indexOf("nsdp_xml")){var n=new MVNSDP("defaultNSDP");n.setTheme(g);n.setKeyColumn(l);a={};a.xml=e;n.setParameters(a);h.setRenderingStyle(c);m.nsdp=n}c=null;"ColorTheme"==m.type?c=this._createColorStyles(m,f):"BarChartTheme"==m.type?c=this._createBarChartStyles(m,f):"PieChartTheme"==m.type&&(c=this._createPieChartStyles(m,f));if(null!=c)for(f=0;f<c.length;f++)h.addStyle(c[f]);
"centerOnly"==b?h.setBoundingTheme(!0,!0):"zoom"==b&&h.setBoundingTheme(!0);h.setEventListener("after_refresh",AdfDhtmlGeoMap._themeDone);null!=e&&h.setNSDP(n);h.enableImageCaching(!1);this._themeBasedFOIs.push(h);d&&(this._setThemeEntryIndex(m,h),this.getMVMapView().addThemeBasedFOI(h))}};AdfDhtmlGeoMap.prototype._startMarqueeZoom=function(){this.getMVMapView().startMarqueeZoom("continuous",{borderColor:"#000000",borderWidth:1,borderDashed:!0,fillColor:"#333333",fillOpacity:.1})};
AdfDhtmlGeoMap.prototype._formatValue=function(a,b){if(isNaN(parseFloat(b))||0==b)return"MILES"==this._unit?a==AdfDhtmlGeoMapPeer._AREA?"0 "+AdfDhtmlGeoMapPeer._SQUARE_MILES:"0 "+AdfDhtmlGeoMapPeer._MILES:a==AdfDhtmlGeoMapPeer._AREA?"0 "+AdfDhtmlGeoMapPeer._SQUARE_KILOMETERS:"0 "+AdfDhtmlGeoMapPeer._METERS;if(a==AdfDhtmlGeoMapPeer._DISTANCE||a==AdfDhtmlGeoMapPeer._RADIUS){if("MILES"==this._unit){if(1609.344<=b)return msg=AdfDhtmlGeoMapPeer._formatMessage(Math.round(6.214E-4*b)),msg+" "+AdfDhtmlGeoMapPeer._MILES;
msg=AdfDhtmlGeoMapPeer._formatMessage(Math.round(3.2808*b));return msg+" "+AdfDhtmlGeoMapPeer._FEET}if(1E3<b)return msg=AdfDhtmlGeoMapPeer._formatMessage(Math.round(b/1E3)),msg+" "+AdfDhtmlGeoMapPeer._KILOMETERS;msg=AdfDhtmlGeoMapPeer._formatMessage(Math.round(b));return msg+" "+AdfDhtmlGeoMapPeer._METERS}if(a==AdfDhtmlGeoMapPeer._AREA){if("MILES"==this._unit){if(2589988<=b)return msg=AdfDhtmlGeoMapPeer._formatMessage(Math.round(b/2589988)),msg+" "+AdfDhtmlGeoMapPeer._SQUARE_MILES;if(4046.8564<=b)return msg=
AdfDhtmlGeoMapPeer._formatMessage(Math.round(b/4046.8564)),msg+" "+AdfDhtmlGeoMapPeer._ACRES;msg=AdfDhtmlGeoMapPeer._formatMessage(Math.round(10.7639*b));return msg+" "+AdfDhtmlGeoMapPeer._SQUARE_FEET}if(1E6<b)return msg=AdfDhtmlGeoMapPeer._formatMessage(Math.round(b/1E6)),msg+" "+AdfDhtmlGeoMapPeer._SQUARE_KILOMETERS;msg=AdfDhtmlGeoMapPeer._formatMessage(Math.round(b));return msg+" "+AdfDhtmlGeoMapPeer._SQUARE_METERS}};
AdfDhtmlGeoMap.prototype._getFOIArray=function(a){var b=AdfDhtmlGeoMapPeer._getThemeInfoValue(this._themeInfoTable,a,"type");a=map.getTheme(a);var c=null;a&&(c="PointTheme"==b?a:a.getFOIData());return c};
AdfDhtmlGeoMap.prototype._displayDistanceArea=function(a,b,c){var d=this.getClientId()+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"distanceArea",e=this.getClientId()+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"distanceAreaStart",f=this.getClientId()+AdfDhtmlGeoMapPeer.NAMING_SEPARATOR+"distanceAreaEnd",g=document.getElementById(d);null==g&&a&&(this._createInfoArea(),g=document.getElementById(d));d=document.getElementById(e);f=document.getElementById(f);a?(b==AdfDhtmlGeoMapPeer._DISTANCE||b==AdfDhtmlGeoMapPeer._RADIUS?
imgPath=this._getStyleElement().getAttribute("DISTANCE_IMAGE_PATH"):b==AdfDhtmlGeoMapPeer._AREA&&(imgPath=this._getStyleElement().getAttribute("AREA_IMAGE_PATH")),a="\x3cimg src\x3d'"+imgPath,a=a+"' style\x3d'margin-top:1px;margin-right:4px;vertical-align:text-top'/\x3e"+(b+":"),a+="\x26nbsp;\x3cfont color\x3d'#FFFFFF'\x3e"+this._formatValue(b,c)+"\x3c/font\x3e\x26nbsp;\x26nbsp;",null!=g&&(g.style.display="block",g.innerHTML=a.toString()),null!=d&&null!=f&&(d.style.display="block",f.style.display=
"block")):(null!=g&&(g.style.display="none",g.style.borderWidth="0px",g.innerHTML=""),null!=d&&null!=f&&(d.style.display="none",f.style.display="none"));AdfDhtmlGeoMapPeer._adjustInfoWindowWidth(this.getClientId())};AdfDhtmlGeoMap.prototype._setDefaultCursor=function(a){this._setCursor("HANDCUR",!0)};
AdfDhtmlGeoMap.prototype._inPolygon=function(a,b,c){var d=a.length,e,f,g,h,l,m,n,p,q=!1;if(3>d/2)return!1;g=a[d-2];h=a[d-1];for(p=0;p<d;p+=2)e=a[p],f=a[p+1],e>g?(l=g,n=e,m=h,h=f):(l=e,n=g,m=f),e<b==b<=g&&(c-m)*(n-l)<(h-m)*(b-l)&&(q=!q),g=e,h=f;return q};
AdfDhtmlGeoMap.prototype.destroy=function(){this._themeInfoTable=this._hybridMap=this._satelliteMap=this._baseMap=this._themeBasedFOIs=this._areaTool=this._measureTool=this._redlineTool=this._circleTool=this._rectangleTool=this._activeTheme=this._selectTheme=this._selectFOI=null;if(null!=this._foiTheme)for(var a=0;a<this._foiTheme.length;a++)this._foiTheme[a]=null;this._foiTheme=null};