//Version: Ver11_B100426 MVMessages=new Array(); MVMessages["MAPVIEWER-05500"]="Oracle Maps client internal error."; MVMessages["MAPVIEWER-05501"]="Map tile layer not found. Check map tile layer name and/or data source name."; MVMessages["MAPVIEWER-05502"]="Cannot get map tile layer config information."; MVMessages["MAPVIEWER-05503"]="FOI ID cannot be null."; MVMessages["MAPVIEWER-05504"]="MapViewer server base URL is not defined."; MVMessages["MAPVIEWER-05505"]="Wrong map center point specified. It should be an MVSdoGeometry point."; MVMessages["MAPVIEWER-05506"]="Invalid zoom level."; MVMessages["MAPVIEWER-05507"]="Map tile layer name cannot be null. "; MVMessages["MAPVIEWER-05508"]="FOI Id is already used, please pick a new Id."; MVMessages["MAPVIEWER-05509"]="Theme-based FOI layer name is used, please pick a new name."; MVMessages["MAPVIEWER-05510"]="Cannot find theme-based FOI layer."; MVMessages["MAPVIEWER-05511"]="Error occurred when sending request to MapViewer server."; MVMessages["MAPVIEWER-05512"]="Not enough points have been drawn."; MVMessages["MAPVIEWER-05513"]="Not a valid line or polygon type MVSdoGeometry."; MVMessages["MAPVIEWER-05514"]="Must have a filtering geometry when in high-light only mode."; MVMessages["MAPVIEWER-05515"]="Oracle Maps client notification."; MVMessages["MAPVIEWER-05516"]="Synchronized remote call is not supported when using Oracle Maps' non-AJAX remoting."; MVMessages["MAPVIEWER-05517"]="Request string is too long for Oracle Maps' non-AJAX remoting."; MVMessages["MAPVIEWER-05518"]="Map tile layer hasn't been successfully added."; MVMessages["MAPVIEWER-05519"]="One or more parameter is missing or invalid."; MVMessages["MAPVIEWER-05520"]="Geometry SRID is null."; MVMessages["MAPVIEWER-05521"]="Call back function cannot be null when browser's builtin XMLHttp/XMLHttpRequest is disabled."; MVMessages["MAPVIEWER-05522"]="Client side coordinate system conversion not supported."; MVMessages["MAPVIEWER-05523"]="Cannot process response from MapViewer server."; MVMessages["MAPVIEWER-05524"]="Theme feature highlighting is disabled for this theme."; MVMessages["MAPVIEWER-05525"]="Theme has not been added to a MVMapView instance."; MVMessages["MAPVIEWER-05526"]="Map has not been initialized. Please try again later."; MVMessages["MAPVIEWER-05527"]="Wrong parameter data type. "; MVMessages["MAPVIEWER-05528"]="Map tile layers have different zoom level definitions. Only the map tile layer added later will be added to the map."; MVMessages["marqueeZoomHint"]="Click on the rectangle to zoom in!"; MVMessages["panNWInfoTip"]="Pan NorthWest"; MVMessages["panNInfoTip"]="Pan North"; MVMessages["panNEInfoTip"]="Pan NorthEast"; MVMessages["panWInfoTip"]="Pan West"; MVMessages["panEInfoTip"]="Pan East"; MVMessages["panSWInfoTip"]="Pan SouthWest"; MVMessages["panSInfoTip"]="Pan South"; MVMessages["panSEInfoTip"]="Pan SouthEast"; MVMessages["panCenterInfoTip"]="Home"; MVMessages["sliderBarInfoTip"]="Click to change zoom level"; MVMessages["sliderInfoTip"]="Drag to change zoom level"; MVMessages["zoomInInfoTip"]="Zoom in"; MVMessages["zoomOutInfoTip"]="Zoom out"; MVMessages["scaleBarInfoTip"]="Scale at the center of the map"; MVMessages["kilometers"]="km"; MVMessages["miles"]="mi"; MVMessages["meters"]="m"; MVMessages["feet"]="ft"; MVMessages["delete"]="Delete"; MVMessages["addPoint"]="Add Point"; MVMessages["finish"]="Finish"; MVMessages["clear"]="Clear"; MVMessages["totalDistance"]="Total Distance:"; MVMessages["km"]="km"; MVMessages["m"]="m"; MVMessages["cm"]="cm"; MVMessages["mi"]="mi"; MVMessages["yd"]="yd"; MVMessages["ft"]="ft"; MVMessages["clearButton"]="Clear Button"; MVMessages["redlineTool"]="Redline Tool"; MVMessages["distanceTool"]="Distance Tool"; MVMessages["circleTool"]="Circle Tool"; MVMessages["retangleTool"]="Retangle Tool"; MVMessages["marqueeZoomTool"]="Marquee Zoom Tool"; MVMessages["number_format"]="1,000.1"; function MVXMLHttpRequest() { this.onreadystatechange=null; this._f23=0; this.url=null; this.status=0; this.readyState=0; this._f24=null; this.responseText=null; } MVXMLHttpRequest._f25=new Array(); MVXMLHttpRequest._f26=0; MVXMLHttpRequest._f27=Math.round(Math.random()*10000); MVXMLHttpRequest.callBack=function(id,x0,x1) { while(MVXMLHttpRequest._f25.length>0) { var x2=MVXMLHttpRequest._f25[0]; if(!x2.onreadystatechange) { if(x2._f24) { document.body.removeChild(x2._f24); x2._f24=null; } MVXMLHttpRequest._f25.shift(); } else break; } var x3=0; for(;x30) x8+="&"; else x8+="?"; x8+="callback_id="+this._f23; x8+="&"+x7; if(x8.length>_f30._f31) { throw "[MVXMLHttpRequest.send] "+MVi18n._f29("MAPVIEWER-05517"); return ; } var x9=document.createElement("script"); x9.src=x8; x9.type='text/javascript'; x9.charset='utf-8'; this._f24=x9; MVXMLHttpRequest._f25.push(this); document.body.appendChild(x9); if(MVMapView.debug) MVi18n.alert("MVXMLHttpRequest. URL:"+x8); } MVXMLHttpRequest.prototype.setRequestHeader=function(x10) { } function MVUtil(){} MVUtil._f330=function(x0,x1,x2,x3,x4,x5,x6,x7,x8) { var x9=(x7-x1)*x5/(x3-x1)-x0._f73; var x10=(x4-x8)*x6/(x4-x2)-x0._f74; var x11=MVSdoGeometry.createPoint(x9,x10); return x11.sdo_point; } MVUtil._f331=function(x12,x13,x14,x15,x16,x17,x18,x19,x20) { var x21=(x19-x13)*x17/(x15-x13)-x12._f73; var x22=(x16-x20)*x18/(x16-x14)-x12._f74; return [x21,x22]; } MVUtil.getNumber=function(x23) { x23=x23+""; if(x23.indexOf("px")>0) x23=x23.substring(0,x23.length-2); return parseInt(""+x23); } MVUtil._f311=function(x24) { var x25=x24.style.left; if(x25.indexOf("px")>0) x25=x25.substring(0,x25.length-2); return parseInt(""+x25); } MVUtil._f312=function(x26) { var x27=x26.style.top; if(x27.indexOf("px")>0) x27=x27.substring(0,x27.length-2); return parseInt(""+x27); } MVUtil.getZIndex=function(x28) { var x29=x28.style.zIndex; if(!x29) return 0; return parseInt(""+x29); } MVUtil._f76=function(x30,x31,x32) { if(_f30._f210==2) { x30.style.pixelLeft=x31; x30.style.pixelTop=x32; } else { x30.style.left=MVUtil._f85(x31); x30.style.top=MVUtil._f85(x32); } } MVUtil._f136=function(x33,x34,x35,x36,x37,x38,x39) { x33.style.left=MVUtil._f85(x34); x33.style.top=MVUtil._f85(x35); x33.style.width=MVUtil._f85(x36); x33.style.height=MVUtil._f85(x37); if(x38) x33.style.zIndex=x38; if(x39) x33.style.fontSize=MVUtil._f85(x39); } MVUtil._f316=function(x40) { x40.style.position="absolute"; x40.unselectable="on"; x40.onselectstart=MVUtil._f332; x40.style.fontFamily="Arial, sans serif"; x40.style.MozUserSelect="none"; x40.align="left"; } MVUtil._f332=function() { return false; } MVUtil._f107=function(x41,x42) { try { if(x42.indexOf(".")>-1) { x42="url(\""+x42+"\"),auto"; } x41.style.cursor=x42; } catch(_exception) { if(x42=="pointer") { MVUtil._f107(x41,"hand"); } } } MVUtil._f333=function(x43) { var x44={"x":0,"y":0}; var x45=x43; while(x43) { x44.x+=x43.offsetLeft; x44.y+=x43.offsetTop; x43=x43.offsetParent; } x43=x45; while(x43&&x43.tagName!="BODY") { x44.x-=x43.scrollLeft; x44.y-=x43.scrollTop; x43=x43.parentNode; } return x44; } function _f334(x0,x1,x2,x3,x4,x5,x6) { var x7=null; if(x6&&_f30._f86()) { x7=document.createElement("div"); x7.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x0+"', sizingMethod='scale');"; } else { x7=document.createElement("img"); x7.src=x0; } if(x1&&x2) { x7.style.width=MVUtil._f85(x1); x7.style.height=MVUtil._f85(x2); x7.width=x1; x7.height=x2; } if(x4||(x3||(x4==0||x3==0))) { x7.style.position="absolute"; x7.style.left=MVUtil._f85(x3); x7.style.top=MVUtil._f85(x4); } if(x5||x5==0) { x7.style.zIndex=x5; } if(_f30._f87=="IF"){ x7.unselectable="on"; x7.onselectstart=MVUtil._f332;} else{ x7.style.MozUserSelect="none"; } if(_f30._f87=="IF") { x7.galleryImg="no"} x7.style.border="0"; x7.style.padding="0"; x7.style.margin="0"; x7.oncontextmenu=MVUtil._f332; return x7; } MVUtil._f335=function(x46,x47) { if(x47) { var x48=null; if(x47.type!=undefined) x48=x46._f336(x47); else x48=x47; var x49=MVSdoGeometry.createPoint(x48.left,x48.top); return x49.sdo_point; } else { var x48=x46._f336(window.event); var x49=MVSdoGeometry.createPoint(x48.left,x48.top); return x49.sdo_point; } } MVUtil.getMouseLocation=function(x50,x51) { var x52=MVUtil._f335(x50,x51); var x53=x52.x-x50._f13()/2; var x54=x53/x50._f71+x50._f15; x53=x52.y-x50._f14()/2; var x55=((-1.0)*x53)/x50._f72+x50._f16; var x56=MVSdoGeometry.createPoint(x54,x55); return x56; } MVUtil._f313=function(x57) { x57=(x57)?x57:((window.event)?event:null); var x58=0; var x59=0; if(x57.pageX) { x58=x57.pageX; x59=x57.pageY; } else if(x57.clientX) { x58=x57.clientX+document.body.scrollLeft-document.body.clientLeft; x59=x57.clientY+document.body.scrollTop-document.body.clientTop; if(document.body.parentElement&&(document.body.parentElement.clientLeft ||document.body.parentElement.clientTop)) { var x60=document.body.parentElement; x58+=x60.scrollLeft-x60.clientLeft; x59+=x60.scrollTop-x60.clientTop; } } return MVSdoGeometry.createPoint(x58,x59).sdo_point; } MVUtil.keepInCSBoundary=function(x61,x62) { var x63=x61.msi._f337-x61.msi._f338; while(x62x61.msi._f337) { x62-=x63; } return x62; } MVUtil.keepOrdinatesInCSBoundary=function(x64,x65) { var x66=new Array(); for(var x67=0;x67'; } MVUtil._f227=function(x81) { return x81.replace(/(^[\s]*)|([\s]*$)/g,""); } MVUtil._f343=function(x82,x83) { return x82.substring(0,x83.length)==x83; } MVUtil._f3=function(x84,x85) { return x84.substring(x84.length-x85.length,x84.length)==x85; } MVUtil._f344=function(x86,x87) { return x87+x86+MVUtil._f342(x87); } MVUtil._f35=function(x88,x89,x90) { var x91; x91=x88.indexOf(x89); if(x91>-1) { var x92=x88.substring(0,x91); var x93=x88.substring(x91+x89.length,x88.length); x88=x92+x90+MVUtil._f35(x93,x89,x90); } return x88; } MVUtil._f345=function(x94) { if(x94.indexOf(".")>=0) return x94.substring(0,x94.indexOf(".")); else return x94; } MVUtil._f346=function(x95) { if(x95.indexOf(".")>=0) return x95.substring(x95.indexOf(".")+1,x95.length); else return x95; } MVUtil.objArray=new Array(); MVUtil._f347=new Array(); MVUtil._f348=new Array(); MVUtil._f349=function(x96) { if(_f30._f87!="IF") return; var x97=MVUtil._f347.length; if(x96._f350) { x97=(x96._f350); } else x96._f350=-1; if((x96._f350)==-1&&(MVUtil._f348.length)>0) x97=MVUtil._f348.pop(); x96._f350=x97; MVUtil._f347[x97]=x96; } MVUtil.MVUnload=function() { if(typeof(MVUtil._f347)!="undefined"&&(MVUtil._f347!=null)) { for(var x98=0;MVUtil._f347&&x980) { var x99=MVUtil.objArray.pop(); x99._f18(); } } window.onunload=function() { MVUtil.MVUnload(); } MVUtil._f134=function(x100,x101) { if(_f30._f87!="IF") { return function() { return x101.apply(x100,arguments); } } if(!(MVUtil._f351)) { MVUtil._f351=new Array(); MVUtil._f352=new Array(); MVUtil._f353=new Array(); } if(!(MVUtil._f354)) { MVUtil._f354=new Array(); MVUtil._f355=new Array(); MVUtil._f356=new Array(); } try { var x102=(MVUtil._f351.length); if(x100._f350) { x102=(x100._f350); } else x100._f350=-1; if((x100._f350)==-1&&(MVUtil._f353.length)>0) x102=MVUtil._f353.pop(); MVUtil._f351[x102]=x100; MVUtil._f351[x102]._f350=x102; if(!(MVUtil._f352[x102])) MVUtil._f352[x102]=new Array(); var x103=(MVUtil._f352[x102].length); MVUtil._f352[x102][x103]=x101; x100=null; x101=null; return function() { return MVUtil._f352[x102][x103].apply(MVUtil._f351[x102],arguments); } } catch(e) { var x102=(MVUtil._f354.length); if((MVUtil._f356.length)>0) x102=MVUtil._f356.pop(); MVUtil._f354[x102]=x100; MVUtil._f355[x102]=x101; x100=null; x101=null; return function() { return MVUtil._f355[x102].apply(MVUtil._f354[x102],arguments); } } } MVUtil._f357=function(x104) { if(_f30._f87=="IF") { if(x104._f350) { var x105=(x104._f350); for(var x106=(MVUtil._f352[x105].length);x106>0;--x106) { MVUtil._f352[x105][x106-1]=null; MVUtil._f352[x105].pop(); } MVUtil._f352[x105]=null; x104._f350=null; x104=null; MVUtil._f351[x105]=null; MVUtil._f353.push(x105); } } } MVUtil.gc=function() { if(_f30._f87=="IF"&&MVUtil._f354) { var x107=0; if(MVUtil._f358) x107=(MVUtil._f358); if((MVUtil._f354.length)0) { x115+=3; var x116=x114.indexOf("/",x115); if(x116>0) return x114.substring(x115,x116); else return x114.substring(x115); } else return null; } MVUtil._f100=function(x117,x118) { if(!x117) return ; var x119=x117.childNodes; if(x119!=null) { while(x119.length>0) { MVUtil._f19(x119[0],x118); x117.removeChild(x119[0]); } } } MVUtil._f19=function(x120,x121) { if(!x120) return ; var x122=x120.childNodes; if(x122!=null) { while(x122.length>0) { MVUtil._f19(x122[0],x121); x120.removeChild(x122[0]); } } MVUtil._f364(x120,x121); } MVUtil._f364=function(x123,x124) { if(!x123) return ; try { if(x123.onload) x123.onload=null; if(x123.onmouseover) x123.onmouseover=null; if(x123.onmouseout) x123.onmouseout=null; if(x123.onmousedown) x123.onmousedown=null; if(x123.onmouseup) x123.onmouseup=null; if(x123.oncontextmenu) x123.oncontextmenu=null; if(x123.ondblclick) x123.ondblclick=null; if(x123.onclick) x123.onclick=null; if(x123.onkeyup) x123.onkeyup=null; if(x123.onkeydown) x123.onkeydown=null; if(x123.onkeypressed) x123.onkeypressed=null; if(_f30._f87=="IF") { if(x123.style&&x123.style.filter) x123.style.filter=null; if(x123._f350) { MVUtil._f348.push(x123._f350) MVUtil._f347[x123._f350]=null; } } }catch(error) { MVi18n._f42("MVUtil.clearListeners","MAPVIEWER-05500",x123.nodeName+","+x123.nodeType+"\n"+error,x124); } } MVUtil._f89=MVUtil._f19; MVUtil._f365=function(x125) { var x126=document.createElement("table"); var x127=document.createElement("tr"); var x128=document.createElement("td"); x128.innerHTML=x125; x127.appendChild(x128); x126.appendChild(x127); return x126; } MVUtil.getEvent=function(x129) { return x129?x129:((window.event)?event:null); } MVUtil.isIE7=function() { if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE 7")>=0) return true; else return false; } MVUtil.getNumber=function(x130) { var x131=0; if(typeof(x130)=="string") { if(x130.indexOf("px")>0) x130=x130.substring(0,x130.length-2); if(x130.indexOf(".")>0) x131=parseFloat(x130); else x131=parseInt(x130); if(isNaN(x131)) x131=0; return x131; } else if(typeof(x130)=="number") x131=x130; return x131; } MVUtil.trapEvent=function(x132) { x132=(x132)?x132:((window.event)?event:null); if(_f30._f87=="IF") x132.cancelBubble=true; else if(x132.stopPropagation) x132.stopPropagation(); } MVUtil._f77=function(x133,x134) { var x135=(_f30._f86()&&x134)? document.createElement('div'):document.createElement('img'); if(_f30._f86()&&x134) { if(x133) x135.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x133+"', sizingMethod='image');"; } else { x135.src=x133; } if(_f30._f87=="IF"&&!x134) { x135.galleryImg="no"} return x135; } MVUtil.attachEvent=function(x136,x137,x138) { if(_f30._f87=="IF") { x137="on"+x137; x136.attachEvent(x137,x138); } else { x136.addEventListener(x137,x138,"false"); } } MVUtil.detachEvent=function(x139,x140,x141) { if(_f30._f87=="IF") { x140="on"+x140; x139.detachEvent(x140,x141); } else { x139.removeEventListener(x140,x141,"false"); } } MVUtil.mouseLeftKeyPressed=function(x142) { if(_f30._f87=="IF") return x142.button==1; else return x142.which==1; } MVUtil.mouseRightKeyPressed=function(x143) { if(_f30._f87=="IF") return x143.button==2; else return x143.which==3; } MVUtil.formatNum=function(x144) { if(x144==null||x144=="undefine") return; var x145=MVMessages["number_format"].charAt(1); var x146=MVMessages["number_format"].charAt(5); x144=new String(x144); if(x144.indexOf(".00")>0) { x144=x144.substring(0,x144.indexOf(".00")); } var x147,x148,x149; if(x144.indexOf(".")>0) { x147=x144.split("."); x148=x147[0]; x149=x147[1]; } else {x148=x144; x149=null; } var x150=x148.length-1-3-3; var x151; if(x148.length<=3) x151=x148; else{ x151=x145.concat(x148.slice(-3)); while(x150>-1) { var x152=x148.substr(x150+1,3); x151=x145.concat(x152,x151); x150=x150-3; } if(x148.length%3!=0) x151=x148.substr(0,(x148.length%3)).concat(x151); else x151=x148.substr(0,3).concat(x151); } if(x149!=null) { var x153=3; var x154; if(x149.length<=3) x154=x149; else{ x154=x149.slice(0,3); while(x153<=x149.length-1-3) { var x152=x149.substr(x153,3); x154=x154.concat(x145,x152); x153=x153+3; } if(x149.length%3!=0) x154=x154.concat(x145,x149.slice(-x149.length%3)); else x154=x154.concat(x145,x149.slice(-3)); } } if(x149==null) return x151; else return x151.concat(x146,x154); } MVUtil.getEventSource=function(x155) { if(_f30._f87=="IF") { return x155.srcElement; } else { return x155.target; } } MVUtil.unique_array=function(x156) { var x157=x156; var x158; for(var x159=0;x159=0) { var x175=x173.parent.getFOIGroup(x172.groupid); x174=x175._f366(x172.orgid?x172.orgid:x172.id); } else if(x172.parentNode&&x173) x174=x173._f367(x172.orgid?x172.orgid:x172.id); if(x174&&x174.origFOI) x174=x174.origFOI; return {ifctl:x173,foi:x174}; } MVUtil.transOrdinatesOnWarpAroungMap=function(x176,x177) { var x178=x176.msi._f337-x176.msi._f338; var x179=x178/2; var x180=x176.msi._f338+x179; var x181=new Array(); if(x177.length<4) return x177; var x182=x177[0]; var x183; x181.push(x182); x181.push(x177[1]); for(var x184=2;x184x179) { if((x183-x182)<0) x183+=x178; else x183-=x178; } x182=x183; x181.push(x183); x181.push(x177[++x184]); } return x181; } MVUtil.transLongitudeOnWarpAroungMap=function(x185,x186,x187) { var x188=x185.msi._f337-x185.msi._f338; var x189=x188/2; var x190=x185.msi._f338+x189; while(Math.abs(x187-x186)>x189) { if((x187-x186)<0) { x187+=x188; } else { x187-=x188; } } return x187; } MVUtil.crossDateLine=function(x191,x192) { var x193=x191.msi._f337-x191.msi._f338; var x194=x193/2; var x195=x191.msi._f338+x194; if(x192.length<4) return false; var x196=x192[0]; var x197; for(var x198=2;x198x194) { return true } else if(x196>x191.msi._f338&&x196x191.msi._f337||x197x199.msi._f337) x206=true; for(var x207=0;x207x213/2) { if(x219<0) { x211=x211+x213; x220--; } else { x211=x211-x213; x220++; } x219=x211-x215; } if(x211x218) x212=x214+1+x220; else x212=x214+x220; } return x212; } MVUtil.isNumber=function(x221) { if(x221!=null&&typeof x221=="number") return true; else return false; } MVUtil.isNumberArray=function(x222) { if(!x222) return true; if(typeof x222=="object") if(x222.length==0||MVUtil.isNumber(x222[0])) return true; return false; } MVUtil.getImageSize=function(x223,x224) { var x225=new Image(); x225.src=x223 x225.onload=function(){ var x226=this.width; var x227=this.height; x225.onload=null; x225=null; x224(x226,x227); } } MVUtil.canBeCombined=function(x228,x229) { if(x228._f9||x229._f9) return false; if(x228.getType()!="MVMapTileLayer"||x229.getType()!="MVMapTileLayer"|| !x228.layerControl||!x229.layerControl) return false; if(x228._f1!=x229._f1) return false; var x230=x228.config; var x231=x229.config; if(x230.clientTileAccess||x231.clientTileAccess) return false; if(x230.dataSource!=x230.dataSource) return false; if(x230.format!="PNG"||x231.format!="PNG") return false; if(x230.coordSys.srid!=x231.coordSys.srid|| x230.coordSys.minX!=x231.coordSys.minX|| x230.coordSys.minY!=x231.coordSys.minY) return false; if(x230.zoomLevels.length!=x230.zoomLevels.length) return false; for(var x232=0;x232x236.msi._f337) { x240--; x237-=x239; } return x238-x240*x239; } function _f110() { } _f110._f111=6372795; _f110._f112=function(x0,x1,x2) { var x0=_f110._f113(x0); var x3=x0.x; var x4=x0.y; var x5=x1/_f110._f111; var x6=Math.asin(Math.sin(x4)*Math.cos(x5)+Math.cos(x4)*Math.sin(x5)*Math.cos(x2)); var x7=x3+Math.atan2(Math.sin(x2)*Math.sin(x5)*Math.cos(x4),Math.cos(x5)-Math.sin(x4)*Math.sin(x6)); return _f110._f114(new MVSdoPointType(x7,x6,0)); } _f110._f113=function(x8) { var x9=x8.x; var x10=x8.y; while(x9<-180)x9+=360; while(x9>180)x9-=360; x9=x9*Math.PI/180; x10=x10*Math.PI/180; return new MVSdoPointType(x9,x10,0); } _f110._f114=function(x11) { var x12=x11.x; var x13=x11.y; x13=x13*180/Math.PI; x12=x12*180/Math.PI; return new MVSdoPointType(x12,x13,0); } _f110._f117=function(x14,x15) { x14=_f110._f113(x14); x15=_f110._f113(x15); var x16=x15.x-x14.x; var x17=x15.y-x14.y; var x18=Math.sin(x17/2); var x19=Math.sin(x16/2); var x20=x18*x18+Math.cos(x14.y)*Math.cos(x15.y)*x19*x19; var x21=2*Math.atan2(Math.sqrt(x20),Math.sqrt(1-x20)); return x21*_f110._f111; } _f110._f118=function(x22) { var x23=0; for(i=0;i1.)x36=1.; if(x36<-1.)x36=-1.; x33=Math.acos(x36); x28=MVGeoUtil.mdsphcp(x26,x27); if(Math.abs(x28.x)<1.e-9*x29&&Math.abs(x28.y)<1.e-9*x29&& Math.abs(x28.z)<1.e-9*x29) { if(x36>0.) x35-=Math.PI; } else { if(MVGeoUtil.DOTPRODUCT(x28,x38)<0.) x35+=x33-Math.PI; else x35+=Math.PI-x33; } } x37/=x25*1.0; if(x35<0.)x35+=2.*Math.PI; else x35-=2.*Math.PI; } _f110.mdsphcp=function(x41,x42) { var x43={"x":0,"y":0,"z":0}; if((x41.x==x42.x)&&(x41.y==x42.y)&&(x41.z==x42.z)) { x43.x=x43.y=x43.z=0.0; } else { x43.x=x41.y*x42.z-x41.z*x42.y; x43.y=x41.z*x42.x-x41.x*x42.z; x43.z=x41.x*x42.y-x41.y*x42.x; } return x43; } _f110.get3DVector=function(x44,x45) { var x46={"x":x44,"y":x45}; var x47=_f110._f113(x46); x47.z=Math.sin(x47.y); return x47; } _f110.MAGNITUDE=function(x48) { return Math.sqrt(x48.x*x48.x+x48.y*x48.y+x48.z*x48.z); } _f110.DOTPRODUCT=function(x49,x50) { return x49.x*x50.x+x49.y*x50.y+x49.z*x50.z; } if(typeof(_f206)=='undefined') _f206=0; if(typeof(_f207)=='undefined') _f207=new Array(30); if(typeof(_f208)=='undefined') _f208=new Array(30); if(typeof(_f209)=='undefined') _f209=null; function _f30(){} _f30._f210=document.all?(document.getElementById?2:1):(document.layers?3:0); _f30._f211=navigator.userAgent.toLowerCase(); _f30._f212=null; _f30._f213=null; _f30._f214=new Array(30); _f30._f215="MVInfoWindowStyle1"; _f30._f216=new Array(30); _f30._f217=function() { return _f209; } _f30._f218=function(x0) { if(!_f209) _f209=x0; } _f30._f219=function(x1) { _f30._f212=_f30._f211.indexOf(x1)+1; _f30._f213=x1; return _f30._f212; } if(_f30._f219('safari')) _f30._f87="SF"; else if(_f30._f219('opera')) _f30._f87="OS"; else if(_f30._f219('msie')) _f30._f87="IF"; else if(!_f30._f219('compatible')) { _f30._f87="NS"; _f30._f220=_f30._f211.substring(8,11);} else _f30._f87="unknown"; if(!_f30._f220) _f30._f220=_f30._f211.substring(_f30._f212+_f30._f213.length, _f30._f212+_f30._f213.length+3); _f30._f221=0; if(_f30._f220) { var i=_f30._f220.indexOf("."); if(i>=0) _f30._f221=parseInt(_f30._f220.substring(0,i)); else _f30._f221=parseInt(_f30._f220); } _f30._f86=function() { return _f30._f87=="IF"&&_f30._f221<7; } _f30._f214["SQ_MM"]=.000001; _f30._f214["SQ_KILOMETER"]=1000000; _f30._f214["SQ_CENTIMETER"]=.0001; _f30._f214["SQ_MILLIMETER"]=.000001; _f30._f214["SQ_CH"]=404.6856; _f30._f214["SQ_FT"]=.09290304; _f30._f214["SQ_IN"]=.00064516; _f30._f214["SQ_LI"]=.04046856; _f30._f214["SQ_CHAIN"]=404.6856; _f30._f214["SQ_FOOT"]=.09290304; _f30._f214["SQ_INCH"]=.00064516; _f30._f214["SQ_LINK"]=.04046856; _f30._f214["SQ_MILE"]=2589988; _f30._f214["SQ_ROD"]=25.29285; _f30._f214["SQ_SURVEY_FOOT"]=.09290341; _f30._f214["SQ_YARD"]=.8361274; _f30._f214["ACRE"]=4046.856; _f30._f214["HECTARE"]=10000; _f30._f214["PERCH"]=25.29285; _f30._f214["ROOD"]=1011.714; _f30._f214["M"]=1; _f30._f214["METER"]=1; _f30._f214["KM"]=1000; _f30._f214["KILOMETER"]=1000; _f30._f214["CM"]=.01; _f30._f214["CENTIMETER"]=.01; _f30._f214["MM"]=.001; _f30._f214["MILLIMETER"]=.001; _f30._f214["MILE"]=1609.344; _f30._f214["NAUT_MILE"]=1852; _f30._f214["SURVEY_FOOT"]=.3048006096012; _f30._f214["FOOT"]=.3048; _f30._f214["INCH"]=.0254; _f30._f214["YARD"]=.9144; _f30._f214["CHAIN"]=20.1168; _f30._f214["ROD"]=5.0292; _f30._f214["LINK"]=.201166195; _f30._f214["MOD_USFT"]=.304812253; _f30._f214["CL_FT"]=.304797265; _f30._f214["IND_FT"]=.304799518; _f30._f214["LINK_BEN"]=.201167651; _f30._f214["LINK_SRS"]=.201167651; _f30._f214["CHN_BEN"]=20.1167825; _f30._f214["CHN_SRS"]=20.1167651; _f30._f214["IND_YARD"]=.914398554; _f30._f214["SRS_YARD"]=.914398415; _f30._f214["FATHOM"]=1.8288; _f30._f214["SQ_M"]=1; _f30._f214["SQ_METER"]=1; _f30._f214["SQ_KM"]=1000000; _f30._f214["SQ_CM"]=.0001; _f30._f222=function(x2) { if(x2) x2=x2.toUpperCase(); else return 0; if(_f30._f214[x2]) return _f30._f214[x2]; else return 0; } _f30._f223=function(x3,x4) { x3=x3.toUpperCase(); _f207[x3]=x4; if(x4.coordSys.srid) _f208[x4.coordSys.srid]=x4.coordSys; } _f30._f225=function(x5) { if(x5&&_f208[x5]) return _f208[x5]; else return null; } _f30._f226=function(basemap,callBack,_f20) { if(basemap._f1==null||basemap._f0==null||MVUtil._f227(basemap._f0)=="") { basemap._f0="null"; _f207[basemap._f0]=null;return; } basemap._f0=basemap._f0.toUpperCase(); if(_f207[basemap._f0]) { if(_f207[basemap._f0].transparent) basemap._f4=true; if(callBack) callBack(_f207[basemap._f0]); return _f207[basemap._f0]; } var conStr=basemap._f2.indexOf("?")>=0?"&":"?"; var formatStr; var _f228=basemap._f2+conStr+"xml_request=" +""; var request=null; var localDomain=MVUtil.isLocalDomain(basemap._f1); var xmlHttp=localDomain||MVMapView._f229; var configLoaded=function() { try { var resp=xmlHttp?request.responseText:this.responseText; eval("var result="+resp); if(result.length==0) { MVi18n._f42("MVGlobalVariables.getMapCacheConfig","MAPVIEWER-05501",basemap._f0,_f20); _f207[basemap._f0]=null;result=null; return; } if(result[0].transparent) basemap._f4=true; _f30._f223(basemap._f0,result[0]); result=null; } catch(e) { MVi18n._f42("MVGlobalVariables.getMapCacheConfig","MAPVIEWER-05523", basemap._f0+":"+request.responseText,_f20); return ; } if(callBack) callBack(_f207[basemap._f0]); } try { request=MVUtil.getXMLHttpRequest(xmlHttp); if(!xmlHttp) request.onreadystatechange=configLoaded; request.open("GET",_f228,!xmlHttp); request.send(""); }catch(e) { MVi18n._f42("MVGlobalVariables.getMapCacheConfig","MAPVIEWER-05511",e,_f20); return ; } if(xmlHttp) { if(request.status==200) { configLoaded(); } else { _f207[basemap._f0]=null;MVi18n._f42("MVGlobalVariables.getMapCacheConfig","MAPVIEWER-05511", basemap._f0+":"+request.responseText,_f20); } } request=null; } _f30._f95=180; _f30._f96=100; _f30.infoWindowTabsWidth=260; _f30.infoWindowTabsHeight=150; _f30._f230=14; _f30._f231=112; _f30._f232=14; _f30._f233=14; _f30._f234=14; _f30._f235=14; _f30._f236=14; _f30._f237=14; _f30._f238=14; _f30._f239=14; _f30._f240=600; _f30._f241=600; _f30._f242=30; _f30._f243=16; _f30._f244=600; _f30._f245=1; _f30._f246=1; _f30._f247=600; _f30._f248=1; _f30._f249=10; _f30._f250=true; _f30._f127="/fsmc/images/"; _f30._f251="/fsmc/images/"; _f30._f252=0; _f30._f253=null; _f30._f254="bulls-eye.png"; _f30._f255=38; _f30._f256=38; _f30._f257=5; _f30._f258="-redline-point-marker"; _f30._f259="-redline-line-style"; _f30._f260="-redline-area-style"; _f30._f261=0; _f30._f262=0; _f30._f31=2000; _f30._f263=null; _f30._f264=null; _f30._f265=function() { if(!_f30._f263) _f30._f263=document.location.protocol+"//"+document.location.host+"/mapviewer/foi"; return _f30._f263; } _f30._f266=function() { if(!_f30._f264) _f30._f264=document.location.protocol+"//"+document.location.host+"/mapviewer"; return _f30._f264; } _f30._f267="/mapviewer/proxy"; _f30._f268=null; _f30._f269=function() { if(!_f30._f268) { _f30._f268=_f30._f267; } return _f30._f268; } if(document.getElementsByTagName("html")[0].getAttribute("xmlns")=="http://www.w3.org/1999/xhtml") _f30._f270=true; else _f30._f270=false; _f30._f271=function(x6,x7,x8) { var x9=_f30._f216[x6]; if(!x9) x9=_f30._f216[x6]=new Array(); x9[x7]=x8; } _f30._f274=function(x10,x11) { var x12=_f30._f216[x10]; if(x12) return x12[x11]; else return null; } _f30._f275=0; _f30._f276=false; function _f451(x0) { this._f452=x0; this.mapConfig=_f207[x0]; this._f338=this._f453(); this._f454=this._f455(); this._f337=this._f456(); this._f457=this._f458(); this._f459=this._f456()-this._f453(); this._f460=this._f458()-this._f455(); this.zoomCount=_f207[this._f452].zoomLevels.length; } _f451.prototype._f461=function() { return this._f452; } _f451.prototype._f462=function(x0) { return _f207[x0].format; } _f451.prototype._f463=function() { return this._f459; } _f451.prototype._f464=function() { return this._f460; } _f451.prototype._f453=function() { return _f207[this._f452].coordSys.minX; } _f451.prototype._f455=function() { return _f207[this._f452].coordSys.minY; } _f451.prototype._f456=function() { return _f207[this._f452].coordSys.maxX; } _f451.prototype._f458=function() { return _f207[this._f452].coordSys.maxY; } _f451.prototype._f17=function() { return _f207[this._f452].mapCache; } _f451.prototype.getSrid=function() { return _f207[this._f452].coordSys.srid; } _f451.prototype._f465=function() { return _f207[this._f452].coordSys.type; } _f451.prototype._f466=function() { return _f207[this._f452].coordSys.distConvFactor; } _f451.prototype.getMaxZoomLevel=function() { return _f207[this._f452].zoomLevels.length; } _f451.prototype._f467=function(x1) { return _f207[this._f452].zoomLevels[x1].tileWidth; } _f451.prototype._f468=function(x2) { return _f207[this._f452].zoomLevels[x2].tileHeight; } _f451.prototype._f469=function(x3) { return _f207[this._f452].zoomLevels[x3].tileImageWidth; } _f451.prototype._f470=function(x4) { return _f207[this._f452].zoomLevels[x4].tileImageHeight; } _f451.prototype._f471=function(x5) { return _f207[this._f452].zoomLevels[x5]._f472; } _f451.prototype._f473=function(x6,x7,x8,x9) { this._f338=x6; this._f454=x7; this._f337=x8; this._f457=x9; } function MVEvent(){} MVEvent.START="start"; MVEvent.FINISH="finish"; MVEvent.DRAG="drag"; MVEvent.NEW_SHAPE_POINT="new_shape_point"; MVEvent.MODIFY="modify"; MVEvent.MOUSE_CLICK="mouse_click"; MVEvent.MOUSE_RIGHT_CLICK="mouse_right_click"; MVEvent.MOUSE_OVER="mouse_over"; MVEvent.MOUSE_OUT="mouse_out"; MVEvent.COLLAPSE="collapse"; MVEvent.AFTER_COLLAPSE="after_collapse"; MVEvent.RESTORE="restore"; MVEvent.AFTER_RESTORE="after_restore"; MVEvent.DRAG_START="drag_start"; MVEvent.DRAG_END="drag_end"; MVEvent.RECENTER="recenter"; MVEvent.ZOOM_LEVEL_CHANGE="zoom_level_change"; MVEvent.BEFORE_ZOOM_LEVEL_CHANGE="before_zoom_level_change"; MVEvent.MOUSE_DOUBLE_CLICK="mouse_double_click"; MVEvent.INITIALIZE="initialize"; MVEvent.MOUSE_MOVE="mouse_move"; MVEvent.CLEAR="clear" MVEvent.BEFORE_REFRESH="before_refresh"; MVEvent.AFTER_REFRESH="after_refresh"; MVEvent.BUTTON_DOWN="button_down"; MVEvent.BUTTON_UP="button_up"; MVEvent.INIT="init"; MVEvent.MARQUEEZOOM_FINISH="marqueezoom_finish"; function _f70(x0,x1,x2,x3) { this._f66=x0.zoomLevels[x3].tileWidth; this._f65=x0.zoomLevels[x3].tileHeight;this._f82=Math.floor((x1-x0.coordSys.minX)/this._f66); this._f83=Math.floor((x2-x0.coordSys.minY)/this._f65); this._f67=x3; this.minX=this._f82*this._f66+x0.coordSys.minX; this.minY=this._f83*this._f65+x0.coordSys.minY;} _f70.prototype._f78=function(x0,x1) { this._f82=this._f82+x0; this._f83=this._f83+x1; } function MVMapTileLayer(x0,x1) { this._f0=x0; this._f1=""; this._f2=""; if(x1&&x1!="") { this._f1=x1; this._f2=x1; if(MVUtil._f3(x1,'/')) { this._f1=x1.substring(0,x1.length-1); this._f2=x1.substring(0,x1.length-1); } } this.parent=""; this._f4=false; this.visible=true; this._f5="PNG"; this.minVisibleLevel=null; this.maxVisibleLevel=null; this._f6=null; this.layerControl=null; this._f7=null; this._f8=null; this._f9=true; } MVMapTileLayer.prototype.getType=function() { return "MVMapTileLayer"; } MVMapTileLayer.prototype.setCombinable=function(x0) { if(x0) this._f9=false; else this._f9=true; } MVMapTileLayer.prototype.setTransparent=function(x1) { this._f4=x1; } MVMapTileLayer.prototype.setVisible=function(x2) { if(this.parent) { if(this.layerControl) { this.visible=x2; this.layerControl.setVisible(x2); } else if(this.isExtAPITileLayer()) { this.visible=x2; if(this.layerDiv) { if(x2) { this.layerDiv.style.visibility="visible"; var x3=this.parent.getCenter(); this.parent._f10(this,x3.getPointX(),x3.getPointY(),this.parent._f11); } else this.layerDiv.style.visibility="hidden"; } } else if(this._f7) { var x4=this._f7.isVisible(); this.visible=x2; var x5=this._f7.isVisible(); if(x4!=x5) this._f7.setVisible(x5); var x6=this._f7.getTransparent(); if(this._f7.layerControl) this._f7.layerControl._f4=x6; if(x5) this._f7.refresh(true); } } else this.visible=x2; } MVMapTileLayer.prototype.isVisible=function() { if(!this._f8) return this.visible; else { for(var x7=0;x7=this.parent._f11)) { if(x11) x11+=";"+this._f8[x12]._f0; else x11=this._f8[x12]._f0; } } return x11; } else return this._f0; } MVMapTileLayer.prototype.clone=function() { var x13=new MVMapTileLayer(this._f0,this._f1); x13._f4=this._f4; x13._f5=this._f5; x13.minVisibleLevel=this.minVisibleLevel; x13.maxVisibleLevel=this.maxVisibleLevel; x13._f9=this._f9; if(this.config) x13.config=this.config; return x13; } MVMapTileLayer.prototype._f18=function() { if(this.layerControl) { this.layerControl._f18(); this.layerControl=null; } else if(this.layerDiv) { MVUtil._f19(this.layerDiv,this.parent._f20); this.layerDiv.parentNode.removeChild(this.layerDiv); this.layerDiv=null; if(this._f21) this._f21(); } } MVMapTileLayer.prototype._f22=function() { if(this.layerControl) this.layerControl._f22(); } MVMapTileLayer.prototype.isExtAPITileLayer=function() { return this.getType()=="MVExternalAPIMapTileLayer"; } MVMapTileLayer.prototype.getTransparent=function() { if(this._f8) { for(var x14=0;x14=(this.mapConfig.coordSys.maxY-this.mapConfig.coordSys.minY)/this._f57._f65) return this._f59; else if(x1<0) { while(true) { x1=parseInt(Math.ceil((this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f57._f66))+x1; if(x1>=0) break; } } else if(x1>=(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f57._f66) { while(true) { x1=x1-parseInt(Math.ceil((this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f57._f66)); if(x1<(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f57._f66) break; } } } else if(x1<0||x1>=(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f57._f66|| x2<0||x2>=(this.mapConfig.coordSys.maxY-this.mapConfig.coordSys.minY)/this._f57._f65) return this._f59; var x3=this._f57._f67; if(this.basemap.tileURLProvider) { var x4=this.basemap.tileURLProvider( this.mapConfig.coordSys.minX+x1*this._f57._f66, this.mapConfig.coordSys.minY+x2*this._f57._f65, this._f57._f66,this._f57._f65,x3); if(!x4) return this._f59; else return x4; } else { var x5=null; if(this.mapConfig.clientTileAccess) x5=this._f0; else x5=this.basemap._f17(); return String(this._f1+"?request=gettile&format="+this._f5+"&zoomlevel="+x3+"&mapcache="+x5+"&mx="+x1+"&my="+x2); } } _f39.prototype._f12=function(x6,x7,x8,x9) { if(this._f69()) return; if(this.parent._f11>=this.mapConfig.zoomLevels.length) return; this.tileWidth=this.mapConfig.zoomLevels[this.parent._f11].tileImageWidth; this.tileHeight=this.mapConfig.zoomLevels[this.parent._f11].tileImageHeight; this._f43=x8;this._f44=x9; this._f40=Math.ceil(this.tileWidth/2); this._f41=Math.ceil(this.tileHeight/2); this._f53=x6;this._f54=x7; this._f55=x8;this._f56=x9; this._f47=Math.ceil((x6+this._f40*2)/this.tileWidth); this._f57=null; this._f57=new _f70(this.mapConfig,x8,x9,this.parent._f11); this.tileNumInCSBoun=Math.ceil((this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f57._f66); this.parent._f71=this.tileWidth/this._f57._f66;this.parent._f72=this.tileHeight/this._f57._f65; this.coverPixel=(this._f57._f66*this.tileNumInCSBoun-(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX))*this.parent._f71; if(this.parent.wraparound) { var x10=(this._f47/this.tileNumInCSBoun)*this.coverPixel; var x11=(this.tileWidth/2); this._f47=this._f47+Math.ceil(x10/x11)+1; } this._f48=Math.ceil((x7+this._f41*2)/this.tileHeight); this._f51=0;this._f52=0; this.origParLeft=this.parent._f73;this.origParTop=this.parent._f74; this._f75(); var x12=Math.floor(this._f47/2); var x13=Math.floor(this._f48/2); var x14=this._f53/2.0-(x8-this._f57.minX)*this.parent._f71; var x15=this._f54/2.0+(x9-this._f57.minY)*this.parent._f72-this.tileHeight; while(true) { var x16=x14-x12*this.tileWidth; if(x16>0) { x12++; continue; } var x17=x15-x13*this.tileHeight; if(x17>0) { x13++; continue; } var x18=x14+(this._f47-x12)*this.tileWidth-this._f53; if(x18<0) { x12--; continue; } var x19=x15+(this._f48-x13)*this.tileHeight-this._f54; if(x19<0) { x13--; continue; } var x20=x18+x16,x21=x19+x17; if(x20>this.tileWidth) { x12++ continue; } else if(x20<(-1)*this.tileWidth) { x12--; continue; } if(x21>this.tileHeight) { x13++; continue; } if(x21<(-1)*this.tileHeight) { x13--; continue; } break; } this._f45=x14-x12*this.tileWidth-this.parent._f73; this._f46=x15-x13*this.tileHeight-this.parent._f74; MVUtil._f76(this._f58,this._f45,this._f46); this._f77(x12,x13, this.tileWidth,this.tileHeight, x12*this.tileWidth,x13*this.tileHeight); this._f57._f78(-1,1); var x22=Math.max(x12,this._f47-x12); var x23=Math.max(x13,this._f48-x13); for(_f79=1;_f79<=Math.max(x22,x23);_f79++) { for(xx=x12-_f79,yy=x13-_f79; xx<=x12+_f79;xx++) { if(!(xx<0||xx>=this._f47||yy<0||yy>=this._f48)) { this._f77(xx,yy, this.tileWidth,this.tileHeight, xx*this.tileWidth,yy*this.tileHeight); } this._f57._f78(1,0); } this._f57._f78(-(_f79*2+1),-1); for(xx=x12-_f79,yy=x13-_f79+1; yy<=x13+_f79-1;yy++) { if(!(xx<0||xx>=this._f47||yy<0||yy>=this._f48)) { this._f77(xx,yy, this.tileWidth,this.tileHeight, xx*this.tileWidth,yy*this.tileHeight); } this._f57._f78(0,-1); } for(xx=x12-_f79,yy=x13+_f79; xx<=x12+_f79;xx++) { if(!(xx<0||xx>=this._f47||yy<0||yy>=this._f48)) { this._f77(xx,yy, this.tileWidth,this.tileHeight, xx*this.tileWidth,yy*this.tileHeight); } this._f57._f78(1,0); } this._f57._f78(-1,1); for(xx=x12+_f79,yy=x13+_f79-1; yy>=x13-_f79+1;yy--) { if(!(xx<0||xx>=this._f47||yy<0||yy>=this._f48)) { this._f77(xx,yy, this.tileWidth,this.tileHeight, xx*this.tileWidth,yy*this.tileHeight); } this._f57._f78(0,1); } this._f57._f78(-(_f79*2+1),1); } this._f57._f78(_f79,-(_f79)); this._f57._f78(-x12+Math.floor(this._f47/2), x13-Math.floor(this._f48/2)); } _f39.prototype._f22=function() { if(this._f69()) return; var x24=this.parent._f73+this._f51+this._f45; var x25=this.parent._f74+this._f52+this._f46; var x26=0,x27=0; while(true) { var x28=x24-x26*this.tileWidth; if(x28>0) { x26++; continue; } var x29=x25-x27*this.tileHeight; if(x29>0) { x27++; continue; } var x30=x24+(this._f47-x26)*this.tileWidth-this._f53; if(x30<0) { x26--; continue; } var x31=x25+(this._f48-x27)*this.tileHeight-this._f54; if(x31<0) { x27--; continue; } var x32=x30+x28,x33=x31+x29; if(x32>this.tileWidth) { x26++ continue; } else if(x32<(-1)*this.tileWidth) { x26--; continue; } if(x33>this.tileHeight) { x27++; continue; } if(x33<(-1)*this.tileHeight) { x27--; continue; } break; } if(x26==0&&x27==0) return ; var x34=Math.floor(this._f47/2); var x35=Math.floor(this._f48/2); var x36=this._f57._f82-x34; var x37=this._f57._f83+x35; var x38; if(x26!=0) { for(x38=0;(x26>0?x38x26);(x26>0?x38++:x38--)) { var x39; var x40; var x41; if(x26>0) x40=this._f51-(x38+1)*this.tileWidth; else x40=this._f51+(this._f47-x38)*this.tileWidth; if(x26>0) { x39=this._f50[this._f50.length-1]; this._f50.pop(); for(var x42=0;x420&&x42=-x27)) { this._f84(x39[x42],this._f64(x36-x38-1,x37-x42)); }if(this.parent.wraparound) { x39[x42].style.zIndex=x36-x38-1; x41=this._f50[0][x42].style.zIndex; if(x41%this.tileNumInCSBoun==0) x39[x42].style.left=MVUtil._f85(parseInt(this._f50[0][x42].style.left)-this.tileWidth+this.coverPixel); else x39[x42].style.left=MVUtil._f85(parseInt(this._f50[0][x42].style.left)-this.tileWidth); } else x39[x42].style.left=MVUtil._f85(x40); } this._f50.unshift(x39); } else { x39=this._f50[0]; this._f50.shift(); for(var x42=0;x420&&x42=-x27)) { this._f84(x39[x42],this._f64(x36+this._f47-x38,x37-x42)); } if(this.parent.wraparound) { x39[x42].style.zIndex=x36+this._f47-x38; x41=this._f50[this._f50.length-1][x42].style.zIndex; if(x41%this.tileNumInCSBoun==(this.tileNumInCSBoun-1)||x41%this.tileNumInCSBoun==-1) x39[x42].style.left=MVUtil._f85(parseInt(this._f50[this._f50.length-1][x42].style.left)+this.tileWidth-this.coverPixel); else x39[x42].style.left=MVUtil._f85(parseInt(this._f50[this._f50.length-1][x42].style.left)+this.tileWidth); } else x39[x42].style.left=MVUtil._f85(x40); } this._f50.push(x39); } } } if(x27!=0) { var x43; for(x43=0;(x27>0?x43x27);(x27>0?x43++:x43--)) { var x44; if(x27>0) x44=this._f52-(x43+1)*this.tileHeight; else x44=this._f52+(this._f48-x43)*this.tileHeight; for(x38=0;x380) { x45=x39[x39.length-1]; this._f84(x45,null); x39.pop(); x39.unshift(x45); x45.style.top=MVUtil._f85(x44); this._f84(x45,this._f64(x36-x26+x38,x37+x43+1)); } else { x45=x39[0]; this._f84(x45,null); x39.shift(); x39.push(x45); x45.style.top=MVUtil._f85(x44); this._f84(x45,this._f64(x36-x26+x38,x37-this._f48+x43)); } } } } if(this.parent.wraparound) this._f51=parseInt(this._f50[0][0].style.left); else this._f51=this._f51-x26*this.tileWidth; this._f52=this._f52-x27*this.tileHeight; this._f57._f78(-x26,x27); } _f39.prototype._f77=function(x46,x47,x48,x49,x50,x51) { var x52=this._f64(this._f57._f82,this._f57._f83); var x53=this._f50[x46][x47]; if(x53==null) { x53=(_f30._f86()&&this._f4)? document.createElement('div'):document.createElement('img'); this._f58.appendChild(x53); this._f50[x46][x47]=x53; } _f30.c=0; if(_f30._f87=="IF"&&!this._f4) { x53.galleryImg="no"} else { x53.style.MozUserSelect="none"; } MVUtil._f88(x53); x53.style.position="absolute"; if(this.parent.wraparound) { x53.style.zIndex=this._f57._f82; if(this._f57._f82<0) { x53.style.left=MVUtil._f85(x50-this.coverPixel*Math.floor(x53.style.zIndex/this.tileNumInCSBoun)); } else if(this._f57._f82>=(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f57._f66) { x53.style.left=MVUtil._f85(x50-this.coverPixel*Math.floor(x53.style.zIndex/this.tileNumInCSBoun)); } else { x53.style.left=MVUtil._f85(x50); } } else x53.style.left=MVUtil._f85(x50); x53.style.top=MVUtil._f85(x51); if(_f30._f87=="IF") { x53.style.width=MVUtil._f85(x48); x53.style.height=MVUtil._f85(x49); } if((this.zoomControl)&&(this.zoomControl.zooming)) x53.style.display='none'; var x54=this; x53.imgLoadFinished=false; x53.onload=function() { x53.imgLoadFinished=true; x53.onload=null; x53.style.display=''; }; this._f84(x53,x52); return x53; } _f39.prototype._f75=function() { if(!(this._f58.zooming)) { this._f58.parentNode.removeChild(this._f58); MVUtil._f89(this._f58); } this._f58=document.createElement("div"); this._f58.style.position="absolute"; this.parent.div.appendChild(this._f58); this._f58.style.zIndex=this.zIndex; this._f50=new Array(); for(var x55=0;x550) { var x59=this._f50.pop(); while(x59.length>0) { if(_f30._f86()&&this._f4) { MVUtil._f89(x59.pop()); } else { var x60=x59.pop(); if(x60!=null) { this._f58.removeChild(x60); delete x60; } }}} this._f58.parentNode.removeChild(this._f58); this._f58=null; this.zIndex=null; } _f39.prototype.getXMLForPrint=function() { var x61=""; } _f39.prototype._f84=function(x63,x64) { if(x64) { x63.imgSrc=x64; if(this.basemap._f6) { x64=x64+"&reload="+this.basemap._f6; } } if(_f30._f86()&&this._f4) { if(x64) x63.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x64+"', sizingMethod='image');"; else x63.style.filter=""; } else { if(x64) x63.src=x64; else x63.src=this._f59; } } _f39.prototype._f91=function() { for(var x65=0;x65this.parent._f11) { if(this._f58) this._f58.style.visibility="hidden"; return true; } if(this.maxVisibleLevel!=null&&this.maxVisibleLevel=this.parent._f11)) return false; } if(this._f58) this._f58.style.visibility="hidden"; return true; } } _f39.zIndexCount=1; function MVArrayParameter(x0,x1,x2) { this.array=x0; this.elementType=x1; if(x2==undefined||!x2) { if(x1==MVArrayParameter.STRING_ARRAY) x2='MV_STRINGLIST'; else x2='MV_NUMBERLIST'; } this.sqlType=x2; } function ArrayParameter(x0,x1,x2) { this.array=x0; this.elementType=x1; this.sqlType=x2; } MVArrayParameter.STRING_ARRAY='sarray'; MVArrayParameter.NUMBER_ARRAY='narray'; function MVThemeBasedFOI(x0,x1,x2) { if(!x1) { MVi18n._f42("MVThemeBasedFOI.constructor","MAPVIEWER-05519","theme"); return ; } this.name=x0; this.parent=null; this._f139=x2; this._f140=-1; this._f141=100; this._f142=true; this.minX=0; this.minY=0; this.maxX=0; this.maxY=0; this._f143=new Array(); this._f144=null; this._f145=null; this._f146=null; this._f147=null; this._f148=null; this._f149=null; this._f150=null; this._f138=null; this._f151=2; this._f152=2; this._f153=true; this._f154=true; this._f155=true; this._f156=null; this._f157=null; this._f158=null; this._f159=null; this._f160=null; this._f161=-1; this._f162=-1; this._f163=false; this._f164=false; this._f165=new Array(); this._f37=null; this._f166=true; this.visible=true; this._f167=true; this.cursorStyle="pointer"; this._f168=false; this._f169=null; this._f170=true; this.renderLabels=false; this._f171=false; this._f172=true; this._f173=true; this._f174=null; this._f175=null; this._f176=false; if(x1!=null) { this._f138=x1; if(x1.indexOf("")>=0) this._f176=true; } this._f177=null; this._f178=null; this._f80=0; this._f81=0; this._f179=false; this._f180=true; this._f181=0; this._f182=new Array(); this._f183=null; this._f184=null; this.queryParameterArray=null; this._f185=null; this.bgColor=null; this._f186=false; this._f187=-1; this._f188=-1; this._f189=false; this._f190="N"; this.reuseIENode=false; this.langCode=null; } MVThemeBasedFOI.prototype.setLayoutCustomizer=function(x0) { this._f150=x0; this.reuseIENode=false; } MVThemeBasedFOI.prototype.enableHighlight=function(x1,x2) { if(!x1) this.deHighlight(); this._f179=x1; if(x2!=undefined) this._f180=x2; } MVThemeBasedFOI.prototype.setHighlightMode=function(x3) { switch(x3) { case "single": this._f181=-1; break; case "multiple": this._f181=0; break; default: MVi18n._f42("MVThemeBasedFOI.setHighlightMode","MAPVIEWER-05519","mode", this.parent?this.parent._f20:null); } } MVThemeBasedFOI.prototype.setHighlightStyle=function(x4) { var x5=false; if(x4!=null) { if(typeof(x4)=="object"&&x4.getXMLString!=null) this._f183=encodeURIComponent(x4.getXMLString()); else if(typeof(x4)=="string") this._f183=encodeURIComponent(x4); else x5=true; } else x5=true; if(x5) MVi18n._f42("MVThemeBasedFOI.setHighlightStyle","MAPVIEWER-05519","highliteStyle", this.parent?this.parent._f20:null); this.reuseIENode=false; } MVThemeBasedFOI.prototype.setHighlightMarkerImage=function(x6,x7,x8) { this._f184=null; var x9=true; if(!x6||typeof(x6)!="string") x9=false; if(x9) this._f184=new _f191(x6,x7,x8); else MVi18n._f42("MVThemeBasedFOI.setHighlightMarkerImage","MAPVIEWER-05519",null, this.parent?this.parent._f20:null); this.reuseIENode=false; } MVThemeBasedFOI.prototype.highlight=function(x10) { if(!this._f179) { MVi18n._f42("MVThemeBasedFOI.highlight","MAPVIEWER-05524",null, this.parent?this.parent._f20:null); return; } var x11=false; if(x10==null) { x11=true; } else if(typeof(x10)!="object"||(len=x10.length)==null||x10.length<1) { MVi18n._f42("MVThemeBasedFOI.highlight","MAPVIEWER-05519","foiIdArray", this.parent?this.parent._f20:null); return; } var x12=this._f182; var x13=this._f158.foiarray; var x14=x13.length; for(var x15=0;x15=0;x24--) { var x25=x20[x24]; var x26=x23; if(x25!=null&&x25.id!=null) { if(!x26) { for(var x27=0;x270) x34+=","; x34+="\""+x32.array[x35]+"\""; } } } return "¶m"+x33+"="+encodeURIComponent(x34)+"¶mtype"+x33+"="+x32.elementType+ "&sqltype"+x33+"="+x32.sqlType; } } MVThemeBasedFOI.prototype.getQueryParameters=function() { return this._f156; } MVThemeBasedFOI.prototype.setMinVisibleZoomLevel=function(x36) { this._f140=x36; } MVThemeBasedFOI.prototype.setMaxVisibleZoomLevel=function(x37) { this._f141=x37; } MVThemeBasedFOI.prototype.setBringToTopOnMouseOver=function(x38) { this._f142=x38; } MVThemeBasedFOI.prototype.setMaxWholeImageLevel=function(x39) { this._f161=x39; this._f186=false; } MVThemeBasedFOI.prototype.setMinClickableZoomLevel=function(x40) { this._f162=x40; } MVThemeBasedFOI.prototype.enableInfoTip=function(x41) { this._f153=x41; } MVThemeBasedFOI.prototype.enableInfoWindow=function(x42) { this._f154=x42; } MVThemeBasedFOI.prototype.enableInfoWindowForMouseOver=function(x43) { this._f171=x43; } MVThemeBasedFOI.prototype.setClickable=function(x44) { this._f155=x44; if(this._f178) { this._f178._f194(); if(this._f178._f195) { if(x44&&this.isVisible()) this._f178._f195.style.visibility="visible"; else if(!x44) this._f178._f195.style.visibility="hidden"; } } } MVThemeBasedFOI.prototype.addEventListener=function(x45,x46) { this.setEventListener(x45,x46); } MVThemeBasedFOI.prototype.setEventListener=function(x47,x48) { if(x47==MVEvent.BEFORE_REFRESH) { this._f144=x48; } else if(x47==MVEvent.AFTER_REFRESH) { this._f145=x48; } else if(x47==MVEvent.MOUSE_CLICK) { this._f146=x48; } else if(x47==MVEvent.MOUSE_RIGHT_CLICK) { this._f147=x48; } else if(x47==MVEvent.MOUSE_OVER) { this._f148=x48; } else if(x47==MVEvent.MOUSE_OUT) { this._f149=x48; } } MVThemeBasedFOI.prototype.attachEventListener=function(x49,x50) { MVUtil.attachEventListener(this._f143,x49,x50) } MVThemeBasedFOI.prototype.detachEventListener=function(x51,x52) { MVUtil.detachEventListener(this._f143,x51,x52); } MVThemeBasedFOI.prototype.setQueryWindowMultiplier=function(x53) { this._f151=x53; this._f152=x53; } MVThemeBasedFOI.prototype.getQueryWindow=function() { if(!this.parent) { MVi18n._f42("MVThemeBasedFOI.getQueryWindow","MAPVIEWER-05525",this.name, this.parent?this.parent._f20:null); return ; } var x54=MVSdoGeometry.createRectangle(this.minX,this.minY,this.maxX,this.maxY,this.parent.srid); return x54; } MVThemeBasedFOI.prototype.getLayerMBR=MVThemeBasedFOI.prototype.getQueryWindow; MVThemeBasedFOI.prototype.getMBR=function() { if(this._f177) return MVSdoGeometry.createRectangle(this._f177[0],this._f177[1],this._f177[2],this._f177[3],this.parent.srid); else return null; } MVThemeBasedFOI.prototype.setMarkerImage=function(x55,x56,x57) { if(x55) this._f157=new _f191(x55,x56,x57); else this._f157=null; this.reuseIENode=false; } MVThemeBasedFOI.prototype.getThemeName=function() { return this._f138; } function _f191(x0,x1,x2) { this._f68=x0; var x3=this; if((!x1||isNaN(x1))||(!x2||isNaN(x2))){ var x4=function(x5,x6){ if(!x1||isNaN(x1)) x1=x5; if(!x2||isNaN(x2)) x2=x6; x3.width=x1; x3.height=x2; x3=null; } MVUtil.getImageSize(x0,x4); }else{ this.width=x1; this.height=x2; } } MVThemeBasedFOI.prototype.getFOIMarker=function() { return this._f157; } MVThemeBasedFOI.prototype.setVisible=function(x58) { this.visible=x58; if(this.parent&&this.parent._f196) this.parent._f196._f197(); if(this._f178) this._f178.setVisible(this.parent,x58); } MVThemeBasedFOI.prototype.setInfoWindowStyle=function(x59,x60) { this._f159=x59; this._f175=x60; } MVThemeBasedFOI.prototype.isVisible=function() { if(this._f178) { return this._f178.isVisible(); } else return this.visible; } MVThemeBasedFOI.prototype.refresh=function(x61) { if(!this.parent) { MVi18n._f42("MVThemeBasedFOI.refresh","MAPVIEWER-05525",this.name, this.parent?this.parent._f20:null); return ; } if(!this.parent._f63){ this.parent._f198(this,"refresh",true); return; } this.parent._f199(); if(this._f178) { var x62=this._f178; var x63=this.parent._f200(x62); if(x61) x61=true; else x61=false; x62._f201(this.parent,x63[0],x63[1],x63[2],x63[3],true,x61,!x61); } } MVThemeBasedFOI.prototype.getFOIData=function() { if(this._f158==null||this._f158.foiarray==null) { return null; } else return this._f158.foiarray; } MVThemeBasedFOI.prototype.setNSDP=function(x64) { this._f160=x64; } MVThemeBasedFOI.prototype.setBoundingTheme=function(x65,x66) { this._f163=x65; if(x66) this._f164=true; else this._f164=false; } MVThemeBasedFOI.prototype.zoomToTheme=function() { if(!this.parent) { MVi18n._f42("MVThemeBasedFOI.zoomToTheme","MAPVIEWER-05525",this.name, this.parent?this.parent._f20:null); return ; } this.refresh(true); } MVThemeBasedFOI.prototype.centerToTheme=function() { if(!this.parent) { MVi18n._f42("MVThemeBasedFOI.centerToTheme","MAPVIEWER-05525",this.name, this.parent?this.parent._f20:null); return ; } this.parent._f199(); if(this._f178) { var x67=this._f178; var x68=this.parent._f200(x67); x67._f201(this.parent,x68[0],x68[1],x68[2],x68[3],true,true,false,false,true); } } MVThemeBasedFOI.prototype.addStyle=function(x69) { var x70=this._f165.concat(x69); this._f165=null; this._f165=x70; } MVThemeBasedFOI.prototype.deleteStyle=function(x71) { var x72=-1; for(var x73=0;x730&&x101.indexOf==undefined) { for(var x102=0;x102x115) x108=x115; if(x109==null) x109=x116; else if(x109>x116) x109=x116; if(x110==null) x110=x117; else if(x110"; else { var x1="\n"+ " \n"; for(var x2=0;x2"; else { x1+="type=\""+x3.type+"\" "; if(x3.type=="geometry") { x1+=">"+x3.value.toGML(); } else { x1+="elemtype=\""+x3.elemtype+"\" "; if(!x3.value) x1+=">"; else { if(x3.value.substring!=undefined) { var x4=x3.value; if(x3.elemtype=="String") { var x5=x3.value.split(","); finalvalue=""; for(var x6=0;x60) finalvalue+=","; var x7=x5[x6].indexOf("\""); var x8=x5[x6].lastIndexOf("\""); finalvalue+=x5[x6].substring(x7+1,x8); } x4=finalvalue; } x1+="value=\""+MVUtil._f35(x4,"\"",""")+"\">"; } else { x1+=">"; for(var x6=0;x6"; } } } } x1+=""; } x1+=" \n"; x1+=""; return x1; } } _f759.prototype.setSize=function(x9,x10) { this.width=x9; this.height=x10; } _f759.prototype._f757=function(x11,x12) { { if(this._f36._f151==1&&this._f36._f152==1) { this._f103=this.width; this._f104=this.height; } else { this._f103=x11; this._f104=x12; } } } _f759.prototype._f792=function() { return this._f542; } _f759.prototype._f863=function() { return this.request; } _f759.prototype._f453=function() { return this.minX; } _f759.prototype._f455=function() { return this.minY; } _f759.prototype._f456=function() { return this.maxX; } _f759.prototype._f458=function() { return this.maxY; } _f759.prototype.isVisible=function() { if(this._f11this._f36._f141) return false; else return !(this.div.style.visibility=='hidden'); } _f759.prototype._f482=function() { return this.div; } _f759.prototype.getThemeBasedFOI=function() { return this._f36; } _f759.prototype._f864=function() { return this._f853; } _f759.prototype._f865=function() { return this._f854; } _f759.prototype._f866=function(x13) { this._f853=x13; } _f759.prototype._f867=function(x14) { this._f854=x14; } _f759.prototype._f868=function() { return this._f36._f185?this._f36._f185:this.parent._f686; } _f759.prototype._f86=function() { return _f30._f87=="IF"&&this._f868()=="PNG24"; } _f759.prototype.isWholeImage=function() { return this._f36._f161>=this._f11||this._f856; } _f759.prototype.setVisible=function(x15,x16) { if(x16) { if(!this.isVisible()) { if(this._f852) { if((!this._f86()&&this._f36.getFOIData()!=null&& this._f36.getFOIData()[0].gtype%10!=1)|| this.isWholeImage()||!this._f36._f170) { if(this._f36._f155&&this._f195) this._f195.style.visibility="visible"; } } this.div.style.visibility="visible"; if(!this._f851) { MVUtil._f76(this.div,Math.ceil((this.minX-this.parent._f478)*this.parent._f71), -Math.ceil((this.maxY-this.parent._f481)*this.parent._f72)); this._f201(this.parent,this.minX,this.minY,this.maxX,this.maxY,true); } } } else { if(this._f852) { if((!this._f86()&&this._f36.getFOIData()!=null&& this._f36.getFOIData()[0].gtype%10!=1)|| this.isWholeImage()||!this._f36._f170) { if(this._f195) this._f195.style.visibility="hidden"; if(this.parent._f196._f477.length>0) { for(var x17=0;x170) { for(var x18=0;x180) { var x21=this.div.childNodes[0]; this.div.removeChild(x21); if(this.parent._f196._f477.length>0) if(this.parent._f196._f477[0].nid==x21.id) { this.parent._f196.deleteInfoWindow(this.parent._f196._f477[0]); } MVUtil._f89(x21); } } _f759.prototype.clearAll=function(x22) { this.clearAllStarted=true; var x23=null; if(this.div.parentNode) { x23=this.div.parentNode; x23.removeChild(this.div); } while(this.div.childNodes.length>0) { var x24=this.div.childNodes[0]; this.div.removeChild(x24); while(x24.childNodes.length>0) { var x25=x24.childNodes[0]; x24.removeChild(x25); MVUtil._f89(x25); } MVUtil._f89(x24); } this.wholeImage=null; if(this._f761!=1&&!x22) { this.clearTransImageLayer(); } if(x23) x23.appendChild(this.div); this.clearAllStarted=false; } _f759.prototype.clearTransImageLayer=function() { if(this._f195&&this._f195.parentNode) { this._f195.parentNode.removeChild(this._f195); MVUtil._f89(this._f195); } this._f195=null; this._f855=null; } _f759.prototype.getImageParameters=function() { var x26=""; var x27=this._f868(); if(x27=="PNG8") x26+="&format="+x27; if(this._f36.bgColor) x26+="&bgcolor="+this._f36.bgColor; return x26; } _f759.prototype._f201=function(x28,x29,x30,x31,x32,x33, x34,x35,x36,x37) { this._f859=false; this._f856=false; var x38=this; var x39=function() { if(!x38.themeId&&x38.abortionSupported) { setTimeout(x39,50); return ; } if(!x37) x37=false; if(!x36&&!x28._f63) { var x40=[x28,x29,x30,x31,x32,x33,x34,x35,x37]; var x41=x38._f201; var x42={obj:x38,func:"refreshFOIs",params:x40}; x28._f675.push(x42); return ; } x38._f542=true; { x38._f36.minX=x38.minX=x29; x38._f36.minY=x38.minY=x30; x38._f36.maxX=x38.maxX=x31; x38._f36.maxY=x38.maxY=x32; } x38._f764=Math.ceil((x38.minX-x38.parent._f478)*x38.parent._f71); x38._f765=-Math.ceil((x38.maxY-x38.parent._f481)*x38.parent._f72); MVUtil._f76(x38.div,x38._f764,x38._f765); x38.div.style.display='none'; x38._f55=x38.parent._f15; x38._f56=x38.parent._f16; if(x38._f36._f144) { x38._f36._f144(); } if(x38._f36) MVUtil.runListeners(x38._f36._f143,MVEvent.BEFORE_REFRESH); x38._f762=x33; x38._f11=x38.parent._f11; x38._f871(); x38.around=x38.parent.wrapAroundLayer(x38._f565()); if(!x38._f36.visible|| !x34&&(x38._f11x38._f36._f141)) { x38._f851=false; x38._f763=false; x38.clearAll(); return; } x38._f851=true; if(x38._f763) { x38._f872(); return ; } x38.adjustBBox(x34); if(x38.adjustedRealWidth<=0||x38.adjustedRealHeight<=0) return; var x43="request=getfoi&version=1.0"+x38.getImageParameters()+ "&theme="+encodeURIComponent(x38._f36._f138)+"&bbox="+ x38._f847+":"+x38._f848+":"+ x38._f849+":"+x38._f850+ "&width="+x38.adjustedRealWidth+"&height="+x38.adjustedRealHeight; if(x38.adjustedMinX2) x43+="&bbox2="+x38.adjustedMinX2+":"+x38._f848+":"+ x38.adjustedMaxX2+":"+x38._f850; if(x38._f36._f183!=null) x43+="&hilitestyle="+x38._f36._f183; if(x38._f36._f168==true){ if(!x38._f36._f169) { MVi18n._f42("MVThemeBasedFOIControl.refreshFOIs","MAPVIEWER-05514",null,x38.parent._f20); return; } x38._f36.setQueryParameters(x38._f36._f169); x43+="&hilite=yes"; } if(x38._f36.getQueryParameters()) { x43+=x38._f36.getQueryParameters(); } if((x38._f36.getFOIMarker()&&x38._f36._f161=x38._f11|| !x38._f36._f170) { x43+="&area=yes"; } else { x43+="&area=no"; } x43+="&dstsrid="+x38.parent.srid; if(x38._f36._f160!=null) { x43+="&nsdp="+encodeURIComponent(x38._f36._f160.getFlatString()); } if(x38._f36._f161>=x38._f11) { x43+="&wholeimage=yes"; if(x38._f36._f157) { var x44=x38._f36.name+"_customedmarker"; if(x38._f36.getStyleByName(x44)==null) { var x45=new MVStyleMarker(x44,"image"); x45.setImageUrl(x38._f36._f157._f68); x45.setSize(x38._f36._f157.width,x38._f36._f157.height); x38._f36.addStyle(x45); } x38._f36.setRenderingStyle(x44); } } if(x38._f36.renderLabels) x43+="&renderlabels=yes"; x38.startLoad=MVUtil._f134(this,function() { x38._f872(); }); if(x34){ var x46=x38.parent._f802() if(x46) x43+="&mapcache="+encodeURI(x46.basemap._f0); else x43+="&mapcache="+encodeURI(x38.parent.msi.mapConfig.mapTileLayer); x43+="&boundingtheme=yes"+ "&mapwinwidth="+x38.parent._f13()+ "&mapwinheight="+x38.parent._f14()+ "&wholeimagelevel="+x38._f36._f161; if(x37) x43+="&recenteronly=yes"; } if(x38._f36._f37!=null) { x43+="&trs="+encodeURIComponent(x38._f36._f37); } var x47=x38._f36._f165; if(x47.length>0) { x43+="&tempstyles="; var x48=""; for(var x49=0;x490) x43+="&mw="+x38._f36._f187; if(x38._f36._f188>0) x43+="&mu="+x38._f36._f188; if(x38._f36._f189) { x43+="&sq=y"; x43+="&st="+x38._f36._f190; } if(x38._f36.langCode) { x43+="&lang="+x38._f36.langCode; } var x50=(x38._f36._f139.indexOf(_f30._f269())<0&& MVUtil.isLocalDomain(x38._f36._f139)); var x51=x50||MVMapView._f229; if(MVMapView._f799) x38.t1=new Date(); if(MVMapView.debug) MVi18n.alert("Sending Theme Based FOI request. URL:"+x38._f36._f139+" Parameters:"+x43); try { x38.parent.setLoadingIconVisible(true); if(x38.request) { x38.request.onreadystatechange=null; x38.request.abort(); x38.request=null; } } catch(e) { } try { x38.request=MVUtil.getXMLHttpRequest(x51); x38.request.onreadystatechange=x38.startLoad; x38.request.open("POST",x38._f36._f139,true); x38.request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); x38.request.send(x43); } catch(e) { MVi18n._f42("MVThemeBasedFOIControl.refreshFOIs","MAPVIEWER-05511",e,x38.parent._f20); x38._f542=false; x38.parent._f569(); return ; } } x39(); } _f759.prototype.clearAllParallelly=function(){ this.clearAll(); } _f759.prototype.getElementByIdInDiv=function(id){ var x52=[]; var x53=document.getElementById(id); if(!x53)return x53; while(x53&&((x53.parentNode!=this.div)||(x53.id!=id))){ x52.push({i:x53.id,e:x53}); x53.id=''; x53=document.getElementById(id); } for(j=0,jj=x52.length;j50) { var maxFOINum=0; if(result.foiarray[0].gtype%10==1) maxFOINum=750; else maxFOINum=200; if(result.foiarray.length>maxFOINum) { var answer=confirm("You are showing too many FOIs for theme "+this._f36.name+" at the current level.\n"+ "It might take a long time to render these FOIs. You might want to consider rendering\n"+ "these FOIs as a whole image by invoking methods MVThemeBasedFOI.enableAutoWholeImage\n"+ "or MVThemeBasedFOI.setMaxWholeImageLevel.\n\n"+ "Do you want to continue to render the FOIs and ignore this message from now on?\n\n"+ " Note: You can permanently disable warnings like this by invoking method\n"+ " MVMapView.enableCodingHints(false)."); if(!answer) { this._f542=false; this.parent._f569(); return ; } else this._f858=false; } } if(this._f36) this._f36._f177=result.themeMBR; else return ; if(result.labelStyle) this.labelStyle=result.labelStyle; if(result.isWholeImg) this._f856=true; else this._f856=false; if(result.minx!=undefined&&!this._f763) { this._f763=true; var tcx=(result.minx+result.maxx)/2; var tcy=(result.miny+result.maxy)/2; var _f11=this._f11; if(result.adjlevel!=undefined) _f11=result.adjlevel; if(_f11<0|| _f11>=0&&this._f11=this._f36._f162) { this._f763=false; this.parent.zoomToRectangle( MVSdoGeometry.createRectangle(result.minx,result.miny,result.maxx,result.maxy,this.parent.srid)); return ; } else { this._f36.minX=this.minX=this._f847=result.minx; this._f36.minY=this.minY=this._f848=result.miny; this._f36.maxX=this.maxX=this._f849=result.maxx; this._f36.maxY=this.maxY=this._f850=result.maxy; this.parent.reCenterTag=true; this.parent.setCenterAndZoomLevel(MVSdoGeometry.createPoint(tcx,tcy,this.parent.srid),_f11); return ; } } this._f417=true; this._f763=false; if(!this.div) return ; this._f194(); if(MVMapView._f799) this.t1=new Date(); if(result.foiarray.length>=1) { this._f36._f158=result; this.parent._f199(); if(this.isWholeImage()||!this._f36._f170|| (!this._f86()&&result.foiarray[0].gtype%10!=1)) { this._f761=2; if(this._f36._f162<=this._f11) { this._f873(result); } else{ this.clearTransImageLayer(); } } else { this.clearTransImageLayer(); this._f761=1; } if(this.wholeImage!=null) { if(this.wholeImage instanceof Array) { for(var i=0;i0) { var divParent=this.div.parentNode; divParent.removeChild(this.div); if(removeAllNodesFirst&&!this.isWholeImage()) MVUtil._f100(this.div,this.parent._f20); for(var i=0;i1) { var newFOI={id:"-OL"+result.foiarray[i].id}; newFOI.wr=result.foiarray[i].wr newFOI.nodeId=newFOI.id; newFOI.gtype=result.foiarray[i].gtype; newFOI.x=result.foiarray[i].x; newFOI.y=result.foiarray[i].y; if(this._f36.overLappingStyle) { if(!this.overLappingMarker) { var styleStr=null; if(this._f36.overLappingStyle.getXMLString) styleStr=this._f36.overLappingStyle.getXMLString(); else styleStr=this._f36.overLappingStyle; if(styleStr) { var markerURL=this._f36._f139+"?request=getpoiimage&version=1.0"+ "&poistyle="+encodeURIComponent(styleStr)+"&refresh ="+(new Date()).getTime();; var tbf=this; var setFOISize=function(x54,x55) { tbf.overLappingMarker=new _f191(markerURL,x54,x55); newFOI.width=tbf.overLappingMarker.height; newFOI.height=tbf.overLappingMarker.width; newFOI.imgurl=tbf.overLappingMarker._f68; tbf._f204(newFOI); } MVUtil.getImageSize(markerURL,setFOISize); } } else { newFOI.width=this.overLappingMarker.height; newFOI.height=this.overLappingMarker.width; newFOI.imgurl=this.overLappingMarker._f68; this._f204(newFOI); } } newFOI.overLayFOIs=overLayFOIs; continue; } } if(flag){ ofoi.shown=true; this._f204(cfoi,ofoi); } else { this._f204(cfoi); } } divParent.appendChild(this.div); for(var key in oldFois) { foi=oldFois[key]; if(foi.shown==false) { this.clearFOINode(foi); } } } else { for(key in oldFois) { foi=oldFois[key]; this.clearFOINode(foi); } } this.makeFOIsVisiable(); this._f852=true; } else { this._f36._f158=null; this.clearAll(); } if(MVMapView._f799) { this.t2=new Date(); MVi18n.alert("Time taken to render "+this._f36.name+":"+(this.t2-this.t1)+".\n"+ "wholeImage:"+this.isWholeImage()+", clickable:"+(this._f36._f162<=this._f11)); } this.addTransparentLayer(); this._f542=false; this.parent._f569(); if(this._f36._f145) { this._f36._f145(); } if(this._f36) MVUtil.runListeners(this._f36._f143,MVEvent.AFTER_REFRESH); this.request=null; this._f36.reuseIENode=true; } } } _f759.prototype.makeFOIsVisiable=function(){ var x56=true; for(var x57=0;x57this._f11) return ; if(_f30._f87=="IF"&& (!this._f86()||this.isWholeImage()|| !this._f36._f170)) { var x68=document.createElement("div"); x68.style.zIndex="127"; var x69=document.createElement("img"); x69.width=MVUtil._f85(x60) x69.height=MVUtil._f85(x61); x69.style.width=MVUtil._f85(x60); x69.style.height=MVUtil._f85(x61); x69.style.border=0; x69.src=_f30._f127+"transparent.gif"; x69.setAttribute("usemap","#polygonMap"+this.parent._f98+"_"+this._f760,0); x68.style.position="absolute"; MVUtil._f76(x68,0,0); x68.appendChild(x69); MVUtil._f88(x69); this._f195.appendChild(x68); } else { this._f880=document.createElement("img"); this._f880.src=x67; this._f880.setAttribute("usemap","#polygonMap"+this.parent._f98+"_"+this._f760); this._f880.width=x60; this._f880.height=x61; this._f880.style.width=MVUtil._f85(x60); this._f880.style.height=MVUtil._f85(x61); this._f880.style.border=0; MVUtil._f88(this._f880); this._f195.appendChild(this._f880); } this._f855=document.createElement("map"); this._f855.setAttribute("name","polygonMap"+this.parent._f98+"_"+this._f760); this._f855.setAttribute("id","polygonMap"+this.parent._f98+"_"+this._f760); this._f195.setAttribute("theme",this._f36.name); if(_f30._f87=="SF") { this._f760++; } this._f195.appendChild(this._f855); } _f759.prototype.addTransparentLayer=function() { if(this._f195) { this.parent._f653.style.zIndex=Math.max(MVUtil.getZIndex(this.div)+1,MVUtil.getZIndex(this.parent._f653)); this.parent._f653.appendChild(this._f195); } } var _f881=0; _f759.prototype.setTimeout=function(_f327,_f328) { var Ie="tempVar"+_f881; _f881++; eval(Ie+" = this;"); var oi=_f327.replace(/\\/g,"\\\\"); oi=oi.replace(/\"/g,'\\"'); return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f328); } _f759.prototype._setTimeoutDispatcher=function(func) { eval(func); } _f759.prototype._f882=function(x70) { this._f745=0; this.result=x70; this.startDisplayGroupFoi(); } _f759.prototype.startDisplayGroupFoi=function() { for(var x71=0;x71<180;x71++) { if(this._f7450) x81=MVUtil._f331(this.parent,this.minX,this.minY,this.maxX,this.maxY, this._f103,this._f104,x72.x+x72.wr[0]*(this.parent.msi._f337-this.parent.msi._f338), x72.y); else x81=MVUtil._f331(this.parent,this.minX,this.minY,this.maxX,this.maxY, this._f103,this._f104,x72.x,x72.y); x81[0]-=x79; x81[1]+=x80; x81[0]+=this._f36._f80; x81[1]+=this._f36._f81; if(_f30._f87=="IF") { x81[1]++;} else { } if(x72.height%2==0) x81[1]--; x72.loc=x81; if(x72.gtype%10==1) MVUtil._f76(x75,Math.ceil(x81[0]-x72.width/2.0),Math.ceil(x81[1]-x72.height/2.0)); else MVUtil._f76(x75,x81[0],x81[1]); x75.style.zIndex=160; } else { if(!this.isWholeImage()&&this._f36._f170&& (!x72.imgurl&&x72.scid)&&this.shouldNotUseHTMLMap(x72)) return ; } if(x75){ x75.tbf=x74; x75.foi=x72; } var x82=""; if(x72.name&&x72.name!="null") x82=x72.name; if((_f30._f87=="IF"||_f30._f87=="NS") &&x74._f36._f153&&x72.name&&x72.name!="null"&&x75) { x75.title=x82; } var x83=""; if(x72.name) x83=MVUtil._f35(x72.name," "," "); if(x75&&this.shouldNotUseHTMLMap(x72)) { this.div.appendChild(x75); if(!x74._f36._f150) { if(this._f86()&&x72.pngType4Hilite) { if(x77) x75.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x72.imgurl+"', sizingMethod='image');"; else x75.innerHTML=""; } else x75.src=x72.imgurl; if(!x74._f36._f150) { x75.setAttribute("id",x72.nodeId); x75.setAttribute("border",0); } if(x72.lox!=null&&x72.loy!=null) { var x84; if((x73)&&(x73.labelNode)) x84=x73.labelNode; else x84=document.createElement("div"); x84.innerHTML=x83; x84.style.cssText=this.labelStyle; x84.style.position="absolute"; x84.style.cursor="default"; x84.style.zIndex=x75.style.zIndex; x72.labelNode=x84; MVUtil._f76(x84,parseInt(x75.style.left)+x72.lox,parseInt(x75.style.top)+x72.loy); this.div.appendChild(x84); } else if((x73)&&(x73.labelNode)) { x73.labelNode.parentNode.removeChild(x73.labelNode); x73.labelNode=null; } } else { x74._f36._f150(x72); if(x72.xoffset==undefined||isNaN(x72.xoffset)) x72.xoffset=0; else x72.xoffset=parseInt(x72.xoffset); if(x72.yoffset==undefined||isNaN(x72.yoffset)) x72.yoffset=0; else x72.yoffset=parseInt(x72.yoffset); this._f885(x72,x73,x75); } this._f315(x75,x72); MVUtil._f349(x75); } else { var x85=x82; var x86=Math.floor((x72.x-this.minX)*this.parent._f71+0.5); var x87=Math.floor((this.maxY-x72.y)*this.parent._f72+0.5); var x88=""; if(this._f36._f162<=this._f11) { var x89=null; if((x73)&&(x73.areaNode)) { x72._f192=x73._f192; } x89=document.createElement("area"); x89.tbf=x74; x89.foi=x72; x89.node=x75; MVUtil._f107(x89,this._f36.cursorStyle); x72.areaNode=x89; this._f202=true; x89.setAttribute("border",0); if(_f30._f87!="OS") { if((_f30._f87=="IF"||_f30._f87=="NS") &&x74._f36._f153&&x72.name&&x72.name!="null") { x89.setAttribute("title",x85); } x89.setAttribute("href","javascript:void(0)"); } if(x72.gtype%10==1) { var x81; if(x72.wr&&x72.wr.length>0) x81=MVUtil._f331(this.parent,this.minX,this._f848,this.maxX,this._f850, this._f103,this.adjustedRealHeight,x72.x+x72.wr[0]*(this.parent.msi._f337-this.parent.msi._f338), x72.y); else x81=MVUtil._f331(this.parent,this._f847,this._f848, this._f849,this._f850, this.adjustedRealWidth,this.adjustedRealHeight, x72.x,x72.y); var x90=0; x81[0]+=this.parent._f73+this._f36._f80-x90; x81[1]+=this.parent._f74+this._f36._f81; x89.setAttribute("shape","rect"); var x91=parseInt(x72.width); var x92=parseInt(x72.height); x91=x91<10?10:x91; x92=x92<10?10:x92; x91=x91/2; x92=x92/2; var x93=(x81[0]-x91)+","+(x81[1]-x92)+","+ (x81[0]+x91)+","+(x81[1]+x92); x89.setAttribute("coords",x93); } else { var x94=""; if(typeof(x72.area)=='undefined'||x72.area==null||x72.area=='') x94="-1000,-1000"; else { x94=x72.area; if(x74._f36._f150&&!this.isWholeImage()) { x74._f36._f150(x72); } if(x72.xoffset==undefined||isNaN(x72.xoffset)) x72.xoffset=0; else x72.xoffset=parseInt(x72.xoffset); if(x72.yoffset==undefined||isNaN(x72.yoffset)) x72.yoffset=0; else x72.yoffset=parseInt(x72.yoffset); var x95=this.htmlMapXoffset+x72.xoffset+this._f36._f80; if(x72.wr&&x72.wr.length>0&&this.maparea.length!=2) x95+=x72.wr[0]*(this.parent.msi._f337-this.parent.msi._f338)*this.parent._f71; var x96=x72.yoffset+this._f36._f81; x94=this._f886(x94,x95,x96); } x89.setAttribute("shape","poly"); x89.setAttribute("coords",x94); } this._f315(x89,x72); MVUtil._f349(x89); this._f855.appendChild(x89); } else { if(x72.areaNode) x72.areaNode=null; } if(x75) { MVUtil._f76(x75,x81[0],x81[1]); x75.style.position="absolute"; x75.style.width=MVUtil._f85(x72.width); x75.style.height=MVUtil._f85(x72.height); x75.id=x72.nodeId; if(x74._f36._f150) this._f885(x72,x73,x75); else x75.src=x72.imgurl; x75.style.zIndex=125; this.div.appendChild(x75); } } this._f887(x75,x72); if(x75!=null&&x75.id!=null) { for(var x97=0;x970) { var x101=this._f36._f158.foiarray.pop(); if(x101.node) x101.node=null; if(x101.areaNode) x101.areaNode=null; } } this._f36._f158=null; this._f36=null; if(this.parent) { if(this.parent.div&&this.div) { try{this.parent.div.removeChild(this.div);}catch(error){} } this.div=null; this.parent._f569(); this.parent=null; } this._f855=null; this._f195=null; this._f880=null; } _f759.prototype.adjustBBox=function(x102) { var x103=false; var x104=this.parent.msi.mapConfig.coordSys; this.adjustedMinX2=0; this.adjustedMaxX2=0; if(this.parent.wraparound&&!x102) { if(this.maparea.length>=3) { this._f847=x104.minX; this._f849=x104.maxX; } else if(this.maparea.length==2) { var x105=x104.maxX-x104.minX; if(this.parent.maptype!="PROJECTED") { this._f847=this.maparea[0].minx; if(this.maparea[0].minxx104.maxX) { this._f849=x104.maxX; x103=true; } else this._f849=this.maxX; } if(!x102&&this.minYx104.maxY) { this._f850=x104.maxY; x103=true; } else this._f850=this.maxY; if(this.adjustedMinX2) this.adjustedRealWidth=Math.round(this._f103* (this._f849-this._f847+this.adjustedMaxX2-this.adjustedMinX2)/(this.maxX-this.minX)); else this.adjustedRealWidth=Math.round(this._f103* (this._f849-this._f847)/(this.maxX-this.minX)); this.adjustedRealHeight=Math.round(this._f104* (this._f850-this._f848)/(this.maxY-this.minY)); } _f759.prototype._f860=function(x106) { if(!x106) return x106; if(x106.indexOf("")>=0) x106=x106.substring(x106.indexOf("")+8,x106.indexOf("")); if(this._f36._f37) { var x107=x106.indexOf(" render_style"); if(x107>0) { var x108="\""; var x109=x106.indexOf(x108,x107); var x110=x106.indexOf("'",x107); if(x109<0||x110=3) { this.wholeImage=new Array(); for(var x122=0;x122=0) { x130.abortionSupported=false; } if(x125) x125(); x129=null; } } try { x129=MVUtil.getXMLHttpRequest(x128); x129.onreadystatechange=x131; x129.open("POST",this._f36._f139,true); x129.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); x129.send(x126); } catch(e) { MVi18n._f42("MVThemeBasedFOIControl.getThemeId","MAPVIEWER-05511",e,this.parent._f20); } } _f759.prototype.abort=function() { if(!this.abortionSupported) return ; var x132="request=abort&tid="+this.themeId; var x133=(this._f36._f139.indexOf(_f30._f269())<0&& MVUtil.isLocalDomain(this._f36._f139)); var x134=x133||MVMapView._f229; var x135=null; var x136=this; this._f859=true; try { x135=MVUtil.getXMLHttpRequest(x134); x135.open("POST",this._f36._f139,true); x135.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); x135.send(x132); x135=null; } catch(e) { MVi18n._f42("MVThemeBasedFOIControl.abort","MAPVIEWER-05511",e,this.parent._f20); } } _f759.prototype._f194=function() { if(this._f36._f162<=this._f11&&this._f36._f155) MVUtil._f107(this.div,this._f36.cursorStyle); else MVUtil._f107(this.div,"default"); } _f759.prototype._f885=function(x137,x138,x139) { if(x138!=null&&x138.layoutListenerDiv!=null){ if(x138.layoutListenerDiv.parentNode!=null) { x138.layoutListenerDiv.parentNode.removeChild(x138.layoutListenerDiv); } MVUtil._f89(x138.layoutListenerDiv); x138.layoutListenerDiv=null; } var x140=document.createElement("div"); x140.style.position="absolute"; x140.tag="layout"; var x141=this; var x142=x137.xoffset+x141._f36._f80; var x143=x137.yoffset+x141._f36._f81; x140.style.left=MVUtil._f85(x142); x140.style.top=MVUtil._f85(x143); x140.style.padding=MVUtil._f85(0); x140.innerHTML=""+x137.html+""; x139.appendChild(x140); x137.layoutListenerDiv=x140; } _f759.prototype.stopPropagation=function(x144) { x144=(x144)?x144:((window.event)?event:null); var x145=MVUtil.getEventSource(x144); var x146=x145.tbf; while(!x146&&x145.parentNode){x145=x145.parentNode; x146=x145.tbf; } if(x144&&!x146._f36._f167) { if(_f30._f87=="IF") x144.cancelBubble=true; else if(x144.stopPropagation) x144.stopPropagation(); } } _f759.prototype._f314=function(x147) { x147=(x147)?x147:((window.event)?event:null); var x148=MVUtil.getEventSource(x147); var x149=x148.tbf; while(!x149&&x148.parentNode){x148=x148.parentNode; x149=x148.tbf; } if(!x149||!x149._f36||x147&&!x149._f36._f167) { MVUtil._f314(x147); } } _f759.prototype._f888=function(x150) { x150=(x150)?x150:((window.event)?event:null); var x151=MVUtil.getEventSource(x150); var x152=x151.tbf; while(!x152&&x151.parentNode){x151=x151.parentNode; x152=x151.tbf; } if(!x152) return; var x153=x151.foi; x152.mouseL1=MVUtil._f313(x150); x152._f314(x150); } _f759.prototype.tFoiMouseUp=function(x154) { x154=(x154)?x154:((window.event)?event:null); var x155=MVUtil.getEventSource(x154); var x156=x155.tbf; while(!x156&&x155.parentNode){x155=x155.parentNode; x156=x155.tbf; } if(!x156) return; var x157=x155.foi; if(!x156._f36._f155||x156.parent._f534) return ; x156.mouseL2=MVUtil._f313(x154); if(x154.button==2) { if(!x156.shouldNotUseHTMLMap(x157)&&_f30._f87=='IF') x156.tFoiRightClick(x154); return; } if(x156.mouseL1.x==x156.mouseL2.x&&x156.mouseL1.y==x156.mouseL2.y) { x156.parent._f310(); if(x156.parent.getBrowserType()=="NS") { x156.parent._f532=null; } var x158=MVUtil.getMouseLocation(x156.parent,x154); if(x157.overlay&&x155.point) x158=x155.point; if(x156._f36._f146||x156._f36._f143[MVEvent.MOUSE_CLICK]) { var x159=MVSdoGeometry.createPoint(x158.sdo_point.x,x158.sdo_point.y,x156.parent.srid); if(x156._f36._f146) x156._f36._f146(x159,x157,MVUtil.getEvent(x154)); if(x156._f36) MVUtil.runListeners(x156._f36._f143,MVEvent.MOUSE_CLICK,[x159,x157,MVUtil.getEvent(x154)]); } else { if(x157.attrs!=null) { if(x157.attrs.length>=1&&x156._f36._f154) { var x160=x157.name==null?"":MVUtil._f35(x157.name," "," "); x156.parent._f196._f490(x157.attrs,x157.attrnames,x157.id, x160,x158.sdo_point.x,x158.sdo_point.y,null,null, x156._f36,300); } } } if(!x156._f36) { x156._f314(x154); return ; } var x161=x155; if(!x156.shouldNotUseHTMLMap(x157)) { x161=x155.node; } if(x156._f36._f180) { x156.mouseUpHighLight(x156,x157,x161); } } } _f759.prototype.tFoiRightClick=function(x162) { x162=(x162)?x162:((window.event)?event:null); var x163=MVUtil.getEventSource(x162); var x164=x163.tbf; while(!x164&&x163.parentNode){x163=x163.parentNode; x164=x163.tbf; } if(!x164) return; var x165=x163.foi; if(!x164._f36._f155) return ; var x166=MVUtil.getMouseLocation(x164.parent,x162); if(x165.overlay&&x163.point) x166=x163.point; var x167=MVSdoGeometry.createPoint(x166.sdo_point.x,x166.sdo_point.y,x164.parent.srid); if(x164._f36._f147) { x164._f36._f147(x167,x165,MVUtil.getEvent(x162)); } if(x164._f36) MVUtil.runListeners(x164._f36._f143,MVEvent.MOUSE_RIGHT_CLICK,[x167,x165,MVUtil.getEvent(x162)]); x164._f314(x162); }; _f759.prototype.tFoiMouseOver=function(x168) { x168=(x168)?x168:((window.event)?event:null); var x169=MVUtil.getEventSource(x168); var x170=x169.tbf; var x171=0; while(!x170&&x169.parentNode){x169=x169.parentNode; x170=x169.tbf; x171++; } if(!x170) return; var x172=x169.foi; var x173=x169; if(!x170.shouldNotUseHTMLMap(x172)){ x173=x169.node; if(!x170._f36._f155) return ; } var x174=MVUtil.getMouseLocation(x170.parent,x168); if(x172.overlay&&x169.point) x174=x169.point; var x175=MVSdoGeometry.createPoint(x174.sdo_point.x,x174.sdo_point.y,x170.parent.srid); if(x172.overLayFOIs) { var x176=MVUtil.getRealOrdinates(x170.parent,x174.sdo_point.x,x172.x) x175=MVSdoGeometry.createPoint(x176,x172.y,x170.parent.srid); x170._f583(x175,x172.overLayFOIs); } else { if(x170._f36._f148) { x170._f36._f148(x175,x172,MVUtil.getEvent(x168)); } if(x170._f36) MVUtil.runListeners(x170._f36._f143,MVEvent.MOUSE_OVER,[x175,x172,MVUtil.getEvent(x168)]); } if(x170._f36._f171&& !(x170.parent._f196._f483()&&!x170.parent._f196.mouseOver)) { if(x172.attrs!=null) { if(x172.attrs.length>=1&&x170._f36._f154) { var x177=x172.name==null?"":MVUtil._f35(x172.name," "," "); x170.parent._f196._f490(x172.attrs,x172.attrnames,x172.id, x177,x174.sdo_point.x,x174.sdo_point.y,null,null, x170._f36,300,true); } } } if(x170.shouldNotUseHTMLMap(x172)&&x170._f36._f142) { x169.style.zIndex=161; } if(!x169.title&&x172.name&&x172.name!="null"&&x170._f36._f153&&!x172.overlay) { var x177=x172.name==null?"":MVUtil._f35(x172.name," "," "); x170.parent._f196.showTextTip(x177,x174.sdo_point.x,x174.sdo_point.y); } if(x170._f36.enableMouseOverHighlightMode&&x170._f36._f179) { if(x173&&x172.imgurl4Hilite) x170.highlightFOI(x170,x172,x173); else if(x172.scid) { var x172=x170.getMainFOI(x172); if(x172) x170.highlightFOI(x170,x172,x172.node); } } }; _f759.prototype.tFoiMouseOut=function(x178) { x178=(x178)?x178:((window.event)?event:null); var x179=MVUtil.getEventSource(x178); var x180=x179.tbf; while(!x180&&x179.parentNode){x179=x179.parentNode; x180=x179.tbf; } if(!x180) return; var x181=x179.foi; var x182=x179; if(!x180.shouldNotUseHTMLMap(x181)){ x182=x179.node; if(!x180._f36._f155) return ; } var x183=MVUtil.getMouseLocation(x180.parent,x178); if(x181.overlay&&x179.point) x183=x179.point; var x184=MVSdoGeometry.createPoint(x183.sdo_point.x,x183.sdo_point.y,x180.parent.srid); if(x181.overLayFOIs) { x180._f584(x184,x181.overLayFOIs); } else { if(x180._f36._f149) { x180._f36._f149(x184,x181,MVUtil.getEvent(x178)); } if(x180._f36) MVUtil.runListeners(x180._f36._f143,MVEvent.MOUSE_OUT,[x184,x181,MVUtil.getEvent(x178)]); } if(x180._f36._f171&& !(x180.parent._f196._f483()&&!x180.parent._f196.mouseOver)) { if(x181.attrs!=null) { if(x181.attrs.length>=1&&x180._f36._f154) { x180.parent.removeInfoWindow(); } } } if(x180.shouldNotUseHTMLMap(x181)) { x179.style.zIndex=160; } x180.parent._f196._f418(); if(x180._f36.enableMouseOverHighlightMode&&x180._f36._f179) { if(x182&&x181.imgurl4Hilite!=null&&!(x181._f192)) x180.deHighlightFOI(x180,x181,x182); else if(x181.scid) { var x181=x180.getMainFOI(x181); if(x181&&!(x181._f192)) x180.deHighlightFOI(x180,x181,x181.node); } } }; _f759.prototype.shouldNotUseHTMLMap=function(x185) { return ((this._f86()||x185.gtype%10==1)&&this._f36._f170&&!this.isWholeImage()) } _f759.prototype.mouseUpHighLight=function(x186,x187,x188) { if(x186._f36._f179&&!x186._f36._f150) { if(x187.imgurl4Hilite!=null) { var x189=x186._f36._f182.length; var x190=x186._f36._f181; var x191=false; var x192=null; if(x189>0) {var x193=x186._f36._f182; var x194=null; var x195=null; for(var x196=0;x1960) { for(var x196=1;x196<=x190;++x196) { x194=x193[x189-x196]; x194._f192=false;if(x194!=null&&x194.node!=null&&x194.imgurl!=null) { x186.deHighlightFOI(x186,x194); } } x186._f36._f182=x193.slice(0,(0-x190)); x189-=x190; } } if(!x191) { x187._f192=true;x186._f36._f182[x189++]=x187; x186.highlightFOI(x186,x187); } else if(x190==0) { if(x192!=null){ x186._f36._f182[x192]._f192=false; x186._f36._f182.splice(x192,1); } x186.deHighlightFOI(x186,x187); } } else if(x187.scid) { var x187=x186.getMainFOI(x187); if(x187) x186.mouseUpHighLight(x186,x187,x187.node); } } } _f759.prototype.deHighlightFOI=function(x199,x200) { if(!x200.highlight) return; var x201=x200.node; x200.highlight=false; var x202=function(x203) { if(x199.shouldNotUseHTMLMap(x200)) { if(x200!=null&&x200.imgurl!=null) { if(x199._f86()&&x200.pngType4Hilite) { if(x200.normalPngType4Hilite) { x203.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x200.imgurl+"', sizingMethod='image');"; x203.src=x200.imgurl; x203.innerHTML=""; } else { x203.onmouseover=null; x203.onmouseout=null; x203.style.filter=null; x203.src=null; x203.innerHTML=""; var x204=function(){ x203.onmouseover=x199.tFoiMouseOver; x203.onmouseout=x199.tFoiMouseOut; } window.setTimeout(x204,50); } } else x203.src=x200.imgurl; if(x200.recalSizePos4Hilite&&(x200.gtype%10==1)) { var x205=Math.ceil(MVUtil._f311(x203)+(x200.highlightImageWidth-x200.width)/2.0); var x206=Math.ceil(MVUtil._f312(x203)+(x200.highlightImageHeight-x200.height)/2.0); MVUtil._f76(x203,x205,x206); x203.style.width=MVUtil._f85(x200.width); x203.style.height=MVUtil._f85(x200.height); } } } else { if(x200!=null&&x200.imgurl!=null) { if(x199._f86()&&_f347.pngType4Hilite) { x203.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x200.imgurl+"', sizingMethod='image');"; } x203.src=x200.imgurl; } } } if(x201 instanceof Array) { for(var x207=0;x207"; var x213=function(){ x212.onmouseout=x208.tFoiMouseOut; x212.onmouseover=x208.tFoiMouseOver; } window.setTimeout(x213,10); } } else { x212.src=x209.imgurl4Hilite; } if(x209.recalSizePos4Hilite&&(x209.gtype%10==1)) { var x214=Math.ceil(MVUtil._f311(x212)-(x209.highlightImageWidth-x209.width)/2.0); var x215=Math.ceil(MVUtil._f312(x212)-(x209.highlightImageHeight-x209.height)/2.0); MVUtil._f76(x212,x214,x215); x212.style.width=MVUtil._f85(x209.highlightImageWidth); x212.style.height=MVUtil._f85(x209.highlightImageHeight); } } else if(x212!=null&&(x209.imgurl4Hilite)) { if(x208._f86()&&x209.pngType4Hilite) { x212.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x209.imgurl4Hilite+"', sizingMethod='image');"; } x212.src=x209.imgurl4Hilite; } } if(x210 instanceof Array) { for(var x216=0;x216=x220) { x222=Math.ceil((x217-x220)/x221); x217-=x221*x222; if(x217==x220) { x222++; x217=x219; } x218-=x221*x222; } if(x218<=x220&&x217!=x218){ this.maparea.push({minx:x217,maxx:x218,n:x222}); } else{ this.maparea.push({minx:x217,maxx:x220,n:x222}); x218-=x221; x222++; while(x218>x220) { this.maparea.push({minx:x219,maxx:x220,n:x222}); x218-=x221; x222++; } this.maparea.push({minx:x219,maxx:x218,n:x222}); } } } _f759.prototype._f887=function(x223,x224,x225) { var x226=this; if(x224.areaNode) { var x227=x224.areaNode; var x228=x227.getAttribute("coords"); var x229=x227.getAttribute("shape"); if(x224.wr&&x224.wr.length>1) { if(!x225) { x225=1; } if(x225==1) { x224.areaNode=new Array(x227); } for(var x230=x225;x2301) { var x235=false; if(!x225) { x225=1; } if(x225==1) { x224.node=new Array(x223); if(x224.lox!=null&&x224.loy!=null) { x224.labelNode=new Array(x224.labelNode); } } for(var x230=x225;x230=x246) { x243.wr.push(this.maparea[0].n); if(x250x248&&x249>x248) { x249=x243.x; x250=x243.x+x243.width-x247; } for(var x252=1;x252x250) x243.wr.push(this.maparea[x252].n); } } else { for(var x252=0;x252this.maparea[x252].minx&&x250this.maparea[x252].minx&&x2490) x256=x256.substring(0,x256.length-1); return x256; } else return x253; } _f759.prototype._f862=function() { if(this._f36._f189) return " marker_sequence=\""+this._f36._f190+"\""; else return ""; } _f759.prototype._f861=function(x261) { if(x261!=null) return " render_style=\""+x261+"\""; else if(this._f36._f37) return " render_style=\""+this._f36._f37+"\""; else return ""; } _f759.prototype.getMainFOI=function(x262) { for(var x263=0;x263=1&&x279._f36._f154) { var x293=new MVInfoWindowTab(x292._f585,x292._f106); var x294=new Array(x293); var x295=x292.name==null?"":MVUtil._f35(x292.name," "," "); x279.parent._f196._f490(x292.attrs,x292.attrnames,x292.id, x295,x275.sdo_point.x,x275.sdo_point.y,null,null, x279._f36,300); return; } } x290.innerHTML=x284; x287.appendChild(x290) } x279.parent.showOverLayerMarkWindow(x275,x277); } _f759.prototype._f584=function(x296,x297) { var x298=this.parent; var x299=function() { if(x298._f196&&x298._f196._f485|| x298.infoLayer2&&x298.infoLayer2._f485) x298.removeOverLayerWindow=setTimeout(x299,100); else { x298.removeOverLayerMarkWindow(); clearTimeout(x298.removeOverLayerWindowTime); } } x298.removeOverLayerWindow=setTimeout(x299,100); } function _f474(x0,id,x1,x2) { this.minX; this.minY; this.maxX; this.maxY; this.width=x0._f13(); this.height=x0._f14(); this.parent=x0; this._f475=null; this.div=document.createElement("div"); this.div.style.position="absolute"; this.div.style.zIndex="3000"; this.parent._f476.appendChild(this.div); this._f153=document.createElement("div"); this._f153.style.position="absolute"; this._f153.style.backgroundColor="#FFFFDF"; this._f153.style.border="inset black 1px"; this._f153.style.visibility="hidden"; this._f153.style.zIndex="1200"; this.parent.div.appendChild(this._f153); MVUtil._f76(this._f153,0,0); this._f477=new Array(0); this._f167=false; this.mouseOver=false; this.id=id } _f474.prototype.enableEventPropagation=function(x0) { this._f167=x0; } _f474.prototype._f197=function() {} _f474.prototype._f418=function() { this._f153.style.visibility='hidden'; } _f474.prototype.refresh=function(x1,x2,x3,x4,x5,x6) { MVUtil._f76(this.div,0,0); this.minX=x1; this.minY=x2; this.maxX=x3; this.maxY=x4; this.width=x5; this.height=x6; var x7=0; for(;x7=this.parent._f478&&this._f477[x7].winX<=this.parent._f479&& this._f477[x7].winY>=this.parent._f480&&this._f477[x7].winY<=this.parent._f481) this._f477[x7].style.visibility="visible"; } } _f474.prototype._f482=function() { return this.div; } _f474.prototype.showTextTip=function(x9,x10,x11) { this._f153.innerHTML=x9; if(_f30._f87=="NS"&&navigator.userAgent.toLowerCase().indexOf("netscape")>0) { var x12=MVUtil._f35(x9.toLowerCase()," "," ").length; this._f153.style.width=MVUtil._f85(x12*8+8); } var x13=MVUtil._f330(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x10,x11); MVUtil._f76(this._f153,x13.x+10,x13.y+5); this._f153.style.visibility="visible"; } _f474.prototype._f483=function() { return this._f477.length>0; } _f474.prototype._f484=function(id,x14,x15,x16,x17,x18,x19,x20,x21,x22,x23,x24) { if(MVInfoWindowStyle1._f99) { clearTimeout(MVInfoWindowStyle1._f99); MVInfoWindowStyle1._f99=null; } var x25=this.parent._f98+"_"+this.id;; if(MVInfoWindowStyle4._f99&&MVInfoWindowStyle4._f99[x25]) { clearTimeout(MVInfoWindowStyle4._f99[x25]); MVInfoWindowStyle4._f99[x25]=null; } if(x20==null||x20=="") { x20=_f30._f215; } if(x22) this.mouseOver=true; else this.mouseOver=false; this._f418(); var x26=this.parent; if(x16==null||x16.length==0) return ; if(!x17) x17=0; else if(x17<0) x17=0; else if(x17>x16.length-1) x17=x16.length-1; var x27=0; for(;x270) this.deleteInfoWindow(this._f477[0]); var x28=document.createElement("div"); var x29=this; var x30=function(x31) { x31=(x31)?x31:((window.event)?event:null); var x32=!x29._f167; if(x31&&!x29._f167) { if(_f30._f87=="IF") x31.cancelBubble=true; else if(x31.stopPropagation) x31.stopPropagation(); } } var x33=function(x34) { x29._f485=true; if(x29.div) x29.div.style.zIndex=3001; x30(x34); } var x35=function(x36) { x29._f485=false; if(x29.div) x29.div.style.zIndex=3000; x30(x36); } x28.id="mvinfodiv"+this.id; x28.onmousedown=MVUtil._f134(x28,x30); x28.onmouseup=MVUtil._f134(x28,x30); x28.onmousemove=MVUtil._f134(x28,x30); x28.onmouseover=MVUtil._f134(x28,x33); x28.onmouseout=MVUtil._f134(x28,x35); x28.ondblclick=MVUtil._f134(x28,x30); x28.onclick=MVUtil._f134(x28,x30); x28.onkeyup=MVUtil._f134(x28,x30); if(_f30._f87=="OS") x28.onkeypress=MVUtil._f134(x28,x30); else x28.onkeydown=MVUtil._f134(x28,x30); var x37=MVUtil._f330(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x14,x15); x28.style.position="absolute"; x28.style.visibility="hidden"; this.div.appendChild(x28); if(x20!="MVInfoWindowStyle1"&&x20!="MVInfoWindowStyle4") { var x38=document.createElement("div"); if(x18) x38.style.width=x18; if(x19) x38.style.height=x19; x38.innerHTML=x16[0].getContent(); x28.appendChild(x38); var x39=document.getElementById("mvinfotable_"+this.parent._f98); var x40=document.getElementById("mvinfotable1_"+this.parent._f98); var x41=0,x42=0; if(x39!=null&&x40!=null) { if(x39.offsetWidth<=x40.offsetWidth) x41=x40.offsetWidth+45; else x41=x39.offsetWidth+45; x18=x41; } if(x41>x18) x18=x41; if(x39!=null&&x40!=null) { x39.style.width=x18+"px"; if(x39.offsetHeight<=x40.offsetHeight) x42=x40.offsetHeight+40; else x42=x39.offsetHeight+40; } if(x42>x19) x19=x42; x28.removeChild(x38); } this._f475=null; if(this.domDiv) { this._f475=new _f92(x28,0,0,null,x17,x18,x19,x20,false,this,x37,{hideCloseButton:true},this.domDiv,this.id); } else { if(x20=="MVInfoWindowStyle4"&&x16.length>1){ if(!x18) x18=_f30.infoWindowTabsWidth; if(!x19) x19=_f30.infoWindowTabsHeight; } this._f475=new _f92(x28,0,0,x16,x17,x18,x19,x20,x22,this,x37,x23,null,this.id); } this._f477.push(x28); x28.nid=id; x28.winX=x14; x28.winY=x15; MVUtil._f76(x28,x37.x,x37.y); x28.style.visibility="visible"; x28.style.zIndex="1200"; if(!x22) { var x43=0; var x44=0; var x39=null; if(x20=="MVInfoWindowStyle1") x39=document.getElementById("infowindow3table_"+this.parent._f98); else if(x20=="MVInfoWindowStyle4") x39=document.getElementById("infowindow4_"+this.parent._f98+"_"+this.id); if(x39!=null) { x18=x39.offsetWidth; x39.style.width=MVUtil._f85(x18); x19=x39.offsetHeight; x43=MVUtil._f311(x39); x44=MVUtil._f312(x39); } if(x24&&(x20=="MVInfoWindowStyle1"||x20=="MVInfoWindowStyle4")) return ; var x45=x18; var x46=x19; var x47=this.parent._f73+x37.x+x43; var x48=this.parent._f74+x37.y+x44; var x49=0; var x50=0; if(x47<0) { if(this.parent._f73+x37.xthis.width) { if(this.parent._f73+x37.x>x47+x45) x49=this.parent._f73+x37.x-this.width+10; else x49=x47+x45-this.width; } else if(this.parent._f73+x37.x>this.width) x49=this.parent._f73+x37.x-this.width+10; if(x48<0) { if(this.parent._f74+x37.ythis.height) { if(this.parent._f74+x37.y>this.height) x50=this.parent._f74+x37.y-this.height+10; else x50=x48+x46-this.height; } else if(this.parent._f74+x37.y>this.height) x50=this.parent._f74+x37.y-this.height+10; if(x21) this.setTimeout("this.parent.smoothScroll("+x49+","+x50+")",x21); else this.parent.smoothScroll(x49,x50); } } _f474.prototype._f488=function(x51,x52,x53,x54,x55,x56,x57,x58,x59,x60) { if(x58==null||x58=="") { x58=_f30._f215; } if(x51.length==0) return; if(x56&&x57) { this._f484(x51,x52,x53,x54,x55,x56,x57,x58,null,null,x60,true); } else if(x58=="MVInfoWindowStyle4") this._f484(x51,x52,x53,x54,x55,0,0,x58,null,null,x60,true); else this._f484(x51,x52,x53,x54,x55,_f30._f95,_f30._f96,x58,null,null,x60,true); } _f474.prototype._f489=function(x61,x62,x63,x64,x65,x66,x67) { var x68=new Array(4); if(!x62) x62="null"; x62=MVUtil._f35(x62,"  "," "); var x69=0; var x70=0; var x71=""; var x72=12; if(x62!="null") { if(x66) x68[3]=x62; else { x69=x62.length; x70++; x71=""+this.replaceWhiteSpace(x62)+""; } } x71=""+x71; if(x63==null||x63.length==0){ x68[0]=x71; if(x67=="MVInfoWindowStyle1") { x68[1]=0; x68[2]=0; } else { x68[1]=x62.length*x72+36; x68[2]=27+30; } return x68; } var x73=0; var x74=0; x70+=x63.length; x71+="
"; for(var x75=0;x75x73) x73=x64[x75].length; if(x63[x75]==null) x63[x75]=""; if(x63[x75].length>x74) x74=x63[x75].length; var x77=this.replaceWhiteSpace(x63[x75]); x71=x71+""; if(x64!=null) { var x78=""; if(x64[x75]==null) x78=" "; else x78=this.replaceWhiteSpace(x64[x75])+":"; x71=x71+""; } x71=x71+""; } var x79; if(x69>(x73+x74)) x79=(x69+1)*x72+40; else x79=(x73+x74+1)*x72+40; x68[0]=x71+"
"+x78+""+x77+"
"; if(x67=="MVInfoWindowStyle1"||x67=="MVInfoWindowStyle4") { x68[1]=0; x68[2]=0; } else { x68[1]=x79; x68[2]=x70*11+80; } return x68; } _f474.prototype._f490=function(x80,x81,x82,x83,x84,x85, x86,x87,x88,x89, x90) { var x91=x88._f138; var x92=x88._f159?x88._f159:_f30._f215; var x93=x88._f173; var x94=x88._f174; var x95=x88._f175; if(x82.length==0&&x83.length==0) return ; if(x86&&x87) { var x96=new MVInfoWindowTab(x94,x80); var x97=new Array(x96); this._f484(x82,x84,x85,x96,0,x86,x87,x92,x89,x90,x95,true); } else { var x98=this._f489(x82,x83,x80,x81,x91,(x92=="MVInfoWindowStyle1"||x92=="MVInfoWindowStyle4")&&x93,x92); var x96=new MVInfoWindowTab(x94?x94:x98[3],x98[0]); var x97=new Array(x96); if(x98[1]>0&&x98[2]>0||x92=="MVInfoWindowStyle1"||x92=="MVInfoWindowStyle4") { this._f484(x82,x84,x85,x97,0,x98[1],x98[2],x92,x89,x90,x95,true); } else this._f484(x82,x84,x85,x97,0,_f30._f95, _f30._f96,x92,x89,x90,x95,true); } } _f474.prototype._f491=function(x99,x100,x101,x102,x103,x104,x105,x106) { var x107=new MVInfoWindowTab(x105,x99); var x108=new Array(x107); this._f484("",x100,x101,x108,0,x102,x103,x104,null,null,x106); } _f474.prototype.deleteInfoWindow=function(x109) { if(MVInfoWindowStyle1._f99) { clearTimeout(MVInfoWindowStyle1._f99); MVInfoWindowStyle1._f99=null; } var x110=this.parent._f98+"_"+this.id;; if(MVInfoWindowStyle4._f99&&MVInfoWindowStyle4._f99[x110]) { clearTimeout(MVInfoWindowStyle4._f99[x110]); MVInfoWindowStyle4._f99[x110]=null; } var x111=0; for(x111=0;x111this.parent._f479|| this._f477[x112].winYthis.parent._f481) this._f477[x112].style.visibility="hidden"; else this._f477[x112].style.visibility="visible"; } } _f474.prototype.replaceWhiteSpace=function(x113) { var x114=x113.indexOf("<"); if(x114>=0&&x113.indexOf(">",x114)>=0)return x113; x113=x113.replace(" "," "); return MVUtil._f35(x113," ","  "); } _f474.prototype._f18=function() { MVUtil._f19(this.div,this.parent._f20); MVUtil._f19(this._f153,this.parent._f20); this._f153=null; this.div=null; if(this._f477&&this._f477.length>0) this._f477.pop(); } _f474.prototype.showTabbedHtmlWindow=function(x115,x116,x117,x118,x119,x120,x121,x122) { this._f484(null,x116,x117,x121,x122,x118,x119,"MVInfoWindowStyle4",null,null,x120); } function MVFOI(x0,x1,x2,x3,x4,x5) { if(!x0||x0.length==0) { MVi18n._f42("MVFOI.constructor","MAPVIEWER-05503"); return null; } this.parent=""; this.id=MVUtil._f227(x0); this._f203=x1; this.gtype=x1.getGType(); this.style=x2; this._f139=x3; this._f68=""; this._f106=null; this.html=""; this._f889=""; this._f890=""; this.area=""; this._f119=null; this._f891=new Array(4); this._f153=null; this.width=0; this.height=0; this._f155=true; this.visible=true; this._f63=false; this._f748=false; this._f484=true; this._f892=true; this._f146=null; this._f147=null; this._f148=null; this._f149=null; this._f143=new Array(); this._f142=true; this._f586=0; this._f587=0; this._f167=true; this.cursorStyle=null; this._f893=null; this._f894=null; this.node=null; if(this.gtype%10==1) { if(!x4) this.width=10; else if(x4>0) this.width=x4; if(!x5) this.height=10; else if(x5>0) this.height=x5; } this._f588=null; this._f585=null; this._f175=null; this._f392=100; this._f895=100; this._f185=null; this.bgColor=null; this.isHTMLFOI=null; this.origgeom=null; this.wr=null; this.origFOI=null; this.cloneFOI=null; this.areacode=null; this.createMarker=false; } MVFOI.prototype.setHTMLElement=function(x0,x1,x2) { this.html=x0; if(x1) this._f889=x1; if(x2) this._f890=x2; } MVFOI.createMarkerFOI=function(id,x3,x4,x5,x6) { var x7=new MVFOI(id,x3,"",x4,x5,x6); x7.createMarker=true; if((!x5||isNaN(x5))||(!x6||isNaN(x6))){ x7._f896=true; var x8=function(x9,x10){ if(!x5||isNaN(x5)) x5=x9; if(!x6||isNaN(x6)) x6=x10; x7.width=x5; x7.height=x6; x7._f896=false; x7=null; } MVUtil.getImageSize(x4,x8); } return x7; } MVFOI.createHTMLFOI=function(id,x11,x12,x13,x14) { var x15=new MVFOI(id,x11,"","",0,0); x15.setHTMLElement(x12,x13,x14); x15.isHTMLFOI=true; return x15; } MVFOI.prototype.addEventListener=function(x16,x17) { this.setEventListener(x16,x17); } MVFOI.prototype.setEventListener=function(x18,x19) { if(x18==MVEvent.MOUSE_CLICK) { this._f146=x19; } else if(x18==MVEvent.MOUSE_RIGHT_CLICK) { this._f147=x19; } else if(x18==MVEvent.MOUSE_OVER) { this._f148=x19; } else if(x18==MVEvent.MOUSE_OUT) { this._f149=x19; } if(this._f63) { this._f893._f897(this); } } MVFOI.prototype.attachEventListener=function(x20,x21) { MVUtil.attachEventListener(this._f143,x20,x21) if(this._f63&&this._f893) { this._f893._f897(this); } } MVFOI.prototype.detachEventListener=function(x22,x23) { MVUtil.detachEventListener(this._f143,x22,x23); } MVFOI.prototype.setBringToTopOnMouseOver=function(x24) { this._f142=x24; } MVFOI.prototype.setTopFlag=function(x25) { this._f748=x25; } MVFOI.prototype.enableInfoWindow=function(x26) { this._f484=x26; } MVFOI.prototype.enableInfoTip=function(x27) { this._f892=x27; } MVFOI.prototype.setFOIOrds=function(x28) { this._f119=MVUtil._f227(x28).toUpperCase(); } MVFOI.prototype.setFOIGtype=function(x29) { this.gtype=x29; } MVFOI.prototype.setVisible=function(x30) { this.visible=x30; if(this.parent) this.parent._f368._f898(this,x30); } MVFOI.prototype.isVisible=function() { return this.visible; } MVFOI.prototype.getId=function() { return this.id; } MVFOI.prototype.setClickable=function(x31) { this._f155=x31; } MVFOI.prototype.setInfoTip=function(x32) { if(x32) this._f155=true; this._f153=x32; } MVFOI.prototype.setInfoWindow=function(x33,x34,x35,x36,x37,x38) { this._f106=x33; this._f586=x34; this._f587=x35; this._f588=x36; this._f585=x37; this._f175=x38; } MVFOI.prototype.enableEventPropagation=function(x39) { this._f167=x39; } MVFOI.prototype.setZIndex=function(x40) { this._f392=x40; if(this.node) this.node.zIndex=x40; } MVFOI.prototype.setImageFormat=function(x41,x42) { if(x41) { this._f185=x41.toUpperCase(); if(this._f185=="PNG8"&&x42) this.bgColor=x42; } } MVFOI.prototype.getMBR=function() { var x43=new Array(4); if(this.gtype%10==3&&this.elemInfo[2]==4) { x43[0]=parseFloat(this._f119[4]); x43[1]=parseFloat(this._f119[3])- Math.abs((parseFloat(this._f119[0])-parseFloat(this._f119[4]))); x43[2]=parseFloat(this._f119[0]); x43[3]=parseFloat(this._f119[3]); } else { x43[0]=parseFloat(this._f119[0]); x43[1]=parseFloat(this._f119[1]); x43[2]=parseFloat(this._f119[0]); x43[3]=parseFloat(this._f119[1]); for(var x44=2;x44x43[2])x43[2]=parseFloat(this._f119[x44]); if(parseFloat(this._f119[x44+1])x43[3])x43[3]=parseFloat(this._f119[x44+1]); } } return x43; } MVFOI.prototype._f899=function(x45){ var x46=x45; var x47=""; var x48=x46.length; for(var x49=this.elemInfo.length;x49>0;x49=x49-3) { var x50=0; if(this.elemInfo[x49-2]%10==3&&this.elemInfo[x49-1]==3){ for(var x51=0;x510;x65=x65-3) { var x66=this.elemInfo[x65-3]-1;var x67=this.elemInfo[x65]-1;if(x65==this.elemInfo.length) { x67=x62.length;} var x68=x62[x66]+","+x62[x66+1]; var x69=""; var x70=x67-1; for(var x71=x66;x71<=x70;x71++) { x69+=x62[x71]+","; } var x72=false; if(x62[x66]!=x62[x67-1]||x62[x66+1]!=x62[x67]) { x69+=x68; x72=true; } if(this.elemInfo.length==3) { return x69; } if(x65==3){ x64=x69+","+x64; } else { if(x72) x69+=","+x63; else x69+=x63; if(x65==this.elemInfo.length) { x64=x69; } else { x64=x69+","+x64; } } } return x64; } MVFOI.prototype._f901=function(x73) { var x74=new Array(this._f119.length); var x75=new Array(this._f891[0],this._f891[1],this._f891[2],this._f891[3]);if(x75[0]x73._f368.maxY)x75[3]=x73._f368.maxY; var x76=x75[3]-x75[1]; for(var x77=0;x77x0._f368.maxY)x2[3]=x0._f368.maxY; var x3=(x1[2]+x1[0])/2; var x4=(x1[3]+x1[1])/2 var x5=(x1[2]-x1[0])/2; var x6=x2[3]-x2[1]; var x7; var x8=""; var x9=2*Math.PI; for(var x10=0;x10<90;x10++) { if(x10%2==0){ x7=Math.floor((x3+x5*Math.cos((x9*x10)/90)-x2[0])* x0._f71+0.5); } else { x7=Math.floor((x6-(x4+x5*Math.sin((x9*x10)/90)- x2[1]))*x0._f72+0.5); } if(x10==0)x8+=x7; else x8+=","+x7; } x2=null; return x8; } MVFOI.prototype._f903=function(x78) { if(this.area==null||this.area=="") { this.area=""; if(this.gtype%10==3&&this.elemInfo[2]==4) { this.area=_f902(x78,this._f891); } else if(this.gtype%10==3||this.gtype%10==7) { var x79=this._f901(x78); this.area=this._f900(x79); } } } MVFOI.prototype.animateToNewLocation=function(x80,x81) { var x82=this; var x83=this._f893; var x84=function(x85) { if(x85) x80=x85; if(x80.equals(x82._f203)) return; if(x82.overlayFOI) { var x86=x83.parent.getFOIGroup(x82._f538); x86._f559(x82); x83._f555(x82); } if(x81==null) x81=100; x83.parent._f368.foiToNewLocation(x82,x80,x81); } if(this.overlayFOI) x83=this.overlayFOI._f893; if(!x80.srid) x80.srid=x83.parent.getSrid(); if(x80.srid&&(x80.srid!=this._f203.srid)) x80=x83.parent.transformGeom(x80,this._f203.srid,null,x84); else x84(); } MVFOI.prototype.stopAnimation=function() { if(this.move_id!=null){ clearTimeout(this.move_id); this.move_id=null; var x87=this; } } MVFOI.prototype.setMouseCursorStyle=function(x88) { this.cursorStyle=x88; if(this._f904) { if(this._f904 instanceof Array) { for(var x89=0;x890) x114._f203.sdo_point.x=x114._f119[0]; var x119=(x115.parent._f15-x115._f55)*x115.parent._f71; var x120=(x115.parent._f16-x115._f56)*x115.parent._f72; if(x114.overlayFOI) { var x121=x115.parent.getFOIGroup(x114._f538); x121._f559(x114); if(!x121._f554(x114)) x115._f555(x114); return; } if(x115.around) { var x122=x114.wr; var x123=0; var x124=x115.parent.msi._f338; var x125=x115.parent.msi._f337; var x126=x125-x124; x114.wr=new Array(); if(x114.areacode!=null){ var x123=x115.maparea[0].n; x123+=x114.areacode; x114.wr.push(x123) } else for(var x127=0;x127x115.maparea[x127].minx&&x114.x=x114.wr.length;x127--) { x114.node[x127].parentNode.removeChild(x114.node[x127]); MVUtil._f89(x114.node[x127]); x114.node.pop(); x114._f894.pop(); x114._f904.pop(); } } } else { x118=MVUtil._f331(x115.parent,x115.minX,x115.minY, x115.maxX,x115.maxY, x115.width,x115.height, x114.x,x114.y); x118[0]-=x119; x118[1]+=x120; MVUtil._f76(x114.node,x118[0]-x114.width/2,x118[1]-x114.height/2); } } else { x114.gtype=x114._f203.getGType() x114.reDraw(); } } if(this.overlayFOI) x115=this.overlayFOI._f893; if(!this._f203.srid) this._f203.srid=x115.parent.getSrid(); if(this._f203.srid!=x115.parent.getSrid()) { x115.parent.transformGeom(this._f203,x115.parent.srid,null,x116); } else x116(); } } MVFOI.prototype.reDraw=function() { if(this._f63) { if(this._f538>=0) { if(this._f893==null) { return; } var x130=this._f893.parent.getFOIGroup(this._f538); x130.removeFOI(this); x130.addFOI(this); return; } this._f893._f556(this.id); this._f893._f749(this); } } MVFOI.prototype._f905=function() { if(this._f146||(this._f143[MVEvent.MOUSE_CLICK]!=null&&this._f143[MVEvent.MOUSE_CLICK].length!=0)|| this._f147||(this._f143[MVEvent.MOUSE_RIGHT_CLICK]!=null&&this._f143[MVEvent.MOUSE_RIGHT_CLICK].length!=0)|| this._f148||(this._f143[MVEvent.MOUSE_OVER]!=null&&this._f143[MVEvent.MOUSE_OVER].length!=0)|| this._f149||(this._f143[MVEvent.MOUSE_OUT]!=null&&this._f143[MVEvent.MOUSE_OUT].length!=0)|| (this._f143[MVEvent.MOUSE_MOVE]!=null&&this._f143[MVEvent.MOUSE_MOVE].length!=0)|| this._f106||this._f153||this.cursorStyle) return true; else return false; } MVFOI.prototype._f18=function() { this.node=null; this._f904=null; this._f894=null; } function _f744(x0) { this._f406=[]; this.parent=x0; var x1=null; this.minX=0; this.minY=0; this.maxX=0; this.maxY=0; this._f764=0; this._f765=0; this._f792=false; this.div=document.createElement("div"); this.width=0; this.height=0; this.count=0; this._f55=this.parent._f15; this._f56=this.parent._f16; this._f144=null; this._f143=new Array(); this.div.style.position="absolute"; this.div.style.zIndex=120; this._f906=document.createElement("div"); this._f906.style.position="absolute"; this._f906.style.zIndex=180; this.move_id=null; this.time=20; if(this.parent.div.appendChild) { this.parent.div.appendChild(this.div); this.parent.div.appendChild(this._f906); } else { document.body.appendChild(this.div); document.body.appendChild(this._f906); } this.mouseL1=MVSdoGeometry.createPoint(0,0); this.mouseL2=this.mouseL1; this.maparea=null; this.around=false; } _f744.prototype.foiToNewLocation=function(x131,x132,x133) { if(x133) x131.time=x133; else x131.time=this.time; var x134=new Array(); var x135=new Array(); if(x132.getFirstPoint()){ x134.push(x132.getPointX()); x135.push(x132.getPointY()); } else { var x136=x132.getDimensions(); for(var x137=0;x137<=x132.getOrdinates().length-x136;x137=x137+x136) { x134.push(x132.getOrdinates()[x137]); x135.push(x132.getOrdinates()[x137+1]); } } var x138=0; if(x134.length<=x138||x135.length<=x138) return; if(x131.move_id) { clearTimeout(x131.move_id); x131.move_id=null; } x131.startX=x131.x; x131.startY=x131.y; x131.move_xarray=x134; x131.move_yarray=x135; x131.move_seq=x138; var x139=x131.id; if(x131._f538>=0) x139+=","+x131._f538; x131.move_id=this.setTimeout("this.moveFoi(\""+x139+"\")",x131.time); } _f744.prototype.moveFoi=function(x140) { var x141=null; var x142=x140.split(","); if(x142.length>1) { var x143=this.parent.getFOIGroup(x142[1]); x141=x143._f366(x142[0]); } else x141=this._f367(x142[0]); var x144=x141.node; if(x144 instanceof Array) x144=x144[0]; var x145=parseInt(x144.style.left); var x146=parseInt(x144.style.top); var x147=x141.move_seq; var x148=x141.move_xarray; var x149=x141.move_yarray; var x150=x148[x147]; if(x141.tx&&x141.tx.length>0) x150+=x141.wr[0]*(this.parent.msi._f337-this.parent.msi._f338); var x151=0; x150=MVUtil.transLongitudeOnWarpAroungMap(this.parent,x141.x,x150); if(this.around) { x151=x141.wr[0]*(this.parent.msi._f337-this.parent.msi._f338); } var x152=MVUtil._f331(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x150+x151,x149[x147]); var x153=(this.parent._f15-this._f55)*this.parent._f71; var x154=(this.parent._f16-this._f56)*this.parent._f72; x152[0]=Math.round(x152[0]-x153-x141.width/2); x152[1]=Math.round(x152[1]+x154-x141.height/2); var x155=x152[0]-x145; var x156=x152[1]-x146; var x157=Math.sqrt(x155*x155+x156*x156); var x158=40; if(x158>x157) { x144.style.left=MVUtil._f85(x152[0]); x144.style.top=MVUtil._f85(x152[1]); if(x141.node instanceof Array) { for(var x159=1;x1591) x141.startX=x148[x147-1]; if(x149.length>1) x141.startY=x149[x147-1]; x141.move_seq=x147; var x140=x141.id if(x141._f538>=0) x140+=","+x141._f538; x141.move_id=this.setTimeout("this.moveFoi(\""+x140+"\")",x141.time); } else { var x160=Math.round(x158*x155/x157); var x161=Math.round(x158*x156/x157); var x162=parseInt(x144.style.left)+x160; var x163=parseInt(x144.style.top)+x161; x144.style.left=MVUtil._f85(x162); x144.style.top=MVUtil._f85(x163); if(x141.node instanceof Array) { for(var x159=1;x159x141.x) x165=-1; else if(x164this.parent.msi._f337) { x141.x-=x166; x144.style.left=MVUtil._f85(x162-x166*this.parent._f71); } } x141._f203.sdo_point.x=x141.x; x141._f203.sdo_point.y=x141.y; var x140=x141.id if(x141._f538>=0) x140+=","+x141._f538; x141.move_id=this.setTimeout("this.moveFoi(\""+x140+"\")",x141.time); } } _f744.prototype.setTimeout=function(_f327,_f328) { var Ie="tempVar"+_f329; _f329++; eval(Ie+" = this;"); var oi=_f327.replace(/\\/g,"\\\\"); oi=oi.replace(/\"/g,'\\"'); return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f328); } _f744.prototype._setTimeoutDispatcher=function(func) { eval(func); } _f744.prototype.setSize=function(x167,x168) { this.width=x167; this.height=x168; } _f744.prototype._f898=function(x169,x170) { var x171=x169.id; for(var x172=0;x1720) if(this.parent._f196._f477[0].nid==x171) { this.parent._f196.deleteInfoWindow(this.parent._f196._f477[0]); } } } var x173=x169.node if(x169._f538>=0) { var x174=this.parent.getFOIGroup(x169._f538); x170=x170&&x174._f69(); } if(!x173&&x170&&(!x169.cloneFOI||!x169.cloneFOI.node)) { if(this.parent._f618) { this.parent._f368._f555(x169,true); } return ; } if(x173 instanceof Array) { for(var x175=0;x1750) if(this.parent._f196._f477[0].nid==x182.id) { this.parent._f196.deleteInfoWindow(this.parent._f196._f477[0]); } } MVUtil._f19(this.div,this.parent._f20); MVUtil._f19(this._f906,this.parent._f20); } _f744.prototype._f556=function(x183,x184) { var x185=null; if(x184==null) { for(var x186=0;x1860) if(this.parent._f196._f477[0].nid==x183) { this.parent._f196.deleteInfoWindow(this.parent._f196._f477[0]); } this._f406[x186]=this._f406[this._f406.length-1]; MVUtil._f361(this._f406.pop()); break; } } } else x185=x184; if(x185) { if(x185.move_id!=null){ clearTimeout(x185.move_id); x185.move_id=null; } if(x185.node) { var x187=x185.node if(x187 instanceof Array) { for(var x188=0;x1880) x210._f203.sdo_point.x=x210._f119[0]; } else { x210.elemInfo=x210._f203.sdo_elem_info.toString().split(","); var x216=x210._f203.sdo_ordinates; if(!x210.origFOI) { x216=MVUtil.keepOrdinatesInCSBoundary(x212.parent,x216); if(x212.parent.wraparound) { x210.origgeom=x210._f203.clone(); x210._f203.sdo_ordinates=x216; var x217=x210._f203.getOrdinatesOfElements(); x216=new Array(); for(var x218=0;x2180&&!x210.cloneFOI) { var x220=x210._f203.clone(); x220.sdo_ordinates=MVUtil.duplicateCrossDateLineOrds(x212.parent,x210._f119,x210._f891); var x221=MVUtil.cloneObject(x210); x221.id="-CL"+x210.id; x221._f203=x220; x221.origFOI=x210; x210.cloneFOI=x221; x212._f749(x221); } x210.x=x210._f891[0]; x210.y=x210._f891[3]; if(x210.gtype%10!=1) { x210.width=x210._f891[2]-x210._f891[0]; x210.height=x210._f891[3]-x210._f891[1]; } x212._f910(x210,x211); } if(x210._f203.srid&&(x210._f203.srid!=this.parent.srid)) this.parent.transformGeom(x210._f203,this.parent.srid,null,x214); else x214(); } _f744.prototype._f910=function(foi,check) { var styleStr=null; if(foi.style) { if(foi.style.getXMLString) styleStr=foi.style.getXMLString(); else styleStr=foi.style; } if(foi.gtype%10==1) { if(styleStr) foi._f68=foi._f139+"?request=getpoiimage&version=1.0"+ "&poistyle="+encodeURIComponent(styleStr)+ "&width="+foi.width+"&height="+foi.height+ this.getImageParameters(foi); if(this.around||foi.wr) { foi.wr=new Array(); if(foi.areacode==null) { var n=0; var bbminx=this.parent.msi._f338; var bbmaxx=this.parent.msi._f337; for(var i=0;ithis.maparea[i].minx&&foi.x0) { var coverWidth=this.parent.msi._f337-this.parent.msi._f338; var tOrds=foi._f203.sdo_ordinates; var crossdl=MVUtil.crossDateLine(this.parent,tOrds); var middle=this.parent.msi._f338+coverWidth/2; if(crossdl){ if((this.maparea.length>1||(this.maparea.length==1&&foi._f891[2]this.maparea[0].maxx) &&(foi.x>middle||foi._f891[2]>middle)) { foi.wr[0]--; } if(foi.width>(this.maxX-this.minX)){ reqMinX=this.minX-foi.wr[0]*coverWidth; reqMaxX=this.maxX-foi.wr[0]*coverWidth; if(reqMinX>foi.x) foi.x=reqMinX; }else{ reqMinX=foi._f891[0]; reqMaxX=foi._f891[2]; } }else if(!crossdl&&foi.width>(this.maxX-this.minX)){ reqMinX=this.minX-foi.wr[0]*coverWidth; reqMaxX=this.maxX-foi.wr[0]*coverWidth; if(reqMinX>foi.x) foi.x=reqMinX; }else{ reqMinX=foi._f891[0]; reqMaxX=foi._f891[2]; } } else { if(this.maxX>this.parent.msi._f337) reqMaxX=this.parent.msi._f337; if(this.minXthis.parent.msi._f337) foi._f891[2]=this.parent.msi._f337; if(foi._f891[0]this.parent.msi._f457) reqMaxY=this.parent.msi._f457; if(this.minYthis.parent.msi._f457) { foi._f891[3]=this.parent.msi._f457; foi.y=foi._f891[3]; } reqMinX=Math.floor(reqMinX*this.parent._f71)/this.parent._f71; reqMaxX=Math.ceil(reqMaxX*this.parent._f71)/this.parent._f71; reqParas="&version=1.0"+"&ratx="+this.parent._f71+"&raty="+ this.parent._f72+'&bbox='+ reqMinX+':'+reqMinY+':'+reqMaxX+':'+reqMaxY+ this.getImageParameters(foi); url=foi._f139+"?request=getfigimage"+reqParas+"&figord="+_f912; if(_f30._f87=="IF") url+="&figstyle="+encodeURIComponent(encodeURIComponent(styleStr)); else url+="&figstyle="+encodeURIComponent(styleStr); try { var _f913=this; var localDomain=MVUtil.isLocalDomain(foi._f139); var xmlHttp=localDomain||MVMapView._f229; var _f28=MVUtil.getXMLHttpRequest(xmlHttp); if(MVMapView._f229&&!localDomain) foi._f139=_f30._f269()+"?rtarget="+foi._f139; _f28.open("POST",foi._f139,true); _f28.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); _f28.onreadystatechange=MVUtil._f134(_f28,function() { try { if(this.readyState!=4){ return; } if(this.status==200) { if(this.responseText.indexOf("imgurl")>=0) { var res=null; eval("res="+this.responseText); foi._f68=res.imgurl; if(res.area&&res.area!="") foi.area=res.area; if(res.io) foi.io=res.io; if(check) { if(foi._f748) for(var td=0;td<_f913._f906.childNodes.length;td++) { if(_f913._f906.childNodes[td].id==foi.id) { _f913._f906.removeChild(_f913._f906.childNodes[td]); break; } } else for(var td=0;td<_f913.div.childNodes.length;td++) { if(_f913.div.childNodes[td].id==foi.id) { _f913.div.removeChild(_f913.div.childNodes[td]); break; } } } _f913._f911(foi); } } } catch(e) { MVi18n._f42("MVIndFOIsControl.postAddAndDisplayIndFOI","MAPVIEWER-05500",e, _f913.parent?_f913.parent._f20:null); } }); _f28.send("request=getfig"+reqParas+"&figord="+_f912+"&figstyle="+encodeURIComponent(styleStr)); } catch(ex) { MVi18n._f42("MVIndFOIsControl.postAddAndDisplayIndFOI","MAPVIEWER-05511",ex, this.parent?this.parent._f20:null); } } _f744.prototype._f750=function() { return this._f406; } _f744.prototype._f751=function(x222,x223,x224,x225) { this._f792=true; this.parent._f199(); this.minX=x222; this.minY=x223; this.maxX=x224; this.maxY=x225; this._f55=this.parent._f15; this._f56=this.parent._f16; this._f764=Math.ceil((this.minX-this.parent._f478)*this.parent._f71); this._f765=-Math.ceil((this.maxY-this.parent._f481)*this.parent._f72); MVUtil._f76(this.div,this._f764,this._f765); MVUtil._f76(this._f906,this._f764,this._f765); MVUtil._f19(this.div,this.parent._f20); MVUtil._f19(this._f906,this.parent._f20); this._f871(); this.around=this.parent.wrapAroundLayer(this._f565()); if(this._f144) this._f144; MVUtil.runListeners(this._f143,"refreshFOI"); MVUtil._f19(this.div,this.parent._f20); MVUtil._f19(this._f906,this.parent._f20); for(var x226=0;x2260) x232=x228.area; x231.setAttribute("shape","poly"); x231.setAttribute("coords",x232); if((x228._f146||(x228._f143[MVEvent.MOUSE_CLICK]!=null&&x228._f143[MVEvent.MOUSE_CLICK].length!=0)||((x228._f484&&x228._f106))) &&_f30._f87!="OS") { x231.setAttribute("href","javascript:void(0)"); } } if(x228._f146||(x228._f143[MVEvent.MOUSE_CLICK]!=null&&x228._f143[MVEvent.MOUSE_CLICK].length!=0)||(x228._f484&&x228._f106)) { MVUtil._f107(x231,"pointer"); } x231.onmousedown=x229._f888; x231.onmouseup=x229.IndMouseUp; x231.oncontextmenu=x229.IndRightClick; } if(x228._f904 instanceof Array) { for(var x233=0;x2330) x235=MVUtil._f331(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x234.x+x234.wr[0]*(this.parent.msi._f337-this.parent.msi._f338), x234.y); else x235=MVUtil._f331(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x234.x,x234.y); var x236=(this.parent._f15-this._f55)*this.parent._f71; var x237=(this.parent._f16-this._f56)*this.parent._f72; var x238; var x239=MVUtil._f3(x234._f68.toLowerCase(),'png'); if(!(_f30._f87=='IF'&&(x234.style!=""||x239))&&!x234.html) { if(x234.gtype%10==1) x238=document.createElement('img'); else x238=document.createElement('div'); } else x238=document.createElement('div'); var x240=x234.visible; if(x234._f538>=0) { var x241=this.parent.getFOIGroup(x234._f538); x240=x240&&x241._f69(); } if(x240)x238.style.visibility="visible"; else x238.style.visibility="hidden"; x238.style.position="absolute"; var x242=false; for(var x243=0;x243=0) x238.groupid=x234._f538; var x244=this; var x245=x234._f167; x234._f904=x238; if(x234._f68) { x238.className="noprint"; if(!x240) x238.style.visibility="hidden"; if(x234.id&&x234.id!=null) x238.id=x234.id; x238._f883=x234.x; x238._f884=x234.y; x238.style.zIndex=x234._f392; if(x234._f538>=0) { var x241=this.parent.getFOIGroup(x234._f538); x241._f570(x238,x234); } else if(x234._f748) this._f906.appendChild(x238); else this.div.appendChild(x238); if(x234.gtype%10!=1) { this.displayPolygonIndFOI(x238,x235,x236,x237,x234); } else { var x246=function() { if(x234._f896) { setTimeout(x246,200); return ; } x244.displayPointIndFOI(x238,x235,x236,x237,x234); } x246(); } } else if(x234.gtype%10==1) { x238.style.zIndex=x234._f392; this.displayHTMLIndFOI(x238,x235,x236,x237,x234); } x234.node=x238; this._f887(x238,x234,x244); if(x234.move_id!=null) { var x247=MVUtil._f331(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x234.move_xarray[x234.move_seq],x234.move_yarray[x234.move_seq]); var x248=Math.round(x247[0]-x234.width/2); var x249=Math.round(x247[1]-x234.height/2); var x250=x234.id if(x234._f538>=0) x250+=","+x234._f538; x234.move_id=this.setTimeout("this.moveFoi(\""+x250+"\")",x234.time); } } _f744.prototype._f773=function() { var x251=""; for(var x252=0;x252"+x258+"" return x259; } _f744.prototype._f18=function() { this._f752(); this._f406=null; this.div=null; this._f906=null; } _f744.prototype._f868=function(x260) { return x260._f185?x260._f185:this.parent._f686; } _f744.prototype._f86=function(x261) { return _f30._f87=="IF"&&this._f868(x261)=="PNG24"; } _f744.prototype.getImageParameters=function(x262) { var x263=""; var x264=this._f868(x262); if(x264=="PNG8") x263+="&format="+x264; if(x262.bgColor) x263+="&bgcolor="+x262.bgColor; return x263; } _f744.prototype.displayHTMLIndFOI=function(x265,x266,x267,x268,x269) { var x270=x265.ifctl; x265.id=x269.id; x265.style.width=MVUtil._f85(x269.width); x265.style.height=MVUtil._f85(x269.height); x266[0]-=x267; x266[1]+=x268; MVUtil._f76(x265,x266[0]-x269.width/2,x266[1]-x269.height/2); if(x269.groupid>=0) { var x271=this.parent.getFOIGroup(x269.groupid); x271._f570(x265,x269) } else this._f906.appendChild(x265); x265.onkeyup=x270.IndStopPropagation; if(_f30._f87=="OS") x265.onkeypress=x270.IndStopPropagation; else { x265.onkeydown=x270.IndStopPropagation; x265.oncontextmenu=x270.IndStopPropagation; } if(_f30._f87=="IF") x265.onselectstart=x270.IndStopPropagation; if(x269._f153&&x269._f892&&_f30._f87!="OS") { x265.title=x269._f153; } this.setIndFOIListners(x269,x265); if(x269.html) { var x272=document.createElement("div"); x272.style.position="absolute"; var x273=x269._f889; var x274=x269._f890; x272.style.left=MVUtil._f85(x273); x272.style.top=MVUtil._f85(x274); x272.style.padding=MVUtil._f85(0); x269.foiDiv=x272; x272.innerHTML=x269.html; x265.appendChild(x272); } } _f744.prototype.displayPolygonIndFOI=function(x275,x276,x277,x278,x279,x280) { var x281=this; var x282=this._f909(x279); x275.style.width=MVUtil._f85(Math.round(x282.width*this.parent._f71+0.5)); x275.style.height=MVUtil._f85(Math.round(x282.height*this.parent._f72+0.5)); var x283; var x284; var x285=x279._f891; if(x279.wr&&x279.wr.length>0) { var x286=this.parent.msi._f337-this.parent.msi._f338; x285[0]+=x279.wr[0]*x286; x285[2]+=x279.wr[0]*x286; } if((x285[0]>this.maxX||x285[2]this.maxY||x285[3]0) x283=x276[0]; else if(x276[0]>-this.parent._f73&&x276[0]<-this.parent._f73+this.width) { x283=x276[0]; } else if(x276[0]<-this.parent._f73) { x283=-this.parent._f73; } else { return; } if(x276[1]>-this.parent._f74&&x276[1]<-this.parent._f74+this.height) { x284=x276[1]; } else if(x276[1]<-this.parent._f74) { x284=-this.parent._f74; } else { return; } x283=Math.floor(x283+0.5); x284=Math.floor(x284+0.5); x283-=x277; x284+=x278; if(x279.io) { x283+=x279.io; x284+=x279.io; } MVUtil._f76(x275,x283,x284); if(this._f86(x279)) { var x287=MVUtil._f35(x279._f68,"(","%28"); x287=MVUtil._f35(x287,")","%29"); x275.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x287+"', sizingMethod='image');"; if(x279._f153&&x279._f892) { x275.setAttribute("title",x279._f153); } this.setIndFOIListners(x279,x275); x275.onkeyup=x281.IndStopPropagation; if(_f30._f87=="OS") x275.onkeypress=x281.IndStopPropagation; else x275.onkeydown=x281.IndStopPropagation; } else { var x288=_f334(x279._f68,0,0,0,0,10); x275.appendChild(x288); x279.node=x275; if(!x279._f905()) return ; x279._f903(x281.parent); var x289=document.createElement("map");var x290=document.createElement("area"); x289.setAttribute("name","f"+x279.id); x289.setAttribute("id","f"+x279.id); x290.setAttribute("border",0); if(x279._f153&&x279._f892) { if(_f30._f87!="OS") x290.setAttribute("title",x279._f153); } x279._f904=x290; var x291="0,0"; if(x279._f155&&x279._f905()) { if(x279.area.length>0) x291=x279.area; if((x279._f146||(x279._f143[MVEvent.MOUSE_CLICK]!=null&&x279._f143[MVEvent.MOUSE_CLICK].length!=0)||((x279._f484&&x279._f106))) &&_f30._f87!="OS") x290.setAttribute("href","javascript:void(0)"); } x290.setAttribute("shape","poly"); x290.setAttribute("coords",x291); this.setIndFOIListners(x279,x290); x288.setAttribute("usemap","#f"+x279.id,0); x275.style.border=0; x275.appendChild(x289); x289.appendChild(x290); } } _f744.prototype.displayPointIndFOI=function(x292,x293,x294,x295,x296) { var x297=this; x293[0]-=x294; x293[1]+=x295; MVUtil._f76(x292,x293[0]-x296.width/2,x293[1]-x296.height/2); var x298=MVUtil._f3(x296._f68.toLowerCase(),'png'); var x299=function(x300,x301) { var x302=document.createElement("div"); x302.style.position="absolute"; var x303=x300._f889; var x304=x300._f890; x302.style.left=MVUtil._f85(x303); x302.style.top=MVUtil._f85(x304); x302.style.padding=MVUtil._f85(0); x300.foiDiv=x302; x302.innerHTML=x300.html; x301.appendChild(x302); } if((_f30._f87=='IF')&& (x296.style!=""||x298)) { if(!x296.width) x292.style.width=MVUtil._f85(100); else x292.style.width=MVUtil._f85(x296.width); if(!x296.height) x292.style.height=MVUtil._f85(100); else x292.style.height=MVUtil._f85(x296.height); var x305=MVUtil._f35(x296._f68,"(","%28"); x305=MVUtil._f35(x305,")","%29"); if(x296._f153&&x296._f892&&_f30._f87!="OS") { x292.setAttribute("title",x296._f153); } x292.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x305+"', sizingMethod='image');"; if(x296.html) { x299(x296,x292); } this.setIndFOIListners(x296,x292); } else { if(x296._f153&&x296._f892&&_f30._f87!="OS") { x292.setAttribute("title",x296._f153); } if(x296.html) { var x306=document.createElement("img"); x296._f894=x306; x306.style.position="relative"; x306.style.left=MVUtil._f85(0); x306.style.top=MVUtil._f85(0); x306.setAttribute("id",x296.id); x306.src=x296._f68; x306.setAttribute("border",0); x306.foi=x292.foi; x306.ifctl=x292.ifctl; x306.groupid=x292.groupid; x292.appendChild(x306); x299(x296,x292); x297.setIndFOIListners(x296,x296._f894); } else { x292.src=x296._f68; x292.setAttribute("border",0); x297.setIndFOIListners(x296,x292); } } } _f744.prototype.IndStopPropagation=function(x307) { x307=(x307)?x307:((window.event)?event:null); var x308=MVUtil.getEventSource(x307); var x309=MVUtil.getMVIndFOIsControlAndFOI(x308); var x310=x309.ifctl; if(!x310) return; var x311=x309.foi; if(x307&&x311&&!x311._f167) { if(_f30._f87=="IF") x307.cancelBubble=true; else if(x307.stopPropagation) x307.stopPropagation(); } } _f744.prototype.IndStopEvent=function(x312) { x312=(x312)?x312:((window.event)?event:null); var x313=MVUtil.getEventSource(x312); var x314=MVUtil.getMVIndFOIsControlAndFOI(x313); var x315=x314.ifctl; if(!x315) return; var x316=x314.foi; if(x312&&x316&&!x316._f167) { MVUtil._f314(x312); } } _f744.prototype._f888=function(x317) { x317=(x317)?x317:((window.event)?event:null); var x318=MVUtil.getEventSource(x317); var x319=MVUtil.getMVIndFOIsControlAndFOI(x318); var x320=x319.ifctl; if(!x320) return; var x321=x319.foi; x320.mouseL1=MVUtil._f313(x317); x320.IndStopPropagation(x317); } _f744.prototype.IndMouseUp=function(x322) { x322=(x322)?x322:((window.event)?event:null); var x323=MVUtil.getEventSource(x322); var x324=MVUtil.getMVIndFOIsControlAndFOI(x323); var x325=x324.ifctl; if(!x325) return; var x326=x324.foi; x325.mouseL2=MVUtil._f313(x322); if(x325.mouseL1.x==x325.mouseL2.x&&x325.mouseL1.y==x325.mouseL2.y) { if(x322.button==2) return; if(!x326._f533&&x325.parent._f534) return; var x327=MVUtil.getMouseLocation(x325.parent,x322); if(x323.point) x327=x323.point; if(x326._f146||(x326._f143[MVEvent.MOUSE_CLICK]!=null&&x326._f143[MVEvent.MOUSE_CLICK].length!=0)) { x325.parent._f310(); var x328=MVSdoGeometry.createPoint(x327.sdo_point.x,x327.sdo_point.y,x325.parent.srid); if(x326._f146) x326._f146(x328,x326,MVUtil.getEvent(x322)); MVUtil.runListeners(x326._f143,MVEvent.MOUSE_CLICK,[x328,x326,MVUtil.getEvent(x322)]); } else if(x326._f484&&x326._f106) { var x329=new MVInfoWindowTab(x326._f585,x326._f106); var x330=new Array(x329); if(x326._f586>0&&x326._f587>0) x325.parent._f196._f488(x326.id,x327.sdo_point.x,x327.sdo_point.y, x330,0,x326._f586,x326._f587,x326._f588,x326._f585); else x325.parent._f196._f488(x326.id,x327.sdo_point.x,x327.sdo_point.y, x330,0,null,null,x326._f588,x326._f585); return; } } x325.IndStopEvent(x322); } _f744.prototype.IndMouseOver=function(x331) { x331=(x331)?x331:((window.event)?event:null); var x332=MVUtil.getEventSource(x331); var x333=MVUtil.getMVIndFOIsControlAndFOI(x332); var x334=x333.ifctl; if(!x334) return; var x335=x333.foi; var x336=MVUtil.getMouseLocation(x334.parent,x331); if(x332.point) x336=x332.point; var x337=MVSdoGeometry.createPoint(x336.sdo_point.x,x336.sdo_point.y,x334.parent.srid); if(x335.overLayFOIs) MVUtil.runListeners(x335._f143,MVEvent.MOUSE_OVER,[x337,x335.overLayFOIs,MVUtil.getEvent(x331)]); else { if(x335._f148) { x335._f148(x337,x335,MVUtil.getEvent(x331)); } MVUtil.runListeners(x335._f143,MVEvent.MOUSE_OVER,[x337,x335,MVUtil.getEvent(x331)]); } if(x335._f142) { var x338=x335.node if(x338 instanceof Array) { x335._f895=new Array(); for(var x339=0;x339x360) { x362=Math.ceil((x357-x360)/x361); x357-=x361*x362; x358-=x361*x362; } if(x358<=x360){ this.maparea.push({minx:x357,maxx:x358,n:x362}); } else{ this.maparea.push({minx:x357,maxx:x360,n:x362}); x358-=x361; x362++; while(x358>x360) { this.maparea.push({minx:x359,maxx:x360,n:x362}); x358-=x361; x362++; } this.maparea.push({minx:x359,maxx:x358,n:x362}); } } var x363=this.maparea.length; var x364=parseInt(x363/2); if(x363>0&&x364==x363/2) { var x365=this.maparea[0].maxx-this.maparea[0].minx; var x366=this.maparea[x363-1].maxx-this.maparea[x363-1].minx; if(x365>x366) this.centerArea=x363/2-1; else this.centerArea=x363/2 } else this.centerArea=Math.floor(x363/2); } _f744.prototype.setIndFOIListners=function(x367,x368) { if(x367.origFOI) x367=x367.origFOI; x368.onmouseover=this.IndMouseOver; x368.onmouseout=this.IndMouseOut; x368.ondblclick=this.IndStopEvent; x368.onclick=this.IndStopEvent; x368.onmousemove=this.IndMouseMove; if(x367._f155&&x367._f905()) { if((x367._f143[MVEvent.MOUSE_CLICK]!=null&&x367._f143[MVEvent.MOUSE_CLICK].length!=0)||x367._f146||((x367._f484&&x367._f106))) MVUtil._f107(x368,"pointer") x368.onmousedown=this._f888; x368.onmouseup=this.IndMouseUp; x368.oncontextmenu=this.IndRightClick; } if(x367.cursorStyle) MVUtil._f107(x368,x367.cursorStyle); MVUtil._f349(x368); } _f744.prototype._f875=function(x369) { x369.wr=new Array(); if(x369.areacode!=null) { var x370=this.maparea[0].n; x370+=x369.areacode; x369.wr.push(x370) return; } var x370=0; var x371=this.parent.msi._f338; var x372=this.parent.msi._f337; var x373=x372-x371; var x374=this.parent.msi._f338+x373/2; var x375=x369._f891[2]; var x376=x369._f891[0]; var x377=false; if(x376x372) { x369.wr.push(this.maparea[0].n); if(x376(x376+x373)) x369.wr.push(this.maparea[x378].n); } } else{ for(var x378=1;x378x376) x369.wr.push(this.maparea[x378].n); } } } else { for(var x378=0;x378this.maparea[x378].minx&&x376this.maparea[x378].minx&&x375this.maparea[x378].maxx)) x369.wr.push(this.maparea[x378].n); } } } _f744.prototype._f887=function(x379,x380,x381,x382) { var x383=parseInt(x379.style.left); if(x380.wr&&x380.wr.length>1) { var x384=false; if(x380._f894) { x384=true; } if(!x382) { x382=1; } if(x382==1) { x380.node=new Array(x379); x380._f904=new Array(x380._f904); if(x384) { x380._f894=new Array(x380._f894); } } for(var x385=x382;x385=0) { var x387=this.parent.getFOIGroup(x380._f538); x387._f570(x386,x380); } else if(x380._f748) this._f906.appendChild(x386); else this.div.appendChild(x386); x386.ifctl=x381; x386.orgid=x379.id; if(x384&&x386.childNodes.length>0) { x380._f894.push(x386.childNodes[0]); } if(x380.gtype%10==1||this._f86(x380)||!x380.area) { this.setIndFOIListners(x380,x386); x380._f904.push(x386); } else if(x386.childNodes.length>1) { var x388=x386.childNodes[0]; var x389=x386.childNodes[1]; this.setIndFOIListners(x380,x389); x388.setAttribute("usemap","#f"+x380.id+"clone"+x385,0); x389.setAttribute("name","f"+x380.id+"clone"+x385); x389.setAttribute("id","f"+x380.id+"clone"+x385); if(x389.childNodes.length>0) { x380._f904.push(x389.childNodes[0]); } } x380.node.push(x386); } } } _f744.prototype.detachEventListener=function(x390,x391) { MVUtil.detachEventListener(this._f143,x390,x391); } _f744.prototype.attachEventListener=function(x392,x393) { MVUtil.attachEventListener(this._f143,x392,x393) } _f744.prototype.IndMouseMove=function(x394) { x394=(x394)?x394:((window.event)?event:null); var x395=MVUtil.getEventSource(x394); var x396=MVUtil.getMVIndFOIsControlAndFOI(x395); var x397=x396.ifctl; if(!x397) return; var x398=x396.foi; var x399=MVUtil.getMouseLocation(x397.parent,x394); if(x395.point) x399=x395.point; var x400=MVSdoGeometry.createPoint(x399.sdo_point.x,x399.sdo_point.y,x397.parent.srid); MVUtil.runListeners(x398._f143,MVEvent.MOUSE_MOVE,[x400,x398,MVUtil.getEvent(x394)]); } function MVRedlineTool(linestyle,areastyle,foiServerURL) { var _f252=eval(_f30._f252); _f30._f252=(++_f252); this.id=_f252; this._f495=0; this._f496=0; this.parent=""; this._f139=foiServerURL; this._f497=null; this._f498=linestyle; this._f375=areastyle; this._f115=0; this._f116=0; this._f499=0; this._f500=0; this.mouseDownX=0; this.mouseDownY=0; this.pointdx=0; this.pointdy=0; this._f501=new Array(); this.state=0; this._f192=0; this._f502=0; this._f503=0; this._f504=null; this._f505=5; this._f506=5; this._f507=false; this._f508=false; this._f509=null; var _f510=this; this._f143=new Array(); this._f511=null; this._f383=null; this._f512=new Array(); this._f513=new Array(); this.gtype=3; this._f514=null; this._f515=null; this._f516=null; this._f517=null; this._f518=null; this._f519=false; this.textStyle=""; this._f520=null; this._f521=true; this.editingMode={deletePoint:true,dragPoint:true,deleteLine:true,dragLine:true}; this.pointGenerateOnTopZIndex=101; this._f522=function(x0,x1,x2) { if(!_f510.editingMode) return ; var x3=x1.objType4RedLineTool; switch(x3) { case -1: if(!_f510.editingMode.deletePoint) return ; break; case -2: if(!_f510.editingMode.deleteLine) return ; break; } _f510._f514=x1; var x4=x0.getPointX(); var x5=MVUtil.calAreaCodeFromCenter(_f510.parent,x4); var x6=new MVMenu(_f510.parent,x0,x5); _f510._f516=x6.menuFOIId; switch(x3) { case -1: x6.addMenuItem(MVi18n._f425("delete"),_f510._f523); break; case -2: x0.sdo_ordinates[0]=x4; x0.sdo_point.x=x4; _f510._f515=x0; x6.addMenuItem(MVi18n._f425("delete"),_f510._f524); x6.addMenuItem(MVi18n._f425("addPoint"),_f510._f525); break; } MVUtil._f314(x2); } this._f526=function(x7,x8,x9) { if(!_f510.editingMode) { MVUtil._f314(x9); return ; } var x10=x8.objType4RedLineTool; switch(x10) { case -1: if(!_f510.editingMode.dragPoint) return ; break; case -2: if(!_f510.editingMode.dragLine) return ; break; } if(_f510._f503!=0&&_f510._f503!=1) return; _f510._f503=1; _f510._f514=x8; MVUtil._f314(x9); } this._f527=function(x11,x12,x13) { if(_f510._f503!=1) return; _f510._f503=0; _f510._f514=null; MVUtil._f314(x13); } this._f524=function() { var x14=_f510._f514; if(!x14) return; var x15=x14.objType4RedLineTool; if(x15==-2) { _f510.removeEdge(x14); } } this._f523=function() { var x16=_f510._f514; if(!x16) return; var x17=x16.objType4RedLineTool; if(x17==-1) { _f510.removeVertex(x16); } } this._f525=function() { var x18=_f510._f514; if(!x18) return; var x19=x18.objType4RedLineTool; if(x19==-2) { var x20=_f510._f528(x18); if(x20[0]) { var x21=_f510._f515; var x22=null; var x23=null; if(x21) { x22=x21.getPointX(); x23=x21.getPointY(); } if(x22&&x23) _f510.addVertex(x20[1]+1,x22,x23); } } } this._f529=function(x24) { x24=(x24)?x24:((window.event)?event:null); if(_f30._f87=="IF") { _f510.mouseDownX=x24.clientX+document.body.scrollLeft; _f510.mouseDownY=x24.clientY+document.body.scrollTop; } else { _f510.mouseDownX=x24.pageX; _f510.mouseDownY=x24.pageY; } if(_f510._f503==1) { _f30._f253=_f510; _f510._f503=2; _f510.parent._f530(x24); _f510._f115=_f510.parent._f394(); _f510._f116=_f510.parent._f395(); MVUtil._f314(x24); return; } if((_f30._f253)!=_f510|| (x24!=null&&x24.button==2)) return; MVUtil._f314(x24); _f510._f192=1; _f510._f502=1; if(_f30._f87=="IF") { _f510._f499=x24.clientX+document.body.scrollLeft; _f510._f500=x24.clientY+document.body.scrollTop; } else { _f510._f499=x24.pageX; _f510._f500=x24.pageY; } } this.keepTwoPointsInHalfEarth=function(x25,x26,x27) { if(_f510.parent.wraparound) { if(_f510.parent._f368.maparea.length==1) { x26.areacode=_f510.parent._f368.centerArea; return; } var x28=_f510.parent.msi._f337-_f510.parent.msi._f338; var x29; if(x27) x29=x27.areacode; else x29=_f510.parent._f368.centerArea; var x30=MVUtil.keepInCSBoundary(_f510.parent,x26.getGeometry().getPointX()); var x31; if(x27) x31=MVUtil.keepInCSBoundary(_f510.parent,x27.getGeometry().getPointX()); else x31=MVUtil.keepInCSBoundary(_f510.parent,_f510.parent._f369());; _f510._f501[x25*2]=x30; x26.areacode=x29; var x32=x30-x31; while(Math.abs(x32)>x28/2) { if(x32<0) { x30=x30+x28; x26.areacode=x29+1; } else { x30=x30-x28; x26.areacode=x29-1; } x32=x30-x31; } } } this.refreshRedline=function(x33) { var x34=function(x35,x36) { x35=MVUtil.keepInCSBoundary(_f510.parent,x35); x36=MVUtil.keepInCSBoundary(_f510.parent,x36); var x37=x36-x35; if(x37>0) x35=x35+(_f510.parent.msi._f337-_f510.parent.msi._f338); else x36=x36+(_f510.parent.msi._f337-_f510.parent.msi._f338); if(Math.abs(x36-x35)>Math.abs(x37)) return Math.abs(x37); else return Math.abs(x36-x35); } if(_f510.parent.wraparound) { var x38=_f510._f512; if(_f510.getStatus()==1) { if(x38.length!=0) { var x39=0; var x40=Number.MAX_VALUE; var x41=MVUtil.keepInCSBoundary(_f510.parent,_f510.parent._f369()); for(var x42=0;x42x43) { x40=x43; x39=x42; } } _f510.keepTwoPointsInHalfEarth(x39,x38[x39],null); if(x39>0) { for(var x42=x39-1;x42>=0;x42--) { _f510.keepTwoPointsInHalfEarth(x42,x38[x42],x38[x42+1]); } } if(x39x43) { x45=x43; x46=x42; } } _f510.keepTwoPointsInHalfEarth(x46,x38[x46],null); if(x46>0) { for(var x42=x46-1;x42>=0;x42--) { _f510.keepTwoPointsInHalfEarth(x42,x38[x42],x38[x42+1]); } } if(x46_f510.parent.msi._f457) _f510._f116=_f510.parent.msi._f457; else if(_f510._f116<_f510.parent.msi._f454) _f510._f116=_f510.parent.msi._f454; if(_f510.gtype==1) { while(_f510._f512.length>0) { var x57=_f510._f512.pop(); _f510.parent.removeFOI(x57); } while(_f510._f513.length>0) { var x57=_f510._f513.pop(); _f510.parent.removeFOI(x57); } _f510._f512=new Array(); _f510._f513=new Array(); _f510.parent.removeFOI("-RL2RL"+_f510.id); _f510.parent.removeFOI("-RL10RL"+_f510.id); _f510._f501=new Array(); } if(_f510._f501!=null&&_f510._f501.length>=2 &&_f510._f115==_f510._f501[_f510._f501.length-2] &&_f510._f116==_f510._f501[_f510._f501.length-1]) return; var x58=null; var x59="-RL8RL"+_f510.id+"_"+(++_f510._f495); if(_f510._f504) { x58=new MVFOI(x59, MVSdoGeometry.createPoint(_f510._f115,_f510._f116,_f510.parent.srid),"", _f510._f504,_f510._f505,_f510._f506); } else { if(!_f510._f497) { _f510._f497=new MVStyleMarker(_f30._f258,"vector"); _f510._f497.setStrokeColor("000000"); _f510._f497.setStrokeWidth(1.5); _f510._f497.setFillColor("ff5555"); _f510._f497.setVectorShape("c:30"); } x58=new MVFOI(x59,MVSdoGeometry.createPoint(_f510._f115,_f510._f116,_f510.parent.srid), _f510._f497,null,12,12); } x58.enableInfoTip(false); x58._f533=true; x58.enableInfoWindow(false); x58.objType4RedLineTool=-1; x58.setEventListener(MVEvent.MOUSE_RIGHT_CLICK,_f510._f522); x58.setEventListener(MVEvent.MOUSE_OVER,_f510._f526); x58.setEventListener(MVEvent.MOUSE_OUT,_f510._f527); x58.setMouseCursorStyle("pointer"); x58.setBringToTopOnMouseOver(false); x58.setTopFlag(true); if(_f510._f519) x58.setZIndex(_f510.pointGenerateOnTopZIndex); if(_f510._f507&&_f510._f512.length==0) { x58.setEventListener(MVEvent.MOUSE_CLICK,function() { _f510._f503=0; if(_f510._f501.length<=2) return; _f510._f501.push(_f510._f501[0]); _f510._f501.push(_f510._f501[1]); _f510.generate(); if(_f510._f383) _f510._f383(); MVUtil.runListeners(_f510._f143,MVEvent.FINISH); return ; }); } _f510._f512.push(x58); _f510._f501.push(_f510._f115); _f510._f501.push(_f510._f116); if(_f510._f512.length==0) _f510.keepTwoPointsInHalfEarth(0,x58,null); else _f510.keepTwoPointsInHalfEarth(_f510._f512.length-1,x58,_f510._f512[_f510._f512.length-2]); _f510.parent.addFOI(x58); FOILineLen=(_f510._f501.length); if(FOILineLen>=4) { var x60=new MVFOI(("-RL6RL"+_f510.id+"_"+(++_f510._f496)), MVSdoGeometry.createLineString(_f510._f501.slice((FOILineLen-4)), (_f510.parent.srid)),_f510._f498,_f510._f139); x60.setTopFlag(_f510._f519); x60.enableInfoTip(false); x60.enableInfoWindow(false); x60.objType4RedLineTool=-2; x60.setEventListener(MVEvent.MOUSE_RIGHT_CLICK,_f510._f522); x60.setEventListener(MVEvent.MOUSE_OVER,_f510._f526); x60.setEventListener(MVEvent.MOUSE_OUT,_f510._f527); x60.setMouseCursorStyle("pointer"); x60.setBringToTopOnMouseOver(false); if(_f510._f512[_f510._f512.length-2].areacode<_f510._f512[_f510._f512.length-1].areacode) x60.areacode=_f510._f512[_f510._f512.length-2].areacode; else x60.areacode=_f510._f512[_f510._f512.length-1].areacode; _f510.parent.addFOI(x60); _f510._f513.push(x60); } if(_f510._f508&&FOILineLen>4) { var x61=new Array(FOILineLen+2); for(var x62=0;x62(x71*x71)) _f510._f502=2; } } this.getStatus=function() { return this.state; } this.init=function(x72) { if(!_f510._f520) { _f510._f520=new MVMapDecoration("",0.4,0.9); _f510._f520.afterDisAction=_f510.redlineInfoLink; _f510.parent.addMapDecoration(_f510._f520); _f510._f520.setDraggable(true); _f510._f520.setDraggable(true); _f510._f520.setVisible(false); } switch(x72) { case 1: this.gtype=x72; break; case 2: this.gtype=x72; break; default: this.gtype=x72=3; } if(!this._f497) this.setRenderingStyle(MVRedlineTool.STYLE_POINT,null); if(!this._f498) this.setRenderingStyle(MVRedlineTool.STYLE_LINE,null); if(!this._f375) this.setRenderingStyle(MVRedlineTool.STYLE_AREA,null); this.parent._f534=true; if(this.state==0) { if(_f30._f87=="IF") { this.parent._f401.attachEvent("onmousedown",this._f529); this.parent._f401.attachEvent("onmouseup",this._f531); this.parent._f401.attachEvent("onmousemove",this.mouse_move); } else { this.parent._f401.addEventListener("mousedown",this._f529,false); this.parent._f401.addEventListener("mouseup",this._f531,false); this.parent._f401.addEventListener("mousemove",this.mouse_move,false); } } _f30._f253=this; if(this._f508) { this._f509=new MVFOI("-RL10RL"+this.id, MVSdoGeometry.createPolygon([0,0,0,0,0,0,0,0],this.parent.srid), this._f375, this._f139); this._f509.enableInfoTip(false); this._f509.enableInfoWindow(false); this._f509.setClickable(false); this.parent.addFOI(this._f509); } while(this._f512.length>0) { var x73=this._f512.pop(); this.parent.removeFOI(x73); } while(this._f513.length>0) { var x73=this._f513.pop(); this.parent.removeFOI(x73); } this._f512=new Array(); this._f513=new Array(); this.parent.removeFOI("-RL2RL"+this.id); this.parent.removeFOI("-RL10RL"+this.id); if(this._f516!=null) this.parent.removeFOI(this._f516); this._f501=new Array(); this.state=1; this.parent._f368.attachEventListener("refreshFOI",this.refreshRedline); MVUtil.runListeners(this._f143,MVEvent.INIT,[MVToolBar.BUILTIN_REDLINE]); } this.setTextStyle=function(x74) { _f510.textStyle=x74; } this.setControlPanelVisible=function(x75) { this._f521=x75; if(this._f520) this._f520.setVisible(x75); } this.redlineInfoLink=function() { var x76=document.getElementById("finishLink_"+_f510.id); var x77=document.getElementById("clearLink_"+_f510.id); x76.onclick=function() { if(_f510.finishLinkClick) { _f510.finishLinkClick(); } _f510.generate(); if(_f510.getStatus()!=2) _f510.clear(); } x77.onclick=function() { if(_f510.clearLinkClick) { _f510.clearLinkClick(); } _f510.clear(); } } this.getInfoDecorationDiv=function() { return document.getElementById("redline_cpan_div_"+this.id); } this.generate=function() { var x78=this.gtype; if(this.state==1) { if(x78==3&&this._f501.length<6) { MVi18n._f42("MVRedlineTool.generate","MAPVIEWER-05512",null,this.parent?this.parent._f20:null); return; } else if(x78==2&&this._f501.length<4) { MVi18n._f42("MVRedlineTool.generate","MAPVIEWER-05512",null,this.parent?this.parent._f20:null); return; } else if(x78==1&&this._f501.length<2) { MVi18n._f42("MVRedlineTool.generate","MAPVIEWER-05512",null,this.parent?this.parent._f20:null); return; } var x79=this; var x80=function() { if(x79._f513.length>0) { if(!x79._f513[x79._f513.length-1].node) { setTimeout(x80,50); return ; } } var x81=null; if(x79._f512&&x79._f512[0]) { x81=x79._f512[0].areacode; for(var x82=1;x820) { var x83=x79._f513.pop(); x79.parent.removeFOI(x83); } x79._f513=new Array(); if(x79._f516!=null) x79.parent.removeFOI(x79._f516); x79.parent.removeFOI("-RL10RL"+x79.id); var x84=x79._f501.length; if(x78==3&&(x79._f501[0]!=x79._f501[x84-2]||x79._f501[1]!=x79._f501[x84-1])) { x79._f501.push(x79._f501[0]); x79._f501.push(x79._f501[1]); } var x85=null; switch(x78) { case 1: if(x79._f504) x85=new MVFOI("-RL2RL"+x79.id,MVSdoGeometry.createPoint(x79._f501[0],x79._f501[1],x79.parent.srid),"",x79._f504,x79._f505,x79._f506); else x85=new MVFOI("-RL2RL"+x79.id,MVSdoGeometry.createPoint(x79._f501[0],x79._f501[1],x79.parent.srid),x79._f497,x79._f139); break; case 2: x85=new MVFOI("-RL2RL"+x79.id,MVSdoGeometry.createLineString(x79._f501,x79.parent.srid),x79._f498,x79._f139); break; case 3: x85=new MVFOI("-RL2RL"+x79.id,MVSdoGeometry.createPolygon(x79._f501,x79.parent.srid),x79._f375,x79._f139); break; } x85.areacode=x81; x85.enableInfoTip(false); x85.enableInfoWindow(false); x85.setClickable(false); x85.setTopFlag(x79._f519); x79.parent.addFOI(x85); x79.parent._f534=false; if(_f510._f383) _f510._f383(); MVUtil.runListeners(_f510._f143,MVEvent.FINISH); } x80(); } } this.generateArea=this.generate; this.clear=function() { if(!this.parent) return ; var x86=false; while(this._f512.length>0) { var x87=this._f512.pop(); this.parent.removeFOI(x87); x86=true; } while(this._f513.length>0) { var x87=this._f513.pop(); this.parent.removeFOI(x87); x86=true; } if(this.parent.getFOI("-RL2RL"+this.id)) x86=true; this.parent.removeFOI("-RL2RL"+this.id); if(this.parent.getFOI("-RL10RL"+this.id)) x86=true; this.parent.removeFOI("-RL10RL"+this.id); if(this._f516!=null) this.parent.removeFOI(this._f516); if(_f30._f87=="IF") { this.parent._f401.detachEvent("onmousedown",this._f529); this.parent._f401.detachEvent("onmouseup",this._f531); this.parent._f401.detachEvent("onmousemove",this.mouse_move); } else { this.parent._f401.removeEventListener("mousedown",this._f529,false); this.parent._f401.removeEventListener("mouseup",this._f531,false); this.parent._f401.removeEventListener("mousemove",this.mouse_move,false); } if(_f510._f520) { _f510._f520.setVisible(false); var x88=_f510._f520.getContainerDiv(); for(var x89=0;x89=6&&this._f501[0]==this._f501[x93-2]&&this._f501[1]==this._f501[x93-1]) { var x94=MVSdoGeometry.createPolygon(this._f501,this.parent.srid); return x94; } else return null; } this.getSdoGeometry=function() { var x95=this._f501.length; var x96=null; if(x95>=6&&this._f501[0]==this._f501[x95-2]&&this._f501[1]==this._f501[x95-1]) x96=MVSdoGeometry.createPolygon(this._f501,this.parent.srid); else if(x95>=4) x96=MVSdoGeometry.createLineString(this._f501,this.parent.srid); else if(x95==2) x96=MVSdoGeometry.createPoint(this._f501,this.parent.srid); return x96; } this.getPolygonFOI=function() { if(this.gtype==3) return this.parent.getFOI("-RL2RL"+this.id); else return null; } this.getFOI=function() { return this.parent.getFOI("-RL2RL"+this.id); } this.getOrdinates=function() { return this._f501; } this.addEventListener=function(x97,x98) { this.setEventListener(x97,x98); } this.setEventListener=function(x99,x100) { if(x99==MVEvent.NEW_SHAPE_POINT||x99==MVEvent.MOUSE_CLICK) this._f511=x100; else if(x99=="on_finish"||x99==MVEvent.FINISH) this._f383=x100; else if(x99==MVEvent.MODIFY) this._f518=x100; } this.attachEventListener=function(x101,x102) { MVUtil.attachEventListener(_f510._f143,x101,x102) } this.detachEventListener=function(x103,x104) { MVUtil.detachEventListener(_f510._f143,x103,x104); } } MVRedlineTool.prototype.setAutoClose=function(x0) { this._f507=x0; } MVRedlineTool.prototype.setEditingMode=function(x1) { if(!x1) this.editingMode={deletePoint:false,dragPoint:false,deleteLine:false,dragLine:false}; else this.editingMode=x1; } MVRedlineTool.prototype.getEditingMode=function() { return this.editingMode; } MVRedlineTool.prototype.setGeneratePolygonTop=function(x2) { this._f519=x2; } MVRedlineTool.prototype.setFillArea=function(x3) { this._f508=x3; } MVRedlineTool.prototype.getPointNumber=function() { return this._f512.length; } MVRedlineTool.prototype.getPointFOIs=function() { return this._f512; } MVRedlineTool.prototype.getLineFOIs=function() { return this._f513; } MVRedlineTool.prototype.setRenderingStyle=function(x4,x5) { if(x5&&!(typeof(x5)=="string"||(typeof(x5)=="object" &&x5.getXMLString!=null))) { MVi18n._f42("MVRedlineTool.setRenderingStyle","MAPVIEWER-05519","objStyle", this.parent?this.parent._f20:null); } else { switch(x4) { case MVRedlineTool.STYLE_POINT: if(!x5) { var x6=new MVStyleMarker(_f30._f258,"vector"); x6.setStrokeColor("000000"); x6.setStrokeWidth(1.5); x6.setFillColor("ff5555"); x6.setVectorShape("c:30"); this._f497=x6; } else this._f497=x5; break; case MVRedlineTool.STYLE_LINE: if(!x5) { var x7=''+ ''; var x8=new MVXMLStyle(_f30._f259,x7); this._f498=x8;} else this._f498=x5; break; case MVRedlineTool.STYLE_AREA: if(!x5) { var x8=new MVStyleColor(_f30._f260,"FF0000","FF0000"); x8.setFillOpacity(100); this._f375=x8; } else this._f375=x5; break; } } } MVRedlineTool.prototype._f535=function(x9) { var x10=this._f512.length; var x11=null; var x12=null; if(x9!=null) { if(isNaN(x9)) { var x13=0; for(;x13=0) { x11=this._f512[x9]; x12=x9; } else if(x9==x10) { x12=x9; } } return [x11,x12]; } MVRedlineTool.prototype._f528=function(x14) { var x15=this._f513.length; var x16=null; var x17=-1; if(x14!=null) { if(isNaN(x14)) { var x18=0; for(;x18=0) { x16=this._f512[x14]; x17=x14; } } return [x16,x17]; } MVRedlineTool.prototype.removeVertex=function(x19) { var x20=this._f535(x19); if(!x20||!x20[0]) return; var x21=x20[0]; var x22=x20[1]; var x23=this._f512.length; this._f512.splice(x22,1); var x24=(x22*2); this._f501.splice(x24,2); this.parent.removeFOI(x21); var x25=x22>0?true:false; var x26=(x22<(x23-1))?true:false; var x27=null; if(x25&&x26) { x27=this._f513[x22-1]; if(!this.parent.wraparound) { x27.updateGeometry(MVSdoGeometry.createLineString(this._f501.slice((x24-2),(x24+2)), (this.parent.srid))); } x27=this._f513[x22]; this.parent.removeFOI(x27); this._f513.splice(x22,1); } else if(x25) { x27=this._f513[x22-1]; this.parent.removeFOI(x27); this._f513.splice((x22-1),1); } else if(x26) { x27=this._f513[x22]; this.parent.removeFOI(x27); this._f513.splice(x22,1); } if(this.parent.wraparound) { this.refreshRedline(true); } if(this._f518) this._f518(); MVUtil.runListeners(this._f143,MVEvent.MODIFY); } MVRedlineTool.prototype.removeEdge=function(x28,x29) { var x30=this._f528(x28); if(!x30||!x30[0]) return; var x31=x30[0]; var x32=x30[1]; if(x29=="left") this.removeVertex(x32); else this.removeVertex(x32+1); } MVRedlineTool.prototype.moveVertex=function(x33,x34,x35) { var x36=this._f535(x33); if(!x36||!x36[0]) return; var x37=x36[0]; var x38=x36[1]; if(x35>this.parent.msi._f457) x35=this.parent.msi._f457; else if(x350?true:false; var x42=(x38<(x40-1))?true:false; var x43=null; var x44=this; this._f517=function() { x44.moveToNewEdge(x41,x42,x38,x39,x37,x34,x35); if(x44._f518) x44._f518(); MVUtil.runListeners(x44._f143,MVEvent.MODIFY); }; } MVRedlineTool.prototype.moveToNewEdge=function(x45,x46,x47,x48,x49,x50,x51) { if(this.parent.wraparound) { this.refreshRedline(true); } else { if(x45) { var x52=this._f513[x47-1]; x52.updateGeometry(MVSdoGeometry.createLineString(this._f501.slice((x48-2),(x48+2)), (this.parent.srid))); } if(x46) { var x52=this._f513[x47]; x52.updateGeometry(MVSdoGeometry.createLineString(this._f501.slice(x48,(x48+4)), (this.parent.srid))); } } } MVRedlineTool.prototype.moveEdge=function(x53,x54,x55) { var x56=this._f528(x53); if(!x56||!x56[0]) return; var x57=x56[0]; var x58=x56[1]; var x59=(x58*2); this._f501[x59]=this._f501[x59]+x54; this._f501[x59+1]=this._f501[x59+1]+x55; if(this._f501[x59+1]>this.parent.msi._f457) this._f501[x59+1]=this.parent.msi._f457; else if(this._f501[x59+1]this.parent.msi._f457) this._f501[x59+3]=this.parent.msi._f457; else if(this._f501[x59+3]0?true:false; var x63=(x58<(x61-2))?true:false; var x64=null; var x65=this; this._f517=function() { x65.moveToNewEdge2(x62,x63,x58,x59,x57); if(x65._f518) x65._f518(); MVUtil.runListeners(x65._f143,MVEvent.MODIFY); }; } MVRedlineTool.prototype.moveToNewEdge2=function(x66,x67,x68,x69,x70){ this._f512[x68].areacode=MVUtil.calAreaCodeFromCenter(this.parent,this._f501[x69]); this._f512[x68+1].areacode=MVUtil.calAreaCodeFromCenter(this.parent,this._f501[x69+2]); this._f512[x68].updateGeometry(MVSdoGeometry.createPoint(this._f501[x69],this._f501[x69+1], (this.parent.srid))); this._f512[x68+1].updateGeometry(MVSdoGeometry.createPoint(this._f501[x69+2],this._f501[x69+3], (this.parent.srid))); if(this.parent.wraparound) { this.refreshRedline(true); } else { x70.updateGeometry(MVSdoGeometry.createLineString(this._f501.slice(x69,(x69+4)), (this.parent.srid))); if(x66) { var x71=this._f513[x68-1]; x71.updateGeometry(MVSdoGeometry.createLineString(this._f501.slice((x69-2),(x69+2)), (this.parent.srid))); } if(x67) { var x71=this._f513[x68+1]; x71.updateGeometry(MVSdoGeometry.createLineString(this._f501.slice(x69+2,(x69+6)), (this.parent.srid))); } } x70.mouseDownX=null; x70.mouseDownY=null; } MVRedlineTool.prototype.addVertex=function(x72,x73,x74) { var x75=this._f535(x72); if(!x75||!x75[1]&&x72!=this._f512.length) return; var x76=x75[0]; var x77=x75[1]; var x78=this._f512.length; var x79=null; var x80="-RL8RL"+this.id+"_"+(++this._f495); if(this._f504) x79=new MVFOI(x80,MVSdoGeometry.createPoint(x73,x74,this.parent.srid), "",this._f504,this._f505,this._f506); else x79=new MVFOI(x80,MVSdoGeometry.createPoint(x73,x74,this.parent.srid), this._f497,null,12,12); if(this._f519) x79.setZIndex(this.pointGenerateOnTopZIndex); x79.enableInfoTip(false); x79._f533=true; x79.enableInfoWindow(false); x79.objType4RedLineTool=-1; x79.setEventListener(MVEvent.MOUSE_RIGHT_CLICK,this._f522); x79.setEventListener(MVEvent.MOUSE_OVER,this._f526); x79.setEventListener(MVEvent.MOUSE_OUT,this._f527); x79.setMouseCursorStyle("pointer"); x79.setBringToTopOnMouseOver(false); x79.setTopFlag(true); x79.areacode=MVUtil.calAreaCodeFromCenter(this.parent,x73); this._f512.splice(x77,0,x79); var x81=x77*2; this._f501.splice(x81,0,x73,x74); this.parent.addFOI(x79); if(this._f520&&!this._f520.isVisible()&&this._f521) this._f520.setVisible(true); if(this._f512.length==1) return ; var x82=x771) { MVi18n._f42("MVRectangleTool.setDivFillColor","MAPVIEWER-05519","opacity", this.parent?this.parent._f20:null); return ; } else { if(window.ActiveXObject) { this.innerRectangleDiv.style.filter="alpha(opacity="+(x7*100)+")"; } else { this.innerRectangleDiv.style.opacity=x7; } } } MVRectangleTool.prototype.setAreaStyle=function(x8) { this._f375=x8; } MVRectangleTool.prototype._f393=function() { this._f376=this.parent._f394(); this._f377=this.parent._f395(); } MVRectangleTool.prototype._f396=function() { this._f378=this.parent._f394(); this._f379=this.parent._f395(); var x9=Math.abs(this._f378-this._f376); var x10=this.parent.msi._f337-this.parent.msi._f338; if(x9>x10) { if(this._f3760) x15++; if(x16>0) x16++; if(this._f87=="NS") { if(x15==0) x15=(2*this._f374); if(x16==0) x16=(2*this._f374); this._f492.style.width=Math.abs(x15-(2*this._f374))+'px'; this._f492.style.height=Math.abs(x16-(2*this._f374))+'px'; this._f492.style.clip="rect(0px, "+(x15)+"px, "+ (x16)+"px, 0px)"; } else { this._f492.style.width=x15+'px'; this._f492.style.height=x16+'px'; this._f492.style.clip="rect(0px, "+(x15+(2*this._f374))+"px, "+ (x16+(2*this._f374))+"px, 0px)"; } this._f492.style.visibility="visible"; } MVRectangleTool.prototype.generateArea=function() { if(this._f388!=3) return; this.parent.removeFOI("MVRectangleTool"+this.id); if(!this._f375) return; this._f493(); if(this._f376!=this._f378&&this._f377!=this._f379) { this.getRectangle(); var x19=new MVFOI("MVRectangleTool"+this.id,this._f386,this._f375,this._f371); x19.areacode=MVUtil.calAreaCodeFromCenter(this.parent,this._f376=x37|| x41<=0||x41>=x38|| x35<=0||x35>=document.body.clientWidth|| x36<=0||x36>=document.body.clientHeight) { return this.onmouseup(x34); } } }); this.parent._f368.attachEventListener("refreshFOI",this.refreshRetangle); MVUtil.runListeners(x22._f143,MVEvent.START,[MVToolBar.BUILTIN_DISTANCE]); } MVRectangleTool.prototype.clear=function() { this._f493(); this.parent.removeFOI("MVRectangleTool"+this.id); this._f388=0; this.parent._f400(); MVUtil.runListeners(this._f143,MVEvent.CLEAR); } MVRectangleTool.prototype.getRectangle=function() { if(this._f376!=this._f378&&this._f377!=this._f379) { var x42=this.parent.msi._f337-this.parent.msi._f338; if((this._f378-this._f376)this.parent.msi._f457) x60=this.parent.msi._f457; else if(x60this.parent.msi._f457) x61=this.parent.msi._f457 else if(x611) { MVi18n._f42("MVCircleTool.setPlotDivFillColor","MAPVIEWER-05519","opacity", this.parent?this.parent._f20:null); } else { this._f373.opacity=x3; } } MVCircleTool.prototype.setPlotDivZindex=function(x4) { if(x4!=null) { if(isNaN(x4)) { MVi18n._f42("MVCircleTool.setPlotDivZindex","MAPVIEWER-05519","zindex", this.parent?this.parent._f20:null); } else { this._f373.zIndex=x4; this._f372.style.zIndex=(x4-1); } } } MVCircleTool.prototype._f393=function() { this._f376=this.parent._f394(); this._f377=this.parent._f395(); } MVCircleTool.prototype._f396=function() { this._f378=this.parent._f394(); this._f379=this.parent._f395(); } MVCircleTool.prototype._f397=function() { if(this._f388!=3) { return; } var x5=this.parent._f71; var x6=this.parent._f72; var x7=Math.round((this._f376-this.parent._f369())*x5+(this.parent._f13()/2)); var x8=Math.round((this._f377-this.parent._f398())*(-x6)+(this.parent._f14()/2)); var x9=(this._f378-this._f376)*x5; var x10=(this._f379-this._f377)*(-x6); var x11=Math.round(Math.sqrt(x9*x9+x10*x10)); var x12=Math.floor(x5*(this.parent.msi._f337-this.parent.msi._f338)/2); if(x11>x12) { x11=x12; this._f385=Math.floor((this.parent.msi._f337-this.parent.msi._f338)/2); } else this._f385=x11/x5; var x13=2*(x11+this._f373._f374); var x14=2*(x11+this._f373.divHeight); var x15=x7-x11-Math.round((this._f373._f374)/2); var x16=x8-x11-Math.round((this._f373.divHeight)/2); this._f372.style.left=x15+'px'; this._f372.style.top=x16+'px'; this._f372.style.width=x13+'px'; this._f372.style.height=x14+'px'; this._f372.style.clip="rect(0px, "+x14+"px, "+x13+"px, 0px)"; this._f372.style.visibility="visible"; var x17=(this._f387+this.id+"PlotsDiv"); var x18=document.getElementById(x17); if(x18!=null) this._f372.removeChild(x18); x18=document.createElement("div"); x18.id=x17; x18.style.position="absolute"; x18.style.left=0+'px'; x18.style.top=0+'px'; this._f372.appendChild(x18); var x19=(this.stepPx)/x11; x19=x19>1?1:x19; var x20=Math.acos(x19); var x21=Math.asin(x19); var x22=x20=x51|| x55<=0||x55>=x52|| x49<=0||x49>=document.body.clientWidth|| x50<=0||x50>=document.body.clientHeight) { return this.onmouseup(x48); } } }); this.parent._f368.attachEventListener("refreshFOI",this.refreshCircle); } MVCircleTool.prototype.clear=function() { this.parent.removeFOI(this._f387+this.id); this._f388=0; this.parent._f400(); MVUtil.runListeners(this._f143,MVEvent.CLEAR); } MVCircleTool.prototype.getCircle=function() { if(this._f388==3&&this._f385) return MVSdoGeometry.createCircle(this._f376,this._f377,this._f385,this.parent.srid); else if(this._f386!=null) return (this._f386); else return null; } MVCircleTool.prototype.getCirclePolygon=function() { if(this._f388==3&&this._f385) return MVSdoGeometry.createCirclePolygon(this._f376,this._f377,this._f385,this.parent.srid); else if(this._f386!=null) return (this._f386); else return null; } MVCircleTool.prototype.getRadius=function(x56) { if(!x56) return this._f385; else return MVSdoGeometry.getDistance(this._f376,this._f377,this._f376,this._f377+this._f385,this.parent.srid,x56); } MVCircleTool.prototype.getCenter=function() { return MVSdoGeometry.createPoint(this._f376,this._f377,this.parent.srid); } MVCircleTool.prototype.getCircleFOI=function() { return this.parent.getFOI(this._f387+this.id); } MVCircleTool.prototype.addEventListener=function(x57,x58) { this.setEventListener(x57,x58); } MVCircleTool.prototype.setEventListener=function(x59,x60) { if(x59=="on_start"||x59==MVEvent.START) this._f382=x60; else if(x59=="on_finish"||x59==MVEvent.FINISH) this._f383=x60; else if(x59=="on_drag"||x59==MVEvent.DRAG) this._f384=x60; } MVCircleTool.prototype.attachEventListener=function(x61,x62) { MVUtil.attachEventListener(this._f143,x61,x62) } MVCircleTool.prototype.detachEventListener=function(x63,x64) { MVUtil.detachEventListener(this._f143,x63,x64); } MVCircleTool.prototype.getStatus=function() { return this._f388; } MVCircleTool.prototype.setAreaStyle=function(x65) { this._f375=x65; } function MVi18n() { } MVi18n._f447=null; MVi18n._f448=null; MVi18n._f449=null; MVi18n.URL=null; MVi18n.language=null; MVi18n.country=null; MVi18n.fetched=false; MVi18n.timeoutCount=0; MVi18n.isFetched=function() { if(MVi18n.fetched) return true; MVi18n.timeoutCount++; if(MVi18n.timeoutCount>10) MVi18n.fetched=true; return MVi18n.fetched; } MVi18n._f42=function(x0,x1,x2,x3) { if(x2) x2=" ("+x2+")"; else x2=""; if(x3) x3("["+x0+"] "+MVi18n._f29(x1)+x2); else MVi18n.alert("["+x0+"] "+MVi18n._f29(x1)+x2); } MVi18n._f29=function(x4) { if(MVMessages[x4]) return x4+": "+MVMessages[x4]; else return x4; } MVi18n._f425=function(x5) { if(MVMessages[x5]) return MVMessages[x5]; else return ''; } MVi18n._f450=function() { if(MVi18n.URL==null) return; var localDomain=MVUtil.isLocalDomain(MVi18n.URL); var xmlHttp=localDomain||MVMapView._f229; if(MVMapView._f229&&!localDomain) MVi18n.URL=_f30._f269()+"?rtarget="+MVi18n.URL; var url=null; url=encodeURI(MVi18n.URL+"/mcserver"); try { var _f28=MVUtil.getXMLHttpRequest(xmlHttp); _f28.open("POST",url,true); _f28.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); _f28.onreadystatechange=MVUtil._f134(_f28,function() { try { if(this.readyState!=4) return; if(this.status==200) text=this.responseText; MVUtil.gc(); eval(text); MVi18n.fetched=true; } catch(e) { MVi18n.fetched=true; return ; } }); var params="request=getinfomsgs"; if(MVi18n.language) params=params+"&language="+MVi18n.language; if(MVi18n.country) params=params+"&country="+MVi18n.country; _f28.send(encodeURI(params)); } catch(ex) { MVi18n._f42("MVi18n.fetchMessages","MAPVIEWER-05511",ex); } } MVi18n.addBehavior=function(x6,x7,x8) { if(x6==null||(x6!="func"&&x6!="eval")) { MVi18n.alert("MethodType Error"); return; } if(!x7) { MVi18n.alert("MethodName Error"); return; } if(x8==null||((x8.toLowerCase())!="url"&&(x8.toLowerCase())!="text")) { MVi18n.alert("ArgType Error"); return; } MVi18n._f447=x6; MVi18n._f448=x7; MVi18n._f449=x8; } MVi18n.setURL=function(x9) { if(x9==null||x9=="") { MVi18n.alert("Parameter should not be null or empty. Error occurs in MVi18n.setURL(...)"); return; } MVi18n.URL=x9; } MVi18n.alert=function(x10) { if(MVi18n._f448) { var x11=MVi18n._f448; x11(x10); } else alert(x10); } function MVMapView(x0,x1) { if(!x0) { MVi18n._f42("MVMapView.constructor","MAPVIEWER-05519","mapDiv"); return ; } this._f98=_f206++; MVUtil.objArray.push(this); var x2=this; if(!MVi18n._f448) MVi18n.addBehavior("func",alert,"text"); this.center=null; this.originalCenter=null; this.reCenterTag=false; this._f15=0; this._f16=0; this._f71=0; this._f72=0; this.tileWidth=0; this.tileHeight=0; this._f610=200; this._f611=200; this._f612=0; this._f613=0; this._f614=1; this._f615=0; this._f616=0; this._f11=0; this._f617=false; this._f618=false; this._f604=0; this._f605=0; this._f619=null; this._f620=null; this._f621=0.0; this._f622=0.0; this._f623=0.0; this._f624=0.0; this._f625=0.0; this._f626=0.0; this._f478=0.0; this._f480=0.0; this._f479=0.0; this._f481=0.0; this._f627=false; this.msi=null; this._f628=false; this._f432=true; this._f532=null; this._f629=new Array(); this._f630=new Array(); this._f631=null; this._f632=new Array(); this.mapLayerNumber=0; this._f633=new Array(); this._f196=null; this._f368=null; this._f592=null; this._f634=2; this._f635=4; this._f636=4; this._f637=null; this._f485=false; this._f193=0; this._f63=false; this._f638=new Array(); this._f321=null; this._f323=false; this._f639=true; this._f640=null; this.srid=null; this._f427=null; this._f428=0; this._f641=true; this._f642="one_time"; this._f420=false; this._f422=null; this._f426=false; this._f643=false; this._f421=false; this._f644=false; this._f645=null; this._f646=1; this.centerMarkUrl=null; this.centerMarkW=0; this.centerMarkH=0; this._f143=new Array(); var x3=String(document.location); var x4=x3.indexOf("//"); this._f264=_f30._f266(); this._f647=this._f264; this._f90=this._f264; this._f648="default"; this._f649="move"; this._f650="default"; if(x1) { this._f647=x1; this._f90=x1; if(MVUtil._f3(x1,'/')) { this._f647=x1.substring(0,x1.length-1); this._f90=x1.substring(0,x1.length-1); } if(!MVUtil.isLocalDomain(this._f647)) { this._f647=_f30._f269()+"?rtarget="+this._f647; } } _f30._f263=this._f90+"/foi"; if(_f30._f127==_f30._f251) _f30._f127=this._f90+_f30._f251; MVi18n.setURL(this._f90); if(x0==null) return null; MVUtil._f19(x0); this.real_base_div=x0; if(this.real_base_div.style.position!="absolute") { this.real_base_div.style.position="relative"; } this._f401=document.createElement("div"); this.real_base_div.appendChild(this._f401); this._f401.style.position="absolute"; this._f401.style.left=MVUtil._f85(0); this._f401.style.top=MVUtil._f85(0); this._f401.style.width="100%"; this._f401.style.height="100%"; MVUtil._f88(this._f401); MVUtil._f88(this.real_base_div); this._f401.style.overflow="hidden"; this._f60=document.createElement("img"); this._f60.src=_f30._f127+"transparent."+(_f30._f87=="IF"?"gif":"png"); this._f60.src+="?refresh="+(new Date()).getTime(); this._f60.style.position="absolute"; this._f60.style.left=MVUtil._f85(0); this._f60.style.top=MVUtil._f85(0); this._f60.onload=MVUtil._f134(this,function(){_f30._f276=true;}); this._f401.appendChild(this._f60); this._f476=document.createElement("div"); this._f476.style.position="absolute"; this._f476.style.left=MVUtil._f85(0); this._f476.style.top=MVUtil._f85(0); this.real_base_div.appendChild(this._f476); this.div=null; var x5=this.getBrowserType(); this.toolBarContainer=null; this._f651(); MVUtil._f88(this.div); this._f652=""; this._f95=0; this._f96=0; this._f568(); this._f591=null; this._f653=document.createElement("div"); MVUtil._f88(this._f653); this._f653.style.position="absolute"; this._f653.style.zIndex=125; this.div.appendChild(this._f653); this._f654=null; this._f655=null; this._f282=null; this._f656=null; this._f657=null; this._f658=null; this._f659=new _f660(); this._f661=true; this.draggingEnabled=true; this._f662="zoomin"; this._f663=null; this._f664=true; this._f665=null; this._f666=false; this._f667=null; this._f668=null; this._f669=0; this._f670=0; this._f671=false; this._f672=0; this._f673=null; this._f674=5; this._f534=false; this._f675=new Array(); this.infoTipDiv=null; this._f676=0; this._f677=0; this._f678=null; this._f679=null; this._f680=null; this._f681=null; this._f682=null; this._f683=null; this._f684=null; this._f685=null; this._f250=false; this._f564=null; this._f686="PNG24"; this.foiBgColor=null; this.zoomAnimationEnabled=true; this._f687=false; this.dragCoords=null; this.wraparound=false; this.maptype=null; this._f688=true; this._f20=null; this._f689=0; this._f690=0; this._f691=0; this._f692=0; this._f693=0; this._f694=-1; this._f695=-1; this.foiGroupLayer=null;if(!MVi18n.isFetched()) MVi18n._f450(); return this; } MVMapView.prototype._f651=function() { if(_f30._f87=="IF"&&document.compatMode&&document.compatMode!="BackCompat") { document.body.style.height="100%"; } if(this.real_base_div.style.backgroundColor=="") this.real_base_div.style.backgroundColor="lightgrey"; this.div=document.createElement("div"); this.div.style.position="absolute"; if(_f30._f87=="IF"&&document.compatMode&&document.compatMode!="BackCompat") { this.div.style.width=MVUtil._f85(this._f13()); this.div.style.height=MVUtil._f85(this._f14()); } else { this.div.style.width="100%"; this.div.style.height="100%"; } this.div.style.zIndex=80; this.div.style.left=MVUtil._f85(0); this.div.style.top=MVUtil._f85(0); this._f476.style.left=MVUtil._f85(0); this._f476.style.top=MVUtil._f85(0); this._f73=0; this._f74=0; this._f45=this._f73; this._f46=this._f74; this._f696=0; this._f697=0; this._f401.appendChild(this.div); var x0=document.createElement("table"); x0.style.zIndex=9999; x0.style.height=MVUtil._f85(15); x0.style.position="absolute"; x0.style.right=MVUtil._f85(0); x0.style.bottom=MVUtil._f85(0); x0.style.backgroundColor="white"; this._f401.appendChild(x0); var x1=document.createElement("tbody"); x0.appendChild(x1); this.toolBarContainer=document.createElement("tr"); x1.appendChild(this.toolBarContainer); } MVMapView.prototype._f698=function(x2,x3) { this._f696=x2-this._f73; this._f697=x3-this._f74; } MVMapView.prototype._f405=function(x4,x5) { this.reCenterTag=true; this._f73=x4-this._f696; this._f74=x5-this._f697; this._f45=MVUtil._f311(this.div); this._f46=MVUtil._f312(this.div); var x6=this._f699(this._f45,this._f73,this._f46,this._f74); this._f73=x6.left; this._f74=x6.top; var x7=this._f15+(this._f45-this._f73)/this._f71; var x8=this._f16-(this._f46-this._f74)/this._f72; this._f700(this._f73-this._f45,this._f74-this._f46, x7,x8); var x9=this._f15; var x10=this._f16; this._f15=x7; this._f16=x8; if(x9!=this._f15||x10!=this._f16) { this._f627=true; } MVUtil._f76(this.div,this._f73,this._f74); MVUtil._f76(this._f476,this._f73,this._f74); } MVMapView.prototype.addEventListener=function(x11,x12) { this.setEventListener(x11,x12); } MVMapView.prototype.setEventListener=function(x13,x14) { if(x13==MVEvent.RECENTER) { this._f656=x14; } else if(x13==MVEvent.MOUSE_CLICK) { this._f282=x14; } else if(x13==MVEvent.MOUSE_RIGHT_CLICK) { this._f657=x14; } else if(x13==MVEvent.ZOOM_LEVEL_CHANGE) { this._f654=x14; } else if(x13==MVEvent.BEFORE_ZOOM_LEVEL_CHANGE) { this._f655=x14; } else if(x13==MVEvent.MOUSE_DOUBLE_CLICK) { this._f663=x14; } else if(x13==MVEvent.INITIALIZE) { this.initializeListener=x14; } } MVMapView.prototype.attachEventListener=function(x15,x16) { MVUtil.attachEventListener(this._f143,x15,x16) } MVMapView.prototype.detachEventListener=function(x17,x18) { MVUtil.detachEventListener(this._f143,x17,x18); } MVMapView.prototype.init=function() { MVUtil._f76(this.div,0,0); MVUtil._f76(this._f476,0,0); if(this._f196._f477.length>0) this._f196.deleteInfoWindow(this._f196._f477[0]); this._f73=0; this._f74=0; this._f45=this._f73; this._f46=this._f74; this._f696=0; this._f697=0; this.setZoomLevel(this._f11); this._f701(); var x19=MVSdoGeometry.createPoint(this._f15,this._f16,this.srid); x19=this._f702(x19); this._f15=x19.getPointX(); this._f16=x19.getPointY(); this._f669=this._f13(); this._f670=this._f14(); if(this._f673) clearTimeout(this._f673); this.setLoadingIconVisible(true); this._f604=this._f615+(this._f612/2*this.tileWidth); this._f605=this._f616+(this._f613/2*this.tileHeight); this._f703(); if(!this._f63) { if(this._f704()) { this._f704=true; return ; } } if(this._f592&&!this._f592._f278&&!this._f592._f417) this._f705(this._f592); if(this.navigationPanel&&!this.navigationPanel._f417) this.navigationPanel.init(this._f401,this); for(var x20=0;x200) { var x21=this._f632.pop(); x21._f18(); } this._f632=null; if(!this._f196) { this._f196._f18(); this._f196=null; } while(this._f633&&this._f633.length>0) { var x22=this._f633.pop(); x22._f18(); } while(this.foiGroupArray&&this.foiGroupArray.length>0) { var x23=this.foiGroupArray.pop(); x23._f18(); } this._f633=null; if(this._f368) this._f368._f18(); this._f368=null; if(this._f645) while(this._f645.length>0) this._f645.pop(); this._f645=null; if(this._f321) { this._f321._f18(); this._f321=null; } MVUtil._f19(this._f401,this._f20); this._f60=null; this._f401=null; this._f476=null; this._f653=null; this.div=null; } MVMapView.prototype._f701=function() { this.tileWidth=this._f629[this._f11]; this.tileHeight=this._f630[this._f11]; this._f708(); } MVMapView.prototype._f708=function() { this._f615=-this.tileWidth*this._f614; this._f616=-this.tileHeight*this._f614; var x24=this._f13()/this.tileWidth; this._f612=parseInt(Math.ceil(x24/2)+1)*2+1; x24=this._f14()/this.tileHeight; this._f613=parseInt(Math.ceil(x24/2)+1)*2+1; this._f604=this._f615+(this._f612/2*this.tileWidth);this._f605=this._f616+(this._f613/2*this.tileHeight);var x25=this.msi.mapConfig.zoomLevels[this._f11]; this._f71=x25.tileImageWidth/x25.tileWidth;this._f72=x25.tileImageHeight/x25.tileHeight;} MVMapView.prototype._f703=function() { this._f620=new _f70(this.msi.mapConfig,this._f15,this._f16,this._f11);this._f619=new _f70(this.msi.mapConfig,this._f15,this._f16,this._f11);this._f619._f78(-(Math.ceil(this._f612/2)-1),+Math.ceil(this._f613/2)-1); } MVMapView.prototype._f199=function() { this._f623=this._f619.minX; this._f624=(this._f619.minY+this._f619._f65); this._f625=(this._f619.minX+(this._f619._f66*this._f612)); this._f626=(this._f619.minY-(this._f619._f65*(this._f613-1))); this._f478=this._f709(this._f15); this._f480=this._f710(this._f16); this._f479=this._f711(this._f15); this._f481=this._f712(this._f16); } MVMapView.prototype.display=function() { var x26=this; var x27=function() { var x28=0; if(!x26._f401) return ; if(x26._f401.offsetWidth) x28=parseInt(x26._f401.offsetWidth+""); else if(typeof(x26._f401.offsetWidth)=="undefined") x28=x26._f13(); var x29=0; if(x26._f401.offsetHeight) x29=parseInt(x26._f401.offsetHeight+""); else if(typeof(x26._f401.offsetHeight)=="undefined") x29=x26._f14(); if(!MVi18n.isFetched()||x28<=0||x29<=0||!x26.tileLayersConfigLoaded()|| !_f30._f276||!x26.msi) { setTimeout(x27,200); return ; } var x30=function() { x26.init(); if(!x26._f644) { x26._f400(); x26._f644=true; } x26._f63=true; while(x26._f675.length>0) { var x31=x26._f675.shift(); if(x31.func=="refreshFOIs") x31.obj._f201(x31.params[0],x31.params[1],x31.params[2],x31.params[3],x31.params[4],x31.params[5],x31.params[6],x31.params[7],true,x31.params[8]); else if(x31.func=="zoomToRectangle") x31.obj.zoomToRectangle(x31.params[0],x31.params[1]); else if(x31.func=="refresh") x31.obj.refresh(x31.params[0]); } } x26._f713(x30); } x27(); } MVMapView.prototype.setCenter=function(x32,x33) { this.reCenterTag=true; this.center=x32; this.originalCenter=x32 if(this._f63) this._f713(null,x33); } MVMapView.prototype._f713=function(x34,x35) { if(!this.center) { if(x34) x34(); return ; } if(!this.msi) { MVi18n._f42("MVMapView.setCenter","MAPVIEWER-05518",null,this._f20); return ; } this.srid=this.msi.getSrid(); var x36=this.center; if(!this.reCenterTag&&this.originalCenter!=null) x36=this.originalCenter; if(x36) { if(!x36.srid) x36.srid=this.srid; this.center=null; if(!(x36.sdo_point)) { MVi18n._f42("MVMapView.setCenter","MAPVIEWER-05505",null,this._f20); return ; } var x37=this; var x38=function(x39) { if(x39) x36=x39; if(x37._f63) x36=x37._f702(x36); var x40=false for(var x41=0;x41((x37._f717+x37._f718)/4)?300:200; x37._f721=0; x37._f722=0; x37._f723=0; x37.smoothPan(x35); } else { x37._f15=x36.getPointX(); x37._f16=x36.getPointY(); x37.display(); if(x37._f656) { x37._f656(); } MVUtil.runListeners(x37._f143,MVEvent.RECENTER); } if(x37._f592) { x37._f592._f599(x37); } } if(x34) x34(); } if(this.srid!=x36.srid) { this.reCenterTag=true; x36=this.transformGeom(x36,this.srid,null,x38); } else x38(); } else { if(x34) x34(); } } MVMapView.prototype.setCenterLon=function(x42) { this._f15=x42; } MVMapView.prototype.setCenterLat=function(x43) { this._f16=x43; } MVMapView.prototype.setCenterMark=function(x44,x45,x46) { if(this._f724!=undefined) { this._f401.removeChild(this._f724); delete this._f724; } if(x44==null) return ; this.centerMarkUrl=x44; this.centerMarkW=x45; this.centerMarkH=x46; var x47=document.createElement("img");x47.src=x44; x47.style.zIndex=2000; x47.style.position="absolute"; x47.style.width=MVUtil._f85(x45); x47.style.height=MVUtil._f85(x46); x47.style.left=MVUtil._f85((this._f13()-x45)/2); x47.style.top=MVUtil._f85((this._f14()-x46)/2); this._f401.appendChild(x47); this._f724=x47; } MVMapView.prototype.setZoomLevel=function(x48) { if(isNaN(x48)) { MVi18n._f42("MVMapView.setZoomLevel","MAPVIEWER-05506",null,this._f20); return; } if((!this._f63)&&this.msi==null) { this._f11=x48; return ; } if(x48<0) x48=0; else if(x48>this._f193) x48=this._f193; if(this._f63) this.zoomTo(x48); else { this._f11=x48; this._f701(); } } MVMapView.prototype.setHomeMap=function(x49,x50) { this._f427=x49; if(x50) this._f428=x50; } MVMapView.prototype.setMapBuffer=function(x51,x52) { this._f610=x51; this._f611=x52; } MVMapView.prototype._f725=function(x53,x54) { var x55=false; var x56=this; var x57=function(x58) { if(x58) { x56._f15=x58.getPointX(); x56._f16=x58.getPointY(); x56.center=x58; } x56.msi=x53.msi; x56.srid=x56.msi.getSrid(); x56.maptype=x56.msi.mapConfig.coordSys.type; if(x56._f11>(x56.msi.zoomCount-1)) { x56._f11=x56.msi.zoomCount-1; } for(var x59=0;x590) x68=parseInt(x69.substring(0,x69.indexOf("px"))); else x68=parseInt(x69); if(x68) return x68; } } if(this._f401.offsetWidth) x68=this._f401.offsetWidth; else if(this._f401.width) x68=parseInt(this._f401.width+""); return x68; } MVMapView.prototype._f14=function() { var x70=0; if(this._f401.style&&this._f401.style.height) { var x71=this._f401.style.height+""; if(x71.indexOf("%")<0) { if(x71.indexOf("px")>0) x70=parseInt(x71.substring(0,x71.indexOf("px"))); else x70=parseInt(x71); if(x70) return x70; } } if(this._f401.offsetHeight) x70=this._f401.offsetHeight; else if(this._f401.width) x70=parseInt(this._f401.width+""); return x70; } MVMapView.prototype._f709=function(x72) { var x73=this._f13()/2; return (0-x73)/this._f71+x72; } MVMapView.prototype._f710=function(x74) { var x75=this._f14()/2; return -1.0*(x75-1)/this._f72+x74; } MVMapView.prototype._f711=function(x76) { var x77=this._f13()/2; return (x77-1)/this._f71+x76; } MVMapView.prototype._f712=function(x78) { var x79=this._f14()/2; return -1.0*(0-x79)/this._f72+x78; } MVMapView.prototype.getCenter=function() { var x80=MVSdoGeometry.createPoint(this._f15,this._f16,this.srid); return x80; } MVMapView.prototype._f369=function() { return this._f15; } MVMapView.prototype._f398=function() { return this._f16; } MVMapView.prototype.getMapWindowBBox=function() { this._f199(); var x81=MVSdoGeometry.createRectangle(this._f478,this._f480, this._f479,this._f481,this.srid); return x81; } MVMapView.prototype.getMouseLocation=function() { var x82=MVSdoGeometry.createPoint(this._f621,this._f622,this.srid); return x82; } MVMapView.prototype._f394=function() { return this._f621; } MVMapView.prototype._f395=function() { return this._f622; } MVMapView.prototype.getZoomLevel=function() { return this._f11; } MVMapView.prototype.getMaxZoomLevel=function() { if(!this.msi) { MVi18n._f42("MVMapView.getMaxZoomLevel","MAPVIEWER-05526",null,this._f20); return -1; } else return this.msi.getMaxZoomLevel(); } MVMapView.prototype.enableMapBoundConstraint=function(x83) { return this._f688=x83; } MVMapView.prototype.getBaseDiv=function() { return this._f401; } MVMapView.prototype._f726=function() { return this.div; } MVMapView.prototype._f727=function() { return this._f620._f65; } MVMapView.prototype._f728=function() { return this._f620._f66; } MVMapView.prototype._f729=function() { return this.msi; } MVMapView.prototype._f730=function() { return this._f623; } MVMapView.prototype._f731=function() { return this._f624; } MVMapView.prototype._f732=function() { return this._f625; } MVMapView.prototype._f733=function() { return this._f626; } MVMapView.prototype.getScreenMinLon=function() { return this._f478; } MVMapView.prototype._f734=function() { return this._f480; } MVMapView.prototype._f735=function() { return this._f479; } MVMapView.prototype._f736=function() { return this._f481; } MVMapView.prototype._f737=function() { return this._f71; } MVMapView.prototype._f738=function() { return this._f72; } MVMapView.prototype.zoomIn=function(x84) { this.zoomTo(this._f11+1,x84); } MVMapView.prototype.zoomOut=function(x85) { this.zoomTo(this._f11-1,x85); } MVMapView.prototype.setZoomAnimationEnabled=function(x86) { this.zoomAnimationEnabled=x86; } MVMapView.prototype.zoomTo=function(x87,x88) { var x89=this; if(x89._f694<0) x89._f694=x89._f11; var x90=function() { x89._f739=0; x89._f740=null; if(x87>=x89._f193) { x87=x89._f193; } else if(x87<0) { x87=0; } if(x89._f695==x89._f11&&x87==x89._f11&&!x88) { if(x89.navigationPanel) x89.navigationPanel.updateSliderBar(); return false; } x89._f306(); x89._f11=x87; if(x89.navigationPanel) x89.navigationPanel.updateSliderBar(); x89._f11=x87; x89._f701(); var x91=false; var x92=MVSdoGeometry.createPoint(x89._f15,x89._f16,x89.srid); var x93=function(x94) { if(x94) x88=x94; if(x89._f631) { clearTimeout(x89._f631); x89._f631=null; } if(x88) { if(x88.getPointX()!=x89._f15||x88.getPointY()!=x89._f16) { x91=true; } x89._f15=x88.getPointX(); x89._f16=x88.getPointY(); } if(x89._f655&&x89._f694!=x89._f11) x89._f655(x89._f694,x89._f11); if(x89._f694!=x89._f11) MVUtil.runListeners(x89._f143,MVEvent.BEFORE_ZOOM_LEVEL_CHANGE,[x89._f694,x89._f11]); var x95=function() { if(Math.abs(x89._f694-x89._f11)==1&&x89._f692<=1&&x89.zoomAnimationEnabled) { for(var x96=0;x96((x113._f717+x113._f718)/4)?300:200; x113._f721=0; x113._f722=0; x113._f723=0; x113.smoothPan(); return; } } } x113.zoomTo(x112,x111); } if(x111.srid&&(this.srid!=x111.srid)) x111=this.transformGeom(x111,this.srid,null,x114); else x114(); } MVMapView.prototype.addMapTileLayer=function(x116,x117) { if(x116.getType&&x116.getType()=="MVExternalAPIMapTileLayer") this._f743(x116); else { if(x116._f0==undefined|| x116._f0==null|| MVUtil._f227(x116._f0)=="") { MVi18n._f42("MVMapView.addMapTileLayer","MAPVIEWER-05507",null,this._f20); return ; } if(!this._f564&&this.compareBaseURL(x116._f1)) { var x118=x116._f0.split("."); if(x118.length>=2) { _f30._f218(x118[0]); this._f218(x118[0]); } } x116.parent=this; if(!x116._f1) { if(this._f90) { if(MVUtil._f3(this._f90,'/')) x116._f1=this._f90+'mcserver'; else x116._f1=this._f90+'/mcserver'; } else { MVi18n._f42("MVMapView.addMapTileLayer","MAPVIEWER-05504",null,this._f20); return ; } } if(MVMapView._f229&&!MVUtil.isLocalDomain(x116._f1)) x116._f2=_f30._f269()+"?rtarget="+x116._f1; else x116._f2=x116._f1; if(x116==null||!x116.getType) { MVi18n._f42("MVMapView.addMapTileLayer","MAPVIEWER-05519","mapTileLayer",this._f20); return; } this._f632.push(x116); } var x119=this; var x120=function() { x119.mapLayerNumber++; if(!x116.zIndex) x116.zIndex=x119._f632.length+1; x119._f725(x116,AfterSetProvider); function AfterSetProvider(x0) { x116.config=_f207[x116._f0]; if(!x116.isExtAPITileLayer()) { var x1=new _f39(x119,x116); x116.layerControl=x1; x119.combineTileLayers(); } if(x0&&x119._f632.length>1) { if(!x119._f323) MVi18n._f42("MVMapView.addMapTileLayer","MAPVIEWER-05528",null,this._f20); for(var x2 in x119._f632) { if(x119._f632[x2]!=x116) x119.removeMapTileLayer(x119._f632[x2]); } } if(x119._f63) { if(!x0) { if(x116.isExtAPITileLayer()) { var x3=function(x4) { x116.setCenterAndZoomLevel(x4.getPointX(),x4.getPointY(),x119._f11); } var x5=MVSdoGeometry.createPoint(x119._f15,x119._f16,x119.srid); x119.transformGeom(x5,x116.srid,null,x3); } else { if(x116.layerControl) x116.layerControl._f12(x119._f13(),x119._f14(),x119._f15,x119._f16); } } else { x119.display(); } if(x119._f592) { x119._f592._f599(x119); } if(x119.navigationPanel&&x119.navigationPanel.getMaxZoomLevel()!=x119._f193) { x119.navigationPanel.updateSlider(); } } if(x117) x117(); if(x119._f321&&x119._f321._f326&&x119._f321._f326._f632.length==0) x119._f321.addOverviewMapTileLayer(); if(x119._f321&&x119._f321._f326) x119._f321._f324(); } } _f30._f226(x116,x120,this._f20); } MVMapView.prototype.addBaseMapLayer=MVMapView.prototype.addMapTileLayer; MVMapView.prototype.getMapTileLayerDefinition=function(x121,x122,x123) { if(!x123) x123=null; var x124=new MVMapTileLayer(x122,x123); if(!x124._f1) { if(this._f90) { if(MVUtil._f3(this._f90,'/')) x124._f1=this._f90+'mcserver'; else x124._f1=this._f90+'/mcserver'; } else { MVi18n._f42("MVMapView.getMapTileLayerDefinition","MAPVIEWER-05504",null,this._f20); return ; } } if(MVMapView._f229&&!MVUtil.isLocalDomain(x124._f1)) x124._f2=_f30._f269()+"?rtarget="+x124._f1; else x124._f2=x124._f1; _f30._f226(x124,x121,this._f20); } MVMapView.prototype.removeMapTileLayer=function(x125) { var x126=0; var x127=x125._f0; var x128=x125._f1; if(x125._f7){ var x129=x125._f7 for(var x130=0;x1301) { x129._f8[x130]=x129._f8[x129._f8.length-1]; x129._f8.pop(); var x131=x129.getTransparent(); if(x129.layerControl) x129.layerControl._f4=x131; x129.refresh(true); if(this._f321) this.removeOverviewMapTileLayer(x127,x128); return; } else { x129._f8[x130]=null; x129._f8.pop(); x125=x129; } } } } for(;x1260) { var x133=this; var x134=this._f632[this._f632.length-1]; function AfterSetProvider(x0) { if(x133._f63) { if(!x0) { if(x134.isExtAPITileLayer()) { var x1=function(x2) { x134.setCenterAndZoomLevel(x2.getPointX(),x2.getPointY(),x133._f11); } var x3=MVSdoGeometry.createPoint(x133._f15,x133._f16,x133.srid); x133.transformGeom(x3,x134.srid,null,x1); } else { if(x134.layerControl) x134.layerControl._f12(x133._f13(),x133._f14(),x133._f15,x133._f16); } } else { x133.display(); } if(x133._f592) { x133._f592._f599(x133); } if(x133.navigationPanel&&x133.navigationPanel.getMaxZoomLevel()!=x133._f193) { x133.navigationPanel.updateSlider(); } } } this._f725(x134,AfterSetProvider); } } MVMapView.prototype.removeOverviewMapTileLayer=function(x135,x136) { if(this._f321._f326._f632.length>0) { var x137=this._f321._f326._f632[0]; if(x137._f0==x135&&x137._f1==x136) { this._f321._f326.removeMapTileLayer(x137); this._f321._f324(); } } } MVMapView.prototype._f568=function() { if(!this._f196) this._f196=new _f474(this,"1"); if(!this.infoLayer2) this.infoLayer2=new _f474(this,"2"); this._f368=new _f744(this); this._f368.setSize(Math.ceil(2*(this._f13())), Math.ceil(2*(this._f14()))); MVUtil._f76(this._f368._f482(), (this._f13()-this._f368._f565())/2, (this._f14()-this._f368._f571())/2); } MVMapView.prototype.addGroupFOI=function(x138) { this._f745=0; this._f746=x138; this.startAddGroupFOI(); } MVMapView.prototype.startAddGroupFOI=function() { for(var x139=0;x139<11000;x139++) { if(this._f745=2) { _f30._f218(x141[0]); this._f218(x141[0]); } } if(!x140||!x140.id) return false; if(x140.gtype%10==1) x140._f748=true; x140.parent=this; if(x140.id!="") { var x142=x140.id.substr(0,3); if(x142!="-RL") { for(var x143=0;x1430) this._f674=x154; this._f420=true; this._f642=x152; this.marqueeZoom(x153); } MVMapView.prototype.marqueeZoom=function(x155) { if(!this._f420) return ; this._f426=false; this._f421=false; var x156=this._f422; if(!x156) { x156=new MVRectangleTool(null,null); x156.setDivFillColor("#555555",0.3); this.addRectangleTool(x156); this._f422=x156; } if(x155) x156.setDivStyle(x155); x156.init(); var x157=MVUtil._f134(x156,function() { this.clear(); var x158=null; if(this.parent.marqueeRectGeom) x158=this.parent.marqueeRectGeom.getMBR(); if(x158&& (this._f642=="prompt"|| Math.abs(x158[2]-x158[0])*this.parent._f71>=this.parent._f674&& Math.abs(x158[3]-x158[1])*this.parent._f72>=this.parent._f674)) { var x159=document.getElementById("mv_mrqzm_msg"); if(x159) x159.parentNode.removeChild(x159); this.parent.zoomToRectangle(this.parent.marqueeRectGeom); } if(this.parent._f642!="one_time") { this.parent.marqueeZoom(); } }); var x160=MVUtil._f134(x156,function() { this.parent._f426=true; this.parent.marqueeRectGeom=x156.getRectangle(); x157(); }); var x161=MVUtil._f134(x156,function() { this.parent.marqueeRectGeom=x156.getRectangle(); x157(); this._f420=false; }); var x162=MVUtil._f134(x156,function(x163) { this.parent._f643=true; x163=(x163)?x163:((window.event)?event:null); MVUtil._f314(x163); }); var x164=MVUtil._f134(x156,function(x165) { x165=(x165)?x165:((window.event)?event:null); if(this.parent._f643) { MVUtil._f314(x165); x157(); } }); var x166=MVUtil._f134(x156,function() { this.parent._f426=true; this.parent.marqueeRectGeom=x156.getRectangle(); if(!this.parent.marqueeRectGeom) { this.clear(); this.parent.marqueeZoom(); return ; } var x167=this.parent; var x168=x156.getRectangleDIV(); MVUtil._f107(x168,"crosshair"); if(MVi18n._f425("marqueeZoomHint")) { x168.onmouseover=function(x169) { var x170=document.getElementById("mv_mrqzm_msg"); if(x170) x170.parentNode.removeChild(x170); x170=MVUtil._f365(MVi18n._f425("marqueeZoomHint")); x170.id="mv_mrqzm_msg"; x170.style.border="1px solid #000000"; x170.style.backgroundColor="#FFFFCC"; x170.style.position="absolute"; var x171=MVUtil._f335(x167,x169); x170.style.left=x171.x+"px"; x170.style.top=x171.y+"px"; x170.style.zIndex=9999; x167._f401.appendChild(x170); }; x168.onmouseout=function() { var x172=document.getElementById("mv_mrqzm_msg"); if(x172) x172.parentNode.removeChild(x172); }; } this.parent._f643=false; x168.onmousedown=x162; x168.onmouseup=x164; x168.onclick=function(x173) { MVUtil._f314(x173); }; }); this._f643=false; if(this._f642=="prompt") x156.addEventListener("on_finish",x166); else if(this._f642=="continuous") x156.addEventListener("on_finish",x160); else x156.addEventListener("on_finish",x161); } MVMapView.prototype.zoomToRectangle=function(x174) { if(!this._f63) { this._f198(this,"zoomToRectangle",x174); return ; } var x175=this; var x176=function(x177) { var x178=x177.getMBR(); var x179=Math.abs(x178[0]-x178[2]); var x180=Math.abs(x178[1]-x178[3]); var x181=x179*(x175._f71); var x182=x180*(x175._f72); var x183=x175._f13(); var x184=x175._f14(); var x185=x175._f11; var x186=x185; var x187=x175._f193; if(x183=0;--x188) { x186=x188; var x189=(x175._f629[x188]/x175.msi._f467(x188))*x179; var x190=(x175._f630[x188]/x175.msi._f468(x188))*x180; if(x189<=x183&&x190<=x184) break; } } else if(x183>x181&&x184>x182) { for(var x188=(x185+1);x188<=x187;++x188) { var x189=(x175._f629[x188]/x175.msi._f467(x188))*x179; var x190=(x175._f630[x188]/x175.msi._f468(x188))*x180; if(x189<=x183&&x190<=x184) x186=x188; else break; } } var x191=(x178[0]+x178[2])/2; var x192=(x178[1]+x178[3])/2; var x193=MVSdoGeometry.createPoint(x191,x192,x175.srid); x175.zoomTo(x186,x193); } if(!x174.srid) x174.srid=this.srid; if(x174.srid&&this.srid!=x174.srid) this.transformGeom(x174,this.srid,null,x176); else x176(x174); } MVMapView.prototype._f200=function(x194) { var x195=(x194._f565()-this._f13())*0.5/this._f71; var x196=(x194._f571()-this._f14())*0.5/this._f72; var x197=new Array(); if(x194._f36._f151==1&&x194._f36._f152==1) { x197[0]=this._f478; x197[1]=this._f480; x197[2]=this._f479; x197[3]=this._f481; } else { var x198=this._f755(this._f478-x195,this._f480-x196); var x199=this._f756(this._f479+x195,this._f481+x196); x197[0]=x198.x; x197[1]=x198.y; x197[2]=x199.x; x197[3]=x199.y; } var x200=Math.floor((x197[2]-x197[0])*this._f71+0.5); var x201=Math.floor((x197[3]-x197[1])*this._f72+0.5); x194._f757(x200,x201); return x197; } MVMapView.prototype._f704=function() { this._f199(); var x202=0; for(x202=0;x202=2) { _f30._f218(x211[0]); this._f218(x211[0]); } } if(this._f666) { this._f758(x210); return ; } if(!x210) { MVi18n._f42("MVMapView.addThemeBasedFOI","MAPVIEWER-05519","themeBasedFOI",this._f20); return ; } if(!this._f196) this._f196=new _f474(this,"1"); for(var x212=0;x212100) x220=100; if(x220<1) x220=1; for(var x221=0;x221x220) { var x222=this._f633[x221]; this._f633[x221]=this._f633[x221-1]; this._f633[x221-1]=x222; x221--; } break; } } for(var x223=0;x2230) { this._f633[this._f633.length-1]._f18(); this._f633[this._f633.length-1]=null; this._f633.pop(); } while(this._f653.childNodes.length>0) { this._f653.removeChild(this._f653.childNodes[0]); } } MVMapView.prototype.removeThemeBasedFOI=function(x248) { if(!x248) return ; for(var x249=0;x249x254._f456()|| this._f481>x254._f458())&&x254._f36._f166) { var x255=this._f200(x254); if(x254._f761!=1) { x254.clearTransImageLayer(); } x254._f201(this,x255[0],x255[1],x255[2],x255[3],true,false); } else if(x254._f763) { var x255=this._f200(x254); x254._f201(this,x255[0],x255[1],x255[2],x255[3],true,false); } } if(this._f478this._f368.maxX|| this._f481>this._f368.maxY) { var x256=(this._f368._f565()-this._f13())*0.5/this._f71; var x257=(this._f368._f571()-this._f14())*0.5/this._f72; this._f368._f751(this._f478-x256, this._f480-x257, this._f479+x256, this._f481+x257); this.refreshGroupFOIs(false); } else if(this.wraparound){ var x256=(this._f368._f565()-this._f13())*0.5/this._f71; var x258=x256-(this._f478-this._f368.minX); var x259=x256-(this._f368.maxX-this._f479); var x260=x258>0?x258:x259; var x261=(this.msi._f337-this.msi._f338)/4; if(x260>x261) { var x257=(this._f368._f571()-this._f14())*0.5/this._f72; this._f368._f751(this._f478-x256, this._f480-x257, this._f479+x256, this._f481+x257); } } if(!x253) { this._f196.refresh(this._f478,this._f480,this._f479, this._f481,this._f13(),this._f14()); this.infoLayer2.refresh(this._f478,this._f480,this._f479, this._f481,this._f13(),this._f14()); x253=true; } } MVMapView.prototype.getAllThemeBasedFOIs=function() { return this._f633; } MVMapView.prototype.setDefaultInfoWindowStyle=function(x262,x263) { _f30._f215=x262; if(x262=="MVInfoWindowStyle1") MVInfoWindowStyle1._f120=x263; } MVMapView.prototype.displayInfoWindow=function(x264,x265,x266,x267,x268,x269,x270) { if(this.infoWindowTimeout) { clearTimeout(this.infoWindowTimeout); this.infoWindowTimeout=null; } var x271=this; var x272=function(x273) { if(x273) x264=x273; x271._f196._f491(x265,x264.sdo_point.x,x264.sdo_point.y,x266,x267,x268,x269,x270); } var x274=function() { if(x271._f63&&!x271._f693&&!x271._f740&&!x271._f631) { if(!x264.srid) x264.srid=x271.srid; if(x264.srid&&(x271.srid!=x264.srid)) center=x271.transformGeom(x264,x271.srid,null,x272); else x272(); } else x271.infoWindowTimeout=setTimeout(x274,200); } x274(); } MVMapView.prototype.displayTabbedInfoWindow=function(x275,x276,x277,x278,x279,x280) { if(this.infoWindowTimeout) { clearTimeout(this.infoWindowTimeout); this.infoWindowTimeout=null; } var x281=this; var x282=function(x283) { if(x283) x275=x283; x281._f196.showTabbedHtmlWindow(null,x275.sdo_point.x,x275.sdo_point.y,x278,x279,x280,x276,x277); } var x284=function() { if(x281._f63&&!x281._f693&&!x281._f740&&!x281._f631) { if(!x275.srid) x275.srid=x281.srid; if(x275.srid&&(x281.srid!=x275.srid)) center=x281.transformGeom(x275,x281.srid,null,x282); else x282(); } else x281.infoWindowTimeout=setTimeout(x284,200); } x284(); } MVMapView.prototype.setInfoWindow=function(x285,x286,x287) { this._f652=x285; this._f95=x286; this._f96=x287; } MVMapView.prototype._f768=function(x288,x289) { _f30._f95=x288; _f30._f96=x289; } MVMapView.prototype.removeInfoWindow=function() { if(this._f196._f477.length>0) this._f196.deleteInfoWindow(this._f196._f477[0]); } MVMapView.prototype.addCSTransformFunction=function(x290,x291,x292) { _f30._f271(x291,x292,x290); } MVMapView.prototype.transformGeom=function(geometry,_f273,_f1,callBack,dataSource) { if(!geometry.srid) { if(!this.srid) { MVi18n._f42("MVMapView.transformGeom","MAPVIEWER-05520",null,this._f20); return ; } geometry.srid=this.srid; } if(geometry.srid==_f273) { if(callBack) { callBack(geometry); return ; } else return geometry; } var clientTrans=_f30._f274(geometry.srid,_f273); if(clientTrans) { var _f203=null; if(geometry.getGType()==1) { var result=clientTrans(geometry.getPointX(),geometry.getPointY(),this._f20); _f203=MVSdoGeometry.createPoint(result.x,result.y,_f273); } else if((geometry.gtype%10==2||geometry.gtype%10==3)&& geometry.sdo_elem_info.length==3&&geometry.sdo_elem_info[0]==1&& (geometry.sdo_elem_info[1]==2||geometry.sdo_elem_info[1]==1003||geometry.sdo_elem_info[1]==2003)&& geometry.sdo_elem_info[2]==1) { var ordinates=MVMapView._f437(clientTrans,geometry.sdo_ordinates,this._f20); _f203=new MVSdoGeometry(geometry.gtype,_f273,geometry.sdo_elem_info,ordinates); } if(_f203) { if(callBack) { callBack(_f203); return ; } else return _f203; } } if(_f1) {} else if(this._f90) { if(MVUtil._f3(this._f90,'/')) { _f1=this._f90+'mcserver'; } else { _f1=this._f90+'/mcserver'; } } else { MVi18n._f42("MVMapView.transformGeom","MAPVIEWER-05504",null,this._f20); return ; } var localDomain=(MVUtil.isLocalDomain(_f1)); var xmlHttp=localDomain||MVMapView._f229; if(!xmlHttp&&!callBack) { MVi18n._f42("MVMapView.transformGeom","MAPVIEWER-05521",null,this._f20); return null; } var request=null; var _f438; var _f439; var _f769; if(dataSource) _f769=dataSource; else _f769=this._f564; _f439=MVUtil._f35(geometry.toString(),"null",""); if(geometry.getGType()==1) { _f439=MVUtil._f35(_f439,"SdoPointType",""); } else { } _f439=MVUtil._f35(_f439," ",""); var targetURL=_f1; if(MVMapView._f229&&!localDomain) _f1=_f30._f269()+"?rtarget="+targetURL; else _f1=_f1; var _f770=_f1; var params="request=cstransform&dstsrid="+ _f273+"&geometry="+_f439; if(_f769) params+="&datasource="+_f769; var request=null; var mv=this; var transformed=MVUtil._f134(this,function() { if(request.readyState==4) { if(request.status==200) { try { var resp=request.responseText; eval("var result="+resp); _f438=result; if(result.length==0) { result=null; return; } var _f203=null; if(_f438.SDO_GTYPE==1) { _f203=MVSdoGeometry.createPoint(_f438.SDO_POINT.X,_f438.SDO_POINT.Y,_f438.SDO_SRID); } else { _f203=new MVSdoGeometry(2000+_f438.SDO_GTYPE,_f438.SDO_SRID,_f438.SDO_ELEM_INFO,_f438.SDO_ORDINATES,null) } result=null; } catch(e) { MVi18n._f42("MVMapView.transformGeom","MAPVIEWER-05523",request.responseText,mv._f20); return ; } if(callBack) callBack(_f203); if(xmlHttp) return _f203; } } }); try { request=MVUtil.getXMLHttpRequest(xmlHttp); if(callBack||!xmlHttp) request.onreadystatechange=transformed; request.open("POST",_f770,callBack||!xmlHttp); request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); request.send(params); }catch(e) { MVi18n._f42("MVMapView.transformGeom","MAPVIEWER-05511",e,this._f20); return ; } if(!callBack&&xmlHttp) { if(request.status==200) { return transformed(); } } } MVMapView.prototype.getSrid=function() { return this.srid; } MVMapView.prototype._f771=function() { MVUtil._f107(document.body,"wait"); MVUtil._f107(this._f401,"wait"); } MVMapView.prototype._f772=function() { MVUtil._f107(document.body,""); MVUtil._f107(this._f401,this._f648); } MVMapView.prototype.getMapTileLayer=function(x293) { var x294=x293.split("."); if(x294.length<2){ return ""; } else return x294[1]; } MVMapView.prototype.getMapImageURL=function(x295,x296,x297,x298) { var x299=this.getMapAsXML(x296,x297,x298); var x300=(this._f90==this._f647); var x301=x300||MVMapView._f229; var x302=""; if(MVMapView._f229&&!x300) x302=this._f647; else x302=this._f90; if(MVUtil._f3(x302,'/')) x302=x302+'omserver'; else x302=x302+'/omserver'; var x303=MVUtil.getXMLHttpRequest(x301); x303.open("POST",x302,true); x303.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); x303.send("xml_request="+encodeURIComponent(x299)); var x304=this; x303.onreadystatechange=function() { if(x303.readyState==4) { if(x303.status==200) { var x305=x303.responseText; var x306=x305.indexOf("url=\""); if(x306<0) { MVi18n._f42("MVMapView.getMapImageURL","MAPVIEWER-05519",x305,x304._f20); return ; } var x307=x305.substring(x306+5,x305.indexOf("\"",x306+5)); x295(x307); } } } } MVMapView.prototype.getMapAsXML=function(x308,x309,x310) { if(!x309) x309=this._f13(); if(!x310) x310=this._f14(); var x311="" x311=x311+""; var x312=parseInt(this._f14())/this._f72; var x313=this.getCenter(); x311=x311+"
"+x313.sdo_point.x+","+x313.sdo_point.y+"
"; x311=x311+""; for(i=0;i"+this._f632[i].layerControl.getXMLForPrint()+""; } var x314=""; var x315=""; var x316=""; for(var x317=0;x3170) { for(var x322=0;x322"; if(x315!="") x311+=" "+x315+""; if(x316!="") x311+=x316; x311=x311+this._f368._f773(); x311=x311+"
"; return x311; } MVMapView.prototype._f773=function() { return this.getMapAsXML("GIF_URL"); } MVMapView.prototype._f306=function() { this.real_base_div.className=null; this._f774=null; if(this._f591) while(this._f591.childNodes.length>0) { var x323=this._f591.childNodes[0]; if(x323.src) { } x323.onload=null; this._f591.removeChild(x323); MVUtil._f89(x323); } } MVMapView.prototype._f775=function() { this.real_base_div.className=("noprint"); } MVMapView.prototype.print=function(x324) { var x325=this; if(x324.style.position!="absolute") x324.style.position="relative"; x324.style.width=MVUtil._f85(this._f13()); x324.style.height=MVUtil._f85(this._f14()); if(!this._f776) { this._f771(); this._f306(); var x326=this._f773(); var x327=(this._f90==this._f647); var x328=x327||MVMapView._f229; var x329=""; if(MVMapView._f229&&!x327) x329=this._f647; else x329=this._f90; if(MVUtil._f3(x329,'/')) x329=x329+'omserver'; else x329=x329+'/omserver'; _f28=MVUtil.getXMLHttpRequest(x328); _f28.open("POST",x329,true); _f28.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); _f28.send("xml_request="+encodeURIComponent(x326)); _f28.onreadystatechange=function() { if(_f28.readyState==4) { if(_f28.status==200) { x325._f591=x324; var x330=document.createElement("img"); var x331=_f28.responseText; var x332=x331.indexOf("url=\""); if(x332<0) { MVi18n._f42("MVMapView.print","MAPVIEWER-05519",x331,x325._f20); return ; } x330.src=x331.substring(x332+5,x331.indexOf("\"",x332+5));x330.style.position="absolute"; x330.style.left=MVUtil._f85(0); x330.style.top=MVUtil._f85(0); x325._f591.appendChild(x330); x330.onload=MVUtil._f134(x330,function() { x325._f775(); if(x325._f645!=null) for(var x333=0;x333=x342|| x344.top<=0||x344.top>=x343|| x340<=1||x340>=document.body.clientWidth|| x341<=1||x341>=document.body.clientHeight) { x337._f434(x339); x337._f250=false; if(x337._f659.contains(37))x337._f659.remove(37); if(x337._f659.contains(38))x337._f659.remove(38); if(x337._f659.contains(39))x337._f659.remove(39); if(x337._f659.contains(40))x337._f659.remove(40); } }); this._f401.onclick=MVUtil._f134(this._f401,function(x345) { if((x337.mouseDownLoc&&x337.mouseUpLoc&& (Math.abs(x337.mouseDownLoc.left-x337.mouseUpLoc.left)>1|| Math.abs(x337.mouseUpLoc.top-x337.mouseUpLoc.top)>1))|| (Math.abs(x337.mouseDownScreenX-x337.mouseUpScreenX)>1|| Math.abs(x337.mouseDownScreenY-x337.mouseUpScreenY)>1)) return ; if(x337._f282) { x337._f282(MVUtil.getEvent(x345)); } MVUtil.runListeners(x337._f143,MVEvent.MOUSE_CLICK,[MVUtil.getEvent(x345)]); }); if(!this._f681) MVUtil.detachEvent(document.body,"mousedown",this._f681); this._f681=MVUtil._f134(document.body,function() { x337._f250=false; }); MVUtil.attachEvent(document.body,"mousedown",this._f681); if(x338=="IF") { this._f401.onselectstart=MVUtil._f134(this._f401,function() { if((x337._f196&&x337._f196._f485)|| (x337.infoLayer2&&x337.infoLayer2._f485)) return true; else return false; }); this._f401.oncontextmenu=MVUtil._f134(this._f401,function(x346) { x337._f403(window.event); if(x337._f657) { x337._f657(MVUtil.getEvent(x346)); } MVUtil.runListeners(x337._f143,MVEvent.MOUSE_RIGHT_CLICK,[MVUtil.getEvent(x346)]); if((x337._f196&&x337._f196._f485)) return true; else return false; }); if(this._f641) this._f401.onmousewheel=MVUtil._f134(this._f401,function() { return x337._f779(window.event); }); else this._f401.onmousewheel=null; this._f401.onmousedown=MVUtil._f134(this._f401,function() { MVUtil._f314(window.event); return x337._f530(window.event); }); this._f401.onmousemove=MVUtil._f134(this._f401,function() { return x337._f780(window.event); }); this._f401.onmouseup=MVUtil._f134(this._f401,function() { x337._f250=true; return x337._f434(window.event); }); this._f401.ondblclick=MVUtil._f134(this._f401,function() { return x337._f781(window.event); }); document.body.attachEvent('onmouseup',MVUtil._f134(document.body,function() { return x337._f434(window.event); })); if(!this._f323) { if(!this._f684) MVUtil.detachEvent(document.body,"keydown",this._f684); this._f684=MVUtil._f134(document.body,function() { return x337._f782(window.event); }); MVUtil.attachEvent(document.body,"keydown",this._f684); if(!this._f685) MVUtil.detachEvent(document.body,"keyup",this._f685); this._f685=MVUtil._f134(document.body,function() { return x337._f783(window.event); }); MVUtil.attachEvent(document.body,"keyup",this._f685); var x347=function() { x337._f784(window.event); return false; } var x348=function() { if(x337._f690==document.body.offsetWidth) { x337._f689=0; x347(); } else { x337._f691=window.setTimeout(x348,100); } } if(!this._f678) MVUtil.detachEvent(window,"resize",this._f678); this._f678=MVUtil._f134(window,function(x349) { if(Math.abs(x337._f669-x337._f13())<=3|| Math.abs(x337._f670-x337._f14())<=3) { return ; } this._f689++; this._f690=document.body.offsetWidth; if(this._f689>1) { if(this._f691) window.clearTimeout(this._f691); MVUtil._f691=window.setTimeout(x348,100); } }); MVUtil.attachEvent(window,"resize",this._f678); } } else if(x338=="NS") { this._f401.oncontextmenu=function(x350) { x337._f403(x350); if(x337._f657) { x337._f657(MVUtil.getEvent(x350)); } MVUtil.runListeners(x337._f143,MVEvent.MOUSE_RIGHT_CLICK,[MVUtil.getEvent(x350)]); if((x337._f196&&x337._f196._f485)) return true; else return false; }; this._f401.onmousedown=function(x351) { x351.stopPropagation(); return x337._f530(x351); }; this._f401.onmousemove=function(x352) { return x337._f780(x352); }; this._f401.onmouseup=function(x353) { x337._f250=true; return x337._f434(x353); }; var x354=function(x355) { MVUtil._f314(x355); if(!x337.lastWheelTime) x337.lastWheelTime=new Date(); else { var x356=new Date(); if(x356-x337.lastWheelTime<10) return ; } x337.lastWheelTime=new Date(); x355.preventDefault(); if(x337._f641) { if(x355.detail<0)x337.zoomIn(); else x337.zoomOut(); } } if(this._f641) { this._f401.addEventListener("DOMMouseScroll",x354,false); } else this._f401.removeEventListener("DOMMouseScroll",x354,false); this._f401.ondblclick=function(x357) { return x337._f781(x357); }; if(!this._f679) MVUtil.detachEvent(window.document,"mouseup",this._f679); this._f679=function(x358) { return x337._f434(x358); }; MVUtil.attachEvent(window.document,"mouseup",this._f679); if(!this._f323) { if(!this._f682) MVUtil.detachEvent(window.document,"keydown",this._f682); this._f682=function(x359) { return x337._f782(x359); }; MVUtil.attachEvent(window.document,"keydown",this._f682); if(!this._f683) MVUtil.detachEvent(window.document,"keyup",this._f683); this._f683=function(x360) { return x337._f783(x360); }; MVUtil.attachEvent(window.document,"keyup",this._f683); if(!this._f678) MVUtil.detachEvent(window,"resize",this._f678); this._f678=function(x361) { if(Math.abs(x337._f669-x337._f13())<=3|| Math.abs(x337._f670-x337._f14())<=3) { return ; } x337._f784(x361); return false; }; MVUtil.attachEvent(window,"resize",this._f678); } } else if(x338=="SF") { this._f401.oncontextmenu=function(x362) { x337._f403(x362); if(x337._f657) { x337._f657(MVUtil.getEvent(x362)); } MVUtil.runListeners(x337._f143,MVEvent.MOUSE_RIGHT_CLICK,[MVUtil.getEvent(x362)]); if((x337._f196&&x337._f196._f485)) return true; else return false; }; this._f401.onmousedown=function(x363) { x363.stopPropagation(); return x337._f530(x363); }; this._f401.onmousemove=function(x364) { return x337._f780(x364); }; this._f401.onmouseup=function(x365) { x337._f250=true; return x337._f434(x365); }; var x366=function(x367) { x367.preventDefault(); if(x367.detail>0||x367.wheelDelta<0) x337.zoomOut(); else x337.zoomIn(); } if(this._f641) this._f401.onmousewheel=x366; else this._f401.onmousewheel=null; this._f401.ondblclick=function(x368) { return x337._f781(x368); }; if(!this._f679) MVUtil.detachEvent(window.document,"mouseup",this._f679); this._f679=function(x369) { return x337._f434(x369); }; MVUtil.attachEvent(window.document,"mouseup",this._f679); if(!this._f323) { if(!this._f682) MVUtil.detachEvent(window.document,"keydown",this._f682); this._f682=function(x370) { return x337._f782(x370); }; MVUtil.attachEvent(window.document,"keydown",this._f682); if(!this._f683) MVUtil.detachEvent(window.document,"keyup",this._f683); this._f683=function(x371) { return x337._f783(x371); }; MVUtil.attachEvent(window.document,"keyup",this._f683); if(!this._f678) MVUtil.detachEvent(window,"resize",this._f678); this._f678=function(x372) { if(Math.abs(x337._f669-x337._f13())<=3|| Math.abs(x337._f670-x337._f14())<=3) { return ; } x337._f784(x372); return false; }; MVUtil.attachEvent(window,"resize",this._f678); } } if(x338=="OS") { this._f401.onmousedown=function() { window.event.stopPropagation(); return x337._f530(window.event); }; this._f401.onmousemove=function() { return x337._f780(window.event); }; this._f401.onmouseup=function() { x337._f250=true; return x337._f434(window.event); }; this._f401.ondblclick=function() { return x337._f781(window.event); }; if(!this._f679) MVUtil.detachEvent(window.document,"mouseup",this._f679); this._f679=function(x373) { return x337._f434(window.event); }; MVUtil.attachEvent(window.document,"mouseup",this._f679); if(!this._f323) { if(!this._f678) MVUtil.detachEvent(window,"resize",this._f678); this._f678=function(x374) { if(Math.abs(x337._f669-x337._f13())<=3|| Math.abs(x337._f670-x337._f14())<=3) { return ; } x337._f784(window.event); return false; }; MVUtil.attachEvent(window,"resize",this._f678); } this._f401.onkeypress=function() { return x337._f782(window.event); }; this._f401.onkeyup=function() { return x337._f783(window.event); }; } this._f476.oncontextmenu=this._f401.oncontextmenu; this._f476.onmousedown=this._f401.onmousedown; this._f476.onmousemove=this._f401.onmousemove; this._f476.onmouseup=this._f401.onmouseup; this._f476.ondblclick=this._f401.ondblclick; } MVMapView.prototype._f779=function(x375) { if(x375.wheelDelta>0)this.zoomIn(); else this.zoomOut(); return false; } MVMapView.prototype._f784=function(x376) { this._f671=false; this._f11=this.getZoomLevel(); if(this._f11>this._f193) { this._f11=this._f193; return ; } MVUtil._f76(this.div,0,0); MVUtil._f76(this._f476,0,0); this._f73=0; this._f74=0; this._f45=this._f73; this._f46=this._f74; this._f696=0; this._f697=0; this.setZoomLevel(this._f11); if(this._f724) { if(this.centerMarkUrl) this.setCenterMark(this.centerMarkUrl,this.centerMarkW,this.centerMarkH); else this.setCenterMark(_f30._f127+"center.gif",20,20); } if(this.navigationPanel) this.navigationPanel.init(null,this); for(lc=0;lc((this._f717+this._f718)/4)?300:200; this._f721=0; this._f722=0; this._f723=0; this.smoothPan(); } MVMapView.prototype.pan=function(x404,x405) { this.smoothScroll(x404,x405); } MVMapView.prototype.smoothScroll=function(x406,x407) { if(x406==0&&x407==0) { return; } if(this._f628) { this._f532=null; this._f401.style.cursor=this._f648; return true; } this._f401.style.cursor=this._f648; if(this._f631!=null) { clearTimeout(this._f631); this._f631=null; } this._f715=x406*(-1); this._f716=x407*(-1); this._f370=Math.sqrt(x406*x406+x407*x407); this._f719=10; this._f717=this._f13(); this._f718=this._f14(); this._f720=this._f370>((this._f717+this._f718)/4)?300:200; this._f721=0; this._f722=0; this._f723=0; this.smoothPan(); } MVMapView.prototype.smoothPan=function(x408) { this._f721++; var x409=x408?1:this._f721*this._f719/this._f720; this.targetX=this._f715*(2*x409-x409*x409); this.targetY=this._f716*(2*x409-x409*x409); var x410=this._f717/2; var x411=this._f718/2; this._f698(x410,x411); x410=Math.round(this.targetX-this._f722)+this._f717/2; x411=Math.round(this.targetY-this._f723)+this._f718/2; this._f405(x410,x411); if(this._f321) { this._f321._f795(this._f45-this._f73,this._f46-this._f74) } if(this._f658) { this._f658(this._f45-this._f73,this._f46-this._f74); } this._f722=this.targetX; this._f723=this.targetY; this._f199(); for(i=0;i0) { var x419=((this._f659.contains(37)||this._f659.contains(x418+4))?1:0)+ ((this._f659.contains(39)||this._f659.contains(x418+6))?-1:0); var x420=((this._f659.contains(38)||this._f659.contains(x418+8))?1:0)+ ((this._f659.contains(40)||this._f659.contains(x418+2))?-1:0); this.moveOffsetX=(x419==1?15:0)+(x419==-1?-15:0); this.moveOffsetY=(x420==1?15:0)+(x420==-1?-15:0); this._f698(0,0); this._f405(this.moveOffsetX,this.moveOffsetY); if(this._f321) { this._f321._f795(this._f45-this._f73,this._f46-this._f74) } if(this._f658) { this._f658(this._f45-this._f73,this._f46-this._f74); } for(i=0;i= this._f13())||(x424<=0)||(x424>= this._f14()))&&(this._f532)) { this._f434(); } } MVMapView.prototype._f403=function(x425) { var x426=MVUtil.getMouseLocation(this,x425); var x427=x426.sdo_point.x; var x428=x426.sdo_point.y; this._f621=x427; this._f622=x428; } MVMapView.prototype._f797=function(x429) { this._f628=x429; } MVMapView.prototype.enableDragging=function(x430) { this.draggingEnabled=x430; } function _f660(x0) { this.length=0; if(x0) { for(var x1=x0.length-1;x1>=0;--x1) { this.add(x0[x1]); this.length++; } } } _f660.prototype.add=function(x431) { if(!this.contains(x431)) { this["key"+x431]=1; this.length++; } } _f660.prototype.remove=function(x432) { if(this.exist(x432)) { delete this["key"+x432]; this.length--; } } _f660.prototype.contains=function(x433) { return this["key"+x433]==1; } _f660.prototype.exist=function(x434) { return this["key"+x434]==1||this["key"+x434]==2; } _f660.prototype.sleep=function() { for(prop in this) { if(typeof this[prop]!="function") { this[prop]=2; } } } _f660.prototype.wakeup=function() { for(prop in this) { if(typeof this[prop]!="function") { this[prop]=1; } } } MVMapView.prototype.addMapDecoration=function(x435) { if(this._f645==null) this._f645=new Array(); this._f645.push(x435); if(this._f63) { var id="_md_"+this._f646 x435.init(id,this,this._f401); this._f646++; x435._f63=true; if(x435.afterDisAction) { x435.afterDisAction(); } } } MVMapView.prototype.removeMapDecoration=function(x436) { if(x436==null||x436.id==null||this._f645==null) { return; } for(var x437=0;x4370) { x467.addThemeBasedFOI(x467._f667.shift()); } } if(!this._f668) this._f668=setInterval(x468,50); } MVMapView.prototype._f218=function(x469) { if(!this._f564) this._f564=x469; } MVMapView.prototype.compareBaseURL=function(x470) { if(x470&&x470!=""&&x470.indexOf(this._f90)<0) return false; else return true; } MVMapView.prototype.checkSize=function() { clearTimeout(this._f673); if(!this._f401) return ; if(Math.abs(this._f669-this._f13())>3|| Math.abs(this._f670-this._f14())>3) { this._f671=true; this._f672=0.4; this._f669=this._f13(); this._f670=this._f14(); } else this._f672+=0.4; if(this._f672>0.4&&this._f671) { this._f784(); this._f671=false; this._f672=0; } this._f673=this.setTimeout("this.checkSize()",300); } MVMapView.prototype._f331=function(x471,x472) { return {x:(x471-this._f15)*this._f71+this._f13()/2, y:(this._f16-x472)*this._f72+this._f14()/2}; } MVMapView.prototype.showInfoTip=function(x473,x474) { if(this.infoTipDiv) this.infoTipDiv.parentNode.removeChild(this.infoTipDiv); this.infoTipDiv=MVUtil._f365(x473); this.infoTipDiv.id="mv_mrqzm_msg"; this.infoTipDiv.style.border="1px solid #000000"; this.infoTipDiv.style.backgroundColor="#FFFFCC"; this.infoTipDiv.style.position="absolute"; var x475=MVUtil._f335(this,x474); this.infoTipDiv.style.left=x475.x+"px"; this.infoTipDiv.style.top=x475.y+"px"; this.infoTipDiv.style.zIndex=9999; this._f401.appendChild(this.infoTipDiv); }; MVMapView.prototype._f418=function() { if(this.infoTipDiv) { this.infoTipDiv.parentNode.removeChild(this.infoTipDiv); this.infoTipDiv=null; } }; MVMapView.prototype._f198=function() { if(arguments.length<2) return ; var x476=new Array(); for(var x477=2;x477x502) { x504=Math.ceil((x499-x502)/x503); x499-=x503*x504; x500-=x503*x504; } if(x500>x502) return true; } return false } MVMapView.prototype.enableMapWrapAround=function(x505) { this.wraparound=x505; } MVMapView._f800=0; MVMapView.prototype._f743=function(x506,x507) { if(!x506) return ; this._f632.push(x506); var x508=document.createElement("div"); this._f401.appendChild(x508); if(!x506.visible) x508.style.visibility="hidden"; x508.style.zIndex=this._f632.length; x508.style.position="absolute"; x508.style.zIndex=1; x508.style.left=MVUtil._f85(0); x508.style.top=MVUtil._f85(0); x508.style.width="100%"; x508.style.height="100%"; var x509=document.createElement("img"); x509.src=_f30._f127+"transparent."+(_f30._f87=="IF"?"gif":"png"); x509.style.position="absolute"; x509.style.zIndex=9999; x509.style.left=MVUtil._f85(0); x509.style.top=MVUtil._f85(0); x509.style.width="100%"; x509.style.height="100%"; x508.appendChild(x509); var x510=this; x508.ondblclick=function(x511) { return x510._f781(x511); }; var x512=document.createElement("div"); x506.layerDiv=x512; x512.id="mvexttl_"+MVMapView._f800++; x512.style.position="absolute"; x512.style.left=MVUtil._f85(0); x512.style.top=MVUtil._f85(0); x512.style.width="100%"; x512.style.height="100%"; x508.appendChild(x512); if(this._f63) { x506.setCenterAndZoomLevel(this._f15,this._f16,this._f11); x506.init(x512); } x506.parent=this; MVMapView.addMapTileLayerDefinition(x506._f404); } MVMapView.prototype._f700=function(x513,x514,x515,x516) { for(var x517=0;x5170) return this._f632[0]; else return null; } MVMapView.prototype._f699=function(x536,x537,x538,x539) { var x540,x541; if(this.wraparound||this._f323||!this._f688) return {left:x537,top:x539}; if(x536==x537) x540=x537; else { var x542=(x536-x537)/this._f71; var x543=(x536x547) { if(x549x545) { if(x548>x547) { if(x549>x546) x549=x546; } else { if(this._f479>x545) x549=this._f15; else x549=x549-(x551-x545); } } } x542=x549-this._f15; x540=x536-x542*this._f71; } if(x538==x539) x541=x539; else { var x552=(x538-x539)/this._f72; var x553=(x538x557) { if(x559x555) { if(x558>x557) { if(x559>x556) x559=x556; } else { if(this._f481>x555) x559=this._f16; else x559=x559-(x561-x555); } } } x552=x559-this._f16; x541=x538+x552*this._f72; } return {left:Math.round(x540),top:Math.round(x541)}; } MVMapView.prototype._f702=function(x562) { if(this._f323) this.reCenterTag=false; if(this.wraparound||this._f323||!this._f688) return x562; if(this.originalCenter==null) this.originalCenter=x562; if(this.reCenterTag) this.originalCenter=x562; else x562=this.originalCenter; this.reCenterTag=false; var x563=this.msi.mapConfig.coordSys.minX; var x564=this.msi.mapConfig.coordSys.maxX; var x565=(this.msi.mapConfig.coordSys.minX+this.msi.mapConfig.coordSys.maxX)/2; var x566=this.msi.mapConfig.coordSys.maxX-this.msi.mapConfig.coordSys.minX; var x567=this._f13()/this._f71; var x568=x562.getPointX(); var x569=x568-x567/2; var x570=x568+x567/2; if(x567>x566) x568=x565; else { if(x569x564) x568=x564-x567/2; } var x571=this.msi.mapConfig.coordSys.minY; var x572=this.msi.mapConfig.coordSys.maxY; var x573=(this.msi.mapConfig.coordSys.minY+this.msi.mapConfig.coordSys.maxY)/2; var x574=this.msi.mapConfig.coordSys.maxY-this.msi.mapConfig.coordSys.minY; var x575=this._f14()/this._f72; var x576=x562.getPointY(); var x577=x576-x575/2; var x578=x576+x575/2; if(x575>x574) x576=x573; else { if(x577x572) x576=x572-x575/2; } return MVSdoGeometry.createPoint(x568,x576,this.srid); } MVMapView.prototype._f802=function() { for(var x579=0;x579id) return this.foiGroupArray[id]; else return null; } MVMapView.prototype.createFOIGroupLayer=function() { this.foiGroupLayer=document.createElement("div"); this.foiGroupLayer.style.position="absolute"; this.foiGroupLayer.style.zIndex=180; this.foiGroupLayer.style.left=MVUtil._f85(0); this.foiGroupLayer.style.top=MVUtil._f85(0); this.div.appendChild(this.foiGroupLayer); } MVMapView.prototype.showOverLayerMarkWindow=function(x594,x595) { if(this.infoWindowTimeout2) { clearTimeout(this.infoWindowTimeout2); this.infoWindowTimeout2=null; } var x596=this; var x597=function(x598) { if(x598) x594=x598; x596.overlayMarker=true; x596.infoLayer2.domDiv=x595; x596.infoLayer2._f491("",x594.sdo_point.x,x594.sdo_point.y,0,0,"MVInfoWindowStyle4"); x596.overlayMarker=false; x596.infoLayer2.domDiv=null; } var x599=function() { if(x596._f63) { if(!x594.srid) x594.srid=x596.srid; if(x594.srid&&(x596.srid!=x594.srid)) center=x596.transformGeom(x594,x596.srid,null,x597); else x597(); } else x596.infoWindowTimeout2=setTimeout(x599,200); } x599(); } MVMapView.prototype.removeOverLayerMarkWindow=function() { if(this.infoLayer2._f477.length>0) this.infoLayer2.deleteInfoWindow(this.infoLayer2._f477[0]); } MVMapView.setUtilImgURL=function(x600) { _f30._f127=x600; } MVMapView.prototype.getMapConfig=function() { if(!this._f632) return null; if(!this.msi.mapConfig) MVi18n._f42("MVMapView.getMapConfig","MAPVIEWER-05526"); else return this.msi.mapConfig; } MVMapView.prototype._f706=function() { this.refreshThemeBasedFOIs(true); this._f751(); this.refreshGroupFOIs(true); this._f196.refresh(this._f478,this._f480, this._f479,this._f481, this._f13(),this._f14()); this.infoLayer2.refresh(this._f478,this._f480, this._f479,this._f481, this._f13(),this._f14()); } MVMapView.setLocale=function(x601,x602) { if(MVi18n.language!=x601||MVi18n.country!=x602) { MVi18n.language=x601; MVi18n.country=x602; } } function _f92(_f93,x,y,tabs,index,_width,_height,style,mouseOver,parent,screenLoc,parameters,domDiv,infoLayerId) { if(_width==null||_width<0)_width=0; if(_height==null||_height<0)_height=0; this._f94=parent.parent; if(style!="MVInfoWindowStyle1"&&style!="MVInfoWindowStyle4") { if(!_width) _width=_f30._f95; if(!_height) _height=_f30._f96; eval(style+".init()"); this._f97=eval(style+".createWindow("+x+","+y+","+_width+","+_height+","+parent.parent._f98+")"); _f93.appendChild(this._f97); } var close=function(){ if(MVInfoWindowStyle1._f99) { clearTimeout(MVInfoWindowStyle1._f99); MVInfoWindowStyle1._f99=null; } var id=parent.parent._f98+"_"+infoLayerId; if(MVInfoWindowStyle4._f99&&MVInfoWindowStyle4._f99[id]) { clearTimeout(MVInfoWindowStyle4._f99[id]); MVInfoWindowStyle4._f99[id]=null; } MVInfoWindowStyle1.clear(); MVInfoWindowStyle4.clear(); parent.deleteInfoWindow(_f93); } if(style=="MVInfoWindowStyle1") { var _f97=this._f97; var mvinfo=this; var drawInfoWindow=function() { if(MVInfoWindowStyle1.sizeChanged(parent.parent._f98)) { MVUtil._f100(_f93); MVInfoWindowStyle1.init(parameters); _f97=MVInfoWindowStyle1.createWindow(x,y,_width,_height,tabs.length,parent.parent._f98); MVInfoWindowStyle1.setTitleStyle(tabs,index); _f93.appendChild(_f97); MVInfoWindowStyle1.addContent(_f93,tabs); var x0=document.getElementById("infowindow3table_"+parent.parent._f98); MVInfoWindowStyle1.getWindowSize(_width,_height,parent.parent._f98); MVInfoWindowStyle1.removeInActiveTabs(index,parent.parent._f98); if(x0) { if(!isNaN(screenLoc.x)) { var x1=mvinfo.checkInfoWindowOverLayer(parent,infoLayerId,x0,screenLoc,MVInfoWindowStyle1._f101); x0.style.left=MVUtil._f85(x1.x-screenLoc.x); x0.style.top=MVUtil._f85(x1.y-screenLoc.y); if(!mouseOver) { MVInfoWindowStyle1.addCloseButton(close); MVInfoWindowStyle1._f102(_f93,parent.parent._f98); } } else { if(!mouseOver) { MVInfoWindowStyle1.addCloseButton(close); MVInfoWindowStyle1._f102(_f93,parent.parent._f98); } } } } MVInfoWindowStyle1._f99=setTimeout(drawInfoWindow,500); } drawInfoWindow(); this._f97=_f97; } else if(style=="MVInfoWindowStyle4") { var _f97=this._f97; MVInfoWindowStyle4.init(parameters); this._f98=parent.parent._f98+"_"+infoLayerId; var mvinfo=this; var autoResize=false; if(_width==0||_height==0) autoResize=true; var drawInfoWindow=function() { var x2=mvinfo._f98; if(MVInfoWindowStyle4.sizeChanged(x2)) { MVUtil._f100(_f93); _f97=document.createElement("div"); _f97.style.position="absolute"; _f97.style.left="0px"; _f97.style.top="0px"; _f97.style.zIndex="200"; var x3; if(tabs==null&&domDiv!=null) { x3=MVInfoWindowStyle4.createContentByDiv(x2,domDiv,autoResize,_width,_height); _f97.appendChild(x3); _f93.appendChild(_f97); } else if(tabs.length==1) { x3=MVInfoWindowStyle4.createNoTabContent(); _f97.appendChild(x3); _f93.appendChild(_f97); var x4=0; if(tabs[0].getTitle()) { x4=MVInfoWindowStyle4.createTitle(x2,x3,tabs[0].getTitle(),_width); x4+=6; } MVInfoWindowStyle4.createContent(x2,x3,tabs[0].getContent(),autoResize,_width,_height,x4); } else { if(_width==0) _width=_f30._f95; if(_height==0) _height=_f30._f96; x3=MVInfoWindowStyle4.createTabsAndContent(tabs,index,_width,_height); _f97.appendChild(x3); _f93.appendChild(_f97); } if(autoResize) { var x5=x3.offsetWidth; for(var x6=0;x61) x9+=6; if(_height "+x0+""; MVUtil._f107(x2,"auto"); return x2; } _f92.prototype._f108=function() { if(this._f97){ this._f97.style.display="none"; } } _f92.prototype._f109=function() { this._f97.style.display=""; this._f97.style.visibility="visible"; } _f92.prototype.isVisible=function() { return this._f97&&this._f97.style.display!="none"; } _f92.prototype.checkInfoWindowOverLayer=function(x3,x4,x5,x6,x7) { var x8=x5.offsetWidth; var x9=x5.offsetHeight; var x10=x3.parent._f73; var x11=x3.parent._f74; var x12=x3.width; var x13=x3.height; var x14=x6.x; var x15=x6.y; var x16=true; var x17=true; if(x10+x14>x12/2) x16=false; if(x11+x15x21) x17=!x17; else x16=!x16; } } x3.parent.displayedWindow[x4]={right:x16,top:x17,x:x6.x,y:x6.y}; if(x17) { if(x11+x15-x7-x9>=0) x15=x15-x7-x9; else { x15=-x11+x7; x18=true; } } else { if(x11+x15+x7+x9<=x13) x15=x15+x7; else { x15=x13-x11-x7-x9; x18=true; } } if(x16) { if(x10+x14+x7+x8<=x12||x18) x14=x14+x7; else x14=x12-x10-x7-x8; } else { if(x10+x14-x7-x8>=0||x18) x14=x14-x7-x8; else x14=-x10+x7; } return {x:x14,y:x15}; } function MVSdoGeometry(x0,x1,x2,x3,x4) { if(!x0) MVi18n._f42("MVSdoGeometry.constructor","MAPVIEWER-05519","gtype"); if(x2!=undefined&&x2!=null&&!MVUtil.isNumberArray(x2)) MVi18n._f42("MVSdoGeometry.constructor","MAPVIEWER-05527","sdo_elem_info"); if(x3!=undefined&&x3!=null&&!MVUtil.isNumberArray(x3)) MVi18n._f42("MVSdoGeometry.constructor","MAPVIEWER-05527","sdo_ordinates"); if(x4!=undefined&&x4!=null&&!(x4 instanceof MVSdoPointType)) MVi18n._f42("MVSdoGeometry.constructor","MAPVIEWER-05527","sdo_point"); this.gtype=x0; this.srid=x1; if(x4) { this.sdo_point=x4; } else this.sdo_point=null; this.sdo_elem_info=x2; this.sdo_ordinates=x3; this.mbr=null; } MVSdoGeometry.prototype.clone=function() { return new MVSdoGeometry(this.gtype,this.srid,this.sdo_elem_info,this.sdo_ordinates,this.sdo_point); } MVSdoGeometry.prototype.equals=function(x0) { if(x0==null)return false; if(this.gtype!=x0.gtype)return false; if(this.srid!=x0.srid)return false; if(!this.array_equals(this.getPoint(),x0.getPoint()))return false; if(!this.array_equals(this.sdo_elem_info,x0.sdo_elem_info))return false; if(this.gtype%10==1) return true; if(!this.array_equals(this.sdo_ordinates,x0.sdo_ordinates))return false; return true; } MVSdoGeometry.prototype.getDimensions=function() { return parseInt(this.gtype/1000); } MVSdoGeometry.prototype.getFirstPoint=function() { if(!this.isPoint())return null; var x1=[]; if(this.sdo_point!=null) { x1[0]=this.sdo_point.x; x1[1]=this.sdo_point.y; if(this.getDimensions()>2)x1[2]=this.sdo_point.z; } else { for(var x2=0;x22)x3[2]=this.sdo_point.z; } else { var x4=this.sdo_ordinates.length-this.getDimensions(); for(var x5=0;x5x8) x8=this.sdo_ordinates[x10]; if(this.sdo_ordinates[x10+1]x9) x9=this.sdo_ordinates[x10+1]; } } this.mbr=new Array(x6,x7,x8,x9); } } } return this.mbr; } MVSdoGeometry.prototype.getNumPoints=function() { if(this.isPoint())return 1; else return this.sdo_ordinates.length/this.getDimensions(); } MVSdoGeometry.prototype.getOrdinates=function() { if(this.getGType()==1&&this.sdo_point) return [this.sdo_point.x,this.sdo_point.y]; else return this.sdo_ordinates; } MVSdoGeometry.prototype.getOrdinatesOfElements=function() { var x11=[]; var x12=[]; if(this.sdo_elem_info.length==3) { x11[0]=this.sdo_ordinates; } else { for(var x13=0;x13<(this.sdo_elem_info.length-3)/3;x13++) { var x14=this.sdo_elem_info[3*x13]-1; var x15=this.sdo_elem_info[3*(x13+1)]-this.sdo_elem_info[3*x13]; for(var x16=0;x16x31) { x34=x31; x31=x29; x29=x34; } if(x30>x32) { x34=x32; x32=x30; x30=x34; } return new MVSdoGeometry(2003,x33,[1,1003,1],[x29,x30,x29,x32,x31,x32,x31,x30,x29,x30],null); } MVSdoGeometry.createRectangleByGCD=function(x35,x36,x37,x38,x39) { if(!MVUtil.isNumber(x35)) { MVi18n._f42("MVSdoGeometry.createRectangleByGCD","MAPVIEWER-05527","minLon"); return null; } if(!MVUtil.isNumber(x36)) { MVi18n._f42("MVSdoGeometry.createRectangleByGCD","MAPVIEWER-05527","minLat"); return null; } if(!MVUtil.isNumber(x37)) { MVi18n._f42("MVSdoGeometry.createRectangleByGCD","MAPVIEWER-05527","width"); return null; } if(!MVUtil.isNumber(x38)) { MVi18n._f42("MVSdoGeometry.createRectangleByGCD","MAPVIEWER-05527","height"); return null; } if(!x39) x39=8307; var x40=_f110._f112(new MVSdoPointType(x35,x36,0),x38,0); var x41=_f110._f112(new MVSdoPointType(x35,x36,0),x37,Math.PI/2); var x42=x35;var x43=x36;var x44=x41.x;var x45=x40.y; return new MVSdoGeometry(2003,x39,[1,1003,1],[x42,x43,x42,x45,x44,x45,x44,x43,x42,x43],null); } MVSdoGeometry.createCircle=function(x46,x47,x48,x49) { if(!MVUtil.isNumber(x46)) { MVi18n._f42("MVSdoGeometry.createCircle","MAPVIEWER-05527","cx"); return null; } if(!MVUtil.isNumber(x47)) { MVi18n._f42("MVSdoGeometry.createCircle","MAPVIEWER-05527","cy"); return null; } if(!MVUtil.isNumber(x48)) { MVi18n._f42("MVSdoGeometry.createCircle","MAPVIEWER-05527","radius"); return null; } return new MVSdoGeometry(2003,x49,[1,1003,4],[x46+x48,x47,x46,x47+x48,x46-x48,x47],null); } MVSdoGeometry.createCirclePolygon=function(x50,x51,x52,x53) { if(!MVUtil.isNumber(x50)) { MVi18n._f42("MVSdoGeometry.createCirclePolygon","MAPVIEWER-05527","cx"); return null; } if(!MVUtil.isNumber(x51)) { MVi18n._f42("MVSdoGeometry.createCirclePolygon","MAPVIEWER-05527","cy"); return null; } if(!MVUtil.isNumber(x52)) { MVi18n._f42("MVSdoGeometry.createCirclePolygon","MAPVIEWER-05527","radius"); return null; } if(!x53) x53=8307; var x54=new Array(); for(i=0;i<36;i++) { var x55=i*Math.PI/18; x54[i*2]=x50+x52*Math.cos(x55); x54[i*2+1]=x51+x52*Math.sin(x55); } x54[72]=x54[0]; x54[73]=x54[1]; return new MVSdoGeometry(2003,x53,[1,1003,1],x54,null); } MVSdoGeometry.createGeodeticCirclePolygon=function(x56,x57,x58,x59) { if(!MVUtil.isNumber(x56)) { MVi18n._f42("MVSdoGeometry.createGeodeticCirclePolygon","MAPVIEWER-05527","longitude"); return null; } if(!MVUtil.isNumber(x57)) { MVi18n._f42("MVSdoGeometry.createGeodeticCirclePolygon","MAPVIEWER-05527","latitude"); return null; } if(!MVUtil.isNumber(x58)) { MVi18n._f42("MVSdoGeometry.createGeodeticCirclePolygon","MAPVIEWER-05527","radius"); return null; } if(!x59) x59=8307; var x60=new Array(); for(i=0;i<36;i++) { var x61=_f110._f112(new MVSdoPointType(x56,x57,0),x58,i*Math.PI/18); x60[i*2]=x61.x; x60[i*2+1]=x61.y; } x60[72]=x60[0]; x60[73]=x60[1]; return new MVSdoGeometry(2003,x59,[1,1003,1],x60,null); } MVSdoGeometry.createPointAtBearing=function(x62,x63,x64,x65,x66) { if(!MVUtil.isNumber(x62)) { MVi18n._f42("MVSdoGeometry.createPointAtBearing","MAPVIEWER-05527","longitude"); return null; } if(!MVUtil.isNumber(x63)) { MVi18n._f42("MVSdoGeometry.createPointAtBearing","MAPVIEWER-05527","latitude"); return null; } if(!MVUtil.isNumber(x64)) { MVi18n._f42("MVSdoGeometry.createPointAtBearing","MAPVIEWER-05527","bearing"); return null; } if(!MVUtil.isNumber(x65)) { MVi18n._f42("MVSdoGeometry.createPointAtBearing","MAPVIEWER-05527","distance"); return null; } if(!x66) x66=8307; var x67=_f110._f112(new MVSdoPointType(x62,x63,0),x65,x64); return MVSdoGeometry.createPoint(x67.x,x67.y,x66); } MVSdoGeometry.prototype.getRequestURL=function(x68) { var x69=String(document.location); if(!x68) x68=_f30._f265(); var x70=""; if(MVMapView._f229&&!MVUtil.isLocalDomain(x68)) x70=_f30._f269()+"?rtarget="+x68+"&"; else x70=x68+"?"; return x70; } MVSdoGeometry.prototype.getLength=function(unit,_f436,foiURL,callBack,dataSource) { if(!dataSource) dataSource=_f30._f217(); if(!this.srid) { var len=MVSdoGeometry.calcLength(this.sdo_ordinates); if(callBack) callBack(len); return len; } var srs=_f30._f225(this.srid); var clientTransFunc=null; if(_f436) clientTransFunc=_f30._f274(this.srid,8307); if(!_f436||this.srid==8307||this.srid==8265|| _f436&&clientTransFunc) { if((srs||this.srid==8307||this.srid==8265||_f436&&clientTransFunc)&& (this.gtype%10==2||this.gtype%10==3)&& this.sdo_elem_info.length==3&&this.sdo_elem_info[0]==1&& (this.sdo_elem_info[1]==2||this.sdo_elem_info[1]==1003||this.sdo_elem_info[1]==2003)&& this.sdo_elem_info[2]==1) { var convFactor=0; if(!unit||unit=="") convFactor=1; else { convFactor=_f30._f222(unit); if(srs&&srs.distConvFactor&&!_f436) convFactor=convFactor/srs.distConvFactor; } var ordinates=this.sdo_ordinates; if(clientTransFunc) ordinates=MVMapView._f437(clientTransFunc,ordinates); if(convFactor) { var len=0; if(srs&&srs.type!='GEODETIC'&&!_f436) len=MVSdoGeometry.calcLength(ordinates)/convFactor; else len=_f110._f118(ordinates)/convFactor; if(callBack) callBack(len); return len; } } } var request=null; var _f438; var _f439=MVUtil._f35(this.toString(),"null",""); if(this.gtype%10!=2&&this.gtype%10!=6&&this.gtype%10!=3&&this.gtype%10!=7) { MVi18n._f42("MVSdoGeometry.getLength","MAPVIEWER-05513"); return 0; } else { _f439=MVUtil._f35(_f439," ",""); } var _f435=this.getRequestURL(foiURL); var localDomain=(_f435.indexOf(_f30._f269())<0&& MVUtil.isLocalDomain(_f435)); var xmlHttp=localDomain||MVMapView._f229; if(!xmlHttp&&!callBack) { MVi18n._f42("MVSdoGeometry.getLength","MAPVIEWER-05521"); return -1; } _f435+="request=getlength&version=1.1&figord="+_f439+""; if(unit) { _f435=_f435+"&unit="+unit; } if(_f436) { var trans=(_f436==true)?"yes":"no"; _f435=_f435+"&togeodetic="+trans; } if(dataSource) _f435=_f435+"&datasource="+dataSource; var request=null; var respLoaded=function() { if(request.readyState==4) { if(request.status==200) { var resp=xmlHttp?request.responseText:this.responseText; try { eval("var result="+resp); _f438=result; if(result.length==0) { result=null; return; } result=null; } catch(e) { MVi18n._f42("MVSdoGeometry.getLength","MAPVIEWER-05523",resp+"\n"+e); return ; } if(callBack) callBack(_f438); if(xmlHttp) return _f438; } } }; try { request=MVUtil.getXMLHttpRequest(xmlHttp); if(callBack||!xmlHttp) request.onreadystatechange=respLoaded; request.open("POST",encodeURI(_f435),callBack||!xmlHttp); request.send(""); }catch(e) { MVi18n._f42("MVSdoGeometry.getLength","MAPVIEWER-05511",e); } if(!callBack&&xmlHttp) { if(request.status==200) { return respLoaded(); } } } MVSdoGeometry.prototype.getArea=function(unit,_f436,foiURL,callBack,dataSource) { if(!dataSource) dataSource=_f30._f217(); var request=null; var _f438; var _f439=MVUtil._f35(this.toString(),"null",""); if(this.gtype%10!=3&&this.gtype%10!=7) { MVi18n._f42("MVSdoGeometry.getArea","MAPVIEWER-05513"); return 0; } else { _f439=MVUtil._f35(_f439," ",""); } var _f435=this.getRequestURL(foiURL); var localDomain=(_f435.indexOf(_f30._f269())<0&& MVUtil.isLocalDomain(_f435)); var xmlHttp=localDomain||MVMapView._f229; if(!xmlHttp&&!callBack) { MVi18n._f42("MVSdoGeometry.getArea","MAPVIEWER-05521") return -1; } _f435+="request=getarea&version=1.1&figord="+_f439+""; if(unit) { _f435=_f435+"&unit="+unit; } if(_f436) { var trans=(_f436==true)?"yes":"no"; _f435=_f435+"&togeodetic="+trans; } if(dataSource) _f435=_f435+"&datasource="+dataSource; var request=null; var respLoaded=function() { if(request.readyState==4) { if(request.status==200) { var resp=xmlHttp?request.responseText:this.responseText; try { eval("var result="+resp); _f438=result; if(result.length==0) { result=null; return; } result=null; } catch(e) { MVi18n._f42("MVSdoGeometry.getArea","MAPVIEWER-05523",resp+"\n"+e); } if(callBack) callBack(_f438); if(xmlHttp) return _f438; } } }; try { request=MVUtil.getXMLHttpRequest(xmlHttp); if(callBack||!xmlHttp) request.onreadystatechange=respLoaded; request.open("POST",encodeURI(_f435),callBack||!xmlHttp); request.send(""); }catch(e) { MVi18n._f42("MVSdoGeometry.getArea","MAPVIEWER-05511",e); } if(!callBack&&xmlHttp) { if(request.status==200) { return respLoaded(); } } } MVSdoGeometry.prototype.densify=function() { var x71=this.getGType(); if(x71<=1||x71==5) return this; var x72=_f30._f225(this.srid); if(this.srid!=8307&&this.srid!=8265&&(!x72||x72.type!='GEODETIC'&&x72.type!='PROJECTED')) return this; if(!this.sdo_elem_info||this.sdo_elem_info.length<3||!this.sdo_ordinates) return this; var x73=this.sdo_point?this.sdo_point.clone():null; var x74=this.sdo_elem_info.slice(); var x75=this.sdo_ordinates; var x76=this.getComponents(x74,x75); if(x76==null||x76.length<=0) return null; var x77=null; var x78=1; if(x72&&x72.type=='PROJECTED') x78=100000*x72.distConvFactor; for(var x79=0;x790) { x102=x102*1.0/x104; x103=x103*1.0/x104; for(var x105=0;x105"; x110=x110+x109+""; return x110; } MVSdoGeometry.prototype._f441=function(x111) { var x112=MVSdoGeometry._f446(x111); var x113=""; x113=x113+x112+"" return x113; } MVSdoGeometry.prototype._f443=function(x114) { var x115=MVSdoGeometry._f446(x114); var x116=""; x116=x116+x115+"" return x116; } MVSdoGeometry.prototype._f445=function() { var x117=this.getOrdinatesOfElements(); var x118=""; for(var x119=0;x119"; x118=x118+this._f443(x117[x119]); x118=x118+""; } x118=x118+""; return x118; } MVSdoGeometry.prototype._f444=function() { var x120=this.getOrdinatesOfElements(); var x121=""; for(var x122=0;x122"; x121=x121+this._f441(x120[x122]); x121=x121+""; } x121=x121+""; return x121; } MVSdoGeometry.prototype._f442=function(x123) { var x124=parseFloat(x123[2]); var x125=parseFloat(x123[1]); var x126=parseFloat(x123[0])-parseFloat(x123[2]); var x127=""; var x128=2*Math.PI; var x129=x124+x126*Math.cos((x128*0)/120); for(var x130=1;x130<120;x130++) { if(x130%2==0) { x127=x124+x126*Math.cos((x128*x130)/120); x129+=" "+x127; } else { x127=x125+x126*Math.sin((x128*x130)/120); x129+=","+x127; } } var x131=""; x131+=x129+""; return x131; } MVSdoGeometry._f446=function(x132) { var x133=0; var x134=""; for(;x1330) x134+=" "; x134+=x132[x133+0]+","+x132[x133+1]; } return x134; } MVSdoGeometry.getDistance=function(x135,x136,x137,x138,x139,x140,x141,x142,x143) { if(!MVUtil.isNumber(x135)) { MVi18n._f42("MVSdoGeometry.getDistance","MAPVIEWER-05527","x1"); return null; } if(!MVUtil.isNumber(x136)) { MVi18n._f42("MVSdoGeometry.getDistance","MAPVIEWER-05527","y1"); return null; } if(!MVUtil.isNumber(x137)) { MVi18n._f42("MVSdoGeometry.getDistance","MAPVIEWER-05527","x2"); return null; } if(!MVUtil.isNumber(x138)) { MVi18n._f42("MVSdoGeometry.getDistance","MAPVIEWER-05527","y2"); return null; } var x144=new Array(x135,x136,x137,x138); var x145=MVSdoGeometry.createLineString(x144,x139); return x145.getLength(x140,x141,x142,x143); } MVSdoGeometry.calcLength=function(x146) { var x147=0,x148=2; if(x146&&x146.length>3) { for(;x148=4) { var x153=0; var x154=x151.length/2; var x155; for(x155=1;x155+1x8&&x3._f322._f639) { x3._f326._f639=false; x3._f322.setZoomLevel(MVOverviewMap._f922(x3._f322.getZoomLevel()-x10)); x3._f324(); } else if(x9"; else if(_f30._f87=='SF') x17._f921.innerHTML="
"; else if(_f30._f87=='IF') x17._f921.innerHTML="
"; if(x22>x17._f326._f13()||x23>x17._f326._f14()) x17._f921.style.visibility="hidden"; else x17._f921.style.visibility=x17._f326._f401.style.visibility; x17._f921.onmousedown=MVUtil._f134(x17._f921,function(x24){ var x25=x17._f322.getCenter(); x24=(x24)?x24:((window.event)?event:null); if(x24.button==2) { return; } x17.coords=x17._f326._f336(x24) x17._f918=true; MVUtil._f314(x24); x17._f486=0; x17._f487=0; }) x17._f921.onmouseup=MVUtil._f134(x17._f921,function(x26) { if(x17._f918) { x26=(x26)?x26:((window.event)?event:null); x17._f918=false; x26.cancelBubble=true; x17._f921._f923(); } }) x17._f921._f923=MVUtil._f134(x17._f921,function() { x17._f918=false; var x27=parseInt(this.style.left)+parseInt(this.style.width)/2; var x28=parseInt(this.style.top)+parseInt(this.style.height)/2; var x29=x17._f326; var x30=x27-x29._f13()/2; x30=x30/x29._f71; var x31=x28-x29._f14()/2; x31=x31/x29._f72; var x32=x17._f326._f369()+x30; var x33=x17._f326._f398()-x31; var x34=MVSdoGeometry.createPoint(x32,x33,x17._f326.srid); x17._f326.setCenter(x34); }) if(!x17._f920) MVUtil.detachEvent(window.document,"mouseup",x17._f920); x17._f920=MVUtil._f134(window.document,function(x35) { if(x17._f918){ x17._f918=false; x17._f921._f923(); } }); MVUtil.attachEvent(window.document,"mouseup",x17._f920); x17._f921.onmousemove=MVUtil._f134(x17._f921,function(x36) { x36=(x36)?x36:((window.event)?event:null); if(x17._f918) { var x37=x17._f326._f336(x36); x=x37.left-x17.coords.left; y=x37.top-x17.coords.top; x17.coords=x37; this.style.left=(parseInt(this.style.left)+x)+"px"; this.style.top=(parseInt(this.style.top)+y)+"px"; x36.cancelBubble=true; } }) } if(x15.srid!=x16.srid) { this._f322.transformGeom(x15,x16.srid,null,x18); } else x18(x15); } MVOverviewMap.prototype._f795=function(x38,x39) { if(this.xRatio==undefined) return ; var x40=Math.floor(this.xRatio*x38*(this._f326._f13()/this._f322._f13())); var x41=Math.floor(this.yRatio*x39*(this._f326._f14()/this._f322._f14())); if(x40>=0) x40=Math.floor(x40); else x40=Math.ceil(x40); if(x41>=0) x41=Math.floor(x41); else x41=Math.ceil(x41); if(!this._f919) { this._f325=true; this._f921.style.left=(parseInt(this._f921.style.left)+x40)+"px"; this._f921.style.top=(parseInt(this._f921.style.top)+x41)+"px"; } } MVOverviewMap.prototype._f742=function() { if(!this._f919) { this._f325=true; this._f326.setCenter(this._f322.getCenter()); this._f324(); } this._f919=false; } MVOverviewMap.prototype._f741=function(x42,x43,x44) { var x45=x42-x43; if(x43>=x42&&this._f326._f639) { this._f322._f639=false; if(x42-this._f326.getZoomLevel()==this._f917){ if(x44) this._f326.setCenterAndZoomLevel(x44,MVOverviewMap._f922(this._f326.getZoomLevel()-x45)); else this._f326.setZoomLevel(MVOverviewMap._f922(this._f326.getZoomLevel()-x45)); } else { if(x44) this._f326.setCenterAndZoomLevel(x44,MVOverviewMap._f922(x42-x45-this._f917)); else this._f326.setZoomLevel(MVOverviewMap._f922(x42-x45-this._f917)); } } else if(x43=0&&i1) x18.removeChild(x18.childNodes[1]); x18.appendChild(x13._f129[x15]); x13._f132[x13.active].style.cssText=x13.style_inactiveTab; x13._f132[x13.active].style.height=MVUtil._f85(10);x13._f132[x13.active].style.width=((100-10)/x16)+"%"; x13._f132[x13.active].style.borderBottom=x13.style_tabBorder; x13._f132[x13.active].style.cursor="pointer"; if(x13.active+1==x13._f132.length) x13._f132[x13.active].style.borderRight="none"; else x13._f132[x13.active].style.borderRight=x13.style_tabBorder; x13._f132[x15].style.cssText=x13.style_activeTab; x13._f132[x15].style.height=MVUtil._f85(10);x13._f132[x15].style.width=((100-10)/x16)+"%"; x13._f132[x15].style.borderBottom="none"; x13._f132[x15].style.borderRight=x13.style_tabBorder; x13._f132[x15].style.cursor="default"; if(x15+1==x13._f132.length){ x13._f132[x15].style.borderRight=x13.style_tabBorder; } x13.active=x15; MVInfoWindowStyle1.pauseRedraw=false; MVInfoWindowStyle1._f95=x17.offsetWidth;MVInfoWindowStyle1._f96=x17.offsetHeight;x17.style.height=x17.offsetHeight} for(var x19=0;x191){ x33.style.cssText=this._f124; x33.style.border="0px none"; x33.style.padding="0px"; x33.style.height=MVUtil._f85(10); for(var x35=0;x35(x69?x69:_f30._f95)) x72.style.width=MVUtil._f85(x73); var x74=0; var x75=this._f129[0].offsetHeight; for(var x76=1;x76(x70?x70:_f30._f96)) x72.style.height=MVUtil._f85(x77); } } MVInfoWindowStyle1.setCloseButtonSize=function() { if(this.closeButtonWidth||!this._f131||!this._f131.firstChild) return ; this.closeButtonWidth=this._f131.firstChild.offsetWidth; this.closeButtonHeight=this._f131.firstChild.offsetHeight; } MVInfoWindowStyle1.clear=function() { if(this._f128) MVUtil._f19(this._f128); this._f128=null; if(this._f129) MVUtil._f19(this._f129); this._f129=null; if(this._f131) MVUtil._f19(this._f131); this._f131=null; if(this.titleRow) MVUtil._f19(this.titleRow); this.titleRow=null; if(this._f132) { for(var x78=0;x781){ for(var x83=0;x83=0&&i1) x15=new _f334(MVInfoWindowStyle4.windowTabsHeaderLeft,5,31,null,null,null,true) else x15=new _f334(MVInfoWindowStyle4.windowHeaderLeft,5,31,null,null,null,true) x14.appendChild(x15); var x16=document.createElement("td"); x16.style.paddingTop=MVUtil._f85(6); if(x7&&x7.length>1) x16.style.backgroundImage="url("+MVInfoWindowStyle4.windowTabsHeaderMiddle+")"; else x16.style.backgroundImage="url("+MVInfoWindowStyle4.windowHeaderMiddle+")"; x16.style.backgroundRepeat="repeat-x"; x16.style.textAlign="right"; x16.style.verticalAlign="top"; x16.style.width="100%"; x13.appendChild(x16); if(!x10) { var x17=MVInfoWindowStyle4.addCloseButton(x9); if(x17!=null) x16.appendChild(x17); } var x18=document.createElement("td"); x13.appendChild(x18); var x19=null; if(x7&&x7.length>1) x19=new _f334(MVInfoWindowStyle4.windowTabsHeaderRight,5,31,null,null,null,true) else x19=new _f334(MVInfoWindowStyle4.windowHeaderRight,5,31,null,null,null,true); x18.appendChild(x19); var x20=document.createElement("tr"); x12.appendChild(x20); var x21=document.createElement("td"); x20.appendChild(x21); x21.colSpan="3"; x21.style.backgroundColor="#EBEFF5"; x21.style.borderLeft="1px solid #C2C7D3"; x21.style.borderRight="1px solid #C2C7D3"; var x22=document.createElement("div"); x22.style.width=MVUtil._f85(x5-2); x22.style.height=MVUtil._f85(x6-62>0?x6-62:0); x21.appendChild(x22) var x23=document.createElement("tr"); x12.appendChild(x23); var x24=document.createElement("td"); x23.appendChild(x24); var x25=new _f334(MVInfoWindowStyle4.windowFooterLeft,5,31,null,null,null,true) x24.appendChild(x25); var x26=document.createElement("td"); x23.appendChild(x26); var x27=new _f334(MVInfoWindowStyle4.windowFooterMiddle,x5-5-5,31,null,null,null,true); x26.appendChild(x27); var x28=document.createElement("td"); x23.appendChild(x28); var x29=new _f334(MVInfoWindowStyle4.windowFooterRight,5,31,null,null,null,true); x28.appendChild(x29); if(!x11.style.width||x11.style.width==""|| x11.style.width=="0"||x11.style.width=="0px") { if(x5) x11.style.width=MVUtil._f85(x5); else x11.style.width=MVUtil._f85(_f30._f95[x8]); } if(!x11.style.height||x11.style.height==""|| x11.style.height=="0"||x11.style.height=="0px") { if(x6) x11.style.height=MVUtil._f85(x6); else x11.style.height=MVUtil._f85(_f30._f96[x8]); } var x30=MVInfoWindowStyle4.createWindowShadow(x5,x6); this._f133.appendChild(x30); this._f133.style.left=MVUtil._f85(x3-MVInfoWindowStyle4._f101); this._f133.style.top=MVUtil._f85(x4+MVInfoWindowStyle4._f101); this._f133.style.position='absolute'; this._f133.style.zIndex=200; return this._f133; } MVInfoWindowStyle4.createWindowShadow=function(x31,x32) { var x33=0; var x34=0; var x35=[24,16,12,10,8,6,6,4,4,4,4,2,2,2,2,2,2,2]; var x36=document.createElement("DIV"); x36.style.zIndex="-1"; x36.style.position="absolute"; x36.style.left=MVUtil._f85(3); x36.style.top=MVUtil._f85(3); for(var x37=0;x37<18;x37++) { var x38=document.createElement("DIV"); x38.style.backgroundColor="#000000"; x38.style.left=MVUtil._f85(x33); x38.style.top=MVUtil._f85(x34); x38.style.position="absolute"; x38.style.width=MVUtil._f85(x31-3); x38.style.height=MVUtil._f85(x32-3); var x39=x35[x37]; MVInfoWindowStyle4.setOpaque(x38,x39); if(x37%2==0) x33++; else x34++; x36.appendChild(x38); } return x36; } MVInfoWindowStyle4.createNoTabContent=function() { var x40=document.createElement("div"); x40.style.position="absolute"; x40.style.left=MVUtil._f85(0); x40.style.top=MVUtil._f85(0); x40.style.zIndex="220"; return x40; } MVInfoWindowStyle4.createTitle=function(x41,x42,x43,x44) { var x45=document.createElement("div"); x45.style.cssText="font-family: Tahoma; font-size: 12px;font-weight: bold; color:#3E403D"; x45.style.position="relative"; if(x44>=30) x45.style.width=MVUtil._f85(x44-30); else if(x44!=0) x45.style.width=MVUtil._f85(0); x45.style.left=MVUtil._f85(6); x45.style.top=MVUtil._f85(6); x45.innerHTML=x43; x45.id=x41+"_title"; x42.appendChild(x45); return x45.offsetHeight; } MVInfoWindowStyle4.createContent=function(x46,x47,x48,x49,x50,x51,x52) { var x53=document.createElement("div"); x53.style.position="relative"; x53.style.left=MVUtil._f85(10); if(!x49) { if(x52==0) x53.style.width=MVUtil._f85(x50-30); else x53.style.width=MVUtil._f85(x50-20); x53.style.height=MVUtil._f85(x51-x52-20); x53.style.overflow="auto"; } x53.style.top=MVUtil._f85(10); x53.id=x46+"_content"; x53.innerHTML=x48; x47.appendChild(x53); } MVInfoWindowStyle4.createTabsAndContent=function(x54,x55,x56,x57) { var x58=document.createElement("div"); var x59=9; var x60=30; x58.style.position="absolute"; x58.style.width=MVUtil._f85(x56-20); x58.style.height=MVUtil._f85(x57); x58.style.zIndex="220"; var x61; if(x55!=null) x61=x55; else x61=0; var x62=document.createElement("div"); x62.style.zIndex="210"; x62.style.position="absolute"; x62.style.left="15px"; x62.style.top="5px"; var x63=document.createElement("div"); x63.style.left="5px"; x63.style.top="20px"; x63.style.width=(x56-x59)+"px"; x63.style.height=(x57-x60)+"px"; x63.style.position="absolute"; var x64=document.createElement("div"); x64.style.position="absolute"; x64.style.top="5px"; x64.style.left="0px"; var x65=document.createElement("div"); x65.style.width="5px"; x65.style.height="5px"; x65.style.position="absolute"; var x66=MVUtil._f77(MVInfoWindowStyle4.tabContentHeadStartImgURL,true); x66.style.width="5px"; x65.appendChild(x66); x64.appendChild(x65); var x67=document.createElement("div"); x67.style.width=(x56-x59-5-8)+"px"; x67.style.height="5px"; x67.style.left="5px"; x67.style.position="absolute"; x67.style.backgroundRepeat="repeat-x"; x67.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentHeadMidImgURL+")"; x64.appendChild(x67); var x68=document.createElement("div"); x68.style.width="8px"; x68.style.height="5px"; x68.style.left=(x56-x59-8)+"px"; x68.style.position="absolute"; var x69=MVUtil._f77(MVInfoWindowStyle4.tabContentHeadEndImgURL,true); x69.style.width="8px"; x68.appendChild(x69); x64.appendChild(x68); x63.appendChild(x64); var x70=document.createElement("div"); x70.style.position="absolute"; x70.style.top="10px"; x70.style.left="0px"; var x71=document.createElement("div"); x71.style.width="5px"; x71.style.height=(x57-x60-5-7)+"px"; x71.style.position="absolute"; x71.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentMidStartImgURL+")"; x70.appendChild(x71); var x72=document.createElement("div"); x72.style.width=(x56-x59-5-8)+"px"; x72.style.height=(x57-x60-5-7)+"px"; x72.style.left="5px"; x72.style.position="absolute"; x72.style.backgroundRepeat="repeat-x"; x72.style.backgroundColor="#F8F8FB"; x72.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentMidMidImgURL+")"; var x73=document.createElement("div"); x73.style.overflow="auto"; x73.style.width=(x56-x59-5-8)+"px"; x73.style.height=(x57-x60-5-7-6-9)+"px"; x73.style.position="absolute"; x73.style.top="15px"; x73.style.left="0px"; x72.appendChild(x73); x70.appendChild(x72); var x74=document.createElement("div"); x74.style.width="8px"; x74.style.height=(x57-x60-5-7)+"px"; x74.style.left=(x56-x59-8)+"px"; x74.style.position="absolute"; x74.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentMidEndImgURL+")"; x70.appendChild(x74); x63.appendChild(x70); var x75=document.createElement("div"); x75.style.position="absolute"; x75.style.top=(x57-x60-7+5)+"px"; x75.style.left="0px"; var x76=document.createElement("div"); x76.style.width="6px"; x76.style.height="7px"; x76.style.position="absolute"; var x77=MVUtil._f77(MVInfoWindowStyle4.tabContentFooterStartImgURL,true); x77.style.width="6px"; x76.appendChild(x77); x75.appendChild(x76); var x78=document.createElement("div"); x78.style.width=(x56-x59-6-8)+"px"; x78.style.height="7px"; x78.style.left="6px"; x78.style.position="absolute"; x78.style.backgroundRepeat="repeat-x"; x78.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentFooterMidImgURL+")"; x75.appendChild(x78); var x79=document.createElement("div"); x79.style.width="8px"; x79.style.height="7px"; x79.style.left=(x56-x59-8)+"px"; x79.style.position="absolute"; var x80=MVUtil._f77(MVInfoWindowStyle4.tabContentFooterEndImgURL,true); x80.style.width="8px"; x79.appendChild(x80); x75.appendChild(x79); x63.appendChild(x75); var x81; function mouseOver(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); x81=x1.style.color; x1.style.color="#78c3ff"; } function mouseOut(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); x1.style.color=x81; } function _f192(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); } function mouseUp(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); x61=x1.parentNode.parentNode.indexInList; x81=x1.style.color; MVUtil._f19(x1.parentNode.parentNode.parentNode); dealTabs(x54,x62); } function dealTabs(x0,x1) { for(i=0;i=5&& !(x132=5&& !(x133+x1350) x7=x7.substr(0,x7.length-1); x7+="]}"; return x7; } MVNSDP.prototype.getXML=function(x11) { var x12=""; x12+=""; var x13=null; if(this.nsdp_rendersty!=null) x13=this.nsdp_rendersty; else if(x11&&x11._f37!=null) x13=x11._f37; if(x13) x12+=""; x12+=""; if(this.nsdp_smfo!=null&&this.nsdp_smfo==false) x12+="true"; if(this.nsdp_params!=null) { x12+=""; for(p in this.nsdp_params) { var x14=null; if(p=="xml") x14=this.nsdp_params[p].replace(/"; } x12+=""; } x12+=""; return x12; } function MVXMLStyle(x0,x1) { this.name=x0; this.xmlDef=x1; } MVXMLStyle.prototype.getXMLString=function() { var x0=''; return x0; } function MVStyleColor(x0,x1,x2) { this.name=x0; this.type="color"; this.description=null; if(x1==null) this.fill=null; else if(x1.charAt(0)=='#') this.fill=x1.substring(1,x1.length); else this.fill=x1; this.fill_opacity=255; if(x2==null) this.stroke=null; else if(x2.charAt(0)=='#') this.stroke=x2.substring(1,x2.length); else this.stroke=x2; this.stroke_opacity=255; this.stroke_width=1; } MVStyleColor.prototype.setStroke=function(x0) { if(x0==null) this.stroke=null; else if(x0.charAt(0)=='#') this.stroke=x0.substring(1,x0.length); else this.stroke=x0; } MVStyleColor.prototype.setStrokeOpacity=function(x1) { this.stroke_opacity=x1; } MVStyleColor.prototype.setFill=function(x2) { if(x2==null) this.fill=null; else if(x2.charAt(0)=='#') this.fill=x2.substring(1,x2.length); else this.fill=x2; } MVStyleColor.prototype.setFillOpacity=function(x3) { this.fill_opacity=x3; } MVStyleColor.prototype.setDescription=function(x4) { this.description=x4; } MVStyleColor.prototype.setStrokeWidth=function(x5) { this.stroke_width=x5; } MVStyleColor.prototype.getXMLString=function() { var x6=(this.stroke==null)?"":"stroke:0x"+this.stroke+";"; var x7=(this.fill==null)?"":"fill:0x"+this.fill+";"; var x8=this.stroke_opacity<255?"stroke-opacity:"+this.stroke_opacity+";":""; var x9=this.fill_opacity<255?"fill-opacity:"+this.fill_opacity+";":""; var x10=this.stroke_width!=1?"stroke-width:"+this.stroke_width:""; var x11=''; return x11; } function MVStyleMarker(x0,x1) { this.name=x0; if(x1==null) this.type="image"; else this.type=x1.toLowerCase(); this.description=null; this.fill=null; this.fill_opacity=255; this.stroke=null; this.stroke_opacity=255; this.stroke_width=1; this.imageUrl=null; this.vector=null; this.width=16; this.height=16; } MVStyleMarker.prototype.setName=function(x0) { if(x0!=null) this.name=x0; } MVStyleMarker.prototype.setSize=function(x1,x2) { if(x1!=null) this.width=x1; if(x2!=null) this.height=x2; } MVStyleMarker.prototype.setImageUrl=function(x3) { if(x3==null) this.imageUrl=null; else { if(x3.indexOf("://")<0) { if(x3.indexOf("/")==0) x3=document.location.protocol+"//"+document.location.host+x3; else { var x4=document.location+""; var x5=x4.lastIndexOf("/"); if(x5>0) x4=x4.substring(0,x5+1); x3=x4+x3; } } this.imageUrl=x3; } } MVStyleMarker.prototype.setStrokeColor=function(x6,x7) { if(x6==null) this.stroke=null; else if(x6.charAt(0)=='#') this.stroke=x6.substring(1,x6.length); else this.stroke=x6; this.stroke_opacity=x7; } MVStyleMarker.prototype.setFillColor=function(x8,x9) { if(x8==null) this.fill=null; else if(x8.charAt(0)=='#') this.fill=x8.substring(1,x8.length); else this.fill=x8; if(x9!=null) this.fill_opacity=x9; } MVStyleMarker.prototype.setDescription=function(x10) { this.description=x10; } MVStyleMarker.prototype.setStrokeWidth=function(x11) { this.stroke_width=x11; } MVStyleMarker.prototype.setVectorShape=function(x12) { if(x12==null) this.vector=null; else this.vector=x12; } MVStyleMarker.prototype.getXMLString=function() { var x13="width:"+this.width+";height:"+this.height+";"; var x14=(this.stroke==null)?"":"stroke:0x"+this.stroke+";"; var x15=(this.fill==null)?"":"fill:0x"+this.fill+";"; var x16=this.stroke_opacity<255?"stroke-opacity:"+this.stroke_opacity+";":""; var x17=this.fill_opacity<255?"fill-opacity:"+this.fill_opacity+";":""; var x18=this.stroke_width!=1?"stroke-width:"+this.stroke_width:""; var x19=""; if(this.type=="image") { x19=' '; } else if(this.type=="vector") { if(this.vector.charAt(0)=='c'||this.vector.charAt(0)=='C') { x19=' '; } else { x19=' '; } } var x20=''; return x20; } function MVBucketSeries(x0) { this._f33=null; this._f34=new Array(); this._f32=x0; if(x0!="SCHEME_CUSTOM"&&x0!="SCHEME_EQUAL_INTERVAL") this._f32="SCHEME_CUSTOM"; } MVBucketSeries.prototype.setBuckets=function(x0) { this._f34=x0; } MVBucketSeries.prototype.getBuckets=function() { return this._f34; } MVBucketSeries.prototype.getScheme=function() { return _f32; } MVBucketSeries.prototype.setDefaultRenderingStyle=function(x1) { this._f33=x1; } MVBucketSeries.prototype.getXMLString=function() { var x2=(this._f33==null)?"":' default_style="'+this._f33+'" '; var x3=""; for(var x4=0;x4'; x0+=this._f34.getXMLString()+""; return x0; } function MVNumericRangedBucket(x0,x1,x2,x3) { this.low=x0; this.high=x1; this.renderingStyle=x2; this.label=x3; } MVNumericRangedBucket.prototype.getXMLString=function() { var x0=(this.label==null)?"":'label="'+this.label+'" '; var x1=""; } this._f279.style.left=MVUtil._f85(0); this._f279.style.top=this._f290+((_f30._f87=="IF")?-1:1)+"px"; this._f279.style.border=MVUtil._f85(0); if(_f30._f87=="NS"||_f30._f87=="IF") { this._f279.style.width=this.width-2+"px" this._f279.style.height=(this.height-this._f290-1)+"px"; } else { this._f279.style.width=this.width-2+"px" this._f279.style.height=(this.height-this._f290-2)+"px"; } if(this.html) this._f279.innerHTML=this.html; this.realContdiv.appendChild(this._f279); this._f307=true; this.n=(this.height-this._f290)/this._f292+1; this._f315(this.realContdiv); this._f303(this._f304); if(this._f297) this.collapse(); } else { x34.appendChild(this._f279); if(this.html) this._f279.innerHTML=this.html; this._f303(this._f279); if(this.width) this._f279.style.width=MVUtil._f85(this.width); if(this.height) this._f279.style.height=MVUtil._f85(this.height); this._f315(this._f279); var x36=this; var x40=document.createElement("img"); x40.src=MVUtil.getImageURL(this.style.dragIconImg); MVUtil._f316(x40); x40.style.zIndex=9999; x40.style.left=MVUtil._f85(0); x40.style.top=MVUtil._f85(-20); x40.style.visibility="hidden"; if(_f30._f87=="NS") { x40.onmousedown=function(x41) { if(x36._f302) { x36.parent._f309=x36; x36.dragStartMouseLoc=MVUtil._f313(x41); x36.dragStartLeft=MVUtil._f311(x36._f279); x36.dragStartTop=MVUtil._f312(x36._f279); if(x36._f287) x36._f287(x36.getPosition()); MVUtil.runListeners(x36._f143,MVEvent.AFTER_RESTORE,[x36.getPosition()]); MVUtil._f314(x41); } } } this._f279.appendChild(x40); var x42=this._f279.onmouseover; this._f279.onmouseover=function(x43) { if(x42) x42(x43); if(x36._f302) x40.style.visibility="visible"; } var x44=this._f279.onmouseout; this._f279.onmouseout=function(x45) { if(x44) x44(x45); if(x36.parent._f309!=x36) x40.style.visibility="hidden"; } if(this._f302) MVUtil._f107(this._f279,"move"); else MVUtil._f107(this._f279,"default"); this._f279.onmousedown=function(x46) { if(x36._f302) { x36.parent._f309=x36; x36.dragStartMouseLoc=MVUtil._f313(x46); x36.dragStartLeft=MVUtil._f311(x36._f279); x36.dragStartTop=MVUtil._f312(x36._f279); if(x36._f287) x36._f287(x36.getPosition()); MVUtil.runListeners(x36._f143,MVEvent.AFTER_RESTORE,[x36.getPosition()]); MVUtil.trapEvent(x46); } else if(!x36._f167) MVUtil.trapEvent(x46); } } if(this.mapControl) { if(this.mapControl.setMouseCursorStyle&&this.cursorStyle) this.mapControl.setMouseCursorStyle(this.cursorStyle,"default"); this.mapControl.init(this._f279,x33); this.mapControl._f278=true; } if(!this._f297) this._f305(); } MVMapDecoration.prototype._f315=function(x47) { var x48=this; var x49=function(x50) { if(!x48._f167) MVUtil.trapEvent(x50); } x47.onclick=function(x51) { x49(x51); if(x48._f282) { x48.parent._f310(); x48._f282(); } if(x48._f143[MVEvent.MOUSE_CLICK]!=null&&x48._f143[MVEvent.MOUSE_CLICK].length!=0) { x48.parent._f310(); MVUtil.runListeners(x48._f143,MVEvent.MOUSE_CLICK); } } x47.onmouseover=function(x52) { x49(x52); if(x48._f283) x48._f283(x52); MVUtil.runListeners(x48._f143,MVEvent.MOUSE_OVER,[x52]); }; x47.onmouseout=function(x53) { x49(x53); if(x48._f284) x48._f284(x53); MVUtil.runListeners(x48._f143,MVEvent.MOUSE_OUT,[x53]); } x47.ondblclick=x49; x47.onmousedown=x49; x47.onmouseup=function(x54) { x49(x54); if(x48._f302) x48._f310(); } x47.onkeyup=x49 if(_f30._f87=="OS") x47.onkeypress=x49; else x47.onkeydown=x49; if(_f30._f87=="IF") { x47.oncontextmenu=x49; x47.onselectstart=x49; } } MVMapDecoration.prototype.setIconImageListeners=function(x55) { var x56; if(this._f299) x56=this._f299; else if(x55) x56=MVUtil.getImageURL(this.style.resBtnImg); else x56=MVUtil.getImageURL(this.style.minBtnImg); var x57=null; if(x55) x57=this._f301; else x57=this.icon; x57.src=x56; var x58=this; if(x55) { x57.style.height=MVUtil._f85(this._f290-3); x57.style.width=MVUtil._f85(this._f290-3); x57.parentNode.onmouseover=MVUtil._f134(x57.parentNode,function() { x57.parentNode.style.backgroundImage="url("+MVUtil.getImageURL(x58.style.titleBgImgMO)+")"; x57.src=MVUtil.getImageURL(x58.style.resBtnImgMO); }); x57.parentNode.onmouseout=MVUtil._f134(x57.parentNode,function() { x57.parentNode.style.backgroundImage="url("+MVUtil.getImageURL(x58.style.titleBgImg)+")"; x57.src=MVUtil.getImageURL(x58.style.resBtnImg); }); x57.onmousedown=MVUtil._f134(x57.parentNode,function() { x57.parentNode.style.backgroundImage="url("+MVUtil.getImageURL(x58.style.titleBgImgMD)+")"; x57.src=MVUtil.getImageURL(x58.style.resBtnImgMD); }); var x59=this; x57.parentNode.onclick=MVUtil._f134(x57.parentNode,function(x60) { MVUtil._f314(x60); x57.parentNode.parentNode.removeChild(x57.parentNode); MVUtil._f19(x57.parentNode,x59.parent._f20); x59._f301=null; x59._f304.style.visibility="visible"; x59._f317(); }); } else { var x61=this.titleBg; x57.parentNode.onmouseover=MVUtil._f134(x57.parentNode,function() { x61.src=MVUtil.getImageURL(x58.style.titleBgImgMO); if(x55) x57.src=MVUtil.getImageURL(x58.style.resBtnImgMO); else x57.src=MVUtil.getImageURL(x58.style.minBtnImgMO); }); x57.parentNode.onmouseout=MVUtil._f134(x57.parentNode,function() { x61.src=MVUtil.getImageURL(x58.style.titleBgImg); x57.src=MVUtil.getImageURL(x58.style.minBtnImg); }); x57.onmousedown=MVUtil._f134(x57.parentNode,function() { x61.src=MVUtil.getImageURL(x58.style.titleBgImgMD); x57.src=MVUtil.getImageURL(x58.style.minBtnImgMD); }); var x59=this; x57.onclick=MVUtil._f134(x57,function() { x59._f317(); }); } } MVMapDecoration.prototype._f21=function() { if(this.mapControl) this.mapControl._f21(); if(this._f301) { this._f301.parentNode.parentNode.removeChild(this._f301.parentNode); MVUtil._f19(this._f301.parentNode,this.parent._f20); this._f301=null; } this.parent=null; } MVMapDecoration.prototype._f318=function() { this.setPosition(this.left,this.top,this._f80,this._f81); } MVMapDecoration.prototype._f319=function() { var x62=document.createElement("div"); x62.innerHTML=this.html; x62.style.zIndex=2000; x62.style.position="absolute"; if(this.collasible) { this._f320.style.right=MVUtil._f85(0); this._f320.style.bottom=MVUtil._f85(0); this._f320.style.width=MVUtil._f85(width); this._f320.style.height=MVUtil._f85(height-this._f290); this._f320.style.border="1px solid black"; this._f320.style.backgroundColor="white"; } else{ this._f303(x62); if(this.width) x62.style.width=this.width; if(this.height) x62.style.height=this.height; return x62; } } MVMapDecoration.prototype._setTimeoutDispatcher=function(func) { eval(func); } MVMapDecoration.prototype._f305=function() { if(this.visible) this._f279.style.visibility="visible"; else this._f279.style.visibility="hidden"; if(this._f280) { if(this.visible&&!this.collapsed) this._f304.style.visibility="visible"; else this._f304.style.visibility="hidden"; if(!this.collapsed&&this.parent._f321&&this.parent._f321._f322&& this._f279._f323&&this.parent) { this.parent._f321._f324(); } if(this._f301&&!this.visible) { this._f301.parentNode.parentNode.removeChild(this._f301.parentNode); MVUtil._f19(this._f301.parentNode,this.parent._f20); this._f301=null; } else if(this.visible&&this.collapsed) this._f308(); } } MVMapDecoration.prototype._f317=function() { if(this._f296!=null&&this._f296!="") return; var x63=15; if(this._f307) { if(this._f285) this._f285(); MVUtil.runListeners(this._f143,MVEvent.COLLAPSE); this._f296=this.setTimeout("this.scrollElement(-1)",10); } else { if(this._f286) this._f286(); MVUtil.runListeners(this._f143,MVEvent.RESTORE); this._f303(this._f304,true); this._f296=this.setTimeout("this.scrollElement(1)",10); } } MVMapDecoration.prototype._f308=function() { this._f301=document.createElement("img"); var x64=document.createElement("td"); x64.style.border=this.style.borderStyle; x64.style.backgroundImage="url("+MVUtil.getImageURL(this.style.titleBgImg)+")"; x64.appendChild(this._f301); if(this._f300) x64.title=this._f300; MVUtil._f107(x64,"pointer"); this.parent.toolBarContainer.appendChild(x64); this.setIconImageListeners(true); } MVMapDecoration.prototype.scrollElement=function(x65) { var x66=parseInt(this._f304.style.height); var x67=parseInt(this._f279.style.height); var x68=parseInt(this._f304.style.width); var x69=parseInt(this._f279.style.width); var x70=MVUtil._f312(this._f304); var x71=MVUtil._f311(this._f304); if(x65<0) { if(x67>1) { if(x67>this._f292) { if(x700) { x67+=this._f292; x69+=this._f291; x66+=this._f292; x68+=this._f291; x70-=this._f294; x71-=this._f293; var x72=false; if(this._f46'+ ''; if(this.bars!=null) { for(var x5=0;x5'; } } x4+=' '; return x4; } function MVPieSlice(x0,x1) { this.name=x0; this.color=null; if(x1) { if(x1.charAt(0)=='#') this.color=x1.substring(1,x1.length); else this.color=x1; } this.color_opacity=255; } MVPieSlice.prototype.setColorOpacity=function(x0) { this.color_opacity=x0; } function MVPieChartStyle(x0,x1,x2) { this.name=x0; this._f79=x1; this.slices=x2; } MVPieChartStyle.prototype.getXMLString=function() { var x1=''; return x1; } function MVCollectionBucket(x0,x1,x2,x3) { if(x2==null) this.type="string"; else this.type=x2; if(x3==null) this.delimiter=","; else this.delimiter=x3; this.renderingStyle=x0; this.label=x1; this.items=null; } MVCollectionBucket.prototype.setItems=function(x0) { if(x0==null) this.items=null; this.items=x0; } MVCollectionBucket.prototype.getXMLString=function() { var x1=(this.label==null)?"":'label="'+this.label+'" '; var x2=""+this.items+""; return x2; } function MVScaleBar(x0,x1) { this.type="MVScaleBar"; this._f277=true; this._f589=x1?x1:125; this._f436=x0; this._f278=false; this.textSize=11; this._f416=null; this._f417=false; this.style= {barStyle:"border-top:1px solid #AAAAAA;border-bottom:1px solid #555555;border-left:1px solid #AAAAAA;border-right:1px solid #555555;background-color:#D0E0F0", barHeight:3,textStyle:"font-family: Tahoma;font-size:11px;font-weight:bold"}; this.barSpacing=7; } MVScaleBar.prototype.setStyle=function(x0) { if(x0) { if(x0.barStyle) this.style.barStyle=x0.barStyle; if(x0.barHeight) this.style.barHeight=x0.barHeight; if(x0.textStyle) this.style.textStyle=x0.textStyle; } } MVScaleBar.prototype.init=function(x1,x2) { this.div=x1; this._f590(x2); } MVScaleBar.prototype._f590=function(x3,x4,x5) { if(!x4) x3._f592=this; this._f416=x3; if(!this.div) { this.div=document.createElement("div"); this.div.style.zIndex=2000; if(x4) x4.appendChild(this.div); else x3._f401.appendChild(this.div); } this._f593=document.createElement("div"); this._f594=document.createElement("div"); MVUtil._f316(this.div); MVUtil._f316(this._f593); MVUtil._f316(this._f594); this.div.style.height=MVUtil._f85(40); this.div.style.width=MVUtil._f85(125); this.div.style.fontSize=MVUtil._f85(5); var x6=this; var x7=function(x8) { var x9=x8.fpsLength; var x10=x8.metricLength; var x11=Math.max(x9,x10); var x12=3; x6._f595(x6._f593,x8.fpsText); x6._f593.style.cssText=x6.style.textStyle; x6._f593.style.position="absolute"; MVUtil._f136(x6._f593,4,0,x11,x12,10); x6.textSize=MVUtil.getNumber(x6._f593.style.fontSize); var x13=x12+x6.textSize; x6.topBar=x6._f596(x9,x6.style.barHeight,3,x13,x6.style.barStyle); x6.bottomBar=x6._f596(x10,x6.style.barHeight,3,x13+x6.style.barHeight+x6.barSpacing,x6.style.barStyle); x6._f595(x6._f594,x8.metricText); x6._f594.style.cssText=x6.style.textStyle; x6._f594.style.position="absolute"; MVUtil._f136(x6._f594,4,x13+2*x6.style.barHeight+x6.barSpacing+2,x11,0,10); x6.div.appendChild(x6._f593); x6.div.appendChild(x6._f594); x6.div.title=MVi18n._f425("scaleBarInfoTip"); x6._f597(); x6._f417=true; if(x5) x5(x6.div); } this._f598(x3,this._f589,x7); } MVScaleBar.prototype._f596=function(x14,x15,x16,x17,x18) { var x19=document.createElement("div"); x19.style.cssText=x18; x19.style.position="absolute"; MVUtil._f76(x19,x16,x17); x19.style.fontSize="1px"; x19.style.width=MVUtil._f85(x14); x19.style.height=MVUtil._f85(x15); this.div.appendChild(x19); return x19; } MVScaleBar.prototype._f597=function() { if(!this.div) return ; var x20="black"; this._f593.style.color=x20; this._f594.style.color=x20; } MVScaleBar.prototype._f599=function(x21) { if(!this.div||!this._f417) return ; var x22=this; var x23=function(x24) { var x25=Math.max(x24.fpsLength,x24.metricLength); x22._f595(x22._f593,x24.fpsText); x22._f595(x22._f594,x24.metricText); x22.width=x25+4; x22.topBar.style.width=MVUtil._f85(x24.fpsLength); x22.bottomBar.style.width=MVUtil._f85(x24.metricLength); x22._f594.style.width=MVUtil._f85(x24.metricLength+2); x22._f593.style.width=MVUtil._f85(x24.fpsLength+2); } this._f598(x21,this._f589,x23); } MVScaleBar.prototype._f598=function(x26,x27,x28) { var x29; var x30; var x31; var x32; var x33; var x34; var x35=x26.msi._f466(); var x36=x26.msi._f465(); var x37=this; var x38=function() { x32=x37._f600(x31); if(x32>=1000) { var x39=x37._f600(x31/1000); var x40=x31/1000; x34=Math.round(x37._f589*x39/x40); x33=MVUtil.formatNum(x39)+" "+MVi18n._f425("kilometers"); } else { x34=Math.round(x37._f589*x32/x31); x33=MVUtil.formatNum(x32)+" "+MVi18n._f425("meters"); } var x41=x31/1609.344; var x42=x31*3.28084; var x43; var x44; if(x41>=1) { var x45=x37._f600(x41); x43=Math.round(x37._f589*x45/x41); x44=MVUtil.formatNum(x45)+" "+MVi18n._f425("miles"); } else { var x46=x37._f600(x42); x43=Math.round(x37._f589*x46/x42); x44=MVUtil.formatNum(x46)+" "+MVi18n._f425("feet"); } return new _f601(x43,x34,x44,x33); } if(x36=='GEODETIC') { var x47=function(x48) { x30=x48; var x49=6378137.0; var x50=0.9966471893352525; var x51=0.0033528106647474805; x31=MVScaleBar._f602(x29,x30,x49,x50,x51); x28(x38()); } var x52=function(x53) { x29=x53; MVScaleBar._f603(x26._f604+x27/2,x26._f605,x26,x47); } MVScaleBar._f603(x26._f604-x27/2,x26._f605,x26,x52); return ; } else if(x36=='PROJECTED') { if(this._f436==true) { var x54=x27/2; var x55=x26._f15-x54/x26._f71; var x56=x54/x26._f71+x26._f15; var x57=x26._f16; var x58=MVSdoGeometry.createLineString([x55,x57,x56,x57],x26.srid); var x59=function(x60) { x31=x60; x28(x38()); } x31=x58.getLength("meter",true,x26._f90+'/foi',x59); return ; } else { x31=x35*x27/x26._f71; } } else if(x36=='LOCAL'||(x36=='UNDEFINED'&&x35!=0)) { x31=x35*x27/x26._f71; } else if(x36=='UNDEFINED'&&x35==0) { x31=x27/x26._f71; _f30._f606=''; _f30._f607=''; _f30._f608=''; _f30._f609=''; } x28(x38()); } MVScaleBar.prototype._f600=function(x61) { var x62=x61; if(x62>1) { var x63=0; while(x62>=10){x62=x62/10;x63=x63+1;} if(x62>=5){x62=5;} else if(x62>=2){x62=2;} else {x62=1;} while(x63>0){x62=x62*10;x63=x63-1;} } return x62; } MVScaleBar.prototype._f595=function(x64,x65) { if(x64.innerHTML!=x65) { x64.innerHTML=x65; } } MVScaleBar.prototype._f21=function() { this._f416._f592=null; } MVScaleBar._f603=function(x66,x67,x68,x69) { var x70=MVSdoGeometry.createPoint(0,0,x68.srid); x70.sdo_point.x=(x66-x68._f604)/x68._f71+x68._f15; x70.sdo_point.y=x68._f16-(x67-x68._f605)/x68._f72; var x71=function(x72) { if(x72) x70=x72; while(x70.sdo_point.x<-180)x70.sdo_point.x+=360; while(x70.sdo_point.x>180)x70.sdo_point.x-=360; x70.sdo_point.x=(x70.sdo_point.x)*Math.PI/180; x70.sdo_point.y=(x70.sdo_point.y)*Math.PI/180; x69(x70.sdo_point); } if(x70.srid&&x70.srid!=8307) x70=x68.transformGeom(x70,8307,null,x71); else x71(); } MVScaleBar._f602=function(x73,x74,x75,x76,x77) { var x78;var x79;var x80;var x81;var x82;var x83;var x84;var x85;var x86;var x87; var x88;var x89;var x90;var x91;var x92; var x93;var x94;var x95;var x96;var x97;var x98; var x99=Math.PI/2.0; if(x99-Math.abs(x73.y)<1.e-10) x91=x73.y; else x91=Math.atan(x76*Math.tan(x73.y)); if(x99-Math.abs(x74.y)<1.e-10) x92=x74.y; else x92=Math.atan(x76*Math.tan(x74.y)); x79=(x91+x92)/2.0; x80=(x91-x92)/2.0; x78=Math.abs(x73.x-x74.x); if(x78>Math.PI) x78=2.0*Math.PI-x78; x78/=2.0; if(x78<5.e-8&&Math.abs(x80)<5.e-8) return 0.0; else if((x99-x78<5.e-8&&Math.abs(x79)<5.e-8)|| x99-Math.abs(x80)<5.e-8) return -1.0; x93=Math.sin(x79); x94=Math.cos(x79); x95=Math.sin(x80); x96=Math.cos(x80); x97=Math.sin(x78); x81=x95*x95+x97*x97*(x96*x96-x93*x93); x82=Math.acos(1.0-2.0*x81); x98=Math.sin(x82); x83=2.0*(1.0-2.0*x81); x84=2.0*x93*x93*x96*x96/(1.0-x81); x85=2.0*x95*x95*x94*x94/x81; x86=x84+x85; x87=x84-x85; x88=x82/x98; x89=4.0*x88*x88; x90=x89*x83; var x100=(x90+(x88-(x90-x83)/2.0)*x86); return x75*x98*(x88-x77*(x88*x86-x87)/4.0+x77*x77* (x86*x100-x87*(2.0*x89+x83*x87)+x89*x86*x87)/64.0); } function _f601(x0,x1,x2,x3) { this.fpsLength=x0; this.metricLength=x1; this.fpsText=x2; this.metricText=x3; } function MVNavigationPanel(x0,x1,x2,x3) { this.type="MVNavigationPanel"; this._f277=true; if(x0==undefined|| x0!=0&&x0!=4&&x0!=8) x0=8; this._f411=x0; this._f412=x1; this._f413=x2; this.zoomLevelBars=x3; this._f414=null; this._f415=null; this._f416=null; this.containerDiv=null; this._f417=false; this.infoTipDivs=new Object(); this.infoTipTexts=null; this.infoTipTextStyle=null; var x4=this; this.hideInfoTimeOut; this.enableZoomLevelInfoTip=true; this.showInfoTip=function() { if(!x4.enableZoomLevelInfoTip) return; clearTimeout(x4.hideInfoTimeOut); for(div in x4.infoTipDivs){ x4.infoTipDivs[div].style.visibility=""; } } this._f418=function() { x4.hideInfoTimeOut=setTimeout(x4.doHideInfoTip,500); } this.doHideInfoTip=function() { for(div in x4.infoTipDivs) { x4.infoTipDivs[div].style.visibility="hidden"; } } } MVNavigationPanel.prototype.setZoomLevelInfoTips=function(x0,x1) { this.infoTipTexts=x0; this.infoTipTextStyle=x1; if(this._f419){ MVUtil._f19(this._f419.div,this._f416._f20); this._f419=new MVZoomBarAndPin(this); } } MVNavigationPanel.prototype.enableZoomLevelInfoTips=function(x2) { this.enableZoomLevelInfoTip=x2; } MVNavigationPanel.prototype.setNavPosition=function(x3) { this._f415=x3; } MVNavigationPanel.prototype.init=function(x4,x5) { if(x4) this.containerDiv=x4; if(this._f414) { if(this._f414.parentNode) this._f414.parentNode.removeChild(this._f414); MVUtil._f19(this._f414,x5._f20); } this._f414=document.createElement('div'); this._f414.style.position='absolute'; this._f414.className="noprint"; this._f414.ondblclick=MVUtil._f134(this._f414,function(x6) { MVUtil._f314(MVUtil.getEvent(x6)); }); this._f414.onclick=MVUtil._f134(this._f414,function(x7) { MVUtil._f314(MVUtil.getEvent(x7)); }); this.containerDiv.appendChild(this._f414); if(x5) { this._f416=x5; x5.navigationPanel=this; } if(this._f415) { if(this._f415.toLowerCase()=="east") { if(this._f411==8) this._f414.style.left=MVUtil._f85(this._f416._f13()-80); else if(this._f411==4) this._f414.style.left=MVUtil._f85(this._f416._f13()-80); else if(this._f411==0) this._f414.style.left=MVUtil._f85(this._f416._f13()-50); } else { if(this._f411==8) this._f414.style.left=MVUtil._f85(10); else if(this._f411==8) this._f414.style.left=MVUtil._f85(10); else if(this._f411==0) this._f414.style.left=MVUtil._f85(30); } this._f414.style.top=MVUtil._f85(10); } else { this._f414.style.left=MVUtil._f85(0); this._f414.style.top=MVUtil._f85(0); } this._f414.style.zIndex=2000; MVUtil._f107(this._f414,"pointer"); this._f234=0; this._f235=0; var x5=this._f416; var x8=function(x9) { if(x5._f420&&x5._f421) { x5._f422.clear(); x5.marqueeZoom(); } x9=(x9)?x9:((window.event)?event:null); MVUtil._f314(x9); } if(this._f411!=false) { this._f423(); } this._f230=0; this._f231=0; if(this._f412!=false) { this._f230=_f30._f230; this._f231=_f30._f231; } this._f238=0; this._f239=0; if(this._f413!=false) { this._f238=_f30._f238; this._f239=_f30._f239; var x10=new _f424(this._f414,src=_f30._f127+"navicons/zoomin.gif", this._f238,this._f239,2000,MVi18n._f425("zoomInInfoTip")); var x11=this._f411>0?(this._f234*3-this._f238)/2+1:0; var x12=this._f411>0?this._f235*3+3:0; MVUtil._f76(x10,x11,x12); x10.onmousedown=MVUtil._f134(x10,function(x13) { x13=(x13)?x13:((window.event)?event:null); MVUtil._f314(x13); if(x5._f420&&x5._f426) x5._f421=true; x5.zoomIn(); }); x10.onmouseup=MVUtil._f134(x10,function(x14) { x8(x14); }); x10.onmouseover=this.showInfoTip; x10.onmouseout=this._f418; var x15=new _f424(this._f414,_f30._f127+"navicons/zoomout.gif", this._f238,this._f239,2000,MVi18n._f425("zoomOutInfoTip")); MVUtil._f76(x15,x11,x12+this._f239+this._f231+1); x15.onmousedown=MVUtil._f134(x15,function(x16) { x16=(x16)?x16:((window.event)?event:null); MVUtil._f314(x16); if(x5._f420&&x5._f426) x5._f421=true; x5.zoomOut(); }); x15.onmouseup=MVUtil._f134(x15,function(x17) { x8(x17); }); x15.onmouseover=this.showInfoTip; x15.onmouseout=this._f418; } if(this._f412!=false) { this._f419=new MVZoomBarAndPin(this); } this._f417=true; } MVNavigationPanel.prototype._f423=function() { this._f234=_f30._f234; this._f235=_f30._f235; var x18=this._f416; var x19=function(x20) { if(x18._f420&&x18._f421) { x18._f422.clear(); x18.marqueeZoom(); } x20=(x20)?x20:((window.event)?event:null); MVUtil._f314(x20); } var x21=new _f424(this._f414,_f30._f127+"navicons/north.gif", this._f234,this._f235,2000,MVi18n._f425("panNInfoTip")); MVUtil._f76(x21,this._f234+1,0); x21.onmousedown=MVUtil._f134(x21,function(x22) { if(x18._f420&&x18._f426) x18._f421=true; x18.smoothScroll(0,(x18._f13()+x18._f14())*(-0.25)); x22=(x22)?x22:((window.event)?event:null); MVUtil._f314(x22); }); x21.onmouseup=MVUtil._f134(x21,function(x23) { x19(x23); }); var x24=new _f424(this._f414,_f30._f127+"navicons/west.gif", this._f234,this._f235,2000,MVi18n._f425("panWInfoTip")); MVUtil._f76(x24,0,this._f235+1); x24.onmousedown=MVUtil._f134(x24,function(x25) { if(x18._f420&&x18._f426) x18._f421=true; x18.smoothScroll((x18._f13()+x18._f14())*(-0.25),0); x25=(x25)?x25:((window.event)?event:null); MVUtil._f314(x25); }); x24.onmouseup=MVUtil._f134(x24,function(x26) { x19(x26); }); var x27=new _f424(this._f414,_f30._f127+"navicons/east.gif", this._f234,this._f235,2000,MVi18n._f425("panEInfoTip")); MVUtil._f76(x27,this._f234*2+2,this._f235+1); x27.onmousedown=MVUtil._f134(x27,function(x28) { if(x18._f420&&x18._f426) x18._f421=true; x18.smoothScroll((x18._f13()+x18._f14())*(0.25),0); x28=(x28)?x28:((window.event)?event:null); MVUtil._f314(x28); }); x27.onmouseup=MVUtil._f134(x27,function(x29) { x19(x29); }); var x30=new _f424(this._f414,_f30._f127+"navicons/south.gif", this._f234,this._f235,2000,MVi18n._f425("panSInfoTip")); MVUtil._f76(x30,this._f234+1,this._f235*2+2); x30.onmousedown=MVUtil._f134(x30,function(x31) { if(x18._f420&&x18._f426) x18._f421=true; x18.smoothScroll(0,(x18._f13()+x18._f14())*(0.25)); x31=(x31)?x31:((window.event)?event:null); MVUtil._f314(x31); }); x30.onmouseup=MVUtil._f134(x30,function(x32) { x19(x32); }); if(this._f411==4) return ; var x33=new _f424(this._f414,_f30._f127+"navicons/nw.gif", this._f234,this._f235,200,MVi18n._f425("panNWInfoTip")); MVUtil._f76(x33,0,0); x33.onmousedown=MVUtil._f134(x33,function(x34) { if(x18._f420&&x18._f426) x18._f421=true; x18.smoothScroll((x18._f13()+x18._f14())*(-0.18),(x18._f13()+x18._f14())*(-0.18)); x34=(x34)?x34:((window.event)?event:null); MVUtil._f314(x34); }); x33.onmouseup=MVUtil._f134(x33,function(x35) { x19(x35); }); var x36=new _f424(this._f414,_f30._f127+"navicons/ne.gif", this._f234,this._f235,2000,MVi18n._f425("panNEInfoTip")); MVUtil._f76(x36,this._f234*2+2,0); x36.onmousedown=MVUtil._f134(x36,function(x37) { if(x18._f420&&x18._f426) x18._f421=true; x18.smoothScroll((x18._f13()+x18._f14())*(0.18),(x18._f13()+x18._f14())*(-0.18)); x37=(x37)?x37:((window.event)?event:null); MVUtil._f314(x37); }); x36.onmouseup=MVUtil._f134(x36,function(x38) { x19(x38); }); var x39=new _f424(this._f414,_f30._f127+"navicons/sw.gif", this._f234,this._f235,2000,MVi18n._f425("panSWInfoTip")); MVUtil._f76(x39,0,this._f235*2+2); x39.onmousedown=MVUtil._f134(x39,function(x40) { if(x18._f420&&x18._f426) x18._f421=true; x18.smoothScroll((x18._f13()+x18._f14())*(-0.18),(x18._f13()+x18._f14())*(0.18)); x40=(x40)?x40:((window.event)?event:null); MVUtil._f314(x40); }); x39.onmouseup=MVUtil._f134(x39,function(x41) { x19(x41); }); var x42=new _f424(this._f414,_f30._f127+"navicons/se.gif", this._f234,this._f235,2000,MVi18n._f425("panSEInfoTip")); MVUtil._f76(x42,this._f234*2+2,this._f235*2+2); x42.onmousedown=MVUtil._f134(x42,function(x43) { if(x18._f420&&x18._f426) x18._f421=true; x18.smoothScroll((x18._f13()+x18._f14())*(0.18),(x18._f13()+x18._f14())*(0.18)); x43=(x43)?x43:((window.event)?event:null); MVUtil._f314(x43); }); x42.onmouseup=MVUtil._f134(x42,function(x44) { x19(x44); }); if(x18._f427){ var x45=new _f424(this._f414,_f30._f127+"navicons/center.gif", this._f234,this._f235,2000,MVi18n._f425("panCenterInfoTip")); MVUtil._f76(x45,this._f234+1,this._f235+1); x45.onmousedown=MVUtil._f134(x45,function(x46) { if(x18._f420&&x18._f426) x18._f421=true; x18.setCenterAndZoomLevel(x18._f427,x18._f428); x46=(x46)?x46:((window.event)?event:null); MVUtil._f314(x46); }); x45.onmouseup=MVUtil._f134(x45,function(x47) { x19(x47); }); } } MVNavigationPanel.prototype.updateSliderBar=function() { if(!this._f417) return ; if(this._f419&&this._f419._f429) this._f419._f429.style.top= MVUtil._f85(this._f235*3+3+this._f239+ (this._f231-_f30._f233)* (this._f416._f193-this._f416._f11)/this._f416._f193); } MVNavigationPanel.prototype._f21=function() { this._f416.navigationPanel=null; } MVNavigationPanel.prototype.getMaxZoomLevel=function() { if(this._f419.maxZoomlevel) return this._f419.maxZoomleve; else return this.parent._f193; } MVNavigationPanel.prototype.updateSlider=function() { if(this._f419){ MVUtil._f19(this._f419.div,this._f416._f20); this._f419=new MVZoomBarAndPin(this); } } function MVZoomBarAndPin(x0) { var x1=x0; this.div=document.createElement("div"); var x2=x1._f411>0?(x1._f234*3-x1._f230)/2+1:0; var x3=x1._f411>0?x1._f235*3+3+x1._f239:x1._f239; this._f430=new _f424(this.div,_f30._f127+"navicons/zoombar.gif", x1._f230,x1._f231,2000,MVi18n._f425("sliderBarInfoTip")); this._f430.onmouseover=x0.showInfoTip; this._f430.onmouseout=x0._f418; MVUtil._f76(this._f430,x2,x3); this.maxZoomlevel=x1._f416._f193; for(var x4=0;x4<=x1._f416._f193;x4++) { var x5=x1._f230-4; if(x0.zoomLevelBars!=false) { var x6=new _f424(this.div,_f30._f127+"navicons/zoomBarHoriz.gif",x5,10,1999); MVUtil._f76(x6,x2+2,x3+2+x4*(x1._f231-14)/x1._f416._f193); } for(tipLevel in x0.infoTipTexts) { if(parseInt(tipLevel)==(x1._f416._f193-x4)) { this.infoDiv=document.createElement("div"); this.infoDiv.style.height=16; this.infoDiv.style.position="absolute"; this.infoDiv.style.opacity=0.6; this.infoDiv.style.filter="alpha(opacity = 60)"; this.infoDivTable=document.createElement("Table"); this.infoDivTable.cellSpacing=0; this.infoDivTable.cellPadding=0; this.infoDivTable.style.border=0; this.infoDivRow=this.infoDivTable.insertRow(0); this.infoDivLeft=this.infoDivRow.insertCell(0); this.infoDivCenter=this.infoDivRow.insertCell(1); this.infoDivCenter.style.background="url("+_f30._f127+"navicons/tip_center.gif"+") repeat-x"; this.infoDivRight=this.infoDivRow.insertCell(2); this.infoDivCenter.innerHTML=x0.infoTipTexts[tipLevel]; this.infoDivCenter.style.fontSize="12px"; this.infoDivCenter.style.fontWeight="bold"; this.infoDivCenter.style.fontFamily="Verdana,Tahoma"; this.infoDivCenter.style.cssText=this.infoDivCenter.style.cssText+"; "+x0.infoTipTextStyle; this.infoDiv.appendChild(this.infoDivTable); if(x1._f415&&x1._f415.toLowerCase()=="east") { this.infoDivLeft.innerHTML=''; this.infoDivRight.innerHTML=''; this.infoDivCenter.style.textAlign="left"; this.infoDivCenter.style.align="left"; this.infoDivCenter.style.direction="RTL" if(_f30._f210==2) { this.infoDiv.style.pixelRight=x2-22; this.infoDiv.style.pixelTop=x3+x4*(x1._f231-16)/x1._f416._f193; } else { this.infoDiv.style.right=MVUtil._f85(x2-22); this.infoDiv.style.top=MVUtil._f85(x3+x4*(x1._f231-16)/x1._f416._f193); } } else { this.infoDivLeft.innerHTML=''; this.infoDivRight.innerHTML=''; this.infoDivCenter.style.textAlign="right"; this.infoDivCenter.style.align="right"; MVUtil._f76(this.infoDiv,x2+16,x3+x4*(x1._f231-16)/x1._f416._f193); } this.infoDiv.style.visibility="hidden"; this.infoDiv._f11=x1._f416._f193-x4; this.div.appendChild(this.infoDiv); x0.infoTipDivs["div"+x4]=this.infoDiv; var x7=function(x8) { clearTimeout(x0.hideInfoTimeOut); this.style.opacity=0.9; this.style.filter="alpha(opacity = 90)"; } var x9=function(x10) { this.style.opacity=0.6; this.style.filter="alpha(opacity = 60)"; x0.hideInfoTimeOut=setTimeout(x0.doHideInfoTip,500); } var x11=function(x12) { x0._f416.zoomTo(this._f11) x12=(x12)?x12:((window.event)?event:null); MVUtil._f314(x12); } this.infoDiv.onmouseover=MVUtil._f134(this.infoDiv,x7); this.infoDiv.onmouseout=MVUtil._f134(this.infoDiv,x9); this.infoDiv.onmousedown=MVUtil._f134(this.infoDiv,x11); } } } this._f429=new _f424(this.div,_f30._f127+"navicons/slider.gif",_f30._f232, _f30._f233,2002); this._f429.onmouseover=x0.showInfoTip; this._f429.onmouseout=x0._f418; MVUtil._f76(this._f429,x2,x3+ (x1._f231-_f30._f233)* (x1._f416._f193-x1._f416._f11)/x1._f416._f193); x1._f414.appendChild(this.div); this._f431=Math.floor(_f30._f233/2); var x13=0; var x14=0; var x15=function(x16) { x1._f416._f432=false; x16=(x16)?x16:((window.event)?event:null); var x17=x1._f416._f336(x16); var x18=x17.top-x1._f419._f431;var x19=x1._f235*3+3+x1._f239; if(x18<=x19) x18=x19; else if(x18>=x19+x1._f231-_f30._f233) x18=x19+x1._f231-_f30._f233; var x20=(x1._f231-_f30._f233); x20=x20/x1._f416._f193; var x21=Math.floor((x18-x19)/x20); x18=x21*x20+x19; var x22=x1._f416._f193-x21; x1._f416.zoomTo(x22); MVUtil._f314(x16); if(x1._f416._f420&&x1._f416._f426) { x1._f416._f421=true; x1._f416._f422.clear(); } x1._f419._f429.style.top=MVUtil._f85(x18); } var x23=function(x24) { x24=(x24)?x24:((window.event)?event:null); x1._f416._f432=false; if(!x1._f419._f433)return; var x25=x1._f416._f336(x24); var x26=x25.top-x13+x14; if(x26<=x1._f235*3+3+x1._f239) x26=x1._f235*3+3+x1._f239; else if(x26>=x1._f235*3+3+x1._f239+ x1._f231-_f30._f233) x26=x1._f235*3+3+x1._f239+ x1._f231-_f30._f233; x1._f419._f429.style.top=MVUtil._f85(x26); MVUtil._f314(x24); } var x27=function(x28) { if(!x1._f419._f433) return ; x28=(x28)?x28:((window.event)?event:null); x1._f416._f432=true; x1._f419._f433=false; var x29=x1._f416._f336(x28); var x30=MVUtil._f312(x1._f419._f429); var x31=x1._f235*3+3+x1._f239; var x32=(x1._f231-_f30._f233); x32=x32/x1._f416._f193; var x33=Math.round((x30-x31)/x32); x30=x33*x32+x31; var x34=x1._f416._f193-x33; x1._f416.zoomTo(x34); x1._f419._f429.style.top=MVUtil._f85(x30); x1._f416.zoomTo(x34); MVUtil._f314(x28); if(x1._f416._f420&&x1._f416._f421) x1._f416.marqueeZoom(); } var x35=function(x36) { x36=(x36)?x36:((window.event)?event:null); x1._f416._f432=true; if(x1._f419._f433) { x27(x36); } return false; } var x37=function(x38) { x38=(x38)?x38:((window.event)?event:null); var x39=x1._f416._f336(x38); x13=x39.top; x14=MVUtil._f312(x1._f419._f429); x1._f419._f433=true; MVUtil._f314(x38); } this.div.onmousedown=MVUtil._f134(this.div,x15); this.div.onmouseup=MVUtil._f134(this.div,x27); this.div.onmousemove=MVUtil._f134(this.div,x23); this.div.onmouseout=MVUtil._f134(this.div,x35); this._f429.onmousedown=MVUtil._f134(this._f429,x37); this._f433=false; } function _f831() { } _f831._f832=[ {srid:54004,params:[0,0,1,0,0]}, {srid:8307,params:[6378137,298.257223563]} ]; _f831._f833=function(x0,x1,x2,x3,x4) { var x5=_f831._f834(x3); var x6=_f831._f834(x2); if(!x5||!x6) { MVi18n._f42("MVCSTransformMercator.geodeticToMercator","MAPVIEWER-05522",x2+"->"+x3,x4); return null; } var x7=_f110._f113({x:x0,y:x1}); x0=x7.x; x1=x7.y; var x8=x5[3]; var x9=x5[4]; var x10=x5[2]; var x11=x5[1]; var x12=x6[0]; var x13=1/x6[1]; var x14=Math.sqrt(2*x13-x13*x13); var x15=x8+x12*x10*(x0-x11); var x16=Math.sin(x1); var x17=Math.tan(Math.PI/4+x1/2); var x18=(1-x14*x16)/(1+x14*x16); var x19=x14/2; var x20=Math.pow(x18,x19); var x21=x9+x12*x10*Math.log(x17*x20); return {x:x15,y:x21}; } _f831._f835=function(x22,x23,x24,x25,x26) { var x27=_f831._f834(x24); var x28=_f831._f834(x25); if(!x27||!x28) { MVi18n._f42("MVCSTransformMercator.mercatorToGeodetic","MAPVIEWER-05522",x24+"->"+x25,x26); return null; } var x29=x27[3]; var x30=x27[4]; var x31=x27[2]; var x32=x27[1]; var x33=x28[0]; var x34=1/x28[1]; var x35=Math.sqrt(2*x34-x34*x34); var x36=x23; var x37=x22; var x38=Math.E; var x39=Math.pow(x38,((x30-x36)/(x33*x31))); var x40=Math.PI/2-2*Math.atan2(x39,1.0); var x41=Math.pow(x35,4.0); var x42=Math.pow(x35,6.0); var x43=Math.pow(x35,8.0); var x44=x35*x35/2; var x45=5*x41/24; var x46=x42/12; var x47=13*x43/360; var x48=Math.sin(2*x40); var x49=7*x41/48; var x50=29*x42/240; var x51=811*x43/11520; var x52=Math.sin(2*x40); var x53=7*x42/120; var x54=81*x43/1120; var x55=Math.sin(6*x40); var x56=4279*x43/161280; var x57=Math.sin(8*x40); var x58=x40+(x44+x45+x46+x47)*x48+(x49+x50+x51)*x52+(x53+x54)*x55+x56*x57; var x59=((x37-x29)/(x33*x31))+x32; return _f110._f114({x:x59,y:x58}); } _f831._f834=function(x60) { for(var x61=0;x61<_f831._f832.length;x61++) { if(_f831._f832[x61].srid==x60) return _f831._f832[x61].params; } return null; } _f30._f271(54004,8307,function(x62,x63,x64){ return _f831._f835(x62,x63,54004,8307,x64); }); _f30._f271(8307,54004,function(x65,x66,x67){ return _f831._f833(x65,x66,8307,54004,x67); }); function MVZoomControl(x0,x1) { this.mapview=x0; this.ldiff=0; this.tdiff=0; this.movedLeft=0; this.movedTop=0; this._f58=x1; this._f50=null; this.tileLayerDiv=null; this.zoomStep=0.1 this.interval=40; this.zooming=false; this.oldTilesLoaded=false; this.timeouts=new Array(); } MVZoomControl.prototype.computeTilesOffset=function() { var x0=this._f58._f50[0][0]; if(x0&&x0.parentNode) { this.ldiff=-x0.parentNode.offsetLeft this.tdiff=-x0.parentNode.offsetTop; this.movedLeft=-x0.parentNode.parentNode.offsetLeft; this.movedTop=-x0.parentNode.parentNode.offsetTop; } } MVZoomControl.prototype.getScreenCor=function(x1,x2,x3) { var x4=this.getPPXByZoomLevel(x3); var x5=this.getPPYByZoomLevel(x3); var x6=x1-this.mapview._f13()/2; var x7=x2-this.mapview._f14()/2; return {x:x6/x4+this.mapview._f15, y:this.mapview._f16-x7/x5}; } MVZoomControl.prototype._f331=function(x8,x9,x10) { var x11=this.getPPXByZoomLevel(x10); var x12=this.getPPYByZoomLevel(x10); return {x:(x8-this.mapview._f15)*x11+this.mapview._f13()/2, y:(this.mapview._f16-x9)*x12+this.mapview._f14()/2}; } MVZoomControl.prototype.getPPXByZoomLevel=function(x13) { var x14=this.mapview.msi.mapConfig.zoomLevels[x13].tileImageWidth; var x15=this.mapview.msi.mapConfig.zoomLevels[x13].tileWidth; var x16=x14/x15; return x16; } MVZoomControl.prototype.getPPYByZoomLevel=function(x17){ var x18=this.mapview.msi.mapConfig.zoomLevels[x17].tileImageHeight; var x19=this.mapview.msi.mapConfig.zoomLevels[x17].tileHeight; var x20=x18/x19; return x20; } MVZoomControl.prototype.initZoomInfo=function(x21,x22,x23) { var x24=this.getPPXByZoomLevel(x21); var x25=this.getPPYByZoomLevel(x21); var x26=this.getPPXByZoomLevel(x22); var x27=this.getPPYByZoomLevel(x22); var x28=this.mapview.msi.mapConfig.zoomLevels[x21].tileImageWidth; var x29=this.mapview.msi.mapConfig.zoomLevels[x21].tileImageWidth; var x30=this.mapview.msi.mapConfig.zoomLevels[x21].tileImageWidth*x26/x24; var x31=this.mapview.msi.mapConfig.zoomLevels[x21].tileImageHeight*x27/x25; var x32=MVUtil._f311(x23)-this.movedLeft; var x33=MVUtil._f312(x23)-this.movedTop; var x34=this.getScreenCor(x32-this.ldiff+this.movedLeft,x33-this.tdiff+this.movedTop,x21); var x35=this._f331(x34.x,x34.y,x22); var x36=x35.x+this.ldiff-this.movedLeft*x26/x24; var x37=x35.y+this.tdiff-this.movedTop*x26/x24; x23.oldZoomInfo=new Object(); x23.oldZoomInfo.lstart=x32; x23.oldZoomInfo.tstart=x33; x23.oldZoomInfo.lend=x36; x23.oldZoomInfo.tend=x37; x23.oldZoomInfo.fw=x28; x23.oldZoomInfo.fh=x29; x23.oldZoomInfo.tiw=x30; x23.oldZoomInfo.tih=x31; } MVZoomControl.prototype.zoomToFactor=function(x38,x39) { if(x39>1) { return; } var x40=x38.oldZoomInfo; var x41=(x40.lend-x40.lstart)*x39+x40.lstart; var x42=(x40.tend-x40.tstart)*x39+x40.tstart; var x43=(x40.tiw-x40.fw)*x39+x40.fw; var x44=(x40.tih-x40.fh)*x39+x40.fh; MVUtil._f76(x38,x41,x42); x38.style.width=(x43+1)+'px'; x38.style.height=(x44+1)+'px'; } MVZoomControl.prototype.copyTiles=function() { if(this.tileLayerDiv&&this.tileLayerDiv.parentNode) { this.tileLayerDiv.parentNode.removeChild(this.tileLayerDiv); MVUtil._f89(this.tileLayerDiv); } this.tileLayerDiv=this._f58._f58; this.tileLayerDiv.zooming=true; this._f50=this._f58._f50; this.tileLayerDiv.style.zIndex=200+this._f58.zIndex; return; } MVZoomControl.prototype.zoomToNewCenter=function(x45,x46,x47) { if((x45)&&(x46)&&(x45.getPointX()!=x46.getPointX()||x45.getPointY()!=x46.getPointY())) { var x48=this._f331(x45.getPointX(),x45.getPointY(),x47); var x49=this._f331(x46.getPointX(),x46.getPointY(),x47); var x50=x49.x-x48.x; var x51=x49.y-x48.y; var x52=this.mapview.div; if(_f30._f210==2) { x52.style.pixelLeft=x52.style.pixelLeft-x50; x52.style.pixelTop=x52.style.pixelTop-x51; } else { x52.style.left=(MVUtil._f311(x52)-x50)+'px'; x52.style.top=(MVUtil._f312(x52)-x51)+'px'; } } } MVZoomControl.prototype.clearLastZoom=function(){ for(var x53=0;x531||this._f58._f4) { this.reset(); return; } this._f58.setVisible(false); this._f58._f58.style.visibility="visible"; this.zooming=true; this.zoomToNewCenter(x58,x59,x56); this.computeTilesOffset() this.copyTiles(); this.clearLastZoom(); for(var x60=0;x60=1) { x67.oldZoomInfo=null; x67.zoomFinished=true; if(this.hasZoomFinished()) { this.startClear(); } return; } else { var x68=setTimeout(function(){x63.runZoom.call(x63,x63,x64,x65,x66+x63.zoomStep);},x63.interval); this.timeouts.push(x68); } } MVZoomControl.prototype.hasZoomFinished=function() { if(!(this._f50)) { return true; } for(var x69=0;x69=2&& x2._f827.getStatus()==1) { if(x2._f383) x2._f383(); MVUtil.runListeners(x2._f143,MVEvent.FINISH); } x2._f827.clear(); var x13=document.getElementById("distance_info_div_"+x2._f827.id); if(x13) x13.innerHTML=""; MVUtil.runListeners(x2._f143,MVEvent.CLEAR); } } this._f842=function() { if(x2._f838) { if(x2._f827==null) return; var x14=x2._f827.getOrdinates(); if(x14==null||x14.length<4) { if(x2._f840) x2._f840(); MVUtil.runListeners(x2._f143,MVEvent.NEW_SHAPE_POINT); return; } var x15=MVSdoGeometry.createLineString(x14,x2.srid); var x16=function(x17) { var x18=MVi18n._f425("totalDistance")+x2._f844(x17); var x19=document.getElementById("distance_info_div_"+x2._f827.id); if(!x19) { x19=document.createElement("div"); x19.id="distance_info_div_"+x2._f827.id; x2._f827.getInfoDecorationDiv().appendChild(x19); } x19.innerHTML=x18; } if(x2._f837==MVDistanceTool.METRIC) parseInt(x15.getLength("meter",true,x2._f139,x16)); else parseInt(x15.getLength("Yard",true,x2._f139,x16)); } if(x2._f840) x2._f840(); MVUtil.runListeners(x2._f143,MVEvent.NEW_SHAPE_POINT); } this.getDistance=function(x20,x21,x22) { if(x2._f827==null) return 0; var x23=x2._f827.getOrdinates(); if(x23==null||x23.length<4) return 0; var x24=x23.length; var x25=new Array(4); for(var x26=0;x26<4;x26++) x25[x26]=x23[x24+x26-4]; var x27=MVSdoGeometry.createLineString(x25,x2.srid); var x28; var x29=function(x30) { x28=x30; } parseInt(x27.getLength(x20,x21,x22,x29)); return x28; } this._f845=function(x31,x32,x33) { if(x2._f827==null) return 0; var x34=x2._f827.getOrdinates(); if(x34==null||x34.length<4) return 0; var x35=MVSdoGeometry.createLineString(x34,x2.srid); var x36; var x37=function(x38) { x36=x38; } parseInt(x35.getLength(x31,x32,x33,x37)); return x36; } this._f844=function(x39) { if(x2._f837==MVDistanceTool.METRIC) { if(x39>1000) { var x40=Math.round(x39/10); return MVUtil.formatNum(x40/100)+MVi18n._f425("km"); } else if(x39>1) return MVUtil.formatNum(x39)+MVi18n._f425("m"); else return MVUtil.formatNum(x39*10)+MVi18n._f425("cm"); } else { if(x39>1760) { var x40=Math.round((x39/1760)*100); return MVUtil.formatNum(x40/100)+MVi18n._f425("mi"); } else if(x39>1) return MVUtil.formatNum(x39)+MVi18n._f425("yd"); else return MVUtil.formatNum(x39*3)+MVi18n._f425("ft"); } } this._f843=function() { if(x2._f838) x2._f842(); else { if(x2._f518) x2._f518(); MVUtil.runListeners(x2._f143,MVEvent.MODIFY); } } } MVDistanceTool.prototype.setUnitStandard=function(x0) { this._f837=x0; } MVDistanceTool.METRIC=0; MVDistanceTool.IMPERIAL=1; function MVInfoWindowTab(x0,x1) { this.title=x0; this.content=x1; } MVInfoWindowTab.prototype.getTitle=function() { return this.title; } MVInfoWindowTab.prototype.getContent=function() { return this.content; } function MVMenu(x0,x1,x2) { this.mapview=x0; this.menuTableId="mvmenu_table_0"; this.menuTableBodyId="mvmenu_table_body_0"; this.menuFOIId="mvmenu_0"; x0.removeFOI(this.menuFOIId); var x3=""+ ""+ "
"+ "
"+ "
" var x4=MVFOI.createHTMLFOI(this.menuFOIId,x1,x3,0,0); if(x2) x4.areacode=x2; x4.setInfoTip(null); x4.setInfoWindow(null,0,0); x4.setTopFlag(true); x0.addFOI(x4); var x5=this.menuFOIId; var x6=function() { x0.removeFOI(x5); } x0.addEventListener(MVEvent.MOUSE_CLICK,x6); } MVMenu.count=0; MVMenu.prototype.addMenuItem=function(x0,x1) { var x2=document.getElementById(this.menuTableBodyId); var x3=document.getElementById(this.menuTableId).style.width;var x4=parseInt(x3.substr(0,x3.length-2)); if(x4<(x0.length*12)) document.getElementById(this.menuTableId).style.width=(x0.length*12)+"px"; var x5=document.createElement('tr'); x2.appendChild(x5); x5.style.fontFamily="Arial, Helvetica, Geneva, sans-serif"; x5.style.fontSize="12px"; x5.style.cursor="pointer"; x5.align='left'; var x6=document.createElement("td"); x6.innerHTML=x0; x5.appendChild(x6); x5.onmouseover=function() { this.style.backgroundColor="#336699"; this.style.color="#ffffff"; } x5.onmouseout=function() { this.style.backgroundColor="transparent"; this.style.color="#000000"; } if(x1) { var x2=this; x5.onmousedown=function(x7) { MVUtil._f314(x7); x2.removeRightClickMenu(); x1(); } } } MVMenu.prototype.removeRightClickMenu=function() { this.mapview.removeFOI(this.menuFOIId); } function MVToolBar(x0,x1,x2) { if(x2==MVToolBar.VERTICAL) this.Direction=x2; else this.Direction=MVToolBar.HORIZONTAL; this._f805=x0; this._f806=x1; this.mapviewer=null; this.toolBarDecoration=null; this._f807; this._f808=new Object(); var x3=this; var x4=null; this.visible=true; this.clearButtonAdded=false; this._f809=new MVToolButton(x0+"_bt_clear",MVToolButton.COMMAND,_f30._f127+"tbicons/clear.gif",_f30._f127+"tbicons/p_clear.gif"); this._f810=new MVToolButton(x0+"_bt_redline",MVToolButton.TOGGLE,_f30._f127+"tbicons/redline.gif",_f30._f127+"tbicons/p_redline.gif"); this._f811=new MVToolButton(x0+"_bt_distance",MVToolButton.TOGGLE,_f30._f127+"tbicons/distance.gif",_f30._f127+"tbicons/p_distance.gif"); this._f812=new MVToolButton(x0+"_bt_circle",MVToolButton.TOGGLE,_f30._f127+"tbicons/circle.gif",_f30._f127+"tbicons/p_circle.gif"); this._f813=new MVToolButton(x0+"_bt_rectangle",MVToolButton.TOGGLE,_f30._f127+"tbicons/rectangle.gif",_f30._f127+"tbicons/p_rectangle.gif"); this._f814=new MVToolButton(x0+"_bt_zoom",MVToolButton.TOGGLE,_f30._f127+"tbicons/zoom.gif",_f30._f127+"tbicons/p_zoom.gif"); this._f815=new MVButtonGroup(); this._f816=new Array(); this.setPosition=function(x5,x6,x7,x8) { if(!x7) x7=0; if(!x8) x8=0; x3.toolBarDecoration.setPosition(x5,x6,x7,x8); } this.setVisible=function(x9) { if(x3.visible!=x9) { x3.toolBarDecoration.setVisible(x9); x3.visible=x9; } } this.isVisible=function() { return this.visible; } this.getBuiltInTool=function(x10) { if(x3._f806[MVToolBar.BUILTIN_ALL]==true||x3._f806[x10]==true) { var x11=null; switch(x10) { case MVToolBar.BUILTIN_CIRCLE: x11=x3._f812; break; case MVToolBar.BUILTIN_RECTANGLE: x11=x3._f813; break; case MVToolBar.BUILTIN_REDLINE: x11=x3._f810; break; case MVToolBar.BUILTIN_DISTANCE: x11=x3._f811; break; } if(x11) return x11.tool; else return null; } else return null; } this.addButton=function(x12) { var x13=null; var x14=null; if(x12._f817==MVToolButton.SEPARATOR) { if(x3.Direction==MVToolBar.HORIZONTAL) x12._f818.setAttribute("src",_f30._f127+"tbicons/bk_v.png"); else x12._f818.setAttribute("src",_f30._f127+"tbicons/bk_h.png"); } if(x3.Direction==MVToolBar.HORIZONTAL) { if(x4.childNodes.length==0) { x13=x4.insertRow(0); } else { x13=x4.firstChild.firstChild; } x14=x13.insertCell(x13.childNodes.length); x14.id="_td_"+x12._f819 } else { if(x4.childNodes.length==0) x13=x4.insertRow(0); else x13=x4.insertRow(x4.firstChild.childNodes.length); x13.id="_tr_"+x12._f819; x14=x13.insertCell(0); } x12._f820=x3; x14.appendChild(x12._f821); x3._f808[x12._f819]=x12; x12._f820=x3; } this.addSeparator=function(x15) { var x16=new MVToolButton(x15,MVToolButton.SEPARATOR); x3.addButton(x16); } this.getButton=function(x17) { return x3._f808[x17]; } this.getBuiltInButton=function(x18) { if(x18==MVToolBar.BUILTIN_CLEAR&&this.clearButtonAdded) return this._f809; if(x3._f806[MVToolBar.BUILTIN_ALL]==true||x3._f806[x18]==true) { var x19=null; switch(x18) { case MVToolBar.BUILTIN_CIRCLE: x19=x3._f812; break; case MVToolBar.BUILTIN_RECTANGLE: x19=x3._f813; break; case MVToolBar.BUILTIN_REDLINE: x19=x3._f810; break; case MVToolBar.BUILTIN_DISTANCE: x19=x3._f811; break; case MVToolBar.BUILTIN_MARQUEE_ZOOM: x19=x3._f814; break; } if(x19) return x19; else return null; } else return null; } this.removeButton=function(x20) { if(!x20) return ; delete x3._f808[x20._f819]; if(x20.group) { delete x20.group._f822[x20._f819]; x20.group=null; } if(x3.Direction==MVToolBar.HORIZONTAL) { if(x4.childNodes.length==0) { return; } else { oTR=x4.firstChild.firstChild; for(var x21=0;x21",0.35,0.05); x3.toolBarDecoration.setVisible(x3.visible); x3.toolBarDecoration.setDraggable(true); x4=document.createElement("Table"); x4.id="tb_"+x3._f805; x4.style.backgroundColor="rgb(242, 237, 242)"; x4.cellSpacing=1; x4.cellPadding=1; x4.style.border="1px solid #7F9DB9"; x3._f823(); } this._f823=function() { x3._f809.setToolTip(MVi18n._f425("clearButton")); x3._f810.setToolTip(MVi18n._f425("redlineTool")); x3._f811.setToolTip(MVi18n._f425("distanceTool")); x3._f812.setToolTip(MVi18n._f425("circleTool")); x3._f813.setToolTip(MVi18n._f425("retangleTool")); x3._f814.setToolTip(MVi18n._f425("marqueeZoomTool")); x3._f810.btName=MVToolBar.BUILTIN_REDLINE; x3._f811.btName=MVToolBar.BUILTIN_DISTANCE; x3._f812.btName=MVToolBar.BUILTIN_CIRCLE; x3._f813.btName=MVToolBar.BUILTIN_RECTANGLE; x3._f814.btName=MVToolBar.BUILTIN_MARQUEE_ZOOM; x3._f809.attachEventListener(MVEvent.BUTTON_DOWN,x3._f824); x3._f810.attachEventListener(MVEvent.BUTTON_DOWN,x3._f824); x3._f811.attachEventListener(MVEvent.BUTTON_DOWN,x3._f824); x3._f812.attachEventListener(MVEvent.BUTTON_DOWN,x3._f824); x3._f813.attachEventListener(MVEvent.BUTTON_DOWN,x3._f824); x3._f814.attachEventListener(MVEvent.BUTTON_DOWN,x3._f824); x3._f810.attachEventListener(MVEvent.BUTTON_UP,x3._f825); x3._f811.attachEventListener(MVEvent.BUTTON_UP,x3._f825); x3._f812.attachEventListener(MVEvent.BUTTON_UP,x3._f825); x3._f813.attachEventListener(MVEvent.BUTTON_UP,x3._f825); x3._f814.attachEventListener(MVEvent.BUTTON_UP,x3._f825); x3._f815.add(x3._f809); x3._f815.add(x3._f810); x3._f815.add(x3._f811); x3._f815.add(x3._f812); x3._f815.add(x3._f813); x3._f815.add(x3._f814); var x27=new MVCircleTool(); var x28=new MVStyleColor("_bt_circle_area_color",null,"FF0000"); x27.setAreaStyle(x28); x3._f812.tool=x27; var x29=new MVRectangleTool(); var x28=new MVStyleColor("_bt_rectangle_area_color",null,"FF0000"); x29.setAreaStyle(x28); x3._f813.tool=x29; var x30=new MVRedlineTool(); x3._f810.tool=x30; var x31=new MVDistanceTool(MVDistanceTool.IMPERIAL); var x32=new MVStyleMarker("_bt_distance_point","vector"); x32.setStrokeColor("ff0000"); x32.setFillColor("00FF00"); x32.setVectorShape("c:30"); x31.setRenderingStyle(MVRedlineTool.STYLE_POINT,x32); var x33=''+ ''; var x34=new MVXMLStyle("_bt_distance_line",x33); x31.setRenderingStyle(MVRedlineTool.STYLE_LINE,x34); x3._f811.tool=x31; } this._f754=function() { x3._f807=document.getElementById("div_"+x3._f805); x3._f807.appendChild(x4); } this._f753=function(x35) { var x36=[false,false,false,false,false,false]; if(x35==null&&x3._f806) { for(var x37=0;x370) x3._f810.tool.clear(); x38("redline"); } var x47=function() { if(x3._f811.tool._f827.getPointFOIs().length>0) x3._f811.tool.clear(); x38("distance"); } var x48=function() { x38("circle"); if(x3._f812.tool.getStatus()!=0) x3._f812.tool.clear(); } var x49=function() { x38("rectangle"); if(x3._f813.tool.getStatus()!=0) x3._f813.tool.clear(); } var x50=function() { x38("zoom"); } var x51=function(x52) { var x53=x3.getBuiltInButton(x52); if(x53._f828==MVToolButton.UP) { x53.group.reset(); x53._f818.setAttribute("src",x53._f829); x53._f828=MVToolButton.DOWN; if(x53._f830) x53._f830(x53._f819); } } for(var x37=1;x37=3) x3.getButton(x63).tool.generateArea(); else x3.getButton(x63).tool.clear(); } } if(x63==x0+"_bt_distance") { if(x3.getButton(x63).tool) { if(x3.getButton(x63).tool._f827.getPointFOIs().length>=3) x3.getButton(x63).tool.finish(); else x3.getButton(x63).tool.clear(); } } else if(x63==x0+"_bt_zoom") { x3.mapviewer.stopMarqueeZoom(); } } x3.init(); } MVToolBar.VERTICAL=0; MVToolBar.HORIZONTAL=1; MVToolBar.BUILTIN_ALL=0; MVToolBar.BUILTIN_CIRCLE=1; MVToolBar.BUILTIN_RECTANGLE=2; MVToolBar.BUILTIN_REDLINE=3; MVToolBar.BUILTIN_DISTANCE=4; MVToolBar.BUILTIN_MARQUEE_ZOOM=5; MVToolBar.BUILTIN_CLEAR=6; function MVToolButton(x0,x1,x2,x3) { this._f819=x0; this._f817=x1; this._f924=x2; this._f829=x3; this._f828=MVToolButton.UP; this._f820=null; this._f143=new Array(); this._f925=null; this._f926=null; this._f830=null; this._f821=document.createElement("div"); this._f818=document.createElement("img"); this._f927=document.createElement("div"); this.btName=null; var x4=this; this.attachEventListener=function(x5,x6) { MVUtil.attachEventListener(x4._f143,x5,x6) } this.detachEventListener=function(x7,x8) { MVUtil.detachEventListener(x4._f143,x7,x8); } this.setToolTip=function(x9) { x4._f927.innerHTML=x9; } this.reset=function() { this._f826(); } this._f928=function() { x4._f821.appendChild(x4._f818); x4._f821.appendChild(x4._f927); x4._f927.style.position="absolute"; x4._f927.style.display="none"; x4._f927.style.borderColor="black"; x4._f927.style.backgroundColor="#ffffe1"; x4._f927.style.borderWidth="1px"; x4._f927.style.borderStyle="solid"; x4._f927.style.fontSize="14px"; x4._f927.style.whiteSpace="nowrap"; x4._f927.style.padding="2px"; if(x4._f817!=MVToolButton.SEPARATOR) { x4._f818.setAttribute("src",x4._f924); } } this._f818.onmouseover=function() { if(x4._f817!=MVToolButton.SEPARATOR) { MVUtil._f107(x4._f820._f807,"pointer"); if(x4._f927.innerHTML) { x4._f927.style.display=""; MVUtil._f76(x4._f927,x4._f821.parentNode.offsetLeft+5,x4._f821.parentNode.offsetTop+30); } } else { MVUtil._f107(x4._f820._f807,"default"); } } this._f818.onmouseout=function(x10) { if(x4._f828==MVToolButton.DOWN) x4._f818.onmouseup(x10); x4._f927.style.display="none"; } this._f818.onmousedown=function(x11) { if(x4._f830) x4._f830(x4._f819); if(x4._f817==MVToolButton.COMMAND) { x4._f818.setAttribute("src",x4._f829); x4._f828=MVToolButton.DOWN; x11=(x11)?x11:((window.event)?event:null); MVUtil._f314(x11); if(x4._f925) x4._f925(x4._f819); MVUtil.runListeners(x4._f143,MVEvent.BUTTON_DOWN,[x4._f819]); } else if(x4._f817==MVToolButton.TOGGLE) { if(x4._f828==MVToolButton.UP) { x4._f818.setAttribute("src",x4._f829); x4._f828=MVToolButton.DOWN; x11=(x11)?x11:((window.event)?event:null); MVUtil._f314(x11); if(x4._f925) x4._f925(x4._f819); MVUtil.runListeners(x4._f143,MVEvent.BUTTON_DOWN,[x4._f819]); } else { x4._f818.setAttribute("src",x4._f924); x4._f828=MVToolButton.UP; x11=(x11)?x11:((window.event)?event:null); MVUtil._f314(x11); if(x4._f926) x4._f926(x4._f819); MVUtil.runListeners(x4._f143,MVEvent.BUTTON_UP,[x4._f819]); } } } this._f818.onmouseup=function(x12) { if(x4._f817==MVToolButton.COMMAND&&x4._f828==MVToolButton.DOWN) { x4._f818.setAttribute("src",x4._f924); if(x4._f926) x4._f926(x4._f819); MVUtil.runListeners(x4._f143,MVEvent.BUTTON_UP,[x4._f819]); x4._f828=MVToolButton.UP; } } this._f826=function(x13) { if(x4._f817==MVToolButton.TOGGLE&&(x13==undefined||x4._f819!=x13)) { if(x4._f828==MVToolButton.DOWN) { x4._f818.setAttribute("src",x4._f924); x4._f828=MVToolButton.UP; MVUtil.runListeners(x4._f143,MVEvent.BUTTON_UP,[x4._f819]); } } } x4._f928(); } MVToolButton.COMMAND=0; MVToolButton.TOGGLE=1; MVToolButton.SEPARATOR=2; MVToolButton.UP=0; MVToolButton.DOWN=1; function MVGoogleTileLayer() { this._f404= { "mapTileLayer":"MV3785_1_19", "format":"PNG", "coordSys": { "srid":3785, "type":"PROJECTED", "distConvFactor":1.0, "minX":-2.0037508E7,"minY":-2.0037508E7, "maxX":2.0037508E7,"maxY":2.0037508E7 }, "zoomLevels": [ {"zoomLevel":1,"name":"","tileWidth":2.0037508E7,"tileHeight":2.0037508E7,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":2,"name":"","tileWidth":1.0018754E7,"tileHeight":1.0018754E7,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":3,"name":"","tileWidth":5009377.0,"tileHeight":5009377.0,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":4,"name":"","tileWidth":2504688.5,"tileHeight":2504688.5,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":5,"name":"","tileWidth":1252344.25,"tileHeight":1252344.25,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":6,"name":"","tileWidth":626172.125,"tileHeight":626172.125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":7,"name":"","tileWidth":313086.0625,"tileHeight":313086.0625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":8,"name":"","tileWidth":156543.03125,"tileHeight":156543.03125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":9,"name":"","tileWidth":78271.515625,"tileHeight":78271.515625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":10,"name":"","tileWidth":39135.7578125,"tileHeight":39135.7578125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":11,"name":"","tileWidth":19567.87890625,"tileHeight":19567.87890625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":12,"name":"","tileWidth":9783.939453125,"tileHeight":9783.939453125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":13,"name":"","tileWidth":4891.9697265625,"tileHeight":4891.9697265625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":14,"name":"","tileWidth":2445.98486328125,"tileHeight":2445.98486328125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":15,"name":"","tileWidth":1222.992431640625,"tileHeight":1222.992431640625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":16,"name":"","tileWidth":611.4962158203125,"tileHeight":611.4962158203125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":17,"name":"","tileWidth":305.74810791015625,"tileHeight":305.74810791015625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":18,"name":"","tileWidth":152.87405395507812,"tileHeight":152.87405395507812,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":19,"name":"","tileWidth":76.43702697753906,"tileHeight":76.43702697753906,"tileImageWidth":256,"tileImageHeight":256} ] }; this.srid=8307; this._f38=MVMapTileLayer; this._f38(this._f404.mapTileLayer); this.mapType=null; this._f55=null; this._f56=null; this._f11=null; this.initializeListener=null; this.map=null; this._f803=null; this._f804=null; } MVGoogleTileLayer.prototype=new MVMapTileLayer; MVGoogleTileLayer.prototype.setMapType=function(x0) { this.mapType=x0; if(this.map) this.map.setMapType(x0); } MVGoogleTileLayer.prototype.getMapType=function() { return this.mapType; } MVGoogleTileLayer.prototype.getType=function() { return "MVExternalAPIMapTileLayer"; } MVGoogleTileLayer.prototype.init=function(x1) { this.map=new GMap2(x1); if(this.mapType) this.map.setMapType(this.mapType); if(this._f55!=null&&this._f56!=null&&this._f11!=null) { var x2=new GLatLng(this._f56,this._f55); this.map.setCenter(x2,this._f11+1); } if(this.initializeListener) this.initializeListener(); this._f803=x1.lastChild; this._f803.id="google_term_of_use"; x1.removeChild(this._f803); this._f803.style.zIndex="100"; x1.parentNode.parentNode.appendChild(this._f803); this._f804=x1.lastChild; this._f804.id="google_logo"; x1.removeChild(this._f804); this._f804.style.zIndex="100"; x1.parentNode.parentNode.appendChild(this._f804); } MVGoogleTileLayer.prototype.setCenterAndZoomLevel=function(x3,x4,x5) { this._f55=x3; this._f56=x4; this._f11=x5; if(this.map) { this.map.setCenter(new GLatLng(x4,x3),x5+1); } } MVGoogleTileLayer.prototype._f405=function(x6,x7) { this.map.getDragObject().moveBy(new GSize(x6,x7)); } MVGoogleTileLayer.prototype.getCenter=function() { var x8=this.map.getCenter(); if(x8) return MVSdoGeometry.createPoint(x8.lng(),x8._f116(),this.srid); else return null; } MVGoogleTileLayer.prototype.setCenter=function(x9,x10) { this._f55=x9; this._f56=x10; if(this.map) this.map.setCenter(new GLatLng(x10,x9)); } MVGoogleTileLayer.prototype.resize=function() { if(this.map) this.map.checkResize(); } MVGoogleTileLayer.prototype.clone=function() { var x11=new MVGoogleTileLayer(); return x11; } MVGoogleTileLayer.prototype.setVisible=function(x12) { MVMapTileLayer.prototype.setVisible.call(this,x12); if(this._f803) this._f803.style.display=x12?"":"none"; if(this._f804) this._f804.style.display=x12?"":"none"; } MVGoogleTileLayer.prototype._f18=function() { MVMapTileLayer.prototype._f18.call(this); if(this._f803) { this._f803.parentNode.removeChild(this._f803); this._f803=null; } if(this._f804) { this._f804.parentNode.removeChild(this._f804); this._f804=null; } GUnload(); } function MVBingTileLayer() { this._f404= { "mapTileLayer":"MV3785_1_19", "format":"PNG", "coordSys": { "srid":3785, "type":"PROJECTED", "distConvFactor":1.0, "minX":-2.0037508E7,"minY":-2.0037508E7, "maxX":2.0037508E7,"maxY":2.0037508E7 }, "zoomLevels": [ {"zoomLevel":0,"name":"","tileWidth":2.0037508E7,"tileHeight":2.0037508E7,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":1,"name":"","tileWidth":1.0018754E7,"tileHeight":1.0018754E7,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":2,"name":"","tileWidth":5009377.0,"tileHeight":5009377.0,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":3,"name":"","tileWidth":2504688.5,"tileHeight":2504688.5,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":4,"name":"","tileWidth":1252344.25,"tileHeight":1252344.25,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":5,"name":"","tileWidth":626172.125,"tileHeight":626172.125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":6,"name":"","tileWidth":313086.0625,"tileHeight":313086.0625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":7,"name":"","tileWidth":156543.03125,"tileHeight":156543.03125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":8,"name":"","tileWidth":78271.515625,"tileHeight":78271.515625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":9,"name":"","tileWidth":39135.7578125,"tileHeight":39135.7578125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":10,"name":"","tileWidth":19567.87890625,"tileHeight":19567.87890625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":11,"name":"","tileWidth":9783.939453125,"tileHeight":9783.939453125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":12,"name":"","tileWidth":4891.9697265625,"tileHeight":4891.9697265625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":13,"name":"","tileWidth":2445.98486328125,"tileHeight":2445.98486328125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":14,"name":"","tileWidth":1222.992431640625,"tileHeight":1222.992431640625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":15,"name":"","tileWidth":611.4962158203125,"tileHeight":611.4962158203125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":16,"name":"","tileWidth":305.74810791015625,"tileHeight":305.74810791015625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":17,"name":"","tileWidth":152.87405395507812,"tileHeight":152.87405395507812,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":18,"name":"","tileWidth":76.43702697753906,"tileHeight":76.43702697753906,"tileImageWidth":256,"tileImageHeight":256} ] }; this.srid=8307; this._f38=MVMapTileLayer; this._f38(this._f404.mapTileLayer); this.mapType=VEMapStyle.Road; this._f55=null; this._f56=null; this._f11=null; this.initializeListener=null; this.map=null; this.key=null; } MVBingTileLayer.prototype=new MVMapTileLayer; MVBingTileLayer.prototype.setMapType=function(x0) { this.mapType=x0; if(this.map) this.map.SetMapStyle(x0); } MVBingTileLayer.prototype.getMapType=function() { return this.mapType; } MVBingTileLayer.prototype.setKey=function(x1) { if(x1) this.key=x1; } MVBingTileLayer.prototype.getType=function() { return "MVExternalAPIMapTileLayer"; } MVBingTileLayer.prototype.init=function(x2) { this.map=new VEMap(x2.id); this.validateKey(); var x3=null; if(this._f55!=null&&this._f56!=null) x3=new VELatLong(this._f56,this._f55); this.map.LoadMap(x3,this._f11+1,this.mapType,true); if(this.initializeListener) this.initializeListener(); } MVBingTileLayer.prototype.setCenterAndZoomLevel=function(x4,x5,x6) { this._f55=x4; this._f56=x5; this._f11=x6; if(this.map) this.map.SetCenterAndZoom(new VELatLong(x5,x4),x6+1); } MVBingTileLayer.prototype._f405=function(x7,x8) { this.map.vemapcontrol.PanMap(-x7,-x8); } MVBingTileLayer.prototype.getCenter=function() { var x9=this.map.GetCenter(); return MVSdoGeometry.createPoint(x9.Longitude,x9.Latitude,this.srid); } MVBingTileLayer.prototype.setCenter=function(x10,x11) { this._f55=x10; this._f56=x11; if(this.map) this.map.SetCenter(new VELatLong(x11,x10)); } MVBingTileLayer.prototype.resize=function() { if(this.map&&this.layerDiv.parentNode.offsetWidth>0) this.map.Resize(this.layerDiv.parentNode.offsetWidth,this.layerDiv.parentNode.offsetHeight); } MVBingTileLayer.prototype.clone=function() { var x12=new MVBingTileLayer(); return x12; } MVBingTileLayer.prototype.validateKey=function() { var x13="You have entered an invalid Bing Maps Key! Please replace it with a valid key."; if(!this.map) return ; this.map.AttachEvent("oncredentialserror",function(){alert(x13)}); this.map.SetCredentials(this.key); } MVVirtualEarthTileLayer=MVBingTileLayer; function MVYahooTileLayer() { this._f404= { "mapTileLayer":"MV3785_1_17", "format":"PNG", "coordSys": { "srid":3785, "type":"PROJECTED", "distConvFactor":1.0, "minX":-2.0037508E7,"minY":-2.0037508E7, "maxX":2.0037508E7,"maxY":2.0037508E7 }, "zoomLevels": [ {"zoomLevel":0,"name":"","tileWidth":2.0037508E7,"tileHeight":2.0037508E7,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":1,"name":"","tileWidth":1.0018754E7,"tileHeight":1.0018754E7,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":2,"name":"","tileWidth":5009377.0,"tileHeight":5009377.0,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":3,"name":"","tileWidth":2504688.5,"tileHeight":2504688.5,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":4,"name":"","tileWidth":1252344.25,"tileHeight":1252344.25,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":5,"name":"","tileWidth":626172.125,"tileHeight":626172.125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":6,"name":"","tileWidth":313086.0625,"tileHeight":313086.0625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":7,"name":"","tileWidth":156543.03125,"tileHeight":156543.03125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":8,"name":"","tileWidth":78271.515625,"tileHeight":78271.515625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":9,"name":"","tileWidth":39135.7578125,"tileHeight":39135.7578125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":10,"name":"","tileWidth":19567.87890625,"tileHeight":19567.87890625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":11,"name":"","tileWidth":9783.939453125,"tileHeight":9783.939453125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":12,"name":"","tileWidth":4891.9697265625,"tileHeight":4891.9697265625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":13,"name":"","tileWidth":2445.98486328125,"tileHeight":2445.98486328125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":14,"name":"","tileWidth":1222.992431640625,"tileHeight":1222.992431640625,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":15,"name":"","tileWidth":611.4962158203125,"tileHeight":611.4962158203125,"tileImageWidth":256,"tileImageHeight":256}, {"zoomLevel":16,"name":"","tileWidth":305.74810791015625,"tileHeight":305.74810791015625,"tileImageWidth":256,"tileImageHeight":256} ] }; this.srid=8307; this._f38=MVMapTileLayer; this._f38(this._f404.mapTileLayer); this.mapType=YAHOO_MAP_REG; this._f55=null; this._f56=null; this._f11=null; this.initializeListener=null; this.map=null; } MVYahooTileLayer.prototype=new MVMapTileLayer; MVYahooTileLayer.prototype.setMapType=function(x0) { this.mapType=x0; if(this.map) this.map.setMapType(x0); } MVYahooTileLayer.prototype.getMapType=function() { return this.mapType; } MVYahooTileLayer.prototype.getType=function() { return "MVExternalAPIMapTileLayer"; } MVYahooTileLayer.prototype.init=function(x1) { this.map=new YMap(x1,this.mapType); var x2=null; if(this._f55!=null&&this._f56!=null) { x2=new YGeoPoint(this._f56,this._f55); this.map.drawZoomAndCenter(x2,17-this._f11); } if(this.initializeListener) this.initializeListener(); } MVYahooTileLayer.prototype.setCenterAndZoomLevel=function(x3,x4,x5) { this._f55=x3; this._f56=x4; this._f11=x5; if(this.map) this.map.panToLatLon(new YGeoPoint(x4,x3),17-this._f11); } MVYahooTileLayer.prototype.getCenter=function() { var x6=this.map.getCenterLatLon(); return MVSdoGeometry.createPoint(x6.Lon,x6.Lat,this.srid); } MVYahooTileLayer.prototype._f405=function(x7,x8) { this.map.moveByXY(new YCoordPoint(x7,x8)); } MVYahooTileLayer.prototype.setCenter=function(x9,x10) { this._f55=x9; this._f56=x10; if(this.map) this.map.panToLatLon(new YGeoPoint(x10,x9)); } MVYahooTileLayer.prototype.resize=function() { var x11=new YGeoPoint(this._f56,this._f55); this.map.drawZoomAndCenter(x11,17-this._f11); } MVYahooTileLayer.prototype.clone=function() { var x12=new MVYahooTileLayer(); return x12; } function MVFOIGroup(x0) { this._f407=new Array(); this._f408=new Array(); this._f536=new Object(); if(x0 instanceof Array) { for(var x1=0;x1=0) { if(this.parent._f63) { var x6=this; var x7=function() { var x8=x5._f203.getPointX(); var x9=x5._f203.getPointY(); if(x6.clustering&&x6._f546>=x6.parent._f11 &&x5.gtype%10==1) { result=x6._f550(x5); if(result!=null) { var x10=x6._f551(result.x,result.y); var x11=x6.clusters[result.x][result.y]; if(x10==null) { x6._f552(x11); } else { if(x11!=null) { x6._f552(x11); } else if(x6.clusters[result.x+x10.directionX][result.y+x10.directionY]!=null) { x6._f552(x6.clusters[result.x+x10.directionX][result.y+x10.directionY]); } else if(x6.clusters[result.x][result.y+x10.directionY]!=null) { x6._f552(x6.clusters[result.x][result.y+x10.directionY]); } else if(x6.clusters[result.x+x10.directionX][result.y]!=null) { x6._f552(x6.clusters[result.x+x10.directionX][result.y]); } } x5._f63=true; } return; } else if(x5.gtype%10==1&& (x8x6.maxX||x9x6.maxY)) { return; } x5._f63=true; if(x5.gtype%10==1&&x6._f553) { if(x6._f554(x5)) return; } x6.parent._f368._f555(x5); if(x5.gtype%10==1&&(x6.pointDiv.parentNode==null ||x6.pointDiv.parentNode!=x6.div)) x6.div.appendChild(x6.pointDiv); } this._f549(x5,x7); } } } MVFOIGroup.prototype.removeFOI=function(x12) { if(!x12) return ; if(x12.id!=null&&x12.id!="") { this._f536[x12.id]=null; } if(x12.gtype%10==1) { for(var x13=0;x13=this.parent._f11&&this.clusters) { if(x12._f203.srid==null) x12._f203.srid=this.parent.srid; else if(x12._f203.srid!=this.parent.srid) this.parent.transformGeom(x12._f203,this.parent.srid,null,callBack); var x14=x12._f203.getPointX(); var x15=x12._f203.getPointY(); for(var x16=0;x160) if(this.parent._f196._f477[0].nid==x12.id) { this.parent._f196.deleteInfoWindow(this.parent._f196._f477[0]); } } } MVFOIGroup.prototype.refresh=function() { if(this.parent&&this.parent._f63) { this.startNum=0; this._f542=true; this.parent.setLoadingIconVisible(true); if(this._f541!=null) clearTimeout(this._f541); this._f547(); this._f548(); var x22=this; this.transformGeomNum=0; for(var x23=0;x23=x22.parent._f11) { x22._f560(); x22._f561(); try{ if(x22.pointDiv.parentNode==null|| x22.pointDiv.parentNode!=x22.div) x22.div.appendChild(this.pointDiv); } catch(ex){ alert(ex); } x22._f562(1); } else x22.initializePointBatch(); } if(x24._f203.srid==null) x24._f203.srid=this.parent.srid; if(x24._f203.srid!=this.parent.srid) this.parent.transformGeom(x24._f203,this.parent.srid,null,x25); else x25(); } this._f563(); } } MVFOIGroup.prototype.setVisible=function(x27) { this.visible=x27; if(this.div!=null) { if(this.visible) { this.refresh(); } else { var x28=this.pointDiv.childNodes; for(var x29=0;x29