//Version: Ver11.1.1.4_B110225 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._f459=0; this.url=null; this.status=0; this.readyState=0; this._f460=null; this.responseText=null; } MVXMLHttpRequest._f461=new Array(); MVXMLHttpRequest._f462=0; MVXMLHttpRequest._f463=Math.round(Math.random()*10000); MVXMLHttpRequest.callBack=function(id,x0,x1) { while(MVXMLHttpRequest._f461.length>0) { var x2=MVXMLHttpRequest._f461[0]; if(!x2.onreadystatechange) { if(x2._f460) { document.body.removeChild(x2._f460); x2._f460=null; } MVXMLHttpRequest._f461.shift(); } else break; } var x3=0; for(;x30) x8+="&"; else x8+="?"; x8+="callback_id="+this._f459; x8+="&"+x7; if(x8.length>_f65._f465) { throw "[MVXMLHttpRequest.send] "+MVi18n._f464("MAPVIEWER-05517"); return ; } var x9=document.createElement("script"); x9.src=x8; x9.type='text/javascript'; x9.charset='utf-8'; this._f460=x9; MVXMLHttpRequest._f461.push(this); document.body.appendChild(x9); if(MVMapView.debug) MVi18n.alert("MVXMLHttpRequest. URL:"+x8); } MVXMLHttpRequest.prototype.setRequestHeader=function(x10) { } function MVUtil(){} MVUtil._f304=function(x0,x1,x2,x3,x4,x5,x6,x7,x8) { var x9=(x7-x1)*x5/(x3-x1)-x0._f139; var x10=(x4-x8)*x6/(x4-x2)-x0._f140; var x11=MVSdoGeometry.createPoint(x9,x10); return x11.sdo_point; } MVUtil._f164=function(x12,x13,x14,x15,x16,x17,x18,x19,x20) { var x21=(x19-x13)*x17/(x15-x13)-x12._f139; var x22=(x16-x20)*x18/(x16-x14)-x12._f140; 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._f80=function(x24) { var x25=x24.style.left; if(x25.indexOf("px")>0) x25=x25.substring(0,x25.length-2); return parseInt(""+x25); } MVUtil._f81=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._f70=function(x30,x31,x32) { if(_f65._f369==2) { x30.style.pixelLeft=x31; x30.style.pixelTop=x32; } else { x30.style.left=MVUtil._f26(x31); x30.style.top=MVUtil._f26(x32); } } MVUtil._f697=function(x33,x34,x35,x36,x37,x38,x39) { x33.style.left=MVUtil._f26(x34); x33.style.top=MVUtil._f26(x35); x33.style.width=MVUtil._f26(x36); x33.style.height=MVUtil._f26(x37); if(x38) x33.style.zIndex=x38; if(x39) x33.style.fontSize=MVUtil._f26(x39); } MVUtil._f654=function(x40) { x40.style.position="absolute"; x40.unselectable="on"; x40.onselectstart=MVUtil._f712; x40.style.fontFamily="Arial, sans serif"; x40.style.MozUserSelect="none"; x40.align="left"; } MVUtil._f712=function() { return false; } MVUtil._f162=function(x41,x42) { try { if(x42.indexOf(".")>-1) { x42="url(\""+x42+"\"),auto"; } x41.style.cursor=x42; } catch(_exception) { if(x42=="pointer") { MVUtil._f162(x41,"hand"); } } } MVUtil._f510=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 _f296(x0,x1,x2,x3,x4,x5,x6) { var x7=null; if(x6&&_f65._f64()) { 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._f26(x1); x7.style.height=MVUtil._f26(x2); x7.width=x1; x7.height=x2; } if(x4||(x3||(x4==0||x3==0))) { x7.style.position="absolute"; x7.style.left=MVUtil._f26(x3); x7.style.top=MVUtil._f26(x4); } if(x5||x5==0) { x7.style.zIndex=x5; } if(_f65._f66=="IF"){ x7.unselectable="on"; x7.onselectstart=MVUtil._f712;} else{ x7.style.MozUserSelect="none"; } if(_f65._f66=="IF") { x7.galleryImg="no"} x7.style.border="0"; x7.style.padding="0"; x7.style.margin="0"; x7.oncontextmenu=MVUtil._f712; return x7; } MVUtil._f713=function(x46,x47) { if(x47) { var x48=null; if(x47.type!=undefined) x48=x46._f229(x47); else x48=x47; var x49=MVSdoGeometry.createPoint(x48.left,x48.top); return x49.sdo_point; } else { var x48=x46._f229(window.event); var x49=MVSdoGeometry.createPoint(x48.left,x48.top); return x49.sdo_point; } } MVUtil.getMouseLocation=function(x50,x51) { var x52=MVUtil._f713(x50,x51); var x53=x52.x-x50._f106()/2; var x54=x53/x50._f72+x50._f90; x53=x52.y-x50._f107()/2; var x55=((-1.0)*x53)/x50._f74+x50._f91; var x56=MVSdoGeometry.createPoint(x54,x55); return x56; } MVUtil._f177=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._f165-x61.msi._f166; while(x62x61.msi._f165) { x62-=x63; } return x62; } MVUtil.keepOrdinatesInCSBoundary=function(x64,x65) { var x66=new Array(); for(var x67=0;x67'; } MVUtil._f236=function(x81) { return x81.replace(/(^[\s]*)|([\s]*$)/g,""); } MVUtil._f153=function(x82,x83) { return x82.substring(0,x83.length)==x83; } MVUtil._f5=function(x84,x85) { return x84.substring(x84.length-x85.length,x84.length)==x85; } MVUtil._f718=function(x86,x87) { return x87+x86+MVUtil._f717(x87); } MVUtil._f43=function(x88,x89,x90) { if(!x88) return x88; 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._f43(x93,x89,x90); } return x88; } MVUtil._f39=function(x94) { if(x94.indexOf(".")>=0) return x94.substring(0,x94.indexOf(".")); else return x94; } MVUtil._f38=function(x95) { if(x95.indexOf(".")>=0) return x95.substring(x95.indexOf(".")+1,x95.length); else return x95; } MVUtil.objArray=new Array(); MVUtil._f196=new Array(); MVUtil._f719=new Array(); MVUtil._f161=function(x96) { if(_f65._f66!="IF") return; var x97=MVUtil._f196.length; if(x96._f720) { x97=(x96._f720); } else x96._f720=-1; if((x96._f720)==-1&&(MVUtil._f719.length)>0) x97=MVUtil._f719.pop(); x96._f720=x97; MVUtil._f196[x97]=x96; } MVUtil.MVUnload=function() { if(typeof(MVUtil._f196)!="undefined"&&(MVUtil._f196!=null)) { for(var x98=0;MVUtil._f196&&x980) { var x99=MVUtil.objArray.pop(); x99._f170(); } } window.onunload=function() { MVUtil.MVUnload(); } MVUtil._f103=function(x100,x101) { if(_f65._f66!="IF") { return function() { return x101.apply(x100,arguments); } } if(!(MVUtil._f721)) { MVUtil._f721=new Array(); MVUtil._f722=new Array(); MVUtil._f723=new Array(); } if(!(MVUtil._f724)) { MVUtil._f724=new Array(); MVUtil._f725=new Array(); MVUtil._f726=new Array(); } try { var x102=(MVUtil._f721.length); if(x100._f720) { x102=(x100._f720); } else x100._f720=-1; if((x100._f720)==-1&&(MVUtil._f723.length)>0) x102=MVUtil._f723.pop(); MVUtil._f721[x102]=x100; MVUtil._f721[x102]._f720=x102; if(!(MVUtil._f722[x102])) MVUtil._f722[x102]=new Array(); var x103=(MVUtil._f722[x102].length); MVUtil._f722[x102][x103]=x101; x100=null; x101=null; return function() { return MVUtil._f722[x102][x103].apply(MVUtil._f721[x102],arguments); } } catch(e) { var x102=(MVUtil._f724.length); if((MVUtil._f726.length)>0) x102=MVUtil._f726.pop(); MVUtil._f724[x102]=x100; MVUtil._f725[x102]=x101; x100=null; x101=null; return function() { return MVUtil._f725[x102].apply(MVUtil._f724[x102],arguments); } } } MVUtil._f317=function(x104) { if(_f65._f66=="IF") { if(x104._f720) { var x105=(x104._f720); for(var x106=(MVUtil._f722[x105].length);x106>0;--x106) { MVUtil._f722[x105][x106-1]=null; MVUtil._f722[x105].pop(); } MVUtil._f722[x105]=null; x104._f720=null; x104=null; MVUtil._f721[x105]=null; MVUtil._f723.push(x105); } } } MVUtil.gc=function() { if(_f65._f66=="IF"&&MVUtil._f724) { var x107=0; if(MVUtil._f727) x107=(MVUtil._f727); if((MVUtil._f724.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._f129=function(x117,x118) { if(!x117) return ; var x119=x117.childNodes; if(x119!=null) { while(x119.length>0) { MVUtil._f197(x119[0],x118); x117.removeChild(x119[0]); } } } MVUtil._f197=function(x120,x121) { if(!x120) return ; var x122=x120.childNodes; if(x122!=null) { while(x122.length>0) { MVUtil._f197(x122[0],x121); x120.removeChild(x122[0]); } } MVUtil._f685(x120,x121); } MVUtil._f685=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(_f65._f66=="IF") { if(x123.style&&x123.style.filter) x123.style.filter=null; if(x123._f720) { MVUtil._f719.push(x123._f720) MVUtil._f196[x123._f720]=null; } } }catch(error) { MVi18n._f6("MVUtil.clearListeners","MAPVIEWER-05500",x123.nodeName+","+x123.nodeType+"\n"+error,x124); } } MVUtil._f87=MVUtil._f197; MVUtil._f732=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(_f65._f66=="IF") x132.cancelBubble=true; else if(x132.stopPropagation) x132.stopPropagation(); } MVUtil._f172=function(x133,x134,x135) { var x136=(_f65._f64()&&x134)? document.createElement('div'):document.createElement('img'); if(_f65._f64()&&x134) { var x137=x135?"scale":"image" if(x133) x136.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x133+"', sizingMethod='"+x137+"');"; } else { x136.src=x133; } if(_f65._f66=="IF"&&!x134) { x136.galleryImg="no"} return x136; } MVUtil.attachEvent=function(x138,x139,x140) { if(_f65._f66=="IF") { x139="on"+x139; x138.attachEvent(x139,x140); } else { x138.addEventListener(x139,x140,"false"); } } MVUtil.detachEvent=function(x141,x142,x143) { if(_f65._f66=="IF") { x142="on"+x142; x141.detachEvent(x142,x143); } else { x141.removeEventListener(x142,x143,"false"); } } MVUtil.mouseLeftKeyPressed=function(x144) { if(_f65._f66=="IF") return x144.button==1; else return x144.which==1; } MVUtil.mouseRightKeyPressed=function(x145) { if(_f65._f66=="IF") return x145.button==2; else return x145.which==3; } MVUtil.formatNum=function(x146) { if(x146==null||x146=="undefine") return; if(Math.abs(x146)>=1000) x146=Math.round(x146); else if(Math.abs(x146)>=100) x146=Math.round(x146*10)/10.0; else if(Math.abs(x146)>=10) x146=Math.round(x146*100)/100.0; else if(Math.abs(x146)>=1) x146=Math.round(x146*1000)/1000.0; else if(Math.abs(x146)>=0.1) x146=Math.round(x146*10000)/10000.0; else if(Math.abs(x146)>=0.01) x146=Math.round(x146*100000)/100000.0; else if(Math.abs(x146)>=0.001) x146=Math.round(x146*1000000)/1000000.0; else x146=Math.round(x146*10000000)/10000000.0; var x147=MVMessages["number_format"].charAt(1); var x148=MVMessages["number_format"].charAt(5); x146=new String(x146); if(x146.indexOf(".00")>0) { x146=x146.substring(0,x146.indexOf(".00")); } var x149,x150,x151; if(x146.indexOf(".")>0) { x149=x146.split("."); x150=x149[0]; x151=x149[1]; } else {x150=x146; x151=null; } var x152=x150.length-1-3-3; var x153; if(x150.length<=3) x153=x150; else{ x153=x147.concat(x150.slice(-3)); while(x152>-1) { var x154=x150.substr(x152+1,3); x153=x147.concat(x154,x153); x152=x152-3; } if(x150.length%3!=0) x153=x150.substr(0,(x150.length%3)).concat(x153); else x153=x150.substr(0,3).concat(x153); } if(x151!=null) { var x155=3; var x156; if(x151.length<=3) x156=x151; else{ x156=x151.slice(0,3); while(x155<=x151.length-1-3) { var x154=x151.substr(x155,3); x156=x156.concat(x147,x154); x155=x155+3; } if(x151.length%3!=0) x156=x156.concat(x147,x151.slice(-x151.length%3)); else x156=x156.concat(x147,x151.slice(-3)); } } if(x151==null) return x153; else return x153.concat(x148,x156); } MVUtil.getEventSource=function(x157) { if(_f65._f66=="IF") { return x157.srcElement; } else { return x157.target; } } MVUtil.unique_array=function(x158) { var x159=x158; var x160; for(var x161=0;x161=0) { var x177=x175.parent.getFOIGroup(x174.groupid); x176=x177._f273(x174.orgid?x174.orgid:x174.id); } else if(x174.parentNode&&x175) x176=x175._f274(x174.orgid?x174.orgid:x174.id); if(x176&&x176.origFOI) x176=x176.origFOI; return {ifctl:x175,foi:x176}; } MVUtil.transOrdinatesOnWarpAroungMap=function(x178,x179) { var x180=x178.msi._f165-x178.msi._f166; var x181=x180/2; var x182=x178.msi._f166+x181; var x183=new Array(); if(x179.length<4) return x179; var x184=x179[0]; var x185; x183.push(x184); x183.push(x179[1]); for(var x186=2;x186x181) { if((x185-x184)<0) x185+=x180; else x185-=x180; } x184=x185; x183.push(x185); x183.push(x179[++x186]); } return x183; } MVUtil.transLongitudeOnWarpAroungMap=function(x187,x188,x189) { var x190=x187.msi._f165-x187.msi._f166; var x191=x190/2; var x192=x187.msi._f166+x191; while(Math.abs(x189-x188)>x191) { if((x189-x188)<0) { x189+=x190; } else { x189-=x190; } } return x189; } MVUtil.crossDateLine=function(x193,x194) { var x195=x193.msi._f165-x193.msi._f166; var x196=x195/2; var x197=x193.msi._f166+x196; if(x194.length<4) return false; var x198=x194[0]; var x199; for(var x200=2;x200x196) { return true } else if(x198>x193.msi._f166&&x198x193.msi._f165||x199x201.msi._f165) x208=true; for(var x209=0;x209x215/2) { if(x221<0) { x213=x213+x215; x222--; } else { x213=x213-x215; x222++; } x221=x213-x218; } if(x213x220) x214=x216+1+x222; else x214=x216+x222; } return x214; } MVUtil.isNumber=function(x223) { if(x223!=null&&typeof x223=="number") return true; else return false; } MVUtil.isNumberArray=function(x224) { if(!x224) return true; if(typeof x224=="object") if(x224.length==0||MVUtil.isNumber(x224[0])) return true; return false; } MVUtil.getImageSize=function(x225,x226) { var x227=new Image(); x227.src=x225 x227.onload=function(){ var x228=this.width; var x229=this.height; x227.onload=null; x227=null; x226(x228,x229); } } MVUtil.canBeCombined=function(x230,x231) { if(x230._f559||x231._f559) return false; if(x230.getType()!="MVMapTileLayer"||x231.getType()!="MVMapTileLayer"|| !x230.layerControl||!x231.layerControl|| !(x230.layerControl instanceof _f415)|| !(x231.layerControl instanceof _f415)) return false; if(x230._f418!=x231._f418) return false; var x232=x230.config; var x233=x231.config; if(x232.clientTileAccess||x233.clientTileAccess) return false; if(x232.dataSource!=x232.dataSource) return false; if(x232.format!="PNG"||x233.format!="PNG") return false; if(x230.opacity!=x231.opacity) return false; if(x232.coordSys.srid!=x233.coordSys.srid|| x232.coordSys.minX!=x233.coordSys.minX|| x232.coordSys.minY!=x233.coordSys.minY) return false; if(x232.zoomLevels.length!=x232.zoomLevels.length) return false; for(var x234=0;x234x238.msi._f165) { x242--; x239-=x241; } return x240-x242*x241; } MVUtil.checkRealSize=function(x243,x244) { var x245=x244.style.visibility; x244.style.visibility="hidden"; x243._f302.appendChild(x244); var x246=MVUtil.getRealSize(x244) x243._f302.removeChild(x244); x244.style.visibility=x245; return x246; } MVUtil.getRealSize=function(x247) { var x248=x247.offsetWidth; var x249=x247.offsetHeight; for(var x250=0;x250180)x9-=360; x9=x9*Math.PI/180; x10=x10*Math.PI/180; return new MVSdoPointType(x9,x10,0); } _f370._f374=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); } _f370._f375=function(x14,x15) { x14=_f370._f373(x14); x15=_f370._f373(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*_f370._f371; } _f370._f376=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; } _f370.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; } _f370.get3DVector=function(x44,x45) { var x46={"x":x44,"y":x45}; var x47=_f370._f373(x46); x47.z=Math.sin(x47.y); return x47; } _f370.MAGNITUDE=function(x48) { return Math.sqrt(x48.x*x48.x+x48.y*x48.y+x48.z*x48.z); } _f370.DOTPRODUCT=function(x49,x50) { return x49.x*x50.x+x49.y*x50.y+x49.z*x50.z; } if(typeof(_f583)=='undefined') _f583=0; if(typeof(_f567)=='undefined') _f567=new Array(30); if(typeof(_f584)=='undefined') _f584=new Array(30); if(typeof(_f585)=='undefined') _f585=null; function _f65(){} _f65._f369=document.all?(document.getElementById?2:1):(document.layers?3:0); _f65._f586=navigator.userAgent.toLowerCase(); _f65._f587=null; _f65._f588=null; _f65._f589=new Array(30); _f65._f307="MVInfoWindowStyle1"; _f65._f590=new Array(30); _f65._f468=function() { return _f585; } _f65._f534=function(x0) { if(!_f585) _f585=x0; } _f65._f502=function(x1) { _f65._f587=_f65._f586.indexOf(x1)+1; _f65._f588=x1; return _f65._f587; } if(_f65._f502('safari')) _f65._f66="SF"; else if(_f65._f502('opera')) _f65._f66="OS"; else if(_f65._f502('msie')) _f65._f66="IF"; else if(!_f65._f502('compatible')) { _f65._f66="NS"; _f65._f591=_f65._f586.substring(8,11);} else _f65._f66="unknown"; if(!_f65._f591) _f65._f591=_f65._f586.substring(_f65._f587+_f65._f588.length, _f65._f587+_f65._f588.length+3); _f65._f592=0; if(_f65._f591) { var i=_f65._f591.indexOf("."); if(i>=0) _f65._f592=parseInt(_f65._f591.substring(0,i)); else _f65._f592=parseInt(_f65._f591); } _f65._f64=function() { return _f65._f66=="IF"&&_f65._f592<7; } _f65._f589["SQ_MM"]=.000001; _f65._f589["SQ_KILOMETER"]=1000000; _f65._f589["SQ_CENTIMETER"]=.0001; _f65._f589["SQ_MILLIMETER"]=.000001; _f65._f589["SQ_CH"]=404.6856; _f65._f589["SQ_FT"]=.09290304; _f65._f589["SQ_IN"]=.00064516; _f65._f589["SQ_LI"]=.04046856; _f65._f589["SQ_CHAIN"]=404.6856; _f65._f589["SQ_FOOT"]=.09290304; _f65._f589["SQ_INCH"]=.00064516; _f65._f589["SQ_LINK"]=.04046856; _f65._f589["SQ_MILE"]=2589988; _f65._f589["SQ_ROD"]=25.29285; _f65._f589["SQ_SURVEY_FOOT"]=.09290341; _f65._f589["SQ_YARD"]=.8361274; _f65._f589["ACRE"]=4046.856; _f65._f589["HECTARE"]=10000; _f65._f589["PERCH"]=25.29285; _f65._f589["ROOD"]=1011.714; _f65._f589["M"]=1; _f65._f589["METER"]=1; _f65._f589["KM"]=1000; _f65._f589["KILOMETER"]=1000; _f65._f589["CM"]=.01; _f65._f589["CENTIMETER"]=.01; _f65._f589["MM"]=.001; _f65._f589["MILLIMETER"]=.001; _f65._f589["MILE"]=1609.344; _f65._f589["NAUT_MILE"]=1852; _f65._f589["SURVEY_FOOT"]=.3048006096012; _f65._f589["FOOT"]=.3048; _f65._f589["INCH"]=.0254; _f65._f589["YARD"]=.9144; _f65._f589["CHAIN"]=20.1168; _f65._f589["ROD"]=5.0292; _f65._f589["LINK"]=.201166195; _f65._f589["MOD_USFT"]=.304812253; _f65._f589["CL_FT"]=.304797265; _f65._f589["IND_FT"]=.304799518; _f65._f589["LINK_BEN"]=.201167651; _f65._f589["LINK_SRS"]=.201167651; _f65._f589["CHN_BEN"]=20.1167825; _f65._f589["CHN_SRS"]=20.1167651; _f65._f589["IND_YARD"]=.914398554; _f65._f589["SRS_YARD"]=.914398415; _f65._f589["FATHOM"]=1.8288; _f65._f589["SQ_M"]=1; _f65._f589["SQ_METER"]=1; _f65._f589["SQ_KM"]=1000000; _f65._f589["SQ_CM"]=.0001; _f65._f471=function(x2) { if(x2) x2=x2.toUpperCase(); else return 0; if(_f65._f589[x2]) return _f65._f589[x2]; else return 0; } _f65._f593=function(x3,x4) { x3=x3.toUpperCase(); _f567[x3]=x4; if(x4.coordSys.srid) _f584[x4.coordSys.srid]=x4.coordSys; } _f65._f469=function(x5) { if(x5&&_f584[x5]) return _f584[x5]; else return null; } _f65._f595=function(basemap,callBack,_f7) { if(basemap._f418==null||basemap._f105==null||MVUtil._f236(basemap._f105)=="") { basemap._f105="null"; _f567[basemap._f105]=null;return; } basemap._f105=basemap._f105.toUpperCase(); if(_f567[basemap._f105]) { if(_f567[basemap._f105].transparent) basemap._f420=true; if(callBack) callBack(_f567[basemap._f105]); return _f567[basemap._f105]; } var formatStr; var _f596=basemap._f557; var requestStr="xml_request="+encodeURIComponent("" +""); var request=null; var localDomain=MVUtil.isLocalDomain(basemap._f418); var xmlHttp=localDomain||MVMapView._f117; var configLoaded=function() { try { var resp=xmlHttp?request.responseText:this.responseText; eval("var result="+resp); if(result.length==0) { MVi18n._f6("MVGlobalVariables.getMapCacheConfig","MAPVIEWER-05501",basemap._f105,_f7); _f567[basemap._f105]=null;result=null; return; } if(result[0].transparent) basemap._f420=true; _f65._f593(basemap._f105,result[0]); result=null; } catch(e) { MVi18n._f6("MVGlobalVariables.getMapCacheConfig","MAPVIEWER-05523", basemap._f105+":"+request.responseText,_f7); return ; } if(callBack) callBack(_f567[basemap._f105]); } try { request=MVUtil.getXMLHttpRequest(xmlHttp); if(!xmlHttp) request.onreadystatechange=configLoaded; request.open("POST",MVUtil._f119(_f596),!xmlHttp); request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); request.send(MVUtil._f120(_f596,requestStr)); }catch(e) { MVi18n._f6("MVGlobalVariables.getMapCacheConfig","MAPVIEWER-05511",e,_f7); return ; } if(xmlHttp) { if(request.status==200) { configLoaded(); } else { _f567[basemap._f105]=null;MVi18n._f6("MVGlobalVariables.getMapCacheConfig","MAPVIEWER-05511", basemap._f105+":"+request.responseText,_f7); } } request=null; } _f65._f310=180; _f65._f311=100; _f65.infoWindowTabsWidth=240; _f65.infoWindowTabsHeight=130; _f65._f597=14; _f65._f598=112; _f65._f599=14; _f65._f600=14; _f65._f601=14; _f65._f602=14; _f65._f603=14; _f65._f604=14; _f65._f605=14; _f65._f606=14; _f65._f385=600; _f65._f386=600; _f65._f387=30; _f65._f388=16; _f65._f389=600; _f65._f390=1; _f65._f391=1; _f65._f392=600; _f65._f393=1; _f65._f394=10; _f65._f500=true; _f65._f141="/fsmc/images/"; _f65._f607="/fsmc/images/"; _f65._f318=0; _f65._f357=null; _f65._f608="bulls-eye.png"; _f65._f609=38; _f65._f610=38; _f65._f364=5; _f65._f363="-redline-point-marker"; _f65._f366="-redline-line-style"; _f65._f367="-redline-area-style"; _f65._f496=0; _f65._f611=0; _f65._f465=2000; _f65._f549=null; _f65._f466=null; _f65._f467=function() { if(!_f65._f549) _f65._f549=document.location.protocol+"//"+document.location.host+"/mapviewer/foi"; return _f65._f549; } _f65._f612=function() { if(!_f65._f466) _f65._f466=document.location.protocol+"//"+document.location.host+"/mapviewer"; return _f65._f466; } _f65._f613="/mapviewer/proxy"; _f65._f614=null; _f65._f116=function() { if(!_f65._f614) { _f65._f614=_f65._f613; } return _f65._f614; } if(document.getElementsByTagName("html")[0].getAttribute("xmlns")=="http://www.w3.org/1999/xhtml") _f65._f615=true; else _f65._f615=false; _f65._f414=function(x6,x7,x8) { var x9=_f65._f590[x6]; if(!x9) x9=_f65._f590[x6]=new Array(); x9[x7]=x8; } _f65._f470=function(x10,x11) { var x12=_f65._f590[x10]; if(x12) return x12[x11]; else return null; } _f65._f616=0; _f65._f617=false; _f65.getHost=function(x13) { if(!x13||x13.indexOf("/")==0) { var x14=window.location.protocol; if(x14.indexOf("//")<0) x14+="//"; return x14+window.location.host; } else { var x15=x13.substring(0,x13.indexOf("//")+2); x13=x13.substring(x13.indexOf("//")+2); return x15+x13.substring(0,x13.indexOf("/")); } } var nodes=document.getElementsByTagName("script"); for(var i=0;i=0&&node.src.indexOf("/mapviewer/")>=0) { _f65._f141=_f65.getHost(node.src)+"/mapviewer/fsmc/images/"; break; } } function _f565(x0) { this._f566=x0; this.mapConfig=_f567[x0]; this._f166=this._f49(); this._f287=this._f50(); this._f165=this._f51(); this._f286=this._f52(); this._f568=this._f51()-this._f49(); this._f569=this._f52()-this._f50(); this.zoomCount=_f567[this._f566].zoomLevels.length; } _f565.prototype._f570=function() { return this._f566; } _f565.prototype._f571=function(x0) { return _f567[x0].format; } _f565.prototype._f572=function() { return this._f568; } _f565.prototype._f573=function() { return this._f569; } _f565.prototype._f49=function() { return _f567[this._f566].coordSys.minX; } _f565.prototype._f50=function() { return _f567[this._f566].coordSys.minY; } _f565.prototype._f51=function() { return _f567[this._f566].coordSys.maxX; } _f565.prototype._f52=function() { return _f567[this._f566].coordSys.maxY; } _f565.prototype._f437=function() { return _f567[this._f566].mapCache; } _f565.prototype.getSrid=function() { return _f567[this._f566].coordSys.srid; } _f565.prototype._f574=function() { return _f567[this._f566].coordSys.type; } _f565.prototype._f575=function() { return _f567[this._f566].coordSys.distConvFactor; } _f565.prototype.getMaxZoomLevel=function() { return _f567[this._f566].zoomLevels.length; } _f565.prototype._f576=function(x1) { return _f567[this._f566].zoomLevels[x1].tileWidth; } _f565.prototype._f577=function(x2) { return _f567[this._f566].zoomLevels[x2].tileHeight; } _f565.prototype._f578=function(x3) { return _f567[this._f566].zoomLevels[x3].tileImageWidth; } _f565.prototype._f579=function(x4) { return _f567[this._f566].zoomLevels[x4].tileImageHeight; } _f565.prototype._f580=function(x5) { return _f567[this._f566].zoomLevels[x5]._f581; } _f565.prototype._f582=function(x6,x7,x8,x9) { this._f166=x6; this._f287=x7; this._f165=x8; this._f286=x9; } _f565.prototype.getAllScales=function() { var x10=_f567[this._f566].zoomLevels; var x11=""; for(var x12=0;x120?x11.substring(0,x11.length-1):x11; } 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.MOUSE_DOWN="mouse_down"; 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 _f377(x0,x1,x2,x3) { this._f378=x0.zoomLevels[x3].tileWidth; this._f379=x0.zoomLevels[x3].tileHeight;this._f380=Math.floor((x1-x0.coordSys.minX)/this._f378); this._f381=Math.floor((x2-x0.coordSys.minY)/this._f379); this._f382=x3; this.minX=this._f380*this._f378+x0.coordSys.minX; this.minY=this._f381*this._f379+x0.coordSys.minY;} _f377.prototype._f383=function(x0,x1) { this._f380=this._f380+x0; this._f381=this._f381+x1; } function MVMapTileLayer(x0,x1) { this._f105=x0; this._f418=""; this._f557=""; if(x1&&x1!="") { this._f418=x1; this._f557=x1; if(MVUtil._f5(x1,'/')) { this._f418=x1.substring(0,x1.length-1); this._f557=x1.substring(0,x1.length-1); } } this.parent=""; this._f420=false; this.visible=true; this._f419="PNG"; this.minVisibleLevel=null; this.maxVisibleLevel=null; this._f445=null; this.layerControl=null; this._f558=null; this._f447=null; this._f559=true; this.opacity=1; this.mapType=0; } MVMapTileLayer.prototype.getType=function() { return "MVMapTileLayer"; } MVMapTileLayer.prototype.setCombinable=function(x0) { if(x0) this._f559=false; else this._f559=true; } MVMapTileLayer.prototype.setTransparent=function(x1) { this._f420=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._f560(this,x3.getPointX(),x3.getPointY(),this.parent._f53); } else this.layerDiv.style.visibility="hidden"; } } else if(this._f558) { var x4=this._f558.isVisible(); this.visible=x2; var x5=this._f558.isVisible(); if(x4!=x5) this._f558.setVisible(x5); var x6=this._f558.getTransparent(); if(this._f558.layerControl) this._f558.layerControl._f420=x6; if(x5) this._f558.refresh(true); } this.parent._f561(); } else this.visible=x2; } MVMapTileLayer.prototype.isVisible=function() { if(!this._f447) return this.visible; else { for(var x7=0;x7=this.parent._f53)) { if(x11) x11+=";"+this._f447[x12]._f105; else x11=this._f447[x12]._f105; } } return x11; } else return this._f105; } MVMapTileLayer.prototype.clone=function() { var x13=new MVMapTileLayer(this._f105,this._f418); x13._f420=this._f420; x13._f419=this._f419; x13.minVisibleLevel=this.minVisibleLevel; x13.maxVisibleLevel=this.maxVisibleLevel; x13._f559=this._f559; x13.zIndex=this.zIndex; if(this.config) x13.config=this.config; return x13; } MVMapTileLayer.prototype._f170=function() { if(this.layerControl) { this.layerControl._f170(); this.layerControl=null; } else if(this.layerDiv) { MVUtil._f197(this.layerDiv,this.parent._f7); this.layerDiv.parentNode.removeChild(this.layerDiv); this.layerDiv=null; if(this._f228) this._f228(); } } MVMapTileLayer.prototype._f443=function() { if(this.layerControl) this.layerControl._f443(); } MVMapTileLayer.prototype.isExtAPITileLayer=function() { return this.getType()=="MVExternalAPIMapTileLayer"; } MVMapTileLayer.prototype.getTransparent=function() { if(this._f447) { for(var x14=0;x141||x15<0) return; if(this.opacity==x15) return; this.opacity=x15; if(this.layerControl) { this.layerControl._f446(); return; } if(this._f558&&this._f558._f447.length>1) { var x16=this._f558.layerControl.parent; x16.removeMapTileLayer(this); x16.addMapTileLayer(this); } else if(this._f558&&this._f558.layerControl) { this._f558.opacity=this.opacity; this._f558.layerControl._f446(); } } MVMapTileLayer.prototype.setMapType=function(x17) { this.mapType=x17; if(this.layerControl&&this.layerControl.setMapType) this.layerControl.setMapType(x17); } MVMapTileLayer.prototype.getMapType=function() { if(this.layerControl&&this.layerControl.getMapType) return this.layerControl.getMapType(); else return this.mapType; } MVBaseMap=MVMapTileLayer; function MVCustomMapTileLayer(x0,x1) { var x2=x0.dataSource?x0.dataSource+"."+x0.mapTileLayer:x0.mapTileLayer; MVMapView.addMapTileLayerDefinition(x0); this.layerDefinition=x0; this._f554=MVMapTileLayer; this._f554(x2); this.tileURLProvider=x1; } MVCustomMapTileLayer.prototype=new MVMapTileLayer; MVCustomMapTileLayer.prototype.getType=function() { return "MVCustomMapTileLayer"; } MVCustomMapTileLayer.prototype.clone=function() { return new MVCustomMapTileLayer(this.layerDefinition,this.tileURLProvider); } function _f415(x0,x1) { this.basemap=x1; this.mapConfig=x1.config; this.visible=true; this._f416; this._f417; this._f418=""; this.parent=x0; if(this.mapConfig.clientTileAccess) { var x2=this.mapConfig.clientTileAccess; this._f418=x2.tileServerURL; if(x2.tile_layer_name) this._f105=x2.tile_layer_name; else this._f105=x2.tileLayerName; } else if(x1._f418) { this._f418=x1._f418; this._f105=x1._f105; } else { MVi18n._f6("MVMapTilesControl.constructor","MAPVIEWER-05504",null,x0._f7); return ; } if(x1.getType()=="MVMapTileLayer") this._f419=this.mapConfig.format; else if(x1.getType()=="MVThemeTileLayer") this._f419=x1.config.format this._f420=x1._f420; this._f421; this._f422; this._f423; this._f424; this._f425; this._f426; this.tileWidth; this.tileHeight; this._f427=true; this._f428=[]; this._f429=0; this._f430=0; this._f431; this._f432; this._f22; this._f23; this._f433=null; this.zIndex=x1.zIndex;this._f434=x0._f435.src; this.visible=x1.isVisible(); this.minVisibleLevel=x1.minVisibleLevel; this.maxVisibleLevel=x1.maxVisibleLevel; this.zoomControl=new MVZoomControl(x0,this); this.tileNumInCSBoun=null; this.coverPixel=null; } _f415.prototype._f436=function() { return this._f418; } _f415.prototype._f437=function() { return this._f105; } _f415.prototype._f438=function() { return this._f439; } _f415.prototype.setVisible=function(x0) { this.visible=x0; if(!this.visible) { if(this._f439) this._f439.style.visibility="hidden"; } else { if(this._f439) this._f439.style.visibility="visible"; if(this.parent._f88) this._f440(this.parent._f106(),this.parent._f107(),this.parent._f90,this.parent._f91); } } _f415.prototype.isVisible=function() { return this.visible; } _f415.prototype._f441=function(x1,x2) { if(this.parent.wraparound) { if(x2<0||x2>=(this.mapConfig.coordSys.maxY-this.mapConfig.coordSys.minY)/this._f433._f379) return this._f434; else if(x1<0) { while(true) { x1=parseInt(Math.ceil((this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f433._f378))+x1; if(x1>=0) break; } } else if(x1>=(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f433._f378) { while(true) { x1=x1-parseInt(Math.ceil((this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f433._f378)); if(x1<(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f433._f378) break; } } } else if(x1<0||x1>=(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f433._f378|| x2<0||x2>=(this.mapConfig.coordSys.maxY-this.mapConfig.coordSys.minY)/this._f433._f379) return this._f434; var x3=this._f433._f382; if(this.basemap.tileURLProvider) { var x4=this.basemap.tileURLProvider( this.mapConfig.coordSys.minX+x1*this._f433._f378, this.mapConfig.coordSys.minY+x2*this._f433._f379, this._f433._f378,this._f433._f379,x3); if(!x4) return this._f434; else return x4; } else { var x5=null; if(this.mapConfig.clientTileAccess) x5=this._f105; else x5=this.basemap._f437(); return String(this._f418+"?request=gettile&format="+this._f419+"&zoomlevel="+x3+"&mapcache="+x5+"&mx="+x1+"&my="+x2); } } _f415.prototype._f440=function(x6,x7,x8,x9) { if(this._f277()) return; if(this.parent._f53>=this.mapConfig.zoomLevels.length) return; this.tileWidth=this.mapConfig.zoomLevels[this.parent._f53].tileImageWidth; this.tileHeight=this.mapConfig.zoomLevels[this.parent._f53].tileImageHeight; this._f421=x8;this._f422=x9; this._f416=Math.ceil(this.tileWidth/2); this._f417=Math.ceil(this.tileHeight/2); this._f431=x6;this._f432=x7; this._f22=x8;this._f23=x9; this._f425=Math.ceil((x6+this._f416*2)/this.tileWidth); this._f433=null; this._f433=new _f377(this.mapConfig,x8,x9,this.parent._f53); this.tileNumInCSBoun=Math.ceil((this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f433._f378); this.parent._f72=this.tileWidth/this._f433._f378;this.parent._f74=this.tileHeight/this._f433._f379; this.coverPixel=(this._f433._f378*this.tileNumInCSBoun-(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX))*this.parent._f72; if(this.parent.wraparound) { var x10=(this._f425/this.tileNumInCSBoun)*this.coverPixel; var x11=(this.tileWidth/2); this._f425=this._f425+Math.ceil(x10/x11)+1; } this._f426=Math.ceil((x7+this._f417*2)/this.tileHeight); this._f429=0;this._f430=0; this.origParLeft=this.parent._f139;this.origParTop=this.parent._f140; this._f442(); var x12=Math.floor(this._f425/2); var x13=Math.floor(this._f426/2); var x14=this._f431/2.0-(x8-this._f433.minX)*this.parent._f72; var x15=this._f432/2.0+(x9-this._f433.minY)*this.parent._f74-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._f425-x12)*this.tileWidth-this._f431; if(x18<0) { x12--; continue; } var x19=x15+(this._f426-x13)*this.tileHeight-this._f432; 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._f423=x14-x12*this.tileWidth-this.parent._f139; this._f424=x15-x13*this.tileHeight-this.parent._f140; MVUtil._f70(this._f439,this._f423,this._f424); this._f172(x12,x13, this.tileWidth,this.tileHeight, x12*this.tileWidth,x13*this.tileHeight); this._f433._f383(-1,1); var x22=Math.max(x12,this._f425-x12); var x23=Math.max(x13,this._f426-x13); for(_f201=1;_f201<=Math.max(x22,x23);_f201++) { for(xx=x12-_f201,yy=x13-_f201; xx<=x12+_f201;xx++) { if(!(xx<0||xx>=this._f425||yy<0||yy>=this._f426)) { this._f172(xx,yy, this.tileWidth,this.tileHeight, xx*this.tileWidth,yy*this.tileHeight); } this._f433._f383(1,0); } this._f433._f383(-(_f201*2+1),-1); for(xx=x12-_f201,yy=x13-_f201+1; yy<=x13+_f201-1;yy++) { if(!(xx<0||xx>=this._f425||yy<0||yy>=this._f426)) { this._f172(xx,yy, this.tileWidth,this.tileHeight, xx*this.tileWidth,yy*this.tileHeight); } this._f433._f383(0,-1); } for(xx=x12-_f201,yy=x13+_f201; xx<=x12+_f201;xx++) { if(!(xx<0||xx>=this._f425||yy<0||yy>=this._f426)) { this._f172(xx,yy, this.tileWidth,this.tileHeight, xx*this.tileWidth,yy*this.tileHeight); } this._f433._f383(1,0); } this._f433._f383(-1,1); for(xx=x12+_f201,yy=x13+_f201-1; yy>=x13-_f201+1;yy--) { if(!(xx<0||xx>=this._f425||yy<0||yy>=this._f426)) { this._f172(xx,yy, this.tileWidth,this.tileHeight, xx*this.tileWidth,yy*this.tileHeight); } this._f433._f383(0,1); } this._f433._f383(-(_f201*2+1),1); } this._f433._f383(_f201,-(_f201)); this._f433._f383(-x12+Math.floor(this._f425/2), x13-Math.floor(this._f426/2)); } _f415.prototype._f443=function() { if(this._f277()) return; var x24=this.parent._f139+this._f429+this._f423; var x25=this.parent._f140+this._f430+this._f424; 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._f425-x26)*this.tileWidth-this._f431; if(x30<0) { x26--; continue; } var x31=x25+(this._f426-x27)*this.tileHeight-this._f432; 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._f425/2); var x35=Math.floor(this._f426/2); var x36=this._f433._f380-x34; var x37=this._f433._f381+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._f429-(x38+1)*this.tileWidth; } else { x40=this._f429+(this._f425-x38)*this.tileWidth; } if(x26>0) { this.leftNum--; } else { this.leftNum++; } if(x26>0) { x39=this._f428[this._f428.length-1]; this._f428.pop(); for(var x42=0;x420&&x42=-x27)) { this._f444(x39[x42],this._f441(x36-x38-1,x37-x42)); }if(this.parent.wraparound) { x39[x42].style.zIndex=x36-x38-1; x41=this._f428[0][x42].style.zIndex; if(x41%this.tileNumInCSBoun==0) x39[x42].style.left=MVUtil._f26(parseInt(this._f428[0][x42].style.left)-this.tileWidth+this.coverPixel); else x39[x42].style.left=MVUtil._f26(parseInt(this._f428[0][x42].style.left)-this.tileWidth); } else x39[x42].style.left=MVUtil._f26(x40); } this._f428.unshift(x39); } else { x39=this._f428[0]; this._f428.shift(); for(var x42=0;x420&&x42=-x27)) { this._f444(x39[x42],this._f441(x36+this._f425-x38,x37-x42)); } if(this.parent.wraparound) { x39[x42].style.zIndex=x36+this._f425-x38; x41=this._f428[this._f428.length-1][x42].style.zIndex; if(x41%this.tileNumInCSBoun==(this.tileNumInCSBoun-1)||x41%this.tileNumInCSBoun==-1) x39[x42].style.left=MVUtil._f26(parseInt(this._f428[this._f428.length-1][x42].style.left)+this.tileWidth-this.coverPixel); else x39[x42].style.left=MVUtil._f26(parseInt(this._f428[this._f428.length-1][x42].style.left)+this.tileWidth); } else x39[x42].style.left=MVUtil._f26(x40); } this._f428.push(x39); } } } if(x27!=0) { var x43; for(x43=0;(x27>0?x43x27);(x27>0?x43++:x43--)) { var x44; if(x27>0) { x44=this._f430-(x43+1)*this.tileHeight; this.topNum++; } else { x44=this._f430+(this._f426-x43)*this.tileHeight; this.topNum--; } for(x38=0;x380) { x45=x39[x39.length-1]; this._f444(x45,null); x39.pop(); x39.unshift(x45); x45.style.top=MVUtil._f26(x44); this._f444(x45,this._f441(x36-x26+x38,x37+x43+1)); } else { x45=x39[0]; this._f444(x45,null); x39.shift(); x39.push(x45); x45.style.top=MVUtil._f26(x44); this._f444(x45,this._f441(x36-x26+x38,x37-this._f426+x43)); } } } } if(this.parent.wraparound) this._f429=parseInt(this._f428[0][0].style.left); else this._f429=this._f429-x26*this.tileWidth; this._f430=this._f430-x27*this.tileHeight; this._f433._f383(-x26,x27); } _f415.prototype._f172=function(x46,x47,x48,x49,x50,x51) { if(x46==0&&x47==0) { this.leftNum=this._f433._f380; this.topNum=this._f433._f381; } var x52=this._f441(this._f433._f380,this._f433._f381); var x53=this._f428[x46][x47]; if(x53==null) { x53=(_f65._f64()&&this._f420)? document.createElement('div'):document.createElement('img'); this._f439.appendChild(x53); this._f428[x46][x47]=x53; } _f65.c=0; if(_f65._f66=="IF"&&!this._f420) { x53.galleryImg="no"} else { x53.style.MozUserSelect="none"; } MVUtil._f145(x53); x53.style.position="absolute"; if(this.parent.wraparound) { x53.style.zIndex=this._f433._f380; if(this._f433._f380<0) { x53.style.left=MVUtil._f26(x50-this.coverPixel*Math.floor(x53.style.zIndex/this.tileNumInCSBoun)); } else if(this._f433._f380>=(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f433._f378) { x53.style.left=MVUtil._f26(x50-this.coverPixel*Math.floor(x53.style.zIndex/this.tileNumInCSBoun)); } else { x53.style.left=MVUtil._f26(x50); } } else x53.style.left=MVUtil._f26(x50); x53.style.top=MVUtil._f26(x51); if(_f65._f66=="IF") { x53.style.width=MVUtil._f26(x48); x53.style.height=MVUtil._f26(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._f444(x53,x52); return x53; } _f415.prototype._f442=function() { if(this._f439&&!(this._f439.zooming)){ this._f439.parentNode.removeChild(this._f439); MVUtil._f87(this._f439); } this._f439=document.createElement("div"); this._f439.style.position="absolute"; this.parent.div.appendChild(this._f439); this._f439.style.zIndex=this.zIndex; this._f428=new Array(); for(var x55=0;x550) { var x59=this._f428.pop(); while(x59.length>0) { if(_f65._f64()&&this._f420) { MVUtil._f87(x59.pop()); } else { var x60=x59.pop(); if(x60!=null) { this._f439.removeChild(x60); delete x60; } }}} if(this._f439) { this._f439.mapsource=null; this._f439.ttbfc=null; this._f439.parentNode.removeChild(this._f439); this._f439=null; } this.zIndex=null; } _f415.prototype.getXMLForPrint=function() { var x61=""; } _f415.prototype._f444=function(x63,x64) { if(x64) { x63.imgSrc=x64; x63.style.opacity=this.basemap.opacity; if(this.basemap.opacity<1&&this.basemap.opacity>0) x63.style.filter="alpha(opacity="+this.basemap.opacity*100+")"; else x63.style.filter="" if(this.basemap._f445) { x64=x64+"&reload="+this.basemap._f445; } } if(_f65._f64()&&this._f420) { if(x64) { var x65; if(x63.childNodes.length>0) x65=x63.childNodes[0]; else x65=document.createElement("div"); x65.style.width=x63.style.width; x65.style.height=x63.style.height; x65.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x64+"', sizingMethod='image')"; x63.appendChild(x65); } else x63.style.filter="";; } else { if(x64) x63.src=x64; else x63.src=this._f434; } } _f415.prototype._f446=function() { for(var x66=0;x66this.parent._f53) { if(this._f439) this._f439.style.visibility="hidden"; return true; } if(this.maxVisibleLevel!=null&&this.maxVisibleLevel=this.parent._f53)) return false; } if(this._f439) this._f439.style.visibility="hidden"; return true; } } _f415.zIndexCount=1; _f415.prototype.getLeftTopPoint=function() { return { x:this.leftNum*this._f433._f378+this.mapConfig.coordSys.minX, y:(this.topNum+1)*this._f433._f379+this.mapConfig.coordSys.minY}; } _f415.prototype.getBoundingBox=function() { return { minX:this.leftNum*this._f433._f378+this.mapConfig.coordSys.minX, minY:(this.topNum+1-this._f426)*this._f433._f379+this.mapConfig.coordSys.minY, maxX:(this.leftNum+this._f425)*this._f433._f378+this.mapConfig.coordSys.minX, maxY:(this.topNum+1)*this._f433._f379+this.mapConfig.coordSys.minY }; } 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._f6("MVThemeBasedFOI.constructor","MAPVIEWER-05519","theme"); return ; } this.name=x0; this.parent=null; this._f3=x2; this._f54=-1; this._f55=100; this._f190=true; this.minX=0; this.minY=0; this.maxX=0; this.maxY=0; this._f93=new Array(); this._f92=null; this._f135=null; this._f181=null; this._f185=null; this._f187=null; this._f193=null; this._f154=null; this._f37=null; this._f45=2; this._f46=2; this._f158=true; this._f182=true; this._f69=true; this._f42=null; this._f101=null; this._f125=null; this._f313=null; this._f100=null; this._f67=-1; this._f99=-1; this._f866=false; this._f867=false; this._f109=new Array(); this._f108=null; this._f869=true; this.visible=true; this._f174=true; this.cursorStyle="pointer"; this._f97=false; this._f98=null; this._f68=true; this.renderLabels=false; this._f188=false; this._f110=true; this._f314=true; this._f315=null; this._f250=null; this._f35=false; this.isCustomTheme=false; if(x1!=null) { this._f37=x1; if(typeof x1=="string"&&x1.indexOf("")>=0) this._f35=true; else if(typeof x1=="object") this.isCustomTheme=true; } this._f122=null; this._f8=null; this.xOffset=0; this.yOffset=0; this._f191=false; this._f184=true; this._f195=0; this._f169=new Array(); this._f96=null; this._f131=null; this.queryParameterArray=null; this._f62=null; this.bgColor=null; this._f111=false; this._f112=-1; this._f113=-1; this._f114=false; this._f115="N"; this.reuseIENode=false; this.langCode=null; this.opacity=1; this.htmlmapIdSuffix=0; } MVThemeBasedFOI.prototype.setLayoutCustomizer=function(x0) { this._f154=x0; this.reuseIENode=false; } MVThemeBasedFOI.prototype.enableHighlight=function(x1,x2) { if(!x1) this.deHighlight(); this._f191=x1; if(x2!=undefined) this._f184=x2; } MVThemeBasedFOI.prototype.setHighlightMode=function(x3) { switch(x3) { case "single": this._f195=-1; break; case "multiple": this._f195=0; break; default: MVi18n._f6("MVThemeBasedFOI.setHighlightMode","MAPVIEWER-05519","mode", this.parent?this.parent._f7:null); } } MVThemeBasedFOI.prototype.setHighlightStyle=function(x4) { var x5=false; if(x4!=null) { if(typeof(x4)=="object"&&x4.getXMLString!=null) this._f96=encodeURIComponent(x4.getXMLString()); else if(typeof(x4)=="string") this._f96=encodeURIComponent(x4); else x5=true; } else x5=true; if(x5) MVi18n._f6("MVThemeBasedFOI.setHighlightStyle","MAPVIEWER-05519","highliteStyle", this.parent?this.parent._f7:null); this.reuseIENode=false; } MVThemeBasedFOI.prototype.setHighlightMarkerImage=function(x6,x7,x8) { this._f131=null; var x9=true; if(!x6||typeof(x6)!="string") x9=false; if(x9) this._f131=new _f133(x6,x7,x8); else MVi18n._f6("MVThemeBasedFOI.setHighlightMarkerImage","MAPVIEWER-05519",null, this.parent?this.parent._f7:null); this.reuseIENode=false; } MVThemeBasedFOI.prototype.highlight=function(x10) { if(!this._f191) { MVi18n._f6("MVThemeBasedFOI.highlight","MAPVIEWER-05524",null, this.parent?this.parent._f7:null); return; } var x11=false; if(x10==null) { x11=true; } else if(typeof(x10)!="object"||(len=x10.length)==null||x10.length<1) { MVi18n._f6("MVThemeBasedFOI.highlight","MAPVIEWER-05519","foiIdArray", this.parent?this.parent._f7:null); return; } var x12=this._f169; var x13=this._f125.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._f42; } MVThemeBasedFOI.prototype.setMinVisibleZoomLevel=function(x36) { this._f54=x36; } MVThemeBasedFOI.prototype.setMaxVisibleZoomLevel=function(x37) { this._f55=x37; } MVThemeBasedFOI.prototype.setBringToTopOnMouseOver=function(x38) { this._f190=x38; } MVThemeBasedFOI.prototype.setMaxWholeImageLevel=function(x39) { this._f67=x39; this._f111=false; } MVThemeBasedFOI.prototype.setMinClickableZoomLevel=function(x40) { this._f99=x40; } MVThemeBasedFOI.prototype.enableInfoTip=function(x41) { this._f158=x41; } MVThemeBasedFOI.prototype.enableInfoWindow=function(x42) { this._f182=x42; } MVThemeBasedFOI.prototype.enableInfoWindowForMouseOver=function(x43) { this._f188=x43; } MVThemeBasedFOI.prototype.setClickable=function(x44) { this._f69=x44; if(this._f8) { this._f8._f124(); if(this._f8._f28) { if(x44&&this.isVisible()) this._f8._f28.style.visibility="visible"; else if(!x44) this._f8._f28.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._f92=x48; } else if(x47==MVEvent.AFTER_REFRESH) { this._f135=x48; } else if(x47==MVEvent.MOUSE_CLICK) { this._f181=x48; } else if(x47==MVEvent.MOUSE_RIGHT_CLICK) { this._f185=x48; } else if(x47==MVEvent.MOUSE_OVER) { this._f187=x48; } else if(x47==MVEvent.MOUSE_OUT) { this._f193=x48; } } MVThemeBasedFOI.prototype.attachEventListener=function(x49,x50) { MVUtil.attachEventListener(this._f93,x49,x50) } MVThemeBasedFOI.prototype.detachEventListener=function(x51,x52) { MVUtil.detachEventListener(this._f93,x51,x52); } MVThemeBasedFOI.prototype.setQueryWindowMultiplier=function(x53) { this._f45=x53; this._f46=x53; } MVThemeBasedFOI.prototype.getQueryWindow=function() { if(!this.parent) { MVi18n._f6("MVThemeBasedFOI.getQueryWindow","MAPVIEWER-05525",this.name, this.parent?this.parent._f7: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._f122) return MVSdoGeometry.createRectangle(this._f122[0],this._f122[1],this._f122[2],this._f122[3],this.parent.srid); else return null; } MVThemeBasedFOI.prototype.setMarkerImage=function(x55,x56,x57) { if(x55) this._f101=new _f133(x55,x56,x57); else this._f101=null; this.reuseIENode=false; } MVThemeBasedFOI.prototype.getThemeName=function() { return this._f37; } function _f133(x0,x1,x2) { this._f102=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._f101; } MVThemeBasedFOI.prototype.setVisible=function(x58) { this.visible=x58; if(this.parent&&this.parent._f76) this.parent._f76._f303(); if(this._f8) this._f8.setVisible(this.parent,x58); } MVThemeBasedFOI.prototype.setInfoWindowStyle=function(x59,x60) { this._f313=x59; this._f250=x60; } MVThemeBasedFOI.prototype.isVisible=function() { if(this._f8) { return this._f8.isVisible(); } else return this.visible; } MVThemeBasedFOI.prototype.refresh=function(x61) { if(!this.parent) { MVi18n._f6("MVThemeBasedFOI.refresh","MAPVIEWER-05525",this.name, this.parent?this.parent._f7:null); return ; } if(!this.parent._f88){ this.parent._f862(this,"refresh",true); return; } this.parent._f126(); if(this._f8) { var x62=this._f8; var x63=this.parent._f863(x62); if(x61) x61=true; else x61=false; x62._f75(this.parent,x63[0],x63[1],x63[2],x63[3],true,x61,!x61); } } MVThemeBasedFOI.prototype.getFOIData=function() { if(this._f125==null||this._f125.foiarray==null) { return null; } else return this._f125.foiarray; } MVThemeBasedFOI.prototype.setNSDP=function(x64) { this._f100=x64; } MVThemeBasedFOI.prototype.setBoundingTheme=function(x65,x66) { this._f866=x65; if(x66) this._f867=true; else this._f867=false; } MVThemeBasedFOI.prototype.zoomToTheme=function() { if(!this.parent) { MVi18n._f6("MVThemeBasedFOI.zoomToTheme","MAPVIEWER-05525",this.name, this.parent?this.parent._f7:null); return ; } this.refresh(true); } MVThemeBasedFOI.prototype.centerToTheme=function() { if(!this.parent) { MVi18n._f6("MVThemeBasedFOI.centerToTheme","MAPVIEWER-05525",this.name, this.parent?this.parent._f7:null); return ; } this.parent._f126(); if(this._f8) { var x67=this._f8; var x68=this.parent._f863(x67); x67._f75(this.parent,x68[0],x68[1],x68[2],x68[3],true,true,false,false,true); } } MVThemeBasedFOI.prototype.addStyle=function(x69) { var x70=this._f109.concat(x69); this._f109=null; this._f109=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(x1101||x128<0) return; else this.opacity=x128; if(this._f8&&this._f8.div) { this._f8.div.style.opacity=x128; if(x128==1) this._f8.div.style.filter=""; else this._f8.div.style.filter="alpha(opacity="+this.opacity*100+")"; if(_f65._f66=="IF") { if(x129==1&&this.opacity!=1) { this._f8.div.style.width=MVUtil._f26(this._f8._f9); this._f8.div.style.height=MVUtil._f26(this._f8._f10); } else if(x129!=1&&this.opacity==1) { this._f8.div.style.width=""; this._f8.div.style.height=""; } } } } function _f0(x0,x1) { this.parent=x0; this._f2=false; if(!x1._f3) { if(this.parent._f4) { if(MVUtil._f5(this.parent._f4,'/')) x1._f3=this.parent._f4+'foi'; else x1._f3=this.parent._f4+'/foi'; } else { MVi18n._f6("MVThemeBasedFOIControl.constructor","MAPVIEWER-05504",null,x0._f7); return ; } } x1._f8=this; this._f1=x1; this._f9=0; this._f10=0; this.width=0; this.height=0; this.minX=0; this.minY=0; this.maxX=0; this.maxY=0; this._f11=0; this._f12=0; this._f13=0; this._f14=0; this._f15=true; this._f16=true; this._f17=false; this._f18=0; this._f19=0; this._f20=0; this._f21=0; this._f22=0; this._f23=0; this._f24=false; this._f25=1;this.div=document.createElement("div"); this.div.style.position="absolute"; this.div.style.left=MVUtil._f26(0); this.div.style.top=MVUtil._f26(0); this.div.style.opacity=this._f1.opacity; if(this._f1.opacity==1) this.div.style.filter=""; else this.div.style.filter="alpha(opacity="+this._f1.opacity*100+")"; this._f27=0; if(!x1.visible) this.div.style.visibility="hidden"; this.parent.div.appendChild(this.div); this._f28=null; this._f29=null; this._f30=false; this.themeId=null; this.abortionSupported=true; this._f31(); this._f32=true; this._f33=false; this.t1=0; this.t2=0; this.t3=0 this.mouseL1=MVSdoGeometry.createPoint(0,0); this.mouseL2=this.mouseL1; this.labelStyle=null; this.currentIndex=0; } _f0.prototype._f34=function(x0) { if(this._f1._f35) return this._f36(this._f1._f37); else { var x1="\n"; if(this._f1._f42==null) x1+=""; else { x1+=" \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._f43(x4,"\"",""")+"\">"; } else { x1+=">"; for(var x6=0;x6"; } } } } x1+=""; } x1+=" \n"; x1+=""; } return x1; } } _f0.prototype.setSize=function(x9,x10) { this.width=x9; this.height=x10; } _f0.prototype._f44=function(x11,x12) { { if(this._f1._f45==1&&this._f1._f46==1) { this._f9=this.width; this._f10=this.height; } else { this._f9=x11; this._f10=x12; } } } _f0.prototype._f47=function() { return this._f24; } _f0.prototype._f48=function() { return this.request; } _f0.prototype._f49=function() { return this.minX; } _f0.prototype._f50=function() { return this.minY; } _f0.prototype._f51=function() { return this.maxX; } _f0.prototype._f52=function() { return this.maxY; } _f0.prototype.isVisible=function() { var x13=this.parent._f53; if(x13this._f1._f55) return false; else return !(this.div.style.visibility=='hidden'); } _f0.prototype._f56=function() { return this.div; } _f0.prototype.getThemeBasedFOI=function() { return this._f1; } _f0.prototype._f57=function() { return this._f20; } _f0.prototype._f58=function() { return this._f21; } _f0.prototype._f59=function(x14) { this._f20=x14; } _f0.prototype._f60=function(x15) { this._f21=x15; } _f0.prototype._f61=function() { return this._f1._f62?this._f1._f62:this.parent._f63; } _f0.prototype._f64=function() { return _f65._f66=="IF"&&this._f61()=="PNG24"; } _f0.prototype.isWholeImage=function() { return this._f1._f67>=this.parent._f53||this._f30; } _f0.prototype.setVisible=function(x16,x17) { if(x17) { if(!this.isVisible()) { if(this._f17) { if((!this._f64()&&this._f1.getFOIData()!=null&& this._f1.getFOIData()[0].gtype%10!=1)|| this.isWholeImage()||!this._f1._f68) { if(this._f1._f69&&this._f28) this._f28.style.visibility="visible"; } } this.div.style.visibility="visible"; if(!this._f16) { MVUtil._f70(this.div,Math.ceil((this.minX-this.parent._f71)*this.parent._f72), -Math.ceil((this.maxY-this.parent._f73)*this.parent._f74)); this._f75(this.parent,this.minX,this.minY,this.maxX,this.maxY,true); } } } else { if(this._f17) { if((!this._f64()&&this._f1.getFOIData()!=null&& this._f1.getFOIData()[0].gtype%10!=1)|| this.isWholeImage()||!this._f1._f68) { if(this._f28) this._f28.style.visibility="hidden"; if(this.parent._f76._f77.length>0) { for(var x18=0;x180) { for(var x19=0;x190) { var x22=this.div.childNodes[0]; this.div.removeChild(x22); if(this.parent._f76._f77.length>0) if(this.parent._f76._f77[0].nid==x22.id) { this.parent._f76.deleteInfoWindow(this.parent._f76._f77[0]); } MVUtil._f87(x22); } } _f0.prototype.clearAll=function(x23) { this.clearAllStarted=true; var x24=null; if(this.div.parentNode) { x24=this.div.parentNode; x24.removeChild(this.div); } while(this.div.childNodes.length>0) { var x25=this.div.childNodes[0]; this.div.removeChild(x25); while(x25.childNodes.length>0) { var x26=x25.childNodes[0]; x25.removeChild(x26); MVUtil._f87(x26); } MVUtil._f87(x25); } this.wholeImage=null; if(this._f25!=1&&!x23) { this.clearTransImageLayer(); } if(x24) x24.appendChild(this.div); this.clearAllStarted=false; } _f0.prototype.clearTransImageLayer=function() { if(this._f28&&this._f28.parentNode) { this._f28.parentNode.removeChild(this._f28); MVUtil._f87(this._f28); } this._f28=null; this._f29=null; } _f0.prototype.getImageParameters=function() { var x27=""; var x28=this._f61(); if(x28=="PNG8") x27+="&format="+x28; if(this._f1.bgColor) x27+="&bgcolor="+this._f1.bgColor; return x27; } _f0.prototype._f75=function(x29,x30,x31,x32,x33,x34, x35,x36,x37,x38) { this._f33=false; this._f30=false; var x39=this; var x40=function() { if(!x39.themeId&&x39.abortionSupported) { setTimeout(x40,50); return ; } if(!x38) x38=false; if(!x37&&!x29._f88) { var x41=[x29,x30,x31,x32,x33,x34,x35,x36,x38]; var x42=x39._f75; var x43={obj:x39,func:"refreshFOIs",params:x41}; x29._f89.push(x43); return ; } x39._f24=true; { x39._f1.minX=x39.minX=x30; x39._f1.minY=x39.minY=x31; x39._f1.maxX=x39.maxX=x32; x39._f1.maxY=x39.maxY=x33; } x39._f18=Math.ceil((x39.minX-x39.parent._f71)*x39.parent._f72); x39._f19=-Math.ceil((x39.maxY-x39.parent._f73)*x39.parent._f74); MVUtil._f70(x39.div,x39._f18,x39._f19); x39.div.style.display='none'; x39._f22=x39.parent._f90; x39._f23=x39.parent._f91; if(x39._f1._f92) { x39._f1._f92(); } if(x39._f1) MVUtil.runListeners(x39._f1._f93,MVEvent.BEFORE_REFRESH); x39._f15=x34; var x44=x39.parent._f53; x39._f94(); x39.around=x39.parent.wrapAroundLayer(x39._f84()); if(!x39._f1.visible|| !x35&&(x44x39._f1._f55)) { x39._f16=false; x39._f2=false; x39.clearAll(); return; } x39._f16=true; if(x39._f2) { x39._f95(); return ; } x39.adjustBBox(x35); if(_f65._f66=="IF"&&x39._f1.opacity<1) { x39.div.style.width=MVUtil._f26(x39._f9); x39.div.style.height=MVUtil._f26(x39._f10); } if(x39.adjustedRealWidth<=0||x39.adjustedRealHeight<=0) return; var x45="request=getfoi&version=1.0"+x39.getImageParameters()+"&bbox="+ x39._f11+":"+x39._f12+":"+ x39._f13+":"+x39._f14+ "&width="+x39.adjustedRealWidth+"&height="+x39.adjustedRealHeight; if(!x39._f1.isCustomTheme) x45+="&theme="+encodeURIComponent(x39._f1._f37); else { for(p in x39._f1._f37) x45+="&"+p+"="+encodeURIComponent(""+x39._f1._f37[p]); } if(x39.adjustedMinX2) x45+="&bbox2="+x39.adjustedMinX2+":"+x39._f12+":"+ x39.adjustedMaxX2+":"+x39._f14; if(x39._f1._f96!=null) x45+="&hilitestyle="+x39._f1._f96; if(x39._f1._f97==true){ if(!x39._f1._f98) { MVi18n._f6("MVThemeBasedFOIControl.refreshFOIs","MAPVIEWER-05514",null,x39.parent._f7); return; } x39._f1.setQueryParameters(x39._f1._f98); x45+="&hilite=yes"; } if(x39._f1.getQueryParameters()) { x45+=x39._f1.getQueryParameters(); } if((x39._f1.getFOIMarker()&&x39._f1._f67=x44|| !x39._f1._f68) { x45+="&area=yes"; } else { x45+="&area=no"; } x45+="&dstsrid="+x39.parent.srid; if(x39._f1._f100!=null) { x45+="&nsdp="+encodeURIComponent(x39._f1._f100.getFlatString()); } if(x39._f1._f67>=x44) { x45+="&wholeimage=yes"; if(x39._f1._f101) { var x46=x39._f1.name+"_customedmarker"; if(x39._f1.getStyleByName(x46)==null) { var x47=new MVStyleMarker(x46,"image"); x47.setImageUrl(x39._f1._f101._f102); x47.setSize(x39._f1._f101.width,x39._f1._f101.height); x39._f1.addStyle(x47); } x39._f1.setRenderingStyle(x46); } } if(x39._f1.renderLabels) x45+="&renderlabels=yes"; x39.startLoad=MVUtil._f103(this,function() { x39._f95(); }); if(x35){ var x48=x39.parent._f104() if(x48) x45+="&mapcache="+encodeURI(x48.basemap._f105); else x45+="&mapcache="+encodeURI(x39.parent.msi.mapConfig.mapTileLayer); x45+="&boundingtheme=yes"+ "&mapwinwidth="+x39.parent._f106()+ "&mapwinheight="+x39.parent._f107()+ "&wholeimagelevel="+x39._f1._f67; if(x38) x45+="&recenteronly=yes"; } if(x39._f1._f108!=null) { x45+="&trs="+encodeURIComponent(x39._f1._f108); } var x49=x39._f1._f109; if(x49.length>0) { x45+="&tempstyles="; var x50=""; for(var x51=0;x510) x45+="&mw="+x39._f1._f112; if(x39._f1._f113>0) x45+="&mu="+x39._f1._f113; if(x39._f1._f114) { x45+="&sq=y"; x45+="&st="+x39._f1._f115; } if(x39._f1.langCode) { x45+="&lang="+x39._f1.langCode; } var x52=(x39._f1._f3.indexOf(_f65._f116())<0&& MVUtil.isLocalDomain(x39._f1._f3)); var x53=x52||MVMapView._f117; if(MVMapView._f118) x39.t1=new Date(); if(MVMapView.debug) MVi18n.alert("Sending Theme Based FOI request. URL:"+x39._f1._f3+" Parameters:"+x45); try { x39.parent.setLoadingIconVisible(true); if(x39.request) { x39.request.onreadystatechange=null; x39.request.abort(); x39.request=null; } } catch(e) { } try { x39.request=MVUtil.getXMLHttpRequest(x53); x39.request.onreadystatechange=x39.startLoad; x39.request.open("POST",MVUtil._f119(x39._f1._f3),true); x39.request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); x39.request.send(MVUtil._f120(x39._f1._f3,x45)); } catch(e) { MVi18n._f6("MVThemeBasedFOIControl.refreshFOIs","MAPVIEWER-05511",e,x39.parent._f7); x39._f24=false; x39.parent._f79(); return ; } } x40(); } _f0.prototype.clearAllParallelly=function(){ this.clearAll(); } _f0.prototype.getElementByIdInDiv=function(id){ var x54=[]; var x55=document.getElementById(id); if(!x55)return x55; while(x55&&((x55.parentNode!=this.div)||(x55.id!=id))){ x54.push({i:x55.id,e:x55}); x55.id=''; x55=document.getElementById(id); } for(j=0,jj=x54.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._f1.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._f24=false; this.parent._f79(); return ; } else this._f32=false; } } if(this._f1) this._f1._f122=result.themeMBR; else return ; if(result.labelStyle) this.labelStyle=result.labelStyle; if(result.isWholeImg) this._f30=true; else this._f30=false; if(result.minx!=undefined&&!this._f2) { this._f2=true; var tcx=(result.minx+result.maxx)/2; var tcy=(result.miny+result.maxy)/2; if(result.adjlevel!=undefined) _f53=result.adjlevel; if(_f53<0|| _f53>=0&&_f53=this._f1._f99) { this._f2=false; this.parent.zoomToRectangle( MVSdoGeometry.createRectangle(result.minx,result.miny,result.maxx,result.maxy,this.parent.srid)); return ; } else { this._f1.minX=this.minX=this._f11=result.minx; this._f1.minY=this.minY=this._f12=result.miny; this._f1.maxX=this.maxX=this._f13=result.maxx; this._f1.maxY=this.maxY=this._f14=result.maxy; this.parent.reCenterTag=true; this.parent.setCenterAndZoomLevel(MVSdoGeometry.createPoint(tcx,tcy,this.parent.srid),_f53); return ; } } this._f123=true; this._f2=false; if(!this.div) return ; this._f124(); if(MVMapView._f118) this.t1=new Date(); if(result.foiarray.length>=1) { this._f1._f125=result; this.parent._f126(); if(this.isWholeImage()||!this._f1._f68|| (!this._f64()&&result.foiarray[0].gtype%10!=1)) { this._f25=2; if(this._f1._f99<=_f53) { this._f127(result); } else{ this.clearTransImageLayer(); } } else { this.clearTransImageLayer(); this._f25=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._f129(this.div,this.parent._f7); 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._f1.overLappingStyle) { if(!this.overLappingMarker) { if(this.loadingOverLappingMarker) { this.overLappingFOIArray.push(newFOI); } else { this.loadingOverLappingMarker=true; this.overLappingFOIArray=new Array(newFOI); var styleStr=null; if(this._f1.overLappingStyle.getXMLString) styleStr=this._f1.overLappingStyle.getXMLString(); else styleStr=this._f1.overLappingStyle; if(styleStr) { var markerURL=this._f1._f3+"?request=getpoiimage&version=1.0"+ "&poistyle="+encodeURIComponent(styleStr)+"&refresh ="+(new Date()).getTime();; var tbf=this; var setFOISize=function(x56,x57) { tbf.overLappingMarker=new _f133(markerURL,x56,x57); tbf.loadingOverLappingMarker=false; for(var x58 in tbf.overLappingFOIArray) { tbf.overLappingFOIArray[x58].width=tbf.overLappingMarker.height; tbf.overLappingFOIArray[x58].height=tbf.overLappingMarker.width; tbf.overLappingFOIArray[x58].imgurl=tbf.overLappingMarker._f102; tbf._f134(tbf.overLappingFOIArray[x58]); } tbf.overLappingFOIArray=null; } MVUtil.getImageSize(markerURL,setFOISize); } } } else { newFOI.width=this.overLappingMarker.height; newFOI.height=this.overLappingMarker.width; newFOI.imgurl=this.overLappingMarker._f102; this._f134(newFOI); } } newFOI.overLayFOIs=overLayFOIs; continue; } } if(flag){ ofoi.shown=true; this._f134(cfoi,ofoi); } else { this._f134(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._f17=true; } else { this._f1._f125=null; this.clearAll(); } if(MVMapView._f118) { this.t2=new Date(); MVi18n.alert("Time taken to render "+this._f1.name+":"+(this.t2-this.t1)+".\n"+ "wholeImage:"+this.isWholeImage()+", clickable:"+(this._f1._f99<=_f53)); } this.addTransparentLayer(); this._f24=false; this.parent._f79(); if(this._f1._f135) { this._f1._f135(); } if(this._f1) MVUtil.runListeners(this._f1._f93,MVEvent.AFTER_REFRESH); this.request=null; this._f1.reuseIENode=true; } } } _f0.prototype.makeFOIsVisiable=function(){ var x59=true; for(var x60=0;x60x71) return ; if(_f65._f66=="IF"&& (!this._f64()||this.isWholeImage()|| !this._f1._f68)) { var x72=document.createElement("div"); x72.style.zIndex="127"; var x73=document.createElement("img"); x73.width=MVUtil._f26(x63) x73.height=MVUtil._f26(x64); x73.style.width=MVUtil._f26(x63); x73.style.height=MVUtil._f26(x64); x73.style.border=0; x73.src=_f65._f141+"transparent.gif"; x73.setAttribute("usemap","#polygonMap"+this.parent._f144+"_"+this.currentIndex+"_"+this._f1.htmlmapIdSuffix,0); x72.style.position="absolute"; MVUtil._f70(x72,0,0); x72.appendChild(x73); MVUtil._f145(x73); this._f28.appendChild(x72); } else { this._f146=document.createElement("img"); this._f146.src=x70; this._f146.setAttribute("usemap","#polygonMap"+this.parent._f144+"_"+this.currentIndex+"_"+this._f1.htmlmapIdSuffix); this._f146.width=x63; this._f146.height=x64; this._f146.style.width=MVUtil._f26(x63); this._f146.style.height=MVUtil._f26(x64); this._f146.style.border=0; MVUtil._f145(this._f146); this._f28.appendChild(this._f146); } this._f29=document.createElement("map"); this._f29.setAttribute("name","polygonMap"+this.parent._f144+"_"+this.currentIndex+"_"+this._f1.htmlmapIdSuffix); this._f29.setAttribute("id","polygonMap"+this.parent._f144+"_"+this.currentIndex+"_"+this._f1.htmlmapIdSuffix); this._f28.setAttribute("theme",this._f1.name); if(_f65._f66=="SF") { this._f1.htmlmapIdSuffix++; } this._f28.appendChild(this._f29); } _f0.prototype.addTransparentLayer=function() { if(this._f28) { this.parent._f78.style.zIndex=Math.max(MVUtil.getZIndex(this.div)+1,MVUtil.getZIndex(this.parent._f78)); this.parent._f78.appendChild(this._f28); } } var _f147=0; _f0.prototype.setTimeout=function(_f148,_f149) { var Ie="tempVar"+_f147; _f147++; eval(Ie+" = this;"); var oi=_f148.replace(/\\/g,"\\\\"); oi=oi.replace(/\"/g,'\\"'); return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f149); } _f0.prototype._setTimeoutDispatcher=function(func) { eval(func); } _f0.prototype._f150=function(x74) { this._f151=0; this.result=x74; this.startDisplayGroupFoi(); } _f0.prototype.startDisplayGroupFoi=function() { for(var x75=0;x75<180;x75++) { if(this._f151"; } else x79.src=x76.imgurl; if(!x78._f1._f154) { x79.setAttribute("id",x76.nodeId); x79.setAttribute("border",0); } if(x76.lox!=null&&x76.loy!=null) { var x86; if((x77)&&(x77.labelNode)) x86=x77.labelNode; else x86=document.createElement("div"); x86.innerHTML=x85; x86.style.cssText=this.labelStyle; x86.style.position="absolute"; x86.style.cursor="default"; x86.style.zIndex=x79.style.zIndex; x76.labelNode=x86; MVUtil._f70(x86,parseInt(x79.style.left)+x76.lox,parseInt(x79.style.top)+x76.loy); this.div.appendChild(x86); } else if((x77)&&(x77.labelNode)) { x77.labelNode.parentNode.removeChild(x77.labelNode); x77.labelNode=null; } } else { x78._f1._f154(x76); if(x76.xoffset==undefined||isNaN(x76.xoffset)) x76.xoffset=0; else x76.xoffset=parseInt(x76.xoffset); if(x76.yoffset==undefined||isNaN(x76.yoffset)) x76.yoffset=0; else x76.yoffset=parseInt(x76.yoffset); this._f159(x76,x77,x79); } this._f160(x79,x76); MVUtil._f161(x79); } else { var x87=x84; var x88=Math.floor((x76.x-this.minX)*this.parent._f72+0.5); var x89=Math.floor((this.maxY-x76.y)*this.parent._f74+0.5); var x90=""; if(this._f1._f99<=this.parent._f53) { var x91=null; if((x77)&&(x77.areaNode)) { x76._f152=x77._f152; } x91=document.createElement("area"); x91.tbf=x78; x91.foi=x76; x91.node=x79; MVUtil._f162(x91,this._f1.cursorStyle); x76.areaNode=x91; this._f163=true; x91.setAttribute("border",0); if(_f65._f66!="OS") { if((_f65._f66=="IF"||_f65._f66=="NS") &&x78._f1._f158&&x76.name&&x76.name!="null") { x91.setAttribute("title",x87); } x91.setAttribute("href","javascript:void(0)"); } if(x76.gtype%10==1) { var x83; if(x76.wr&&x76.wr.length>0) x83=MVUtil._f164(this.parent,this.minX,this._f12,this.maxX,this._f14, this._f9,this.adjustedRealHeight,x76.x+x76.wr[0]*(this.parent.msi._f165-this.parent.msi._f166), x76.y); else x83=MVUtil._f164(this.parent,this._f11,this._f12, this._f13,this._f14, this.adjustedRealWidth,this.adjustedRealHeight, x76.x,x76.y); var x92=0; x83[0]+=this.parent._f139+this._f1.xOffset-x92; x83[1]+=this.parent._f140+this._f1.yOffset; x91.setAttribute("shape","rect"); var x93=parseInt(x76.width); var x94=parseInt(x76.height); x93=x93<10?10:x93; x94=x94<10?10:x94; x93=x93/2; x94=x94/2; var x95=(x83[0]-x93)+","+(x83[1]-x94)+","+ (x83[0]+x93)+","+(x83[1]+x94); x91.setAttribute("coords",x95); } else { var x96=""; if(typeof(x76.area)=='undefined'||x76.area==null||x76.area=='') x96="-1000,-1000"; else { x96=x76.area; if(x78._f1._f154&&!this.isWholeImage()) { x78._f1._f154(x76); } if(x76.xoffset==undefined||isNaN(x76.xoffset)) x76.xoffset=0; else x76.xoffset=parseInt(x76.xoffset); if(x76.yoffset==undefined||isNaN(x76.yoffset)) x76.yoffset=0; else x76.yoffset=parseInt(x76.yoffset); var x97=this.htmlMapXoffset+x76.xoffset+this._f1.xOffset; if(x76.wr&&x76.wr.length>0&&this.maparea.length!=2) x97+=x76.wr[0]*(this.parent.msi._f165-this.parent.msi._f166)*this.parent._f72; var x98=x76.yoffset+this._f1.yOffset; x96=this._f167(x96,x97,x98); } x91.setAttribute("shape","poly"); x91.setAttribute("coords",x96); } this._f160(x91,x76); MVUtil._f161(x91); this._f29.appendChild(x91); } else { if(x76.areaNode) x76.areaNode=null; } if(x79) { MVUtil._f70(x79,x83[0],x83[1]); x79.style.position="absolute"; x79.style.width=MVUtil._f26(x76.width); x79.style.height=MVUtil._f26(x76.height); x79.id=x76.nodeId; if(x78._f1._f154) this._f159(x76,x77,x79); else x79.src=x76.imgurl; x79.style.zIndex=125; this.div.appendChild(x79); } } this._f168(x79,x76); if(x79!=null&&x79.id!=null) { for(var x99=0;x990) { var x103=this._f1._f125.foiarray.pop(); if(x103.node) x103.node=null; if(x103.areaNode) x103.areaNode=null; } } this._f1._f125=null; this._f1=null; if(this.parent) { if(this.parent.div&&this.div) { try{this.parent.div.removeChild(this.div);}catch(error){} } this.div=null; this.parent._f79(); this.parent=null; } this._f29=null; this._f28=null; this._f146=null; } _f0.prototype.adjustBBox=function(x104) { var x105=false; var x106=this.parent.msi.mapConfig.coordSys; this.adjustedMinX2=0; this.adjustedMaxX2=0; if(this.parent.wraparound&&!x104) { if(this.maparea.length>=3) { this._f11=x106.minX; this._f13=x106.maxX; } else if(this.maparea.length==2) { var x107=x106.maxX-x106.minX; if(this.parent.maptype!="PROJECTED") { this._f11=this.maparea[0].minx; if(this.maparea[0].minxx106.maxX) { this._f13=x106.maxX; x105=true; } else this._f13=this.maxX; } if(!x104&&this.minYx106.maxY) { this._f14=x106.maxY; x105=true; } else this._f14=this.maxY; if(this.adjustedMinX2) this.adjustedRealWidth=Math.round(this._f9* (this._f13-this._f11+this.adjustedMaxX2-this.adjustedMinX2)/(this.maxX-this.minX)); else this.adjustedRealWidth=Math.round(this._f9* (this._f13-this._f11)/(this.maxX-this.minX)); this.adjustedRealHeight=Math.round(this._f10* (this._f14-this._f12)/(this.maxY-this.minY)); } _f0.prototype._f36=function(x108) { if(!x108) return x108; if(x108.indexOf("")>=0) x108=x108.substring(x108.indexOf("")+8,x108.indexOf("")); if(this._f1._f108) { var x109=x108.indexOf(" render_style"); if(x109>0) { var x110="\""; var x111=x108.indexOf(x110,x109); var x112=x108.indexOf("'",x109); if(x111<0||x112=3) { this.wholeImage=new Array(); for(var x124=0;x124=0) { x132.abortionSupported=false; } if(x127) x127(); x131=null; } } try { x131=MVUtil.getXMLHttpRequest(x130); x131.onreadystatechange=x133; x131.open("POST",MVUtil._f119(this._f1._f3),true); x131.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); x131.send(MVUtil._f120(this._f1._f3,x128)); } catch(e) { MVi18n._f6("MVThemeBasedFOIControl.getThemeId","MAPVIEWER-05511",e,this.parent._f7); } } _f0.prototype.abort=function() { if(!this.abortionSupported) return ; var x134="request=abort&tid="+this.themeId; var x135=(this._f1._f3.indexOf(_f65._f116())<0&& MVUtil.isLocalDomain(this._f1._f3)); var x136=x135||MVMapView._f117; var x137=null; var x138=this; this._f33=true; try { x137=MVUtil.getXMLHttpRequest(x136); x137.open("POST",MVUtil._f119(this._f1._f3),true); x137.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); x137.send(MVUtil._f120(this._f1._f3,x134)); x137=null; } catch(e) { MVi18n._f6("MVThemeBasedFOIControl.abort","MAPVIEWER-05511",e,this.parent._f7); } } _f0.prototype._f124=function() { if(this._f1._f99<=this.parent._f53&&this._f1._f69) MVUtil._f162(this.div,this._f1.cursorStyle); else MVUtil._f162(this.div,"default"); } _f0.prototype._f159=function(x139,x140,x141) { if(x140!=null&&x140.layoutListenerDiv!=null){ if(x140.layoutListenerDiv.parentNode!=null) { x140.layoutListenerDiv.parentNode.removeChild(x140.layoutListenerDiv); } MVUtil._f87(x140.layoutListenerDiv); x140.layoutListenerDiv=null; } var x142=document.createElement("div"); x142.style.position="absolute"; x142.tag="layout"; var x143=this; var x144=x139.xoffset+x143._f1.xOffset; var x145=x139.yoffset+x143._f1.yOffset; x142.style.left=MVUtil._f26(x144); x142.style.top=MVUtil._f26(x145); x142.style.padding=MVUtil._f26(0); x142.innerHTML=""+x139.html+""; x141.appendChild(x142); x139.layoutListenerDiv=x142; } _f0.prototype.stopPropagation=function(x146) { x146=(x146)?x146:((window.event)?event:null); var x147=MVUtil.getEventSource(x146); var x148=x147.tbf; while(!x148&&x147.parentNode){x147=x147.parentNode; x148=x147.tbf; } if(x146&&!x148._f1._f174) { if(_f65._f66=="IF") x146.cancelBubble=true; else if(x146.stopPropagation) x146.stopPropagation(); } } _f0.prototype._f175=function(x149) { x149=(x149)?x149:((window.event)?event:null); var x150=MVUtil.getEventSource(x149); var x151=x150.tbf; while(!x151&&x150.parentNode){x150=x150.parentNode; x151=x150.tbf; } if(!x151||!x151._f1||x149&&!x151._f1._f174) { MVUtil._f175(x149); } } _f0.prototype._f176=function(x152) { x152=(x152)?x152:((window.event)?event:null); var x153=MVUtil.getEventSource(x152); var x154=x153.tbf; while(!x154&&x153.parentNode){x153=x153.parentNode; x154=x153.tbf; } if(!x154) return; var x155=x153.foi; x154.mouseL1=MVUtil._f177(x152); x154._f175(x152); } _f0.prototype.tFoiMouseUp=function(x156) { x156=(x156)?x156:((window.event)?event:null); var x157=MVUtil.getEventSource(x156); var x158=x157.tbf; while(!x158&&x157.parentNode){x157=x157.parentNode; x158=x157.tbf; } if(!x158) return; var x159=x157.foi; if(!x158._f1._f69||x158.parent._f178) return ; x158.mouseL2=MVUtil._f177(x156); if(x156.button==2) { if(!x158.shouldNotUseHTMLMap(x159)&&_f65._f66=='IF') x158.tFoiRightClick(x156); return; } if(x158.mouseL1.x==x158.mouseL2.x&&x158.mouseL1.y==x158.mouseL2.y) { x158.parent._f179(); if(x158.parent.getBrowserType()=="NS") { x158.parent._f180=null; } var x160=MVUtil.getMouseLocation(x158.parent,x156); if(x159.overlay&&x157.point) x160=x157.point; if(x158._f1._f181||x158._f1._f93[MVEvent.MOUSE_CLICK]) { var x161=MVSdoGeometry.createPoint(x160.sdo_point.x,x160.sdo_point.y,x158.parent.srid); if(x158._f1._f181) x158._f1._f181(x161,x159,MVUtil.getEvent(x156)); if(x158._f1) MVUtil.runListeners(x158._f1._f93,MVEvent.MOUSE_CLICK,[x161,x159,MVUtil.getEvent(x156)]); } else { if(x159.attrs!=null) { if(x159.attrs.length>=1&&x158._f1._f182) { var x162=x159.name==null?"":MVUtil._f43(x159.name," "," "); x158.parent._f76._f183(x159.attrs,x159.attrnames,x159.id, x162,x160.sdo_point.x,x160.sdo_point.y,null,null, x158._f1,300); } } } if(!x158._f1) { x158._f175(x156); return ; } var x163=x157; if(!x158.shouldNotUseHTMLMap(x159)) { x163=x157.node; } if(x158._f1._f184) { x158.mouseUpHighLight(x158,x159,x163); } } } _f0.prototype.tFoiRightClick=function(x164) { x164=(x164)?x164:((window.event)?event:null); var x165=MVUtil.getEventSource(x164); var x166=x165.tbf; while(!x166&&x165.parentNode){x165=x165.parentNode; x166=x165.tbf; } if(!x166) return; var x167=x165.foi; if(!x166._f1._f69) return ; var x168=MVUtil.getMouseLocation(x166.parent,x164); if(x167.overlay&&x165.point) x168=x165.point; var x169=MVSdoGeometry.createPoint(x168.sdo_point.x,x168.sdo_point.y,x166.parent.srid); if(x166._f1._f185) { x166._f1._f185(x169,x167,MVUtil.getEvent(x164)); } if(x166._f1) MVUtil.runListeners(x166._f1._f93,MVEvent.MOUSE_RIGHT_CLICK,[x169,x167,MVUtil.getEvent(x164)]); x166._f175(x164); }; _f0.prototype.tFoiMouseOver=function(x170) { x170=(x170)?x170:((window.event)?event:null); var x171=MVUtil.getEventSource(x170); var x172=x171.tbf; var x173=0; while(!x172&&x171.parentNode){x171=x171.parentNode; x172=x171.tbf; x173++; } if(!x172) return; var x174=x171.foi; var x175=x171; if(!x172.shouldNotUseHTMLMap(x174)){ x175=x171.node; if(!x172._f1._f69) return ; } var x176=MVUtil.getMouseLocation(x172.parent,x170); if(x174.overlay&&x171.point) x176=x171.point; var x177=MVSdoGeometry.createPoint(x176.sdo_point.x,x176.sdo_point.y,x172.parent.srid); if(x174.overLayFOIs) { var x178=MVUtil.getRealOrdinates(x172.parent,x176.sdo_point.x,x174.x) x177=MVSdoGeometry.createPoint(x178,x174.y,x172.parent.srid); x172._f186(x177,x174.overLayFOIs); } else { if(x172._f1._f187) { x172._f1._f187(x177,x174,MVUtil.getEvent(x170)); } if(x172._f1) MVUtil.runListeners(x172._f1._f93,MVEvent.MOUSE_OVER,[x177,x174,MVUtil.getEvent(x170)]); } if(x172._f1._f188&& !(x172.parent._f76._f189()&&!x172.parent._f76.mouseOver)) { if(x174.attrs!=null) { if(x174.attrs.length>=1&&x172._f1._f182) { var x179=x174.name==null?"":MVUtil._f43(x174.name," "," "); x172.parent._f76._f183(x174.attrs,x174.attrnames,x174.id, x179,x176.sdo_point.x,x176.sdo_point.y,null,null, x172._f1,300,true); } } } if(x172.shouldNotUseHTMLMap(x174)&&x172._f1._f190) { x171.style.zIndex=161; } if(!x171.title&&x174.name&&x174.name!="null"&&x172._f1._f158&&!x174.overlay) { var x179=x174.name==null?"":MVUtil._f43(x174.name," "," "); x172.parent._f76.showTextTip(x179,x176.sdo_point.x,x176.sdo_point.y); } if(x172._f1.enableMouseOverHighlightMode&&x172._f1._f191) { if(x175&&x174.imgurl4Hilite) x172.highlightFOI(x172,x174,x175); else if(x174.scid) { var x174=x172.getMainFOI(x174); if(x174) x172.highlightFOI(x172,x174,x174.node); } } }; _f0.prototype.tFoiMouseOut=function(x180) { x180=(x180)?x180:((window.event)?event:null); var x181=MVUtil.getEventSource(x180); var x182=x181.tbf; while(!x182&&x181.parentNode){x181=x181.parentNode; x182=x181.tbf; } if(!x182) return; var x183=x181.foi; var x184=x181; if(!x182.shouldNotUseHTMLMap(x183)){ x184=x181.node; if(!x182._f1._f69) return ; } var x185=MVUtil.getMouseLocation(x182.parent,x180); if(x183.overlay&&x181.point) x185=x181.point; var x186=MVSdoGeometry.createPoint(x185.sdo_point.x,x185.sdo_point.y,x182.parent.srid); if(x183.overLayFOIs) { x182._f192(x186,x183.overLayFOIs); } else { if(x182._f1._f193) { x182._f1._f193(x186,x183,MVUtil.getEvent(x180)); } if(x182._f1) MVUtil.runListeners(x182._f1._f93,MVEvent.MOUSE_OUT,[x186,x183,MVUtil.getEvent(x180)]); } if(x182._f1._f188&& !(x182.parent._f76._f189()&&!x182.parent._f76.mouseOver)) { if(x183.attrs!=null) { if(x183.attrs.length>=1&&x182._f1._f182) { x182.parent.removeInfoWindow(); } } } if(x182.shouldNotUseHTMLMap(x183)) { x181.style.zIndex=160; } x182.parent._f76._f194(); if(x182._f1.enableMouseOverHighlightMode&&x182._f1._f191) { if(x184&&x183.imgurl4Hilite!=null&&!(x183._f152)) x182.deHighlightFOI(x182,x183,x184); else if(x183.scid) { var x183=x182.getMainFOI(x183); if(x183&&!(x183._f152)) x182.deHighlightFOI(x182,x183,x183.node); } } }; _f0.prototype.shouldNotUseHTMLMap=function(x187) { return ((this._f64()||x187.gtype%10==1)&&this._f1._f68&&!this.isWholeImage()) } _f0.prototype.mouseUpHighLight=function(x188,x189,x190) { if(x188._f1._f191&&!x188._f1._f154) { if(x189.imgurl4Hilite!=null) { var x191=x188._f1._f169.length; var x192=x188._f1._f195; var x193=false; var x194=null; if(x191>0) {var x195=x188._f1._f169; var x196=null; var x197=null; for(var x198=0;x1980) { for(var x198=1;x198<=x192;++x198) { x196=x195[x191-x198]; x196._f152=false;if(x196!=null&&x196.node!=null&&x196.imgurl!=null) { x188.deHighlightFOI(x188,x196); } } x188._f1._f169=x195.slice(0,(0-x192)); x191-=x192; } } if(!x193) { x189._f152=true;x188._f1._f169[x191++]=x189; x188.highlightFOI(x188,x189); } else if(x192==0) { if(x194!=null){ x188._f1._f169[x194]._f152=false; x188._f1._f169.splice(x194,1); } x188.deHighlightFOI(x188,x189); } } else if(x189.scid) { var x189=x188.getMainFOI(x189); if(x189) x188.mouseUpHighLight(x188,x189,x189.node); } } } _f0.prototype.deHighlightFOI=function(x201,x202) { if(!x202.highlight) return; var x203=x202.node; x202.highlight=false; var x204=function(x205,x206) { if(x201.shouldNotUseHTMLMap(x202)) { if(x202!=null&&x202.imgurl!=null) { if(x201._f64()&&x202.pngType4Hilite) { if(x202.normalPngType4Hilite) { x205.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x202.imgurl+"', sizingMethod='image');"; x205.src=x202.imgurl; x205.innerHTML=""; } else { x205.onmouseover=null; x205.onmouseout=null; x205.style.filter=null; x205.src=null; x205.innerHTML=""; var x207=function(){ x205.onmouseover=x201.tFoiMouseOver; x205.onmouseout=x201.tFoiMouseOut; } window.setTimeout(x207,50); } } else x205.src=x202.imgurl; if(x202.recalSizePos4Hilite&&(x202.gtype%10==1)) { var x208=0; if(x206&&x206!=0) { x208=x206*(x201.parent.msi._f165-x201.parent.msi._f166)*x201.parent._f72; } MVUtil._f70(x205,Math.ceil(x202.loc[0]-x202.width/2.0+x208),Math.ceil(x202.loc[1]-x202.height/2.0)); x205.style.width=MVUtil._f26(x202.width); x205.style.height=MVUtil._f26(x202.height); } } } else { if(x202!=null&&x202.imgurl!=null) { if(x201._f64()&&_f196.pngType4Hilite) { x205.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x202.imgurl+"', sizingMethod='image');"; } x205.src=x202.imgurl; } } } if(x203 instanceof Array) { for(var x209=0;x209"; var x216=function(){ x214.onmouseout=x210.tFoiMouseOut; x214.onmouseover=x210.tFoiMouseOver; } window.setTimeout(x216,10); } } else { x214.src=x211.imgurl4Hilite; } if(x211.recalSizePos4Hilite&&(x211.gtype%10==1)) { var x217=0; if(x215&&x215!=0) { x217=x215*(x210.parent.msi._f165-x210.parent.msi._f166)*x210.parent._f72; } MVUtil._f70(x214,Math.ceil(x211.loc[0]-x211.highlightImageWidth/2.0+x217),Math.ceil(x211.loc[1]-x211.highlightImageHeight/2.0)); x214.style.width=MVUtil._f26(x211.highlightImageWidth); x214.style.height=MVUtil._f26(x211.highlightImageHeight); } } else if(x214!=null&&(x211.imgurl4Hilite)) { if(x210._f64()&&x211.pngType4Hilite) { x214.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x211.imgurl4Hilite+"', sizingMethod='image');"; } x214.src=x211.imgurl4Hilite; } } if(x212 instanceof Array) { for(var x218=0;x218=x222) { x224=Math.ceil((x219-x222)/x223); x219-=x223*x224; if(x219==x222) { x224++; x219=x221; } x220-=x223*x224; } if(x220<=x222&&x219!=x220){ this.maparea.push({minx:x219,maxx:x220,n:x224}); } else{ this.maparea.push({minx:x219,maxx:x222,n:x224}); x220-=x223; x224++; while(x220>x222) { this.maparea.push({minx:x221,maxx:x222,n:x224}); x220-=x223; x224++; } this.maparea.push({minx:x221,maxx:x220,n:x224}); } } } _f0.prototype._f168=function(x225,x226,x227) { var x228=this; if(x226.areaNode) { var x229=x226.areaNode; var x230=x229.getAttribute("coords"); var x231=x229.getAttribute("shape"); if(x226.wr&&x226.wr.length>1) { if(!x227) { x227=1; } if(x227==1) { x226.areaNode=new Array(x229); } for(var x232=x227;x2321) { var x237=false; if(!x227) { x227=1; } if(x227==1) { x226.node=new Array(x225); if(x226.lox!=null&&x226.loy!=null) { x226.labelNode=new Array(x226.labelNode); } } for(var x232=x227;x232=x248) { x245.wr.push(this.maparea[0].n); if(x252x250&&x251>x250) { x251=x245.x; x252=x245.x+x245.width-x249; } for(var x254=1;x254x252) x245.wr.push(this.maparea[x254].n); } } else { for(var x254=0;x254this.maparea[x254].minx&&x252this.maparea[x254].minx&&x2510) x258=x258.substring(0,x258.length-1); return x258; } else return x255; } _f0.prototype._f41=function() { if(this._f1._f114) return " marker_sequence=\""+this._f1._f115+"\""; else return ""; } _f0.prototype._f40=function(x263) { if(x263!=null) return " render_style=\""+x263+"\""; else if(this._f1._f108) return " render_style=\""+this._f1._f108+"\""; else return ""; } _f0.prototype.getMainFOI=function(x264) { for(var x265=0;x265=1&&x281._f1._f182) { var x295=new MVInfoWindowTab(x294._f198,x294._f199); var x296=new Array(x295); var x297=x294.name==null?"":MVUtil._f43(x294.name," "," "); x281.parent._f76._f183(x294.attrs,x294.attrnames,x294.id, x297,x277.sdo_point.x,x277.sdo_point.y,null,null, x281._f1,300); return; } } x292.innerHTML=x286; x289.appendChild(x292) } var x298=MVUtil.checkRealSize(x281.parent,x279); if(x298.width+MVInfoWindowStyle4.MultiFeatureListTotalMarginWidth0) x306=MVUtil._f164(this.parent,this.minX,this.minY,this.maxX,this.maxY, this._f9,this._f10,x303.x+x303.wr[0]*(this.parent.msi._f165-this.parent.msi._f166), x303.y); else x306=MVUtil._f164(this.parent,this.minX,this.minY,this.maxX,this.maxY, this._f9,this._f10,x303.x,x303.y); x306[0]-=x304; x306[1]+=x305; x306[0]+=this._f1.xOffset; x306[1]+=this._f1.yOffset; if(_f65._f66=="IF") { x306[1]++;} else { } if(x303.height%2==0) x306[1]--; return x306; } function _f300(x0,id,x1,x2) { this.minX; this.minY; this.maxX; this.maxY; this.width=x0._f106(); this.height=x0._f107(); this.parent=x0; this._f301=null; this.div=document.createElement("div"); this.div.style.position="absolute"; this.div.style.zIndex="3000"; this.parent._f302.appendChild(this.div); this._f158=document.createElement("div"); this._f158.style.position="absolute"; this._f158.style.backgroundColor="#FFFFDF"; this._f158.style.border="inset black 1px"; this._f158.style.visibility="hidden"; this._f158.style.zIndex="1200"; this.parent.div.appendChild(this._f158); MVUtil._f70(this._f158,0,0); this._f77=new Array(0); this._f174=false; this.mouseOver=false; this.id=id } _f300.prototype.enableEventPropagation=function(x0) { this._f174=x0; } _f300.prototype._f303=function() {} _f300.prototype._f194=function() { this._f158.style.visibility='hidden'; } _f300.prototype.refresh=function(x1,x2,x3,x4,x5,x6) { MVUtil._f70(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._f71&&this._f77[x7].winX<=this.parent._f299&& this._f77[x7].winY>=this.parent._f305&&this._f77[x7].winY<=this.parent._f73) this._f77[x7].style.visibility="visible"; } } _f300.prototype._f56=function() { return this.div; } _f300.prototype.showTextTip=function(x9,x10,x11) { this._f158.innerHTML=x9; if(_f65._f66=="NS"&&navigator.userAgent.toLowerCase().indexOf("netscape")>0) { var x12=MVUtil._f43(x9.toLowerCase()," "," ").length; this._f158.style.width=MVUtil._f26(x12*8+8); } var x13=MVUtil._f304(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x10,x11); MVUtil._f70(this._f158,x13.x+10,x13.y+5); this._f158.style.visibility="visible"; } _f300.prototype._f189=function() { return this._f77.length>0; } _f300.prototype._f243=function(id,x14,x15,x16,x17,x18,x19,x20,x21,x22,x23,x24) { if(MVInfoWindowStyle1._f306) { clearTimeout(MVInfoWindowStyle1._f306); MVInfoWindowStyle1._f306=null; } var x25=this.parent._f144+"_"+this.id;; if(MVInfoWindowStyle4._f306&&MVInfoWindowStyle4._f306[x25]) { clearTimeout(MVInfoWindowStyle4._f306[x25]); MVInfoWindowStyle4._f306[x25]=null; } if(x20==null||x20=="") { x20=_f65._f307; } if(x22) this.mouseOver=true; else this.mouseOver=false; this._f194(); 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._f77[0]); var x28=document.createElement("div"); var x29=this; var x30=function(x31) { x31=(x31)?x31:((window.event)?event:null); var x32=!x29._f174; if(x31&&!x29._f174) { if(_f65._f66=="IF") x31.cancelBubble=true; else if(x31.stopPropagation) x31.stopPropagation(); } } var x33=function(x34) { x29._f200=true; if(x29.div) x29.div.style.zIndex=3001; x30(x34); } var x35=function(x36) { x29._f200=false; if(x29.div) x29.div.style.zIndex=3000; x30(x36); } x28.id="mvinfodiv"+this.id; x28.onmousedown=MVUtil._f103(x28,x30); x28.onmouseup=MVUtil._f103(x28,x30); x28.onmousemove=MVUtil._f103(x28,x30); x28.onmouseover=MVUtil._f103(x28,x33); x28.onmouseout=MVUtil._f103(x28,x35); x28.ondblclick=MVUtil._f103(x28,x30); x28.onclick=MVUtil._f103(x28,x30); x28.onkeyup=MVUtil._f103(x28,x30); if(_f65._f66=="OS") x28.onkeypress=MVUtil._f103(x28,x30); else x28.onkeydown=MVUtil._f103(x28,x30); var x37=MVUtil._f304(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._f144); var x40=document.getElementById("mvinfotable1_"+this.parent._f144); 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._f301=null; if(this.domDiv) { this._f301=new _f309(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=="undefined"||x18<_f65.infoWindowTabsWidth) x18=_f65.infoWindowTabsWidth; if(!x19||x19=="undefined"||x19<_f65.infoWindowTabsHeight) x19=_f65.infoWindowTabsHeight; } this._f301=new _f309(x28,0,0,x16,x17,x18,x19,x20,x22,this,x37,x23,null,this.id); } this._f77.push(x28); x28.nid=id; x28.winX=x14; x28.winY=x15; MVUtil._f70(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._f144); else if(x20=="MVInfoWindowStyle4") x39=document.getElementById("infowindow4_"+this.parent._f144+"_"+this.id); if(x39!=null) { x18=x39.offsetWidth; x39.style.width=MVUtil._f26(x18); x19=x39.offsetHeight; x43=MVUtil._f80(x39); x44=MVUtil._f81(x39); } if(x24&&(x20=="MVInfoWindowStyle1"||x20=="MVInfoWindowStyle4")) return ; var x45=x18; var x46=x19; var x47=this.parent._f139+x37.x+x43; var x48=this.parent._f140+x37.y+x44; var x49=0; var x50=0; if(x47<0) { if(this.parent._f139+x37.xthis.width) { if(this.parent._f139+x37.x>x47+x45) x49=this.parent._f139+x37.x-this.width+10; else x49=x47+x45-this.width; } else if(this.parent._f139+x37.x>this.width) x49=this.parent._f139+x37.x-this.width+10; if(x48<0) { if(this.parent._f140+x37.ythis.height) { if(this.parent._f140+x37.y>this.height) x50=this.parent._f140+x37.y-this.height+10; else x50=x48+x46-this.height; } else if(this.parent._f140+x37.y>this.height) x50=this.parent._f140+x37.y-this.height+10; if(x21) this.setTimeout("this.parent.smoothScroll("+x49+","+x50+")",x21); else this.parent.smoothScroll(x49,x50); } } _f300.prototype._f298=function(x51,x52,x53,x54,x55,x56,x57,x58,x59,x60) { if(x58==null||x58=="") { x58=_f65._f307; } if(x51.length==0) return; if(x56&&x57) { this._f243(x51,x52,x53,x54,x55,x56,x57,x58,null,null,x60,true); } else if(x58=="MVInfoWindowStyle4") this._f243(x51,x52,x53,x54,x55,0,0,x58,null,null,x60,true); else this._f243(x51,x52,x53,x54,x55,_f65._f310,_f65._f311,x58,null,null,x60,true); } _f300.prototype._f312=function(x61,x62,x63,x64,x65,x66,x67) { var x68=new Array(4); if(!x62) x62="null"; x62=MVUtil._f43(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; } _f300.prototype._f183=function(x80,x81,x82,x83,x84,x85, x86,x87,x88,x89, x90) { var x91=x88._f37; var x92=x88._f313?x88._f313:_f65._f307; var x93=x88._f314; var x94=x88._f315; var x95=x88._f250; if(x82.length==0&&x83.length==0) return ; if(x86&&x87) { var x96=new MVInfoWindowTab(x94,x80); var x97=new Array(x96); this._f243(x82,x84,x85,x96,0,x86,x87,x92,x89,x90,x95,true); } else { var x98=this._f312(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._f243(x82,x84,x85,x97,0,x98[1],x98[2],x92,x89,x90,x95,true); } else this._f243(x82,x84,x85,x97,0,_f65._f310, _f65._f311,x92,x89,x90,x95,true); } } _f300.prototype._f316=function(x99,x100,x101,x102,x103,x104,x105,x106) { var x107=new MVInfoWindowTab(x105,x99); var x108=new Array(x107); this._f243("",x100,x101,x108,0,x102,x103,x104,null,null,x106); } _f300.prototype.deleteInfoWindow=function(x109) { if(MVInfoWindowStyle1._f306) { clearTimeout(MVInfoWindowStyle1._f306); MVInfoWindowStyle1._f306=null; } var x110=this.parent._f144+"_"+this.id;; if(MVInfoWindowStyle4._f306&&MVInfoWindowStyle4._f306[x110]) { clearTimeout(MVInfoWindowStyle4._f306[x110]); MVInfoWindowStyle4._f306[x110]=null; } var x111=0; for(x111=0;x111this.parent._f299|| this._f77[x112].winYthis.parent._f73) this._f77[x112].style.visibility="hidden"; else this._f77[x112].style.visibility="visible"; } } _f300.prototype.replaceWhiteSpace=function(x113) { var x114=x113.indexOf("<"); if(x114>=0&&x113.indexOf(">",x114)>=0)return x113; x113=x113.replace(" "," "); return MVUtil._f43(x113," ","  "); } _f300.prototype._f170=function() { MVUtil._f197(this.div,this.parent._f7); MVUtil._f197(this._f158,this.parent._f7); this._f158=null; this.div=null; if(this._f77&&this._f77.length>0) this._f77.pop(); } _f300.prototype.showTabbedHtmlWindow=function(x115,x116,x117,x118,x119,x120,x121,x122) { this._f243(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._f6("MVFOI.constructor","MAPVIEWER-05503"); return null; } this.parent=null; this.id=MVUtil._f236(x0); this._f237=x1; this.gtype=x1.getGType(); this.style=x2; this._f3=x3; this._f102=""; this._f199=null; this.html=""; this._f238=""; this._f239=""; this.area=""; this._f240=null; this._f241=new Array(4); this._f158=null; this.width=0; this.height=0; this._f69=true; this.visible=true; this._f88=false; this._f242=false; this._f243=true; this._f244=true; this._f181=null; this._f185=null; this._f187=null; this._f193=null; this._f93=new Array(); this._f190=true; this._f245=0; this._f246=0; this._f174=true; this.cursorStyle=null; this._f247=null; this._f248=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._f249=null; this._f198=null; this._f250=null; this._f251=100; this._f252=100; this._f62=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; this.opacity=1; this.htmlmapIdSuffix=0; } MVFOI.prototype.setHTMLElement=function(x0,x1,x2) { this.html=x0; if(x1) this._f238=x1; if(x2) this._f239=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._f253=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._f253=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._f181=x19; } else if(x18==MVEvent.MOUSE_RIGHT_CLICK) { this._f185=x19; } else if(x18==MVEvent.MOUSE_OVER) { this._f187=x19; } else if(x18==MVEvent.MOUSE_OUT) { this._f193=x19; } if(this._f88) { this._f247._f254(this); } } MVFOI.prototype.attachEventListener=function(x20,x21) { MVUtil.attachEventListener(this._f93,x20,x21) if(this._f88&&this._f247) { this._f247._f254(this); } } MVFOI.prototype.detachEventListener=function(x22,x23) { MVUtil.detachEventListener(this._f93,x22,x23); } MVFOI.prototype.setBringToTopOnMouseOver=function(x24) { this._f190=x24; } MVFOI.prototype.setTopFlag=function(x25) { this._f242=x25; } MVFOI.prototype.enableInfoWindow=function(x26) { this._f243=x26; } MVFOI.prototype.enableInfoTip=function(x27) { this._f244=x27; } MVFOI.prototype.setFOIOrds=function(x28) { this._f240=MVUtil._f236(x28).toUpperCase(); } MVFOI.prototype.setFOIGtype=function(x29) { this.gtype=x29; } MVFOI.prototype.setVisible=function(x30) { this.visible=x30; if(this.parent) this.parent._f255._f256(this,x30); } MVFOI.prototype.isVisible=function() { return this.visible; } MVFOI.prototype.getId=function() { return this.id; } MVFOI.prototype.setClickable=function(x31) { this._f69=x31; } MVFOI.prototype.setInfoTip=function(x32) { if(x32) this._f69=true; this._f158=x32; } MVFOI.prototype.setInfoWindow=function(x33,x34,x35,x36,x37,x38) { this._f199=x33; this._f245=x34; this._f246=x35; this._f249=x36; this._f198=x37; this._f250=x38; } MVFOI.prototype.enableEventPropagation=function(x39) { this._f174=x39; } MVFOI.prototype.setZIndex=function(x40) { this._f251=x40; if(this.node) this.node.zIndex=x40; } MVFOI.prototype.setImageFormat=function(x41,x42) { if(x41) { this._f62=x41.toUpperCase(); if(this._f62=="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._f240[4]); x43[1]=parseFloat(this._f240[3])- Math.abs((parseFloat(this._f240[0])-parseFloat(this._f240[4]))); x43[2]=parseFloat(this._f240[0]); x43[3]=parseFloat(this._f240[3]); } else { x43[0]=parseFloat(this._f240[0]); x43[1]=parseFloat(this._f240[1]); x43[2]=parseFloat(this._f240[0]); x43[3]=parseFloat(this._f240[1]); for(var x44=2;x44x43[2])x43[2]=parseFloat(this._f240[x44]); if(parseFloat(this._f240[x44+1])x43[3])x43[3]=parseFloat(this._f240[x44+1]); } } return x43; } MVFOI.prototype._f257=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._f259=function(x73) { var x74=new Array(this._f240.length); var x75=new Array(this._f241[0],this._f241[1],this._f241[2],this._f241[3]);if(x75[0]x73._f255.maxY)x75[3]=x73._f255.maxY; var x76=x75[3]-x75[1]; for(var x77=0;x77x0._f255.maxY)x2[3]=x0._f255.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._f72+0.5); } else { x7=Math.floor((x6-(x4+x5*Math.sin((x9*x10)/90)- x2[1]))*x0._f74+0.5); } if(x10==0)x8+=x7; else x8+=","+x7; } x2=null; return x8; } MVFOI.prototype._f261=function(x78) { if(this.area==null||this.area=="") { this.area=""; if(this.gtype%10==3&&this.elemInfo[2]==4) { this.area=_f260(x78,this._f241); } else if(this.gtype%10==3||this.gtype%10==7) { var x79=this._f259(x78); this.area=this._f258(x79); } } } MVFOI.prototype.animateToNewLocation=function(x80,x81) { var x82=this; var x83=this._f247; var x84=function(x85) { if(x85) x80=x85; if(x80.equals(x82._f237)) return; if(x82.overlayFOI) { var x86=x83.parent.getFOIGroup(x82._f262); x86._f263(x82); x83._f264(x82); } if(x81==null) x81=100; x83.parent._f255.foiToNewLocation(x82,x80,x81); } if(this.overlayFOI) x83=this.overlayFOI._f247; if(!x80.srid) x80.srid=x83.parent.getSrid(); if(x80.srid&&(x80.srid!=this._f237.srid)) x80=x83.parent.transformGeom(x80,this._f237.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._f265) { if(this._f265 instanceof Array) { for(var x89=0;x890&&x101.childNodes[0].style.filter) { var x109=MVUtil._f43(x95,"(","%28"); x109=MVUtil._f43(x109,")","%29"); x101.childNodes[0].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x109+"', sizingMethod='image');"; MVUtil._f70(x101,x107,x108); } else { x104._f266(x105.id); x104._f267(x105); } } } if(this.node instanceof Array) { for(var x110=0;x1100) x114._f237.sdo_point.x=x114._f240[0]; var x119=(x115.parent._f90-x115._f22)*x115.parent._f72; var x120=(x115.parent._f91-x115._f23)*x115.parent._f74; if(x114.overlayFOI) { var x121=x115.parent.getFOIGroup(x114._f262); x121._f263(x114); if(!x121._f268(x114)) x115._f264(x114); return; } if(x115.around) { var x122=x114.wr; var x123=0; var x124=x115.parent.msi._f166; var x125=x115.parent.msi._f165; 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._f87(x114.node[x127]); x114.node.pop(); x114._f248.pop(); x114._f265.pop(); } } } else { x118=MVUtil._f164(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._f70(x114.node,x118[0]-x114.width/2,x118[1]-x114.height/2); } } else { x114.gtype=x114._f237.getGType() x114.reDraw(); } } if(this.overlayFOI) x115=this.overlayFOI._f247; if(!this._f237.srid) this._f237.srid=x115.parent.getSrid(); if(this._f237.srid!=x115.parent.getSrid()) { x115.parent.transformGeom(this._f237,x115.parent.srid,null,x116); } else x116(); } } MVFOI.prototype.reDraw=function() { if(this._f88) { if(this._f262>=0) { if(this._f247==null) { return; } var x130=this._f247.parent.getFOIGroup(this._f262); x130.removeFOI(this); x130.addFOI(this); return; } this._f247._f266(this.id); this._f247._f267(this); } } MVFOI.prototype.setOpacity=function(x131) { if(isNaN(x131)) { return; } if(x131>1||x131<0) return; else this.opacity=x131; if(this._f88) { var x132=function(x133) { x133.style.opacity=x131; if(x131==1) x133.style.filter=""; else x133.style.filter="alpha(opacity="+x131*100+")"; } if(this.node instanceof Array) { for(var x134=0;x134=0) x143+=","+x135._f262; x135.move_id=this.setTimeout("this.moveFoi(\""+x143+"\")",x135.time); } _f270.prototype.moveFoi=function(x144) { var x145=null; var x146=x144.split(","); if(x146.length>1) { var x147=this.parent.getFOIGroup(x146[1]); x145=x147._f273(x146[0]); } else x145=this._f274(x146[0]); var x148=x145.node; if(x148 instanceof Array) x148=x148[0]; var x149=parseInt(x148.style.left); var x150=parseInt(x148.style.top); var x151=x145.move_seq; var x152=x145.move_xarray; var x153=x145.move_yarray; var x154=x152[x151]; var x155=x153[x151]; if(x145.tx&&x145.tx.length>0) x154+=x145.wr[0]*(this.parent.msi._f165-this.parent.msi._f166); var x156=0; x154=MVUtil.transLongitudeOnWarpAroungMap(this.parent,x145.x,x154); if(this.around) { x156=x145.wr[0]*(this.parent.msi._f165-this.parent.msi._f166); } var x157=MVUtil._f164(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x154+x156,x153[x151]); var x158=(this.parent._f90-this._f22)*this.parent._f72; var x159=(this.parent._f91-this._f23)*this.parent._f74; x157[0]=Math.round(x157[0]-x158-x145.width/2); x157[1]=Math.round(x157[1]+x159-x145.height/2); var x160=x157[0]-x149; var x161=x157[1]-x150; var x162=Math.sqrt(x160*x160+x161*x161); var x163=40; if(x163>x162) { x148.style.left=MVUtil._f26(x157[0]); x148.style.top=MVUtil._f26(x157[1]); if(x145.node instanceof Array) { for(var x164=1;x1641) x145.startX=x152[x151-1]; if(x153.length>1) x145.startY=x153[x151-1]; x145.move_seq=x151; var x144=x145.id if(x145._f262>=0) x144+=","+x145._f262; x145.move_id=this.setTimeout("this.moveFoi(\""+x144+"\")",x145.time); } else { var x165=Math.round(x163*x160/x162); var x166=Math.round(x163*x161/x162); var x167=parseInt(x148.style.left)+x165; var x168=parseInt(x148.style.top)+x166; x148.style.left=MVUtil._f26(x167); x148.style.top=MVUtil._f26(x168); if(x145.node instanceof Array) { for(var x164=1;x164x145.x) x170=-1; else if(x169this.parent.msi._f165) { x145.x-=x171; x148.style.left=MVUtil._f26(x167-x171*this.parent._f72); } } x145._f237.sdo_point.x=x145.x; x145._f237.sdo_point.y=x145.y; var x144=x145.id if(x145._f262>=0) x144+=","+x145._f262; x145.move_id=this.setTimeout("this.moveFoi(\""+x144+"\")",x145.time); } } _f270.prototype.setTimeout=function(_f148,_f149) { var Ie="tempVar"+_f276; _f276++; eval(Ie+" = this;"); var oi=_f148.replace(/\\/g,"\\\\"); oi=oi.replace(/\"/g,'\\"'); return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f149); } _f270.prototype._setTimeoutDispatcher=function(func) { eval(func); } _f270.prototype.setSize=function(x172,x173) { this.width=x172; this.height=x173; } _f270.prototype._f256=function(x174,x175) { var x176=x174.id; for(var x177=0;x1770) if(this.parent._f76._f77[0].nid==x176) { this.parent._f76.deleteInfoWindow(this.parent._f76._f77[0]); } } } var x178=x174.node if(x174._f262>=0) { var x179=this.parent.getFOIGroup(x174._f262); x175=x175&&x179._f277(); } if(!x178&&x175&&(!x174.cloneFOI||!x174.cloneFOI.node)) { if(this.parent._f278) { this.parent._f255._f264(x174,true); } return ; } if(x178 instanceof Array) { for(var x180=0;x1800) if(this.parent._f76._f77[0].nid==x187.id) { this.parent._f76.deleteInfoWindow(this.parent._f76._f77[0]); } } MVUtil._f197(this.div,this.parent._f7); MVUtil._f197(this._f272,this.parent._f7); } _f270.prototype._f266=function(x188,x189) { var x190=null; if(x189==null) { for(var x191=0;x1910) if(this.parent._f76._f77[0].nid==x188) { this.parent._f76.deleteInfoWindow(this.parent._f76._f77[0]); } this._f271[x191]=this._f271[this._f271.length-1]; x190.parent=null; MVUtil._f281(this._f271.pop()); break; } } } else x190=x189; if(x190) { if(x190.move_id!=null){ clearTimeout(x190.move_id); x190.move_id=null; } if(x190.node) { var x192=x190.node if(x192 instanceof Array) { for(var x193=0;x1930) x215._f237.sdo_point.x=x215._f240[0]; } else { x215.elemInfo=x215._f237.sdo_elem_info.toString().split(","); var x221=x215._f237.sdo_ordinates; if(!x215.origFOI) { x221=MVUtil.keepOrdinatesInCSBoundary(x217.parent,x221); if(x217.parent.wraparound) { x215.origgeom=x215._f237.clone(); x215._f237.sdo_ordinates=x221; var x222=x215._f237.getOrdinatesOfElements(); x221=new Array(); for(var x223=0;x2230&&!x215.cloneFOI) { var x225=x215._f237.clone(); x225.sdo_ordinates=MVUtil.duplicateCrossDateLineOrds(x217.parent,x215._f240,x215._f241); var x226=MVUtil.cloneObject(x215); x226.id="-CL"+x215.id; x226._f237=x225; x226.origFOI=x215; x215.cloneFOI=x226; x217._f267(x226); } x215.x=x215._f241[0]; x215.y=x215._f241[3]; if(x215.gtype%10!=1) { x215.width=x215._f241[2]-x215._f241[0]; x215.height=x215._f241[3]-x215._f241[1]; } x217._f283(x215,x216); } if(x215._f237.srid&&(x215._f237.srid!=this.parent.srid)) this.parent.transformGeom(x215._f237,this.parent.srid,null,x219); else x219(); } _f270.prototype._f283=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._f102=foi._f3+"?request=getpoiimage&version=1.0"+ "&poistyle="+encodeURIComponent(styleStr)+ this.getImageParameters(foi); if(!(foi.id.length>3&&MVUtil._f153(foi.id,"-OL"))) foi._f102+="&width="+foi.width+"&height="+foi.height; } if(this.around||foi.wr) { foi.wr=new Array(); if(foi.areacode==null) { var n=0; var bbminx=this.parent.msi._f166; var bbmaxx=this.parent.msi._f165; for(var i=0;ithis.maparea[i].minx&&foi.x0) { var coverWidth=this.parent.msi._f165-this.parent.msi._f166; var tOrds=foi._f237.sdo_ordinates; var crossdl=MVUtil.crossDateLine(this.parent,tOrds); var middle=this.parent.msi._f166+coverWidth/2; if(crossdl){ if((this.maparea.length>1||(this.maparea.length==1&&foi._f241[2]this.maparea[0].maxx) &&(foi.x>middle||foi._f241[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._f241[0]; reqMaxX=foi._f241[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._f241[0]; reqMaxX=foi._f241[2]; } } else { if(this.maxX>this.parent.msi._f165) reqMaxX=this.parent.msi._f165; if(this.minXthis.parent.msi._f165) foi._f241[2]=this.parent.msi._f165; if(foi._f241[0]this.parent.msi._f286) reqMaxY=this.parent.msi._f286; if(this.minYthis.parent.msi._f286) { foi._f241[3]=this.parent.msi._f286; foi.y=foi._f241[3]; } reqMinX=Math.floor(reqMinX*this.parent._f72)/this.parent._f72; reqMaxX=Math.ceil(reqMaxX*this.parent._f72)/this.parent._f72; reqParas="&version=1.0"+"&ratx="+this.parent._f72+"&raty="+ this.parent._f74+'&bbox='+ reqMinX+':'+reqMinY+':'+reqMaxX+':'+reqMaxY+ this.getImageParameters(foi); url=foi._f3+"?request=getfigimage"+reqParas+"&figord="+_f285; if(_f65._f66=="IF") url+="&figstyle="+encodeURIComponent(encodeURIComponent(styleStr)); else url+="&figstyle="+encodeURIComponent(styleStr); try { var _f288=this; var localDomain=MVUtil.isLocalDomain(foi._f3); var xmlHttp=localDomain||MVMapView._f117; var _f289=MVUtil.getXMLHttpRequest(xmlHttp); _f289.open("POST",MVUtil._f119(foi._f3),true); _f289.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); _f289.onreadystatechange=MVUtil._f103(_f289,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._f102=res.imgurl; if(res.area&&res.area!="") foi.area=res.area; if(res.io) foi.io=res.io; if(check) { if(foi._f242) for(var td=0;td<_f288._f272.childNodes.length;td++) { if(_f288._f272.childNodes[td].id==foi.id) { _f288._f272.removeChild(_f288._f272.childNodes[td]); break; } } else for(var td=0;td<_f288.div.childNodes.length;td++) { if(_f288.div.childNodes[td].id==foi.id) { _f288.div.removeChild(_f288.div.childNodes[td]); break; } } } _f288._f284(foi); } } } catch(e) { MVi18n._f6("MVIndFOIsControl.postAddAndDisplayIndFOI","MAPVIEWER-05500",e, _f288.parent?_f288.parent._f7:null); } }); _f289.send(MVUtil._f120(foi._f3,"request=getfig"+reqParas+"&figord="+_f285+"&figstyle="+encodeURIComponent(styleStr))); } catch(ex) { MVi18n._f6("MVIndFOIsControl.postAddAndDisplayIndFOI","MAPVIEWER-05511",ex, this.parent?this.parent._f7:null); } } _f270.prototype._f290=function() { return this._f271; } _f270.prototype._f291=function(x227,x228,x229,x230) { this._f47=true; this.parent._f126(); this.minX=x227; this.minY=x228; this.maxX=x229; this.maxY=x230; this._f22=this.parent._f90; this._f23=this.parent._f91; this._f18=Math.ceil((this.minX-this.parent._f71)*this.parent._f72); this._f19=-Math.ceil((this.maxY-this.parent._f73)*this.parent._f74); MVUtil._f70(this.div,this._f18,this._f19); MVUtil._f70(this._f272,this._f18,this._f19); MVUtil._f197(this.div,this.parent._f7); MVUtil._f197(this._f272,this.parent._f7); this._f94(); this.around=this.parent.wrapAroundLayer(this._f84()); if(this._f92) this._f92; MVUtil.runListeners(this._f93,"refreshFOI"); MVUtil._f197(this.div,this.parent._f7); MVUtil._f197(this._f272,this.parent._f7); for(var x231=0;x2310) x237=x233.area; x236.setAttribute("shape","poly"); x236.setAttribute("coords",x237); if((x233._f181||(x233._f93[MVEvent.MOUSE_CLICK]!=null&&x233._f93[MVEvent.MOUSE_CLICK].length!=0)||((x233._f243&&x233._f199))) &&_f65._f66!="OS") { x236.setAttribute("href","javascript:void(0)"); } } if(x233._f181||(x233._f93[MVEvent.MOUSE_CLICK]!=null&&x233._f93[MVEvent.MOUSE_CLICK].length!=0)||(x233._f243&&x233._f199)) { MVUtil._f162(x236,"pointer"); } x236.onmousedown=x234._f176; x236.onmouseup=x234.IndMouseUp; x236.oncontextmenu=x234.IndRightClick; } if(x233._f265 instanceof Array) { for(var x238=0;x2380) x240=MVUtil._f164(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x239.x+x239.wr[0]*(this.parent.msi._f165-this.parent.msi._f166), x239.y); else x240=MVUtil._f164(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x239.x,x239.y); var x241=(this.parent._f90-this._f22)*this.parent._f72; var x242=(this.parent._f91-this._f23)*this.parent._f74; var x243; var x244=MVUtil._f5(x239._f102.toLowerCase(),'png'); if(!(_f65._f66=='IF'&&(x239.style!=""||x244))&&!x239.html) { if(x239.gtype%10==1) x243=document.createElement('img'); else x243=document.createElement('div'); } else x243=document.createElement('div'); var x245=x239.visible; if(x239._f262>=0) { var x246=this.parent.getFOIGroup(x239._f262); x245=x245&&x246._f277(); } if(x245)x243.style.visibility="visible"; else x243.style.visibility="hidden"; x243.style.position="absolute"; var x247=false; for(var x248=0;x248=0) x243.groupid=x239._f262; var x249=this; var x250=x239._f174; x239._f265=x243; if(x239._f102) { x243.className="noprint"; if(!x245) x243.style.visibility="hidden"; if(x239.id&&x239.id!=null) x243.id=x239.id; x243._f155=x239.x; x243._f156=x239.y; x243.style.zIndex=x239._f251; if(x239._f262>=0) { var x246=this.parent.getFOIGroup(x239._f262); x246._f293(x243,x239); } else if(x239._f242) this._f272.appendChild(x243); else this.div.appendChild(x243); if(x239.gtype%10!=1) { this.displayPolygonIndFOI(x243,x240,x241,x242,x239); } else { var x251=function() { if(x239._f253) { setTimeout(x251,200); return ; } x249.displayPointIndFOI(x243,x240,x241,x242,x239); } x251(); } } else if(x239.gtype%10==1) { x243.style.zIndex=x239._f251; this.displayHTMLIndFOI(x243,x240,x241,x242,x239); } x239.node=x243; this._f168(x243,x239,x249); if(x239.move_id!=null) { var x252=MVUtil._f164(this.parent,this.minX,this.minY,this.maxX,this.maxY, this.width,this.height,x239.move_xarray[x239.move_seq],x239.move_yarray[x239.move_seq]); var x253=Math.round(x252[0]-x239.width/2); var x254=Math.round(x252[1]-x239.height/2); var x255=x239.id if(x239._f262>=0) x255+=","+x239._f262; x239.move_id=this.setTimeout("this.moveFoi(\""+x255+"\")",x239.time); } } _f270.prototype._f34=function() { var x256=""; for(var x257=0;x257"+x263+"" return x264; } _f270.prototype._f170=function() { this._f86(); this._f271=null; this.div=null; this._f272=null; } _f270.prototype._f61=function(x265) { return x265._f62?x265._f62:this.parent._f63; } _f270.prototype._f64=function(x266) { return _f65._f66=="IF"&&this._f61(x266)=="PNG24"; } _f270.prototype.getImageParameters=function(x267) { var x268=""; var x269=this._f61(x267); if(x269=="PNG8") x268+="&format="+x269; if(x267.bgColor) x268+="&bgcolor="+x267.bgColor; return x268; } _f270.prototype.displayHTMLIndFOI=function(x270,x271,x272,x273,x274) { var x275=x270.ifctl; x270.id=x274.id; x270.style.width=MVUtil._f26(x274.width); x270.style.height=MVUtil._f26(x274.height); x270.style.opacity=x274.opacity; if(x274.opacity<1) x270.style.filter="alpha(opacity="+x274.opacity*100+")"; x271[0]-=x272; x271[1]+=x273; MVUtil._f70(x270,x271[0]-x274.width/2,x271[1]-x274.height/2); if(x274._f262>=0) { var x276=this.parent.getFOIGroup(x274._f262); x276._f293(x270,x274) } else this._f272.appendChild(x270); x270.onkeyup=x275.IndStopPropagation; if(_f65._f66=="OS") x270.onkeypress=x275.IndStopPropagation; else { x270.onkeydown=x275.IndStopPropagation; x270.oncontextmenu=x275.IndStopPropagation; } if(_f65._f66=="IF") x270.onselectstart=x275.IndStopPropagation; if(x274._f158&&x274._f244&&_f65._f66!="OS") { x270.title=x274._f158; } this.setIndFOIListners(x274,x270); if(x274.html) { var x277=document.createElement("div"); x277.style.position="absolute"; var x278=x274._f238; var x279=x274._f239; x277.style.left=MVUtil._f26(x278); x277.style.top=MVUtil._f26(x279); x277.style.padding=MVUtil._f26(0); x274.foiDiv=x277; x277.innerHTML=x274.html; x270.appendChild(x277); } } _f270.prototype.displayPolygonIndFOI=function(x280,x281,x282,x283,x284,x285) { var x286=this; var x287=this._f282(x284); x280.style.width=MVUtil._f26(Math.round(x287.width*this.parent._f72+0.5)); x280.style.height=MVUtil._f26(Math.round(x287.height*this.parent._f74+0.5)); var x288; var x289; var x290=x284._f241; if(x284.wr&&x284.wr.length>0) { var x291=this.parent.msi._f165-this.parent.msi._f166; x290[0]+=x284.wr[0]*x291; x290[2]+=x284.wr[0]*x291; } if((x290[0]>this.maxX||x290[2]this.maxY||x290[3]0) x288=x281[0]; else if(x281[0]>-this.parent._f139&&x281[0]<-this.parent._f139+this.width) { x288=x281[0]; } else if(x281[0]<-this.parent._f139) { x288=-this.parent._f139; } else { return; } if(x281[1]>-this.parent._f140&&x281[1]<-this.parent._f140+this.height) { x289=x281[1]; } else if(x281[1]<-this.parent._f140) { x289=-this.parent._f140; } else { return; } x288=Math.floor(x288+0.5); x289=Math.floor(x289+0.5); x288-=x282; x289+=x283; if(x284.io) { x288+=x284.io; x289+=x284.io; } MVUtil._f70(x280,x288,x289); if(this._f64(x284)) { var x292=MVUtil._f43(x284._f102,"(","%28"); x292=MVUtil._f43(x292,")","%29"); if(x284.opacity<1) x280.style.filter="alpha(opacity="+x284.opacity*100+")"; var x293=document.createElement("div"); x280.appendChild(x293); x284._f265=x293; x293.style.width=x280.style.width; x293.style.height=x280.style.height; x293.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x292+"', sizingMethod='image');"; if(x284._f158&&x284._f244) { x293.setAttribute("title",x284._f158); } this.setIndFOIListners(x284,x293); x293.onkeyup=x286.IndStopPropagation; if(_f65._f66=="OS") x293.onkeypress=x286.IndStopPropagation; else x293.onkeydown=x286.IndStopPropagation; } else { var x294=_f296(x284._f102,0,0,0,0,10); x280.appendChild(x294); x280.style.opacity=x284.opacity; if(x284.opacity<1) x280.style.filter="alpha(opacity="+x284.opacity*100+")"; x284.node=x280; if(!x284._f269()) return ; x284._f261(x286.parent); var x295=document.createElement("map");var x296=document.createElement("area"); x295.setAttribute("name","f"+x284.id+"_"+x284.htmlmapIdSuffix); x295.setAttribute("id","f"+x284.id+"_"+x284.htmlmapIdSuffix); x296.setAttribute("border",0); if(x284._f158&&x284._f244) { if(_f65._f66!="OS") x296.setAttribute("title",x284._f158); } x284._f265=x296; var x297="0,0"; if(x284._f69&&x284._f269()) { if(x284.area.length>0) x297=x284.area; if((x284._f181||(x284._f93[MVEvent.MOUSE_CLICK]!=null&&x284._f93[MVEvent.MOUSE_CLICK].length!=0)||((x284._f243&&x284._f199))) &&_f65._f66!="OS") x296.setAttribute("href","javascript:void(0)"); } x296.setAttribute("shape","poly"); x296.setAttribute("coords",x297); this.setIndFOIListners(x284,x296); x294.setAttribute("usemap","#f"+x284.id+"_"+x284.htmlmapIdSuffix,0); x284.htmlmapIdSuffix++; x280.style.border=0; x280.appendChild(x295); x295.appendChild(x296); } } _f270.prototype.displayPointIndFOI=function(x298,x299,x300,x301,x302) { var x303=this; x299[0]-=x300; x299[1]+=x301; MVUtil._f70(x298,x299[0]-x302.width/2,x299[1]-x302.height/2); var x304=MVUtil._f5(x302._f102.toLowerCase(),'png'); var x305=function(x306,x307) { var x308=document.createElement("div"); x308.style.position="absolute"; var x309=x306._f238; var x310=x306._f239; x308.style.left=MVUtil._f26(x309); x308.style.top=MVUtil._f26(x310); x308.style.padding=MVUtil._f26(0); x306.foiDiv=x308; x308.innerHTML=x306.html; x307.appendChild(x308); } if((_f65._f66=='IF')&& (x302.style!=""||x304)) { if(!x302.width) x298.style.width=MVUtil._f26(100); else x298.style.width=MVUtil._f26(x302.width); if(!x302.height) x298.style.height=MVUtil._f26(100); else x298.style.height=MVUtil._f26(x302.height); var x311=MVUtil._f43(x302._f102,"(","%28"); x311=MVUtil._f43(x311,")","%29"); if(x302.opacity<1) x298.style.filter="alpha(opacity="+x302.opacity*100+")"; var x312=document.createElement("div"); x312.style.width=x298.style.width; x312.style.height=x298.style.height; x298.appendChild(x312); x302._f265=x312; if(x302._f158&&x302._f244&&_f65._f66!="OS") { x312.setAttribute("title",x302._f158); } x312.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ x311+"', sizingMethod='image');"; if(x302.html) { x305(x302,x312); } x303.setIndFOIListners(x302,x312); } else { x298.style.opacity=x302.opacity; if(x302.opacity<1) x298.style.filter="alpha(opacity="+x302.opacity*100+")"; if(x302._f158&&x302._f244&&_f65._f66!="OS") { x298.setAttribute("title",x302._f158); } if(x302.html) { var x313=document.createElement("img"); x302._f248=x313; x313.style.position="relative"; x313.style.left=MVUtil._f26(0); x313.style.top=MVUtil._f26(0); x313.setAttribute("id",x302.id); x313.src=x302._f102; x313.setAttribute("border",0); x313.foi=x298.foi; x313.ifctl=x298.ifctl; x313.groupid=x298.groupid; x298.appendChild(x313); x305(x302,x298); x303.setIndFOIListners(x302,x302._f248); } else { x298.src=x302._f102; x298.setAttribute("border",0); x303.setIndFOIListners(x302,x298); } } } _f270.prototype.IndStopPropagation=function(x314) { x314=(x314)?x314:((window.event)?event:null); var x315=MVUtil.getEventSource(x314); var x316=MVUtil.getMVIndFOIsControlAndFOI(x315); var x317=x316.ifctl; if(!x317) return; var x318=x316.foi; if(x314&&x318&&!x318._f174) { if(_f65._f66=="IF") x314.cancelBubble=true; else if(x314.stopPropagation) x314.stopPropagation(); } } _f270.prototype.IndStopEvent=function(x319) { x319=(x319)?x319:((window.event)?event:null); var x320=MVUtil.getEventSource(x319); var x321=MVUtil.getMVIndFOIsControlAndFOI(x320); var x322=x321.ifctl; if(!x322) return; var x323=x321.foi; if(x319&&x323&&!x323._f174) { MVUtil._f175(x319); } } _f270.prototype._f176=function(x324) { x324=(x324)?x324:((window.event)?event:null); var x325=MVUtil.getEventSource(x324); var x326=MVUtil.getMVIndFOIsControlAndFOI(x325); var x327=x326.ifctl; if(!x327) return; var x328=x326.foi; x327.mouseL1=MVUtil._f177(x324); MVUtil.runListeners(x328._f93,MVEvent.MOUSE_DOWN,[x327.mouseL1,x328,MVUtil.getEvent(x324)]); x327.IndStopPropagation(x324); } _f270.prototype.IndMouseUp=function(x329) { x329=(x329)?x329:((window.event)?event:null); var x330=MVUtil.getEventSource(x329); var x331=MVUtil.getMVIndFOIsControlAndFOI(x330); var x332=x331.ifctl; if(!x332) return; var x333=x331.foi; x332.mouseL2=MVUtil._f177(x329); if(x332.mouseL1.x==x332.mouseL2.x&&x332.mouseL1.y==x332.mouseL2.y) { if(x329.button==2) return; if(!x333._f297&&x332.parent._f178) return; var x334=MVUtil.getMouseLocation(x332.parent,x329); if(x333.clickPoint) x334=x333.clickPoint; if(x333._f181||(x333._f93[MVEvent.MOUSE_CLICK]!=null&&x333._f93[MVEvent.MOUSE_CLICK].length!=0)) { x332.parent._f179(); var x335=MVSdoGeometry.createPoint(x334.sdo_point.x,x334.sdo_point.y,x332.parent.srid); if(x333._f181) x333._f181(x335,x333,MVUtil.getEvent(x329)); MVUtil.runListeners(x333._f93,MVEvent.MOUSE_CLICK,[x335,x333,MVUtil.getEvent(x329)]); } else if(x333._f243&&x333._f199) { var x336=new MVInfoWindowTab(x333._f198,x333._f199); var x337=new Array(x336); if(x333._f245>0&&x333._f246>0) x332.parent._f76._f298(x333.id,x334.sdo_point.x,x334.sdo_point.y, x337,0,x333._f245,x333._f246,x333._f249,x333._f198); else x332.parent._f76._f298(x333.id,x334.sdo_point.x,x334.sdo_point.y, x337,0,null,null,x333._f249,x333._f198); return; } } x332.IndStopEvent(x329); } _f270.prototype.IndMouseOver=function(x338) { x338=(x338)?x338:((window.event)?event:null); var x339=MVUtil.getEventSource(x338); var x340=MVUtil.getMVIndFOIsControlAndFOI(x339); var x341=x340.ifctl; if(!x341) return; var x342=x340.foi; var x343=MVUtil.getMouseLocation(x341.parent,x338); if(x342.clickPoint) x343=x342.clickPoint; var x344=MVSdoGeometry.createPoint(x343.sdo_point.x,x343.sdo_point.y,x341.parent.srid); if(x342.overLayFOIs) MVUtil.runListeners(x342._f93,MVEvent.MOUSE_OVER,[x344,x342.overLayFOIs,MVUtil.getEvent(x338)]); else { if(x342._f187) { x342._f187(x344,x342,MVUtil.getEvent(x338)); } MVUtil.runListeners(x342._f93,MVEvent.MOUSE_OVER,[x344,x342,MVUtil.getEvent(x338)]); } if(x342._f190) { var x345=x342.node if(x345 instanceof Array) { x342._f252=new Array(); for(var x346=0;x346x367) { x369=Math.ceil((x364-x367)/x368); x364-=x368*x369; x365-=x368*x369; } if(x365<=x367){ this.maparea.push({minx:x364,maxx:x365,n:x369}); } else{ this.maparea.push({minx:x364,maxx:x367,n:x369}); x365-=x368; x369++; while(x365>x367) { this.maparea.push({minx:x366,maxx:x367,n:x369}); x365-=x368; x369++; } this.maparea.push({minx:x366,maxx:x365,n:x369}); } } var x370=this.maparea.length; var x371=parseInt(x370/2); if(x370>0&&x371==x370/2) { var x372=this.maparea[0].maxx-this.maparea[0].minx; var x373=this.maparea[x370-1].maxx-this.maparea[x370-1].minx; if(x372>x373) this.centerArea=x370/2-1; else this.centerArea=x370/2 } else this.centerArea=Math.floor(x370/2); } _f270.prototype.setIndFOIListners=function(x374,x375) { if(x374.origFOI) x374=x374.origFOI; x375.onmouseover=this.IndMouseOver; x375.onmouseout=this.IndMouseOut; x375.ondblclick=this.IndStopEvent; x375.onclick=this.IndStopEvent; x375.onmousemove=this.IndMouseMove; if(x374._f69&&x374._f269()) { if((x374._f93[MVEvent.MOUSE_CLICK]!=null&&x374._f93[MVEvent.MOUSE_CLICK].length!=0)||x374._f181||((x374._f243&&x374._f199))) MVUtil._f162(x375,"pointer") x375.onmousedown=this._f176; x375.onmouseup=this.IndMouseUp; x375.oncontextmenu=this.IndRightClick; } if(x374.cursorStyle) MVUtil._f162(x375,x374.cursorStyle); MVUtil._f161(x375); } _f270.prototype._f132=function(x376) { x376.wr=new Array(); if(x376.areacode!=null) { var x377=this.maparea[0].n; x377+=x376.areacode; x376.wr.push(x377) return; } var x377=0; var x378=this.parent.msi._f166; var x379=this.parent.msi._f165; var x380=x379-x378; var x381=this.parent.msi._f166+x380/2; var x382=x376._f241[2]; var x383=x376._f241[0]; var x384=false; if(x383x379) { x376.wr.push(this.maparea[0].n); if(x383(x383+x380)) x376.wr.push(this.maparea[x385].n); } } else{ for(var x385=1;x385x383) x376.wr.push(this.maparea[x385].n); } } } else { for(var x385=0;x385this.maparea[x385].minx&&x383this.maparea[x385].minx&&x382this.maparea[x385].maxx)) x376.wr.push(this.maparea[x385].n); } } } _f270.prototype._f168=function(x386,x387,x388,x389) { var x390=parseInt(x386.style.left); if(x387.wr&&x387.wr.length>1) { var x391=false; if(x387._f248) { x391=true; } if(!x389) { x389=1; } if(x389==1) { x387.node=new Array(x386); x387._f265=new Array(x387._f265); if(x391) { x387._f248=new Array(x387._f248); } } for(var x392=x389;x392=0) { var x394=this.parent.getFOIGroup(x387._f262); x394._f293(x393,x387); } else if(x387._f242) this._f272.appendChild(x393); else this.div.appendChild(x393); x393.ifctl=x388; x393.orgid=x386.id; if(x391&&x393.childNodes.length>0) { x387._f248.push(x393.childNodes[0]); } if(x387.gtype%10==1||this._f64(x387)||!x387.area) { this.setIndFOIListners(x387,x393); x387._f265.push(x393); } else if(x393.childNodes.length>1) { var x395=x393.childNodes[0]; var x396=x393.childNodes[1]; this.setIndFOIListners(x387,x396); x395.setAttribute("usemap","#f"+x387.id+"clone"+x392+"_"+x387.htmlmapIdSuffix,0); x396.setAttribute("name","f"+x387.id+"clone"+x392+"_"+x387.htmlmapIdSuffix); x396.setAttribute("id","f"+x387.id+"clone"+x392+"_"+x387.htmlmapIdSuffix); if(x396.childNodes.length>0) { x387._f265.push(x396.childNodes[0]); } } x387.node.push(x393); } } } _f270.prototype.detachEventListener=function(x397,x398) { MVUtil.detachEventListener(this._f93,x397,x398); } _f270.prototype.attachEventListener=function(x399,x400) { MVUtil.attachEventListener(this._f93,x399,x400) } _f270.prototype.IndMouseMove=function(x401) { x401=(x401)?x401:((window.event)?event:null); var x402=MVUtil.getEventSource(x401); var x403=MVUtil.getMVIndFOIsControlAndFOI(x402); var x404=x403.ifctl; if(!x404) return; var x405=x403.foi; var x406=MVUtil.getMouseLocation(x404.parent,x401); if(x405.clickPoint) x406=x405.clickPoint; var x407=MVSdoGeometry.createPoint(x406.sdo_point.x,x406.sdo_point.y,x404.parent.srid); MVUtil.runListeners(x405._f93,MVEvent.MOUSE_MOVE,[x407,x405,MVUtil.getEvent(x401)]); } function MVRedlineTool(linestyle,areastyle,foiServerURL) { var _f318=eval(_f65._f318); _f65._f318=(++_f318); this.id=_f318; this._f319=0; this._f320=0; this.parent=""; this._f3=foiServerURL; this._f321=null; this._f322=linestyle; this._f323=areastyle; this.lon=0; this.lat=0; this._f324=0; this._f325=0; this.mouseDownX=0; this.mouseDownY=0; this.pointdx=0; this.pointdy=0; this._f326=new Array(); this.state=0; this._f152=0; this._f327=0; this._f328=0; this._f329=null; this._f330=5; this._f331=5; this._f332=false; this._f333=false; this._f334=null; var _f335=this; this._f93=new Array(); this._f336=null; this._f337=null; this._f338=new Array(); this._f339=new Array(); this.gtype=3; this._f340=null; this._f341=null; this._f342=null; this._f343=null; this._f344=null; this._f345=false; this.textStyle=""; this._f346=null; this._f347=true; this.editingMode={deletePoint:true,dragPoint:true,deleteLine:true,dragLine:true}; this.pointGenerateOnTopZIndex=101; this._f348=function(x0,x1,x2) { if(!_f335.editingMode) return ; var x3=x1.objType4RedLineTool; switch(x3) { case -1: if(!_f335.editingMode.deletePoint) return ; break; case -2: if(!_f335.editingMode.deleteLine) return ; break; } _f335._f340=x1; var x4=x0.getPointX(); var x5=MVUtil.calAreaCodeFromCenter(_f335.parent,x4); var x6=new MVMenu(_f335.parent,x0,x5); _f335._f342=x6.menuFOIId; switch(x3) { case -1: x6.addMenuItem(MVi18n._f349("delete"),_f335._f350); break; case -2: x0.sdo_ordinates[0]=x4; x0.sdo_point.x=x4; _f335._f341=x0; x6.addMenuItem(MVi18n._f349("delete"),_f335._f351); x6.addMenuItem(MVi18n._f349("addPoint"),_f335._f352); break; } MVUtil._f175(x2); } this._f353=function(x7,x8,x9) { if(!_f335.editingMode) { MVUtil._f175(x9); return ; } var x10=x8.objType4RedLineTool; switch(x10) { case -1: if(!_f335.editingMode.dragPoint) return ; break; case -2: if(!_f335.editingMode.dragLine) return ; break; } if(_f335._f328!=0&&_f335._f328!=1) return; _f335._f328=1; _f335._f340=x8; MVUtil._f175(x9); } this._f354=function(x11,x12,x13) { if(_f335._f328!=1) return; _f335._f328=0; _f335._f340=null; MVUtil._f175(x13); } this._f351=function() { var x14=_f335._f340; if(!x14) return; var x15=x14.objType4RedLineTool; if(x15==-2) { _f335.removeEdge(x14); } } this._f350=function() { var x16=_f335._f340; if(!x16) return; var x17=x16.objType4RedLineTool; if(x17==-1) { _f335.removeVertex(x16); } } this._f352=function() { var x18=_f335._f340; if(!x18) return; var x19=x18.objType4RedLineTool; if(x19==-2) { var x20=_f335._f355(x18); if(x20[0]) { var x21=_f335._f341; var x22=null; var x23=null; if(x21) { x22=x21.getPointX(); x23=x21.getPointY(); } if(x22&&x23) _f335.addVertex(x20[1]+1,x22,x23); } } } this._f356=function(x24) { x24=(x24)?x24:((window.event)?event:null); if(_f65._f66=="IF") { _f335.mouseDownX=x24.clientX+document.body.scrollLeft; _f335.mouseDownY=x24.clientY+document.body.scrollTop; } else { _f335.mouseDownX=x24.pageX; _f335.mouseDownY=x24.pageY; } if(_f335._f328==1|| (_f335._f328==0&&_f335._f340!=null&&_f335._f340.node==MVUtil.getEventSource(x24)) ) { _f65._f357=_f335; _f335._f328=2; _f335.parent._f358(x24); _f335.lon=_f335.parent._f359(); _f335.lat=_f335.parent._f360(); MVUtil._f175(x24); return; } if((_f65._f357)!=_f335|| (x24!=null&&x24.button==2)) return; MVUtil._f175(x24); _f335._f152=1; _f335._f327=1; if(_f65._f66=="IF") { _f335._f324=x24.clientX+document.body.scrollLeft; _f335._f325=x24.clientY+document.body.scrollTop; } else { _f335._f324=x24.pageX; _f335._f325=x24.pageY; } } this.keepTwoPointsInHalfEarth=function(x25,x26,x27) { if(_f335.parent.wraparound) { if(_f335.parent._f255.maparea.length==1) { x26.areacode=_f335.parent._f255.centerArea; return; } var x28=_f335.parent.msi._f165-_f335.parent.msi._f166; var x29; if(x27) x29=x27.areacode; else x29=_f335.parent._f255.centerArea; var x30=MVUtil.keepInCSBoundary(_f335.parent,x26.getGeometry().getPointX()); var x31; if(x27) x31=MVUtil.keepInCSBoundary(_f335.parent,x27.getGeometry().getPointX()); else x31=MVUtil.keepInCSBoundary(_f335.parent,_f335.parent._f231());; _f335._f326[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(_f335.parent,x35); x36=MVUtil.keepInCSBoundary(_f335.parent,x36); var x37=x36-x35; if(x37>0) x35=x35+(_f335.parent.msi._f165-_f335.parent.msi._f166); else x36=x36+(_f335.parent.msi._f165-_f335.parent.msi._f166); if(Math.abs(x36-x35)>Math.abs(x37)) return Math.abs(x37); else return Math.abs(x36-x35); } if(_f335.parent.wraparound) { var x38=_f335._f338; if(_f335.getStatus()==1) { if(x38.length!=0) { var x39=0; var x40=Number.MAX_VALUE; var x41=MVUtil.keepInCSBoundary(_f335.parent,_f335.parent._f231()); for(var x42=0;x42x43) { x40=x43; x39=x42; } } _f335.keepTwoPointsInHalfEarth(x39,x38[x39],null); if(x39>0) { for(var x42=x39-1;x42>=0;x42--) { _f335.keepTwoPointsInHalfEarth(x42,x38[x42],x38[x42+1]); } } if(x39x43) { x45=x43; x46=x42; } } _f335.keepTwoPointsInHalfEarth(x46,x38[x46],null); if(x46>0) { for(var x42=x46-1;x42>=0;x42--) { _f335.keepTwoPointsInHalfEarth(x42,x38[x42],x38[x42+1]); } } if(x46_f335.parent.msi._f286) _f335.lat=_f335.parent.msi._f286; else if(_f335.lat<_f335.parent.msi._f287) _f335.lat=_f335.parent.msi._f287; if(_f335.gtype==1) { while(_f335._f338.length>0) { var x57=_f335._f338.pop(); _f335.parent.removeFOI(x57); } while(_f335._f339.length>0) { var x57=_f335._f339.pop(); _f335.parent.removeFOI(x57); } _f335._f338=new Array(); _f335._f339=new Array(); _f335.parent.removeFOI("-RL2RL"+_f335.id); _f335.parent.removeFOI("-RL10RL"+_f335.id); _f335._f326=new Array(); } if(_f335._f326!=null&&_f335._f326.length>=2 &&_f335.lon==_f335._f326[_f335._f326.length-2] &&_f335.lat==_f335._f326[_f335._f326.length-1]) return; var x58=null; var x59="-RL8RL"+_f335.id+"_"+(++_f335._f319); if(_f335._f329) { x58=new MVFOI(x59, MVSdoGeometry.createPoint(_f335.lon,_f335.lat,_f335.parent.srid),"", _f335._f329,_f335._f330,_f335._f331); } else { if(!_f335._f321) { _f335._f321=new MVStyleMarker(_f65._f363,"vector"); _f335._f321.setStrokeColor("000000"); _f335._f321.setStrokeWidth(1.5); _f335._f321.setFillColor("ff5555"); _f335._f321.setVectorShape("c:30"); } x58=new MVFOI(x59,MVSdoGeometry.createPoint(_f335.lon,_f335.lat,_f335.parent.srid), _f335._f321,null,12,12); } x58.enableInfoTip(false); x58._f297=true; x58.enableInfoWindow(false); x58.objType4RedLineTool=-1; x58.setEventListener(MVEvent.MOUSE_RIGHT_CLICK,_f335._f348); x58.setEventListener(MVEvent.MOUSE_OVER,_f335._f353); x58.setEventListener(MVEvent.MOUSE_OUT,_f335._f354); x58.setMouseCursorStyle("pointer"); x58.setBringToTopOnMouseOver(false); x58.setTopFlag(true); if(_f335._f345) x58.setZIndex(_f335.pointGenerateOnTopZIndex); if(_f335._f332&&_f335._f338.length==0) { x58.setEventListener(MVEvent.MOUSE_CLICK,function() { _f335._f328=0; if(_f335._f326.length<=2) return; _f335._f326.push(_f335._f326[0]); _f335._f326.push(_f335._f326[1]); _f335.generate(); if(_f335._f337) _f335._f337(); MVUtil.runListeners(_f335._f93,MVEvent.FINISH); return ; }); } _f335._f338.push(x58); _f335._f326.push(_f335.lon); _f335._f326.push(_f335.lat); if(_f335._f338.length==0) _f335.keepTwoPointsInHalfEarth(0,x58,null); else _f335.keepTwoPointsInHalfEarth(_f335._f338.length-1,x58,_f335._f338[_f335._f338.length-2]); _f335.parent.addFOI(x58); FOILineLen=(_f335._f326.length); if(FOILineLen>=4) { var x60=new MVFOI(("-RL6RL"+_f335.id+"_"+(++_f335._f320)), MVSdoGeometry.createLineString(_f335._f326.slice((FOILineLen-4)), (_f335.parent.srid)),_f335._f322,_f335._f3); x60.setTopFlag(_f335._f345); x60.enableInfoTip(false); x60.enableInfoWindow(false); x60.objType4RedLineTool=-2; x60.setEventListener(MVEvent.MOUSE_RIGHT_CLICK,_f335._f348); x60.setEventListener(MVEvent.MOUSE_OVER,_f335._f353); x60.setEventListener(MVEvent.MOUSE_OUT,_f335._f354); x60.setMouseCursorStyle("pointer"); x60.setBringToTopOnMouseOver(false); if(_f335._f338[_f335._f338.length-2].areacode<_f335._f338[_f335._f338.length-1].areacode) x60.areacode=_f335._f338[_f335._f338.length-2].areacode; else x60.areacode=_f335._f338[_f335._f338.length-1].areacode; _f335.parent.addFOI(x60); _f335._f339.push(x60); } if(_f335._f333&&FOILineLen>4) { var x61=new Array(FOILineLen+2); for(var x62=0;x62(x71*x71)) _f335._f327=2; } } this.getStatus=function() { return this.state; } this.init=function(x72) { if(!_f335._f346) { _f335._f346=new MVMapDecoration("",0.4,0.9); _f335._f346.afterDisAction=_f335.redlineInfoLink; _f335.parent.addMapDecoration(_f335._f346); _f335._f346.setDraggable(true); _f335._f346.setDraggable(true); _f335._f346.setVisible(false); } switch(x72) { case 1: this.gtype=x72; break; case 2: this.gtype=x72; break; default: this.gtype=x72=3; } if(!this._f321) this.setRenderingStyle(MVRedlineTool.STYLE_POINT,null); if(!this._f322) this.setRenderingStyle(MVRedlineTool.STYLE_LINE,null); if(!this._f323) this.setRenderingStyle(MVRedlineTool.STYLE_AREA,null); this.parent._f178=true; if(this.state==0) { if(_f65._f66=="IF") { this.parent._f224.attachEvent("onmousedown",this._f356); this.parent._f224.attachEvent("onmouseup",this._f361); this.parent._f224.attachEvent("onmousemove",this.mouse_move); } else { this.parent._f224.addEventListener("mousedown",this._f356,false); this.parent._f224.addEventListener("mouseup",this._f361,false); this.parent._f224.addEventListener("mousemove",this.mouse_move,false); } } _f65._f357=this; if(this._f333) { this._f334=new MVFOI("-RL10RL"+this.id, MVSdoGeometry.createPolygon([0,0,0,0,0,0,0,0],this.parent.srid), this._f323, this._f3); this._f334.enableInfoTip(false); this._f334.enableInfoWindow(false); this._f334.setClickable(false); this.parent.addFOI(this._f334); } while(this._f338.length>0) { var x73=this._f338.pop(); this.parent.removeFOI(x73); } while(this._f339.length>0) { var x73=this._f339.pop(); this.parent.removeFOI(x73); } this._f338=new Array(); this._f339=new Array(); this.parent.removeFOI("-RL2RL"+this.id); this.parent.removeFOI("-RL10RL"+this.id); if(this._f342!=null) this.parent.removeFOI(this._f342); this._f326=new Array(); this.state=1; this.parent._f255.attachEventListener("refreshFOI",this.refreshRedline); MVUtil.runListeners(this._f93,MVEvent.INIT,[MVToolBar.BUILTIN_REDLINE]); } this.setTextStyle=function(x74) { _f335.textStyle=x74; } this.setControlPanelVisible=function(x75) { this._f347=x75; if(this._f346) this._f346.setVisible(x75); } this.redlineInfoLink=function() { var x76=document.getElementById("finishLink_"+_f335.id); var x77=document.getElementById("clearLink_"+_f335.id); x76.onclick=function() { if(_f335.finishLinkClick) { _f335.finishLinkClick(); } _f335.generate(); if(_f335.getStatus()!=2) _f335.clear(); } x77.onclick=function() { if(_f335.clearLinkClick) { _f335.clearLinkClick(); } _f335.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._f326.length<6) { MVi18n._f6("MVRedlineTool.generate","MAPVIEWER-05512",null,this.parent?this.parent._f7:null); return; } else if(x78==2&&this._f326.length<4) { MVi18n._f6("MVRedlineTool.generate","MAPVIEWER-05512",null,this.parent?this.parent._f7:null); return; } else if(x78==1&&this._f326.length<2) { MVi18n._f6("MVRedlineTool.generate","MAPVIEWER-05512",null,this.parent?this.parent._f7:null); return; } var x79=this; var x80=function() { if(x79._f339.length>0) { if(!x79._f339[x79._f339.length-1].node) { setTimeout(x80,50); return ; } } var x81=null; if(x79._f338&&x79._f338[0]) { x81=x79._f338[0].areacode; for(var x82=1;x820) { var x83=x79._f339.pop(); x79.parent.removeFOI(x83); } x79._f339=new Array(); if(x79._f342!=null) x79.parent.removeFOI(x79._f342); x79.parent.removeFOI("-RL10RL"+x79.id); var x84=x79._f326.length; if(x78==3&&(x79._f326[0]!=x79._f326[x84-2]||x79._f326[1]!=x79._f326[x84-1])) { x79._f326.push(x79._f326[0]); x79._f326.push(x79._f326[1]); } var x85=null; switch(x78) { case 1: if(x79._f329) x85=new MVFOI("-RL2RL"+x79.id,MVSdoGeometry.createPoint(x79._f326[0],x79._f326[1],x79.parent.srid),"",x79._f329,x79._f330,x79._f331); else x85=new MVFOI("-RL2RL"+x79.id,MVSdoGeometry.createPoint(x79._f326[0],x79._f326[1],x79.parent.srid),x79._f321,x79._f3); break; case 2: x85=new MVFOI("-RL2RL"+x79.id,MVSdoGeometry.createLineString(x79._f326,x79.parent.srid),x79._f322,x79._f3); break; case 3: x85=new MVFOI("-RL2RL"+x79.id,MVSdoGeometry.createPolygon(x79._f326,x79.parent.srid),x79._f323,x79._f3); break; } x85.areacode=x81; x85.enableInfoTip(false); x85.enableInfoWindow(false); x85.setClickable(false); x85.setTopFlag(x79._f345); x79.parent.addFOI(x85); x79.parent._f178=false; if(_f335._f337) _f335._f337(); MVUtil.runListeners(_f335._f93,MVEvent.FINISH); } x80(); } } this.generateArea=this.generate; this.clear=function() { if(!this.parent) return ; var x86=false; while(this._f338.length>0) { var x87=this._f338.pop(); this.parent.removeFOI(x87); x86=true; } while(this._f339.length>0) { var x87=this._f339.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._f342!=null) this.parent.removeFOI(this._f342); if(_f65._f66=="IF") { this.parent._f224.detachEvent("onmousedown",this._f356); this.parent._f224.detachEvent("onmouseup",this._f361); this.parent._f224.detachEvent("onmousemove",this.mouse_move); } else { this.parent._f224.removeEventListener("mousedown",this._f356,false); this.parent._f224.removeEventListener("mouseup",this._f361,false); this.parent._f224.removeEventListener("mousemove",this.mouse_move,false); } if(_f335._f346) { _f335._f346.setVisible(false); var x88=_f335._f346.getContainerDiv(); for(var x89=0;x89=6&&this._f326[0]==this._f326[x93-2]&&this._f326[1]==this._f326[x93-1]) { var x94=MVSdoGeometry.createPolygon(this._f326,this.parent.srid); return x94; } else return null; } this.getSdoGeometry=function() { var x95=this._f326.length; var x96=null; if(x95>=6&&this._f326[0]==this._f326[x95-2]&&this._f326[1]==this._f326[x95-1]) x96=MVSdoGeometry.createPolygon(this._f326,this.parent.srid); else if(x95>=4) x96=MVSdoGeometry.createLineString(this._f326,this.parent.srid); else if(x95==2) x96=MVSdoGeometry.createPoint(this._f326,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._f326; } 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._f336=x100; else if(x99=="on_finish"||x99==MVEvent.FINISH) this._f337=x100; else if(x99==MVEvent.MODIFY) this._f344=x100; } this.attachEventListener=function(x101,x102) { MVUtil.attachEventListener(_f335._f93,x101,x102) } this.detachEventListener=function(x103,x104) { MVUtil.detachEventListener(_f335._f93,x103,x104); } } MVRedlineTool.prototype.setAutoClose=function(x0) { this._f332=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._f345=x2; } MVRedlineTool.prototype.setFillArea=function(x3) { this._f333=x3; } MVRedlineTool.prototype.getPointNumber=function() { return this._f338.length; } MVRedlineTool.prototype.getPointFOIs=function() { return this._f338; } MVRedlineTool.prototype.getLineFOIs=function() { return this._f339; } MVRedlineTool.prototype.setRenderingStyle=function(x4,x5) { if(x5&&!(typeof(x5)=="string"||(typeof(x5)=="object" &&x5.getXMLString!=null))) { MVi18n._f6("MVRedlineTool.setRenderingStyle","MAPVIEWER-05519","objStyle", this.parent?this.parent._f7:null); } else { switch(x4) { case MVRedlineTool.STYLE_POINT: if(!x5) { var x6=new MVStyleMarker(_f65._f363,"vector"); x6.setStrokeColor("000000"); x6.setStrokeWidth(1.5); x6.setFillColor("ff5555"); x6.setVectorShape("c:30"); this._f321=x6; } else this._f321=x5; break; case MVRedlineTool.STYLE_LINE: if(!x5) { var x7=''+ ''; var x8=new MVXMLStyle(_f65._f366,x7); this._f322=x8;} else this._f322=x5; break; case MVRedlineTool.STYLE_AREA: if(!x5) { var x8=new MVStyleColor(_f65._f367,"FF0000","FF0000"); x8.setFillOpacity(100); this._f323=x8; } else this._f323=x5; break; } } } MVRedlineTool.prototype._f368=function(x9) { var x10=this._f338.length; var x11=null; var x12=null; if(x9!=null) { if(isNaN(x9)) { var x13=0; for(;x13=0) { x11=this._f338[x9]; x12=x9; } else if(x9==x10) { x12=x9; } } return [x11,x12]; } MVRedlineTool.prototype._f355=function(x14) { var x15=this._f339.length; var x16=null; var x17=-1; if(x14!=null) { if(isNaN(x14)) { var x18=0; for(;x18=0) { x16=this._f338[x14]; x17=x14; } } return [x16,x17]; } MVRedlineTool.prototype.removeVertex=function(x19) { if(!this.editingMode.deletePoint) return; var x20=this._f368(x19); if(!x20||!x20[0]) return; var x21=x20[0]; var x22=x20[1]; var x23=this._f338.length; this._f338.splice(x22,1); var x24=(x22*2); this._f326.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._f339[x22-1]; if(!this.parent.wraparound) { x27.updateGeometry(MVSdoGeometry.createLineString(this._f326.slice((x24-2),(x24+2)), (this.parent.srid))); } x27=this._f339[x22]; this.parent.removeFOI(x27); this._f339.splice(x22,1); } else if(x25) { x27=this._f339[x22-1]; this.parent.removeFOI(x27); this._f339.splice((x22-1),1); } else if(x26) { x27=this._f339[x22]; this.parent.removeFOI(x27); this._f339.splice(x22,1); } if(this.parent.wraparound) { this.refreshRedline(true); } if(this._f344) this._f344(); MVUtil.runListeners(this._f93,MVEvent.MODIFY); } MVRedlineTool.prototype.removeEdge=function(x28,x29) { if(!this.editingMode.deleteLine) return; var x30=this._f355(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) { if(!this.editingMode.dragPoint) return; var x36=this._f368(x33); if(!x36||!x36[0]) return; var x37=x36[0]; var x38=x36[1]; if(x35>this.parent.msi._f286) x35=this.parent.msi._f286; else if(x350?true:false; var x42=(x38<(x40-1))?true:false; var x43=null; var x44=this; this._f343=function() { x44.moveToNewEdge(x41,x42,x38,x39,x37,x34,x35); if(x44._f344) x44._f344(); MVUtil.runListeners(x44._f93,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._f339[x47-1]; x52.updateGeometry(MVSdoGeometry.createLineString(this._f326.slice((x48-2),(x48+2)), (this.parent.srid))); } if(x46) { var x52=this._f339[x47]; x52.updateGeometry(MVSdoGeometry.createLineString(this._f326.slice(x48,(x48+4)), (this.parent.srid))); } } } MVRedlineTool.prototype.moveEdge=function(x53,x54,x55) { if(!this.editingMode.dragLine) return; var x56=this._f355(x53); if(!x56||!x56[0]) return; var x57=x56[0]; var x58=x56[1]; var x59=(x58*2); this._f326[x59]=this._f326[x59]+x54; this._f326[x59+1]=this._f326[x59+1]+x55; if(this._f326[x59+1]>this.parent.msi._f286) this._f326[x59+1]=this.parent.msi._f286; else if(this._f326[x59+1]this.parent.msi._f286) this._f326[x59+3]=this.parent.msi._f286; else if(this._f326[x59+3]0?true:false; var x63=(x58<(x61-2))?true:false; var x64=null; var x65=this; this._f343=function() { x65.moveToNewEdge2(x62,x63,x58,x59,x57); if(x65._f344) x65._f344(); MVUtil.runListeners(x65._f93,MVEvent.MODIFY); }; } MVRedlineTool.prototype.moveToNewEdge2=function(x66,x67,x68,x69,x70){ this._f338[x68].areacode=MVUtil.calAreaCodeFromCenter(this.parent,this._f326[x69]); this._f338[x68+1].areacode=MVUtil.calAreaCodeFromCenter(this.parent,this._f326[x69+2]); this._f338[x68].updateGeometry(MVSdoGeometry.createPoint(this._f326[x69],this._f326[x69+1], (this.parent.srid))); this._f338[x68+1].updateGeometry(MVSdoGeometry.createPoint(this._f326[x69+2],this._f326[x69+3], (this.parent.srid))); if(this.parent.wraparound) { this.refreshRedline(true); } else { x70.updateGeometry(MVSdoGeometry.createLineString(this._f326.slice(x69,(x69+4)), (this.parent.srid))); if(x66) { var x71=this._f339[x68-1]; x71.updateGeometry(MVSdoGeometry.createLineString(this._f326.slice((x69-2),(x69+2)), (this.parent.srid))); } if(x67) { var x71=this._f339[x68+1]; x71.updateGeometry(MVSdoGeometry.createLineString(this._f326.slice(x69+2,(x69+6)), (this.parent.srid))); } } x70.mouseDownX=null; x70.mouseDownY=null; } MVRedlineTool.prototype.addVertex=function(x72,x73,x74) { var x75=this._f368(x72); if(!x75||!x75[1]&&x72!=this._f338.length) return; var x76=x75[0]; var x77=x75[1]; var x78=this._f338.length; var x79=null; var x80="-RL8RL"+this.id+"_"+(++this._f319); if(this._f329) x79=new MVFOI(x80,MVSdoGeometry.createPoint(x73,x74,this.parent.srid), "",this._f329,this._f330,this._f331); else x79=new MVFOI(x80,MVSdoGeometry.createPoint(x73,x74,this.parent.srid), this._f321,null,12,12); if(this._f345) x79.setZIndex(this.pointGenerateOnTopZIndex); x79.enableInfoTip(false); x79._f297=true; x79.enableInfoWindow(false); x79.objType4RedLineTool=-1; x79.setEventListener(MVEvent.MOUSE_RIGHT_CLICK,this._f348); x79.setEventListener(MVEvent.MOUSE_OVER,this._f353); x79.setEventListener(MVEvent.MOUSE_OUT,this._f354); x79.setMouseCursorStyle("pointer"); x79.setBringToTopOnMouseOver(false); x79.setTopFlag(true); x79.areacode=MVUtil.calAreaCodeFromCenter(this.parent,x73); this._f338.splice(x77,0,x79); var x81=x77*2; this._f326.splice(x81,0,x73,x74); this.parent.addFOI(x79); if(this._f346&&!this._f346.isVisible()&&this._f347) this._f346.setVisible(true); if(this._f338.length==1) return ; var x82=x771) { MVi18n._f6("MVRectangleTool.setDivFillColor","MAPVIEWER-05519","opacity", this.parent?this.parent._f7: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._f323=x8; } MVRectangleTool.prototype._f504=function() { this._f487=this.parent._f359(); this._f488=this.parent._f360(); } MVRectangleTool.prototype._f505=function() { this._f489=this.parent._f359(); this._f490=this.parent._f360(); var x9=Math.abs(this._f489-this._f487); var x10=this.parent.msi._f165-this.parent.msi._f166; if(x9>x10) { if(this._f4870) x15++; if(x16>0) x16++; if(this._f66=="NS") { if(x15==0) x15=(2*this._f486); if(x16==0) x16=(2*this._f486); this._f682.style.width=Math.abs(x15-(2*this._f486))+'px'; this._f682.style.height=Math.abs(x16-(2*this._f486))+'px'; this._f682.style.clip="rect(0px, "+(x15)+"px, "+ (x16)+"px, 0px)"; } else { this._f682.style.width=x15+'px'; this._f682.style.height=x16+'px'; this._f682.style.clip="rect(0px, "+(x15+(2*this._f486))+"px, "+ (x16+(2*this._f486))+"px, 0px)"; } this._f682.style.visibility="visible"; } MVRectangleTool.prototype.generateArea=function() { if(this._f498!=3) return; this.parent.removeFOI("MVRectangleTool"+this.id); if(!this._f323) return; this._f683(); if(this._f487!=this._f489&&this._f488!=this._f490) { this.getRectangle(); var x19=new MVFOI("MVRectangleTool"+this.id,this._f365,this._f323,this._f483); x19.areacode=MVUtil.calAreaCodeFromCenter(this.parent,this._f487=x37|| x41<=0||x41>=x38|| x35<=0||x35>=document.body.clientWidth|| x36<=0||x36>=document.body.clientHeight) { return this.onmouseup(x34); } } }); this.parent._f255.attachEventListener("refreshFOI",this.refreshRetangle); MVUtil.runListeners(x22._f93,MVEvent.START,[MVToolBar.BUILTIN_DISTANCE]); } MVRectangleTool.prototype.clear=function() { this._f683(); this.parent.removeFOI("MVRectangleTool"+this.id); this._f498=0; this.parent._f362(); MVUtil.runListeners(this._f93,MVEvent.CLEAR); } MVRectangleTool.prototype.getRectangle=function() { if(this._f487!=this._f489&&this._f488!=this._f490) { var x42=this.parent.msi._f165-this.parent.msi._f166; if((this._f489-this._f487)this.parent.msi._f286) x60=this.parent.msi._f286; else if(x60this.parent.msi._f286) x61=this.parent.msi._f286 else if(x611) { MVi18n._f6("MVCircleTool.setPlotDivFillColor","MAPVIEWER-05519","opacity", this.parent?this.parent._f7:null); } else { this._f485.opacity=x3; } } MVCircleTool.prototype.setPlotDivZindex=function(x4) { if(x4!=null) { if(isNaN(x4)) { MVi18n._f6("MVCircleTool.setPlotDivZindex","MAPVIEWER-05519","zindex", this.parent?this.parent._f7:null); } else { this._f485.zIndex=x4; this._f484.style.zIndex=(x4-1); } } } MVCircleTool.prototype._f504=function() { this._f487=this.parent._f359(); this._f488=this.parent._f360(); } MVCircleTool.prototype._f505=function() { this._f489=this.parent._f359(); this._f490=this.parent._f360(); } MVCircleTool.prototype._f506=function() { if(this._f498!=3) { return; } var x5=this.parent._f72; var x6=this.parent._f74; var x7=Math.round((this._f487-this.parent._f231())*x5+(this.parent._f106()/2)); var x8=Math.round((this._f488-this.parent._f232())*(-x6)+(this.parent._f107()/2)); var x9=(this._f489-this._f487)*x5; var x10=(this._f490-this._f488)*(-x6); var x11=Math.round(Math.sqrt(x9*x9+x10*x10)); var x12=Math.floor(x5*(this.parent.msi._f165-this.parent.msi._f166)/2); if(x11>x12) { x11=x12; this._f495=Math.floor((this.parent.msi._f165-this.parent.msi._f166)/2); } else this._f495=x11/x5; var x13=2*(x11+this._f485._f486); var x14=2*(x11+this._f485.divHeight); var x15=x7-x11-Math.round((this._f485._f486)/2); var x16=x8-x11-Math.round((this._f485.divHeight)/2); this._f484.style.left=x15+'px'; this._f484.style.top=x16+'px'; this._f484.style.width=x13+'px'; this._f484.style.height=x14+'px'; this._f484.style.clip="rect(0px, "+x14+"px, "+x13+"px, 0px)"; this._f484.style.visibility="visible"; var x17=(this._f497+this.id+"PlotsDiv"); var x18=document.getElementById(x17); if(x18!=null) this._f484.removeChild(x18); x18=document.createElement("div"); x18.id=x17; x18.style.position="absolute"; x18.style.left=0+'px'; x18.style.top=0+'px'; this._f484.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._f255.attachEventListener("refreshFOI",this.refreshCircle); } MVCircleTool.prototype.clear=function() { this.parent.removeFOI(this._f497+this.id); this._f498=0; this.parent._f362(); MVUtil.runListeners(this._f93,MVEvent.CLEAR); } MVCircleTool.prototype.getCircle=function() { if(this._f498==3&&this._f495) return MVSdoGeometry.createCircle(this._f487,this._f488,this._f495,this.parent.srid); else if(this._f365!=null) return (this._f365); else return null; } MVCircleTool.prototype.getCirclePolygon=function() { if(this._f498==3&&this._f495) return MVSdoGeometry.createCirclePolygon(this._f487,this._f488,this._f495,this.parent.srid); else if(this._f365!=null) return (this._f365); else return null; } MVCircleTool.prototype.getRadius=function(x56) { if(!x56) return MVSdoGeometry.getDistance(this._f487,this._f488,this._f489,this._f490,this.parent.srid); else return MVSdoGeometry.getDistance(this._f487,this._f488,this._f489,this._f490,this.parent.srid,x56); } MVCircleTool.prototype.getCenter=function() { return MVSdoGeometry.createPoint(this._f487,this._f488,this.parent.srid); } MVCircleTool.prototype.getCircleFOI=function() { return this.parent.getFOI(this._f497+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._f493=x60; else if(x59=="on_finish"||x59==MVEvent.FINISH) this._f337=x60; else if(x59=="on_drag"||x59==MVEvent.DRAG) this._f494=x60; } MVCircleTool.prototype.attachEventListener=function(x61,x62) { MVUtil.attachEventListener(this._f93,x61,x62) } MVCircleTool.prototype.detachEventListener=function(x63,x64) { MVUtil.detachEventListener(this._f93,x63,x64); } MVCircleTool.prototype.getStatus=function() { return this._f498; } MVCircleTool.prototype.setAreaStyle=function(x65) { this._f323=x65; } function MVi18n() { } MVi18n._f550=null; MVi18n._f551=null; MVi18n._f552=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._f6=function(x0,x1,x2,x3) { if(x2) x2=" ("+x2+")"; else x2=""; if(x3) x3("["+x0+"] "+MVi18n._f464(x1)+x2); else MVi18n.alert("["+x0+"] "+MVi18n._f464(x1)+x2); } MVi18n._f464=function(x4) { if(MVMessages[x4]) return x4+": "+MVMessages[x4]; else return x4; } MVi18n._f349=function(x5) { if(MVMessages[x5]) return MVMessages[x5]; else return ''; } MVi18n._f553=function() { if(MVi18n.URL==null) return; var localDomain=MVUtil.isLocalDomain(MVi18n.URL); var xmlHttp=localDomain||MVMapView._f117; var url=null; url=MVi18n.URL+"/mcserver"; try { var _f289=MVUtil.getXMLHttpRequest(xmlHttp); _f289.open("POST",MVUtil._f119(url),true); _f289.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); _f289.onreadystatechange=MVUtil._f103(_f289,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; _f289.send(MVUtil._f120(url,params)); } catch(ex) { MVi18n._f6("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._f550=x6; MVi18n._f551=x7; MVi18n._f552=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._f551) { var x11=MVi18n._f551; x11(x10); } else alert(x10); } function MVMapView(x0,x1) { if(!x0) { MVi18n._f6("MVMapView.constructor","MAPVIEWER-05519","mapDiv"); return ; } this._f144=_f583++; MVUtil.objArray.push(this); var x2=this; if(!MVi18n._f551) MVi18n.addBehavior("func",alert,"text"); this.center=null; this.originalCenter=null; this.reCenterTag=false; this._f90=0; this._f91=0; this._f72=0; this._f74=0; this.tileWidth=0; this.tileHeight=0; this._f733=200; this._f734=200; this._f735=0; this._f736=0; this._f737=1; this._f738=0; this._f739=0; this._f53=0; this._f740=false; this._f278=false; this._f706=0; this._f707=0; this._f741=null; this._f742=null; this._f743=0.0; this._f744=0.0; this._f745=0.0; this._f746=0.0; this._f747=0.0; this._f748=0.0; this._f71=0.0; this._f305=0.0; this._f299=0.0; this._f73=0.0; this._f749=false; this.msi=null; this._f750=false; this._f751=true; this._f180=null; this._f752=new Array(); this._f753=new Array(); this._f754=null; this._f136=new Array(); this.mapLayerNumber=0; this._f755=new Array(); this._f76=null; this._f255=null; this._f693=null; this._f688=2; this._f689=4; this._f690=4; this._f756=null; this._f200=false; this._f757=0; this._f88=false; this._f758=new Array(); this._f220=null; this._f221=false; this._f225=true; this._f759=null; this.srid=null; this._f760=null; this._f761=0; this._f762=true; this._f763="one_time"; this._f764=false; this._f765=null; this._f766=false; this._f767=false; this._f768=false; this._f769=false; this._f770=null; this._f771=1; this.centerMarkUrl=null; this.centerMarkW=0; this.centerMarkH=0; this._f93=new Array(); var x3=String(document.location); var x4=x3.indexOf("//"); this._f466=_f65._f612(); this._f772=this._f466; this._f4=this._f466; this._f218="default"; this._f217="move"; this._f773="default"; if(x1) { this._f772=x1; this._f4=x1; if(MVUtil._f5(x1,'/')) { this._f772=x1.substring(0,x1.length-1); this._f4=x1.substring(0,x1.length-1); } } this._f4=MVUtil.getAbsoluteURL(this._f4); _f65._f549=this._f4+"/foi"; if(_f65._f141==_f65._f607) _f65._f141=this._f4+_f65._f607; MVi18n.setURL(this._f4); if(x0==null) return null; MVUtil._f197(x0); this.real_base_div=x0; if(this.real_base_div.style.position!="absolute") { this.real_base_div.style.position="relative"; } this._f224=document.createElement("div"); this.real_base_div.appendChild(this._f224); this._f224.style.position="absolute"; this._f224.style.left=MVUtil._f26(0); this._f224.style.top=MVUtil._f26(0); this._f224.style.width="100%"; this._f224.style.height="100%"; MVUtil._f145(this._f224); MVUtil._f145(this.real_base_div); this._f224.style.overflow="hidden"; this._f435=document.createElement("img"); this._f435.src=_f65._f141+"transparent."+(_f65._f66=="IF"?"gif":"png"); this._f435.src+="?refresh="+(new Date()).getTime(); this._f435.style.position="absolute"; this._f435.style.left=MVUtil._f26(0); this._f435.style.top=MVUtil._f26(0); this._f435.onload=MVUtil._f103(this,function(){_f65._f617=true;}); this._f224.appendChild(this._f435); this._f302=document.createElement("div"); this._f302.style.position="absolute"; this._f302.style.left=MVUtil._f26(0); this._f302.style.top=MVUtil._f26(0); this.real_base_div.appendChild(this._f302); this.div=null; var x5=this.getBrowserType(); this.toolBarContainer=null; this._f774(); MVUtil._f145(this.div); this._f775=""; this._f310=0; this._f311=0; this._f537(); this._f692=null; this._f78=document.createElement("div"); MVUtil._f145(this._f78); this._f78.style.position="absolute"; this._f78.style.zIndex=125; this.div.appendChild(this._f78); this._f776=null; this._f777=null; this._f625=null; this._f778=null; this._f779=null; this._f780=null; this._f781=new _f782(); this._f783=true; this.draggingEnabled=true; this._f784="zoomin"; this._f403=null; this._f785=true; this._f786=null; this._f787=false; this._f788=null; this._f789=null; this._f790=0; this._f791=0; this._f792=false; this._f793=0; this._f794=null; this._f795=5; this._f178=false; this._f89=new Array(); this.infoTipDiv=null; this._f173=0; this._f171=0; this._f796=null; this._f797=null; this._f798=null; this._f799=null; this._f800=null; this._f801=null; this._f802=null; this._f803=null; this._f500=false; this._f533=null; this._f63="PNG24"; this.foiBgColor=null; this.zoomAnimationEnabled=true; this._f804=false; this.dragCoords=null; this.wraparound=false; this.maptype=null; this._f805=true; this._f7=null; this._f806=0; this._f807=0; this._f808=0; this._f809=0; this._f810=0; this._f811=-1; this._f812=-1; this.foiGroupLayer=null; this._f813=null; this._f814=true; if(!MVi18n.isFetched()) MVi18n._f553(); return this; } MVMapView.prototype._f774=function() { if(_f65._f66=="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"; this.div.style.zIndex=80; this.div.style.left=MVUtil._f26(0); this.div.style.top=MVUtil._f26(0); this._f302.style.left=MVUtil._f26(0); this._f302.style.top=MVUtil._f26(0); this._f139=0; this._f140=0; this._f423=this._f139; this._f424=this._f140; this._f815=0; this._f816=0; this._f224.appendChild(this.div); var x0=document.createElement("table"); x0.style.zIndex=9999; x0.style.height=MVUtil._f26(15); x0.style.position="absolute"; x0.style.right=MVUtil._f26(0); x0.style.bottom=MVUtil._f26(0); x0.style.backgroundColor="white"; this._f224.appendChild(x0); var x1=document.createElement("tbody"); x0.appendChild(x1); this.toolBarContainer=document.createElement("tr"); x1.appendChild(this.toolBarContainer); } MVMapView.prototype._f817=function(x2,x3) { this._f815=x2-this._f139; this._f816=x3-this._f140; } MVMapView.prototype._f556=function(x4,x5) { this.reCenterTag=true; this._f139=x4-this._f815; this._f140=x5-this._f816; this._f423=MVUtil._f80(this.div); this._f424=MVUtil._f81(this.div); var x6=this._f818(this._f423,this._f139,this._f424,this._f140); this._f139=x6.left; this._f140=x6.top; var x7=this._f90+(this._f423-this._f139)/this._f72; var x8=this._f91-(this._f424-this._f140)/this._f74; this._f819(this._f139-this._f423,this._f140-this._f424, x7,x8); var x9=this._f90; var x10=this._f91; this._f90=x7; this._f91=x8; if(x9!=this._f90||x10!=this._f91) { this._f749=true; } MVUtil._f70(this.div,this._f139,this._f140); MVUtil._f70(this._f302,this._f139,this._f140); } MVMapView.prototype.addEventListener=function(x11,x12) { this.setEventListener(x11,x12); } MVMapView.prototype.setEventListener=function(x13,x14) { if(x13==MVEvent.RECENTER) { this._f778=x14; } else if(x13==MVEvent.MOUSE_CLICK) { this._f625=x14; } else if(x13==MVEvent.MOUSE_RIGHT_CLICK) { this._f779=x14; } else if(x13==MVEvent.ZOOM_LEVEL_CHANGE) { this._f776=x14; } else if(x13==MVEvent.BEFORE_ZOOM_LEVEL_CHANGE) { this._f777=x14; } else if(x13==MVEvent.MOUSE_DOUBLE_CLICK) { this._f403=x14; } else if(x13==MVEvent.INITIALIZE) { this.initializeListener=x14; } } MVMapView.prototype.attachEventListener=function(x15,x16) { MVUtil.attachEventListener(this._f93,x15,x16) } MVMapView.prototype.detachEventListener=function(x17,x18) { MVUtil.detachEventListener(this._f93,x17,x18); } MVMapView.prototype.init=function() { this.setFOILayersSize(); MVUtil._f70(this.div,0,0); MVUtil._f70(this._f302,0,0); if(this._f76._f77.length>0) this._f76.deleteInfoWindow(this._f76._f77[0]); this._f139=0; this._f140=0; this._f423=this._f139; this._f424=this._f140; this._f815=0; this._f816=0; this.setZoomLevel(this._f53); this._f820(); var x19=MVSdoGeometry.createPoint(this._f90,this._f91,this.srid); x19=this._f821(x19); this._f90=x19.getPointX(); this._f91=x19.getPointY(); this._f790=this._f106(); this._f791=this._f107(); if(this._f794) clearTimeout(this._f794); this.setLoadingIconVisible(true); this._f706=this._f738+(this._f735/2*this.tileWidth); this._f707=this._f739+(this._f736/2*this.tileHeight); this._f822(); if(!this._f88) { if(this._f823()) { this._f823=true; return ; } } if(this._f693&&!this._f693._f620&&!this._f693._f123) this._f824(this._f693); if(this.navigationPanel&&!this.navigationPanel._f123) this.navigationPanel.init(this._f224,this); for(var x20=0;x200) { var x21=this._f136.pop(); x21._f170(); } this._f136=null; if(!this._f76) { this._f76._f170(); this._f76=null; } while(this._f755&&this._f755.length>0) { var x22=this._f755.pop(); x22._f170(); } while(this.foiGroupArray&&this.foiGroupArray.length>0) { var x23=this.foiGroupArray.pop(); x23._f170(); } this._f755=null; if(this._f255) this._f255._f170(); this._f255=null; if(this._f770) while(this._f770.length>0) { var x24=this._f770.pop(); x24._f170(); } this._f770=null; if(this._f220) { this._f220._f170(); this._f220=null; } if(this.toolBar) { this.toolBar._f170(); this.toolBar=null; } MVUtil._f197(this._f224,this._f7); this._f435=null; this._f224=null; this._f302=null; this._f78=null; this.div=null; } MVMapView.prototype._f820=function() { this.tileWidth=this._f752[this._f53]; this.tileHeight=this._f753[this._f53]; this._f826(); } MVMapView.prototype._f826=function() { this._f738=-this.tileWidth*this._f737; this._f739=-this.tileHeight*this._f737; var x25=this._f106()/this.tileWidth; this._f735=parseInt(Math.ceil(x25/2)+1)*2+1; x25=this._f107()/this.tileHeight; this._f736=parseInt(Math.ceil(x25/2)+1)*2+1; this._f706=this._f738+(this._f735/2*this.tileWidth);this._f707=this._f739+(this._f736/2*this.tileHeight);var x26=this.msi.mapConfig.zoomLevels[this._f53]; this._f72=x26.tileImageWidth/x26.tileWidth;this._f74=x26.tileImageHeight/x26.tileHeight;} MVMapView.prototype._f822=function() { this._f742=new _f377(this.msi.mapConfig,this._f90,this._f91,this._f53);this._f741=new _f377(this.msi.mapConfig,this._f90,this._f91,this._f53);this._f741._f383(-(Math.ceil(this._f735/2)-1),+Math.ceil(this._f736/2)-1); } MVMapView.prototype._f126=function() { this._f745=this._f741.minX; this._f746=(this._f741.minY+this._f741._f379); this._f747=(this._f741.minX+(this._f741._f378*this._f735)); this._f748=(this._f741.minY-(this._f741._f379*(this._f736-1))); this._f71=this._f827(this._f90); this._f305=this._f828(this._f91); this._f299=this._f829(this._f90); this._f73=this._f830(this._f91); } MVMapView.prototype.display=function() { var x27=this; var x28=function() { var x29=0; if(!x27._f224) return ; if(x27._f224.offsetWidth) x29=parseInt(x27._f224.offsetWidth+""); else if(typeof(x27._f224.offsetWidth)=="undefined") x29=x27._f106(); var x30=0; if(x27._f224.offsetHeight) x30=parseInt(x27._f224.offsetHeight+""); else if(typeof(x27._f224.offsetHeight)=="undefined") x30=x27._f107(); if(!MVi18n.isFetched()||x29<=0||x30<=0||!x27.tileLayersConfigLoaded()|| !_f65._f617||!x27.msi) { setTimeout(x28,200); return ; } var x31=function() { x27.init(); if(!x27._f769) { x27._f362(); x27._f769=true; } x27._f88=true; while(x27._f89.length>0) { var x32=x27._f89.shift(); if(x32.func=="refreshFOIs") x32.obj._f75(x32.params[0],x32.params[1],x32.params[2],x32.params[3],x32.params[4],x32.params[5],x32.params[6],x32.params[7],true,x32.params[8]); else if(x32.func=="zoomToRectangle") x32.obj.zoomToRectangle(x32.params[0],x32.params[1]); else if(x32.func=="refresh") x32.obj.refresh(x32.params[0]); } } x27._f831(x31); } x28(); } MVMapView.prototype.setCenter=function(x33,x34) { this.reCenterTag=true; this.center=x33; this.originalCenter=x33 if(this._f88) this._f831(null,x34); } MVMapView.prototype._f831=function(x35,x36) { if(!this.center) { if(x35) x35(); return ; } if(!this.msi) { MVi18n._f6("MVMapView.setCenter","MAPVIEWER-05518",null,this._f7); return ; } this.srid=this.msi.getSrid(); var x37=this.center; if(!this.reCenterTag&&this.originalCenter!=null) x37=this.originalCenter; if(x37) { if(!x37.srid) x37.srid=this.srid; this.center=null; if(!(x37.sdo_point)) { MVi18n._f6("MVMapView.setCenter","MAPVIEWER-05505",null,this._f7); return ; } var x38=this; var x39=function(x40) { if(x40) x37=x40; if(x38._f88) x37=x38._f821(x37); var x41=false for(var x42=0;x42((x38._f835+x38._f836)/4)?300:200; x38._f839=0; x38._f840=0; x38._f841=0; x38.smoothPan(x36); } else { x38._f90=x37.getPointX(); x38._f91=x37.getPointY(); x38.display(); if(x38._f778) { x38._f778(); } MVUtil.runListeners(x38._f93,MVEvent.RECENTER); } if(x38._f693) { x38._f693._f701(x38); } } if(x35) x35(); } if(this.srid!=x37.srid) { this.reCenterTag=true; x37=this.transformGeom(x37,this.srid,null,x39); } else x39(); } else { if(x35) x35(); } } MVMapView.prototype.setCenterLon=function(x43) { this._f90=x43; } MVMapView.prototype.setCenterLat=function(x44) { this._f91=x44; } MVMapView.prototype.setCenterMark=function(x45,x46,x47) { if(this._f842!=undefined) { this._f224.removeChild(this._f842); delete this._f842; } if(x45==null) return ; this.centerMarkUrl=x45; this.centerMarkW=x46; this.centerMarkH=x47; var x48=document.createElement("img");x48.src=x45; x48.style.zIndex=2000; x48.style.position="absolute"; x48.style.width=MVUtil._f26(x46); x48.style.height=MVUtil._f26(x47); x48.style.left=MVUtil._f26((this._f106()-x46)/2); x48.style.top=MVUtil._f26((this._f107()-x47)/2); this._f224.appendChild(x48); this._f842=x48; } MVMapView.prototype.setZoomLevel=function(x49) { if(isNaN(x49)) { MVi18n._f6("MVMapView.setZoomLevel","MAPVIEWER-05506",null,this._f7); return; } if((!this._f88)&&this.msi==null) { this._f53=x49; return ; } if(x49<0) x49=0; else if(x49>this._f757) x49=this._f757; if(this._f88) this.zoomTo(x49); else { this._f53=x49; this._f820(); } } MVMapView.prototype.setHomeMap=function(x50,x51) { this._f760=x50; if(x51) this._f761=x51; } MVMapView.prototype.setMapBuffer=function(x52,x53) { this._f733=x52; this._f734=x53; } MVMapView.prototype._f843=function(x54,x55) { var x56=false; var x57=this; var x58=function(x59) { if(x59) { x57._f90=x59.getPointX(); x57._f91=x59.getPointY(); x57.center=x59; } x57.msi=x54.msi; x57.srid=x57.msi.getSrid(); x57.maptype=x57.msi.mapConfig.coordSys.type; if(x57._f53>(x57.msi.zoomCount-1)) { x57._f53=x57.msi.zoomCount-1; } for(var x60=0;x600) x69=parseInt(x70.substring(0,x70.indexOf("px"))); else x69=parseInt(x70); if(x69) return x69; } } if(this._f224.offsetWidth) x69=this._f224.offsetWidth; else if(this._f224.width) x69=parseInt(this._f224.width+""); return x69; } MVMapView.prototype._f107=function() { var x71=0; if(this._f224.style&&this._f224.style.height) { var x72=this._f224.style.height+""; if(x72.indexOf("%")<0) { if(x72.indexOf("px")>0) x71=parseInt(x72.substring(0,x72.indexOf("px"))); else x71=parseInt(x72); if(x71) return x71; } } if(this._f224.offsetHeight) x71=this._f224.offsetHeight; else if(this._f224.width) x71=parseInt(this._f224.width+""); return x71; } MVMapView.prototype._f827=function(x73) { var x74=this._f106()/2; return (0-x74)/this._f72+x73; } MVMapView.prototype._f828=function(x75) { var x76=this._f107()/2; return -1.0*(x76-1)/this._f74+x75; } MVMapView.prototype._f829=function(x77) { var x78=this._f106()/2; return (x78-1)/this._f72+x77; } MVMapView.prototype._f830=function(x79) { var x80=this._f107()/2; return -1.0*(0-x80)/this._f74+x79; } MVMapView.prototype.getCenter=function() { var x81=MVSdoGeometry.createPoint(this._f90,this._f91,this.srid); return x81; } MVMapView.prototype._f231=function() { return this._f90; } MVMapView.prototype._f232=function() { return this._f91; } MVMapView.prototype.getMapWindowBBox=function() { this._f126(); var x82=MVSdoGeometry.createRectangle(this._f71,this._f305, this._f299,this._f73,this.srid); return x82; } MVMapView.prototype.getMouseLocation=function() { var x83=MVSdoGeometry.createPoint(this._f743,this._f744,this.srid); return x83; } MVMapView.prototype._f359=function() { return this._f743; } MVMapView.prototype._f360=function() { return this._f744; } MVMapView.prototype.getZoomLevel=function() { return this._f53; } MVMapView.prototype.getMaxZoomLevel=function() { if(!this.msi) { MVi18n._f6("MVMapView.getMaxZoomLevel","MAPVIEWER-05526",null,this._f7); return -1; } else return this.msi.getMaxZoomLevel(); } MVMapView.prototype.enableMapBoundConstraint=function(x84) { return this._f805=x84; } MVMapView.prototype.getBaseDiv=function() { return this._f224; } MVMapView.prototype._f844=function() { return this.div; } MVMapView.prototype._f845=function() { return this._f742._f379; } MVMapView.prototype._f846=function() { return this._f742._f378; } MVMapView.prototype._f847=function() { return this.msi; } MVMapView.prototype._f848=function() { return this._f745; } MVMapView.prototype._f849=function() { return this._f746; } MVMapView.prototype._f850=function() { return this._f747; } MVMapView.prototype._f851=function() { return this._f748; } MVMapView.prototype.getScreenMinLon=function() { return this._f71; } MVMapView.prototype._f852=function() { return this._f305; } MVMapView.prototype._f853=function() { return this._f299; } MVMapView.prototype._f854=function() { return this._f73; } MVMapView.prototype._f855=function() { return this._f72; } MVMapView.prototype._f856=function() { return this._f74; } MVMapView.prototype.zoomIn=function(x85) { this.zoomTo(this._f53+1,x85); } MVMapView.prototype.zoomOut=function(x86) { this.zoomTo(this._f53-1,x86); } MVMapView.prototype.setZoomAnimationEnabled=function(x87) { this.zoomAnimationEnabled=x87; } MVMapView.prototype.zoomTo=function(x88,x89) { var x90=this; if(x90._f811<0) x90._f811=x90._f53; var x91=function() { x90._f857=0; x90._f858=null; if(x88>=x90._f757) { x88=x90._f757; } else if(x88<0) { x88=0; } if(x90._f812==x90._f53&&x88==x90._f53&&!x89) { if(x90.navigationPanel) x90.navigationPanel.updateSliderBar(); return false; } x90._f649(); x90._f53=x88; if(x90.navigationPanel) x90.navigationPanel.updateSliderBar(); x90._f53=x88; x90._f820(); var x92=false; var x93=MVSdoGeometry.createPoint(x90._f90,x90._f91,x90.srid); var x94=function(x95) { if(x95) x89=x95; if(x90._f754) { clearTimeout(x90._f754); x90._f754=null; } if(x89) { if(x89.getPointX()!=x90._f90||x89.getPointY()!=x90._f91) { x92=true; } x90._f90=x89.getPointX(); x90._f91=x89.getPointY(); } if(x90._f777&&x90._f811!=x90._f53) x90._f777(x90._f811,x90._f53); if(x90._f811!=x90._f53) MVUtil.runListeners(x90._f93,MVEvent.BEFORE_ZOOM_LEVEL_CHANGE,[x90._f811,x90._f53]); var x96=function() { if(Math.abs(x90._f811-x90._f53)==1&&x90._f809<=1&&x90.zoomAnimationEnabled) { for(var x97=0;x97((x114._f835+x114._f836)/4)?300:200; x114._f839=0; x114._f840=0; x114._f841=0; x114.smoothPan(); return; } } } x114.zoomTo(x113,x112); } if(x112.srid&&(this.srid!=x112.srid)) x112=this.transformGeom(x112,this.srid,null,x115); else x115(); } MVMapView.prototype.addMapTileLayer=function(x117,x118) { if(x117.getType&&x117.getType()=="MVExternalAPIMapTileLayer") this._f859(x117); else { if(x117._f105==undefined|| x117._f105==null|| MVUtil._f236(x117._f105)=="") { MVi18n._f6("MVMapView.addMapTileLayer","MAPVIEWER-05507",null,this._f7); return ; } if(!this._f533&&this.compareBaseURL(x117._f418)) { var x119=x117._f105.split("."); if(x119.length>=2) { _f65._f534(x119[0]); this._f534(x119[0]); } } x117.parent=this; if(!x117._f418) { if(this._f4) { if(MVUtil._f5(this._f4,'/')) x117._f418=this._f4+'mcserver'; else x117._f418=this._f4+'/mcserver'; } else { MVi18n._f6("MVMapView.addMapTileLayer","MAPVIEWER-05504",null,this._f7); return ; } } x117._f557=x117._f418; if(x117==null||!x117.getType) { MVi18n._f6("MVMapView.addMapTileLayer","MAPVIEWER-05519","mapTileLayer",this._f7); return; } this._f136.push(x117); } var x120=this; var x121=function() { x120.mapLayerNumber++; if(!x117.zIndex) x117.zIndex=x120._f136.length+1; x120._f843(x117,AfterSetProvider); x120._f561(); function AfterSetProvider(x0) { x117.config=_f567[x117._f105]; if(!x117.isExtAPITileLayer()) { var x1=x120.getTileLayerControl(x117); x117.layerControl=x1; x120.combineTileLayers(); } if(x0&&x120._f136.length>1) { if(!x120._f221) MVi18n._f6("MVMapView.addMapTileLayer","MAPVIEWER-05528",null,this._f7); for(var x2 in x120._f136) { if(x120._f136[x2]!=x117) x120.removeMapTileLayer(x120._f136[x2]); } } if(x120._f88) { if(!x0) { if(x117.isExtAPITileLayer()) { var x3=function(x4) { x117.setCenterAndZoomLevel(x4.getPointX(),x4.getPointY(),x120._f53); } var x5=MVSdoGeometry.createPoint(x120._f90,x120._f91,x120.srid); x120.transformGeom(x5,x117.srid,null,x3); } else { if(x117.layerControl) x117.layerControl._f440(x120._f106(),x120._f107(),x120._f90,x120._f91); } } else { x120.display(); } if(x120._f693) { x120._f693._f701(x120); } if(x120.navigationPanel&&x120.navigationPanel.getMaxZoomLevel()!=x120._f757) { x120.navigationPanel.updateSlider(); } } if(x118) x118(); if(x120._f220&&x120._f220._f211&&x120._f220._f211._f136.length==0) x120._f220.addOverviewMapTileLayer(); if(x120._f220&&x120._f220._f211) x120._f220._f227(); } } _f65._f595(x117,x121,this._f7); } MVMapView.prototype.addBaseMapLayer=MVMapView.prototype.addMapTileLayer; MVMapView.prototype.getMapTileLayerDefinition=function(x122,x123,x124) { if(!x124) x124=null; var x125=new MVMapTileLayer(x123,x124); if(!x125._f418) { if(this._f4) { if(MVUtil._f5(this._f4,'/')) x125._f418=this._f4+'mcserver'; else x125._f418=this._f4+'/mcserver'; } else { MVi18n._f6("MVMapView.getMapTileLayerDefinition","MAPVIEWER-05504",null,this._f7); return ; } } x125._f557=x125._f418; _f65._f595(x125,x122,this._f7); } MVMapView.prototype.removeMapTileLayer=function(x126) { var x127=0; var x128=x126._f105; var x129=x126._f418; if(x126._f558){ var x130=x126._f558 for(var x131=0;x1311) { x130._f447[x131]=x130._f447[x130._f447.length-1]; x130._f447.pop(); var x132=x130.getTransparent(); if(x130.layerControl) x130.layerControl._f420=x132; x130.refresh(true); if(this._f220) this.removeOverviewMapTileLayer(x128,x129); x126._f558=null; return; } else { x130._f447[x131]=null; x130._f447.pop(); x126=x130; x126._f558=null; } } } } for(;x1270) { var x134=this; var x135=this._f136[this._f136.length-1]; function AfterSetProvider(x0) { if(x134._f88) { if(!x0) { if(x135.isExtAPITileLayer()) { var x1=function(x2) { x135.setCenterAndZoomLevel(x2.getPointX(),x2.getPointY(),x134._f53); } var x3=MVSdoGeometry.createPoint(x134._f90,x134._f91,x134.srid); x134.transformGeom(x3,x135.srid,null,x1); } else { if(x135.layerControl) x135.layerControl._f440(x134._f106(),x134._f107(),x134._f90,x134._f91); } } else { x134.display(); } if(x134._f693) { x134._f693._f701(x134); } if(x134.navigationPanel&&x134.navigationPanel.getMaxZoomLevel()!=x134._f757) { x134.navigationPanel.updateSlider(); } } } this._f843(x135,AfterSetProvider); } } MVMapView.prototype.removeOverviewMapTileLayer=function(x136,x137) { if(this._f220._f211._f136.length>0) { var x138=this._f220._f211._f136[0]; if(x138._f105==x136&&x138._f418==x137) { this._f220._f211.removeMapTileLayer(x138); this._f220._f227(); } } } MVMapView.prototype._f537=function() { if(!this._f76) this._f76=new _f300(this,"1"); if(!this.infoLayer2) this.infoLayer2=new _f300(this,"2"); this._f255=new _f270(this); this._f255.setSize(Math.ceil(2*(this._f106())), Math.ceil(2*(this._f107()))); MVUtil._f70(this._f255._f56(), (this._f106()-this._f255._f84())/2, (this._f107()-this._f255._f85())/2); } MVMapView.prototype.addGroupFOI=function(x139) { this._f151=0; this._f860=x139; this.startAddGroupFOI(); } MVMapView.prototype.startAddGroupFOI=function() { for(var x140=0;x140<11000;x140++) { if(this._f151=2) { _f65._f534(x142[0]); this._f534(x142[0]); } } if(!x141||!x141.id) return false; if(x141.gtype%10==1) x141._f242=true; if(x141.id!="") { var x143=x141.id.substr(0,3); if(x143!="-RL") { for(var x144=0;x1440) this._f795=x155; this._f764=true; this._f763=x153; this.marqueeZoom(x154); } MVMapView.prototype.marqueeZoom=function(x156) { if(!this._f764) return ; this._f766=false; this._f768=false; var x157=this._f765; if(!x157) { x157=new MVRectangleTool(null,null); x157.setDivFillColor("#555555",0.3); this.addRectangleTool(x157); this._f765=x157; } if(x156) x157.setDivStyle(x156); x157.init(); var x158=MVUtil._f103(x157,function() { this.clear(); var x159=null; if(this.parent.marqueeRectGeom) x159=this.parent.marqueeRectGeom.getMBR(); if(x159&& (this._f763=="prompt"|| Math.abs(x159[2]-x159[0])*this.parent._f72>=this.parent._f795&& Math.abs(x159[3]-x159[1])*this.parent._f74>=this.parent._f795)) { var x160=document.getElementById("mv_mrqzm_msg"); if(x160) x160.parentNode.removeChild(x160); this.parent.zoomToRectangle(this.parent.marqueeRectGeom); } if(this.parent._f763!="one_time") { this.parent.marqueeZoom(); } }); var x161=MVUtil._f103(x157,function() { this.parent._f766=true; this.parent.marqueeRectGeom=x157.getRectangle(); x158(); }); var x162=MVUtil._f103(x157,function() { this.parent.marqueeRectGeom=x157.getRectangle(); x158(); this._f764=false; }); var x163=MVUtil._f103(x157,function(x164) { this.parent._f767=true; x164=(x164)?x164:((window.event)?event:null); MVUtil._f175(x164); }); var x165=MVUtil._f103(x157,function(x166) { x166=(x166)?x166:((window.event)?event:null); if(this.parent._f767) { MVUtil._f175(x166); x158(); } }); var x167=MVUtil._f103(x157,function() { this.parent._f766=true; this.parent.marqueeRectGeom=x157.getRectangle(); if(!this.parent.marqueeRectGeom) { this.clear(); this.parent.marqueeZoom(); return ; } var x168=this.parent; var x169=x157.getRectangleDIV(); MVUtil._f162(x169,"crosshair"); if(MVi18n._f349("marqueeZoomHint")) { x169.onmouseover=function(x170) { var x171=document.getElementById("mv_mrqzm_msg"); if(x171) x171.parentNode.removeChild(x171); x171=MVUtil._f732(MVi18n._f349("marqueeZoomHint")); x171.id="mv_mrqzm_msg"; x171.style.border="1px solid #000000"; x171.style.backgroundColor="#FFFFCC"; x171.style.position="absolute"; var x172=MVUtil._f713(x168,x170); x171.style.left=x172.x+"px"; x171.style.top=x172.y+"px"; x171.style.zIndex=9999; x168._f224.appendChild(x171); }; x169.onmouseout=function() { var x173=document.getElementById("mv_mrqzm_msg"); if(x173) x173.parentNode.removeChild(x173); }; } this.parent._f767=false; x169.onmousedown=x163; x169.onmouseup=x165; x169.onclick=function(x174) { MVUtil._f175(x174); }; }); this._f767=false; if(this._f763=="prompt") x157.addEventListener("on_finish",x167); else if(this._f763=="continuous") x157.addEventListener("on_finish",x161); else x157.addEventListener("on_finish",x162); } MVMapView.prototype.zoomToRectangle=function(x175) { if(!this._f88) { this._f862(this,"zoomToRectangle",x175); return ; } var x176=this; var x177=function(x178) { var x179=x178.getMBR(); var x180=Math.abs(x179[0]-x179[2]); var x181=Math.abs(x179[1]-x179[3]); var x182=x180*(x176._f72); var x183=x181*(x176._f74); var x184=x176._f106(); var x185=x176._f107(); var x186=x176._f53; var x187=x186; var x188=x176._f757; if(x184=0;--x189) { x187=x189; var x190=(x176._f752[x189]/x176.msi._f576(x189))*x180; var x191=(x176._f753[x189]/x176.msi._f577(x189))*x181; if(x190<=x184&&x191<=x185) break; } } else if(x184>x182&&x185>x183) { for(var x189=(x186+1);x189<=x188;++x189) { var x190=(x176._f752[x189]/x176.msi._f576(x189))*x180; var x191=(x176._f753[x189]/x176.msi._f577(x189))*x181; if(x190<=x184&&x191<=x185) x187=x189; else break; } } var x192=(x179[0]+x179[2])/2; var x193=(x179[1]+x179[3])/2; var x194=MVSdoGeometry.createPoint(x192,x193,x176.srid); x176.zoomTo(x187,x194); } if(!x175.srid) x175.srid=this.srid; if(x175.srid&&this.srid!=x175.srid) this.transformGeom(x175,this.srid,null,x177); else x177(x175); } MVMapView.prototype._f863=function(x195) { var x196=(x195._f84()-this._f106())*0.5/this._f72; var x197=(x195._f85()-this._f107())*0.5/this._f74; var x198=new Array(); if(x195._f1._f45==1&&x195._f1._f46==1) { x198[0]=this._f71; x198[1]=this._f305; x198[2]=this._f299; x198[3]=this._f73; } else { var x199=this._f864(this._f71-x196,this._f305-x197); var x200=this._f865(this._f299+x196,this._f73+x197); x198[0]=x199.x; x198[1]=x199.y; x198[2]=x200.x; x198[3]=x200.y; } var x201=Math.floor((x198[2]-x198[0])*this._f72+0.5); var x202=Math.floor((x198[3]-x198[1])*this._f74+0.5); x195._f44(x201,x202); return x198; } MVMapView.prototype._f823=function() { this._f126(); var x203=0; for(x203=0;x203=2) { _f65._f534(x212[0]); this._f534(x212[0]); } } if(this._f787) { this._f868(x211); return ; } if(!x211) { MVi18n._f6("MVMapView.addThemeBasedFOI","MAPVIEWER-05519","themeBasedFOI",this._f7); return ; } if(!this._f76) this._f76=new _f300(this,"1"); for(var x213=0;x213100) x221=100; if(x221<1) x221=1; for(var x222=0;x222x221) { var x223=this._f755[x222]; this._f755[x222]=this._f755[x222-1]; this._f755[x222-1]=x223; x222--; } break; } } for(var x224=0;x2240) { this._f755[this._f755.length-1]._f170(); this._f755[this._f755.length-1]=null; this._f755.pop(); } while(this._f78.childNodes.length>0) { this._f78.removeChild(this._f78.childNodes[0]); } } MVMapView.prototype.removeThemeBasedFOI=function(x251) { if(!x251) return ; for(var x252=0;x252x257._f51()|| this._f73>x257._f52())&&x257._f1._f869) { var x258=this._f863(x257); if(x257._f25!=1) { x257.clearTransImageLayer(); } x257._f75(this,x258[0],x258[1],x258[2],x258[3],true,false); } else if(x257._f2) { var x258=this._f863(x257); x257._f75(this,x258[0],x258[1],x258[2],x258[3],true,false); } } if(this._f71this._f255.maxX|| this._f73>this._f255.maxY) { var x259=(this._f255._f84()-this._f106())*0.5/this._f72; var x260=(this._f255._f85()-this._f107())*0.5/this._f74; this._f255._f291(this._f71-x259, this._f305-x260, this._f299+x259, this._f73+x260); this.refreshGroupFOIs(false); } else if(this.wraparound){ var x259=(this._f255._f84()-this._f106())*0.5/this._f72; var x261=x259-(this._f71-this._f255.minX); var x262=x259-(this._f255.maxX-this._f299); var x263=x261>0?x261:x262; var x264=(this.msi._f165-this.msi._f166)/4; if(x263>x264) { var x260=(this._f255._f85()-this._f107())*0.5/this._f74; this._f255._f291(this._f71-x259, this._f305-x260, this._f299+x259, this._f73+x260); } } if(!x256) { this._f76.refresh(this._f71,this._f305,this._f299, this._f73,this._f106(),this._f107()); this.infoLayer2.refresh(this._f71,this._f305,this._f299, this._f73,this._f106(),this._f107()); x256=true; } } MVMapView.prototype.getAllThemeBasedFOIs=function() { return this._f755; } MVMapView.prototype.setDefaultInfoWindowStyle=function(x265,x266) { _f65._f307=x265; if(x265=="MVInfoWindowStyle1") MVInfoWindowStyle1._f872=x266; } MVMapView.prototype.displayInfoWindow=function(x267,x268,x269,x270,x271,x272,x273) { if(this.infoWindowTimeout) { clearTimeout(this.infoWindowTimeout); this.infoWindowTimeout=null; } var x274=this; var x275=function(x276) { if(x276) x267=x276; x274._f76._f316(x268,x267.sdo_point.x,x267.sdo_point.y,x269,x270,x271,x272,x273); } var x277=function() { if(x274._f88&&!x274._f810&&!x274._f858&&!x274._f754) { if(!x267.srid) x267.srid=x274.srid; if(x267.srid&&(x274.srid!=x267.srid)) center=x274.transformGeom(x267,x274.srid,null,x275); else x275(); } else x274.infoWindowTimeout=setTimeout(x277,200); } x277(); } MVMapView.prototype.displayTabbedInfoWindow=function(x278,x279,x280,x281,x282,x283) { if(this.infoWindowTimeout) { clearTimeout(this.infoWindowTimeout); this.infoWindowTimeout=null; } var x284=this; var x285=function(x286) { if(x286) x278=x286; x284._f76.showTabbedHtmlWindow(null,x278.sdo_point.x,x278.sdo_point.y,x281,x282,x283,x279,x280); } var x287=function() { if(x284._f88&&!x284._f810&&!x284._f858&&!x284._f754) { if(!x278.srid) x278.srid=x284.srid; if(x278.srid&&(x284.srid!=x278.srid)) center=x284.transformGeom(x278,x284.srid,null,x285); else x285(); } else x284.infoWindowTimeout=setTimeout(x287,200); } x287(); } MVMapView.prototype.setInfoWindow=function(x288,x289,x290) { this._f775=x288; this._f310=x289; this._f311=x290; } MVMapView.prototype._f873=function(x291,x292) { _f65._f310=x291; _f65._f311=x292; } MVMapView.prototype.removeInfoWindow=function() { if(this._f76._f77.length>0) this._f76.deleteInfoWindow(this._f76._f77[0]); } MVMapView.prototype.addCSTransformFunction=function(x293,x294,x295) { _f65._f414(x294,x295,x293); } MVMapView.prototype.transformGeom=function(geometry,_f411,_f418,callBack,dataSource) { if(!geometry.srid) { if(!this.srid) { MVi18n._f6("MVMapView.transformGeom","MAPVIEWER-05520",null,this._f7); return ; } geometry.srid=this.srid; } if(geometry.srid==_f411) { if(callBack) { callBack(geometry); return ; } else return geometry; } var clientTrans=_f65._f470(geometry.srid,_f411); if(clientTrans) { var _f237=null; if(geometry.getGType()==1) { var result=clientTrans(geometry.getPointX(),geometry.getPointY(),this._f7); _f237=MVSdoGeometry.createPoint(result.x,result.y,_f411); } 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._f472(clientTrans,geometry.sdo_ordinates,this._f7); _f237=new MVSdoGeometry(geometry.gtype,_f411,geometry.sdo_elem_info,ordinates); } if(_f237) { if(callBack) { callBack(_f237); return ; } else return _f237; } } if(_f418) {} else if(this._f4) { if(MVUtil._f5(this._f4,'/')) { _f418=this._f4+'mcserver'; } else { _f418=this._f4+'/mcserver'; } } else { MVi18n._f6("MVMapView.transformGeom","MAPVIEWER-05504",null,this._f7); return ; } var localDomain=(MVUtil.isLocalDomain(_f418)); var xmlHttp=localDomain||MVMapView._f117; if(!xmlHttp&&!callBack) { MVi18n._f6("MVMapView.transformGeom","MAPVIEWER-05521",null,this._f7); return null; } var request=null; var _f473; var _f474; var _f874; if(dataSource) _f874=dataSource; else _f874=this._f533; _f474=MVUtil._f43(geometry.toString(),"null",""); if(geometry.getGType()==1) { _f474=MVUtil._f43(_f474,"SdoPointType",""); } else { } _f474=MVUtil._f43(_f474," ",""); var targetURL=_f418; var _f875=_f418; var params="request=cstransform&dstsrid="+ _f411+"&geometry="+_f474; if(_f874) params+="&datasource="+_f874; var request=null; var mv=this; var transformed=MVUtil._f103(this,function() { if(request.readyState==4) { if(request.status==200) { try { var resp=request.responseText; eval("var result="+resp); _f473=result; if(result.length==0) { result=null; return; } var _f237=null; if(_f473.SDO_GTYPE==1) { _f237=MVSdoGeometry.createPoint(_f473.SDO_POINT.X,_f473.SDO_POINT.Y,_f473.SDO_SRID); } else { _f237=new MVSdoGeometry(2000+_f473.SDO_GTYPE,_f473.SDO_SRID,_f473.SDO_ELEM_INFO,_f473.SDO_ORDINATES,null) } result=null; } catch(e) { MVi18n._f6("MVMapView.transformGeom","MAPVIEWER-05523",request.responseText,mv._f7); return ; } if(callBack) callBack(_f237); if(xmlHttp) return _f237; } } }); try { request=MVUtil.getXMLHttpRequest(xmlHttp); if(callBack||!xmlHttp) request.onreadystatechange=transformed; request.open("POST",MVUtil._f119(_f875),callBack||!xmlHttp); request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); request.send(MVUtil._f120(_f875,params)); }catch(e) { MVi18n._f6("MVMapView.transformGeom","MAPVIEWER-05511",e,this._f7); return ; } if(!callBack&&xmlHttp) { if(request.status==200) { return transformed(); } } } MVMapView.prototype.getSrid=function() { return this.srid; } MVMapView.prototype._f876=function() { MVUtil._f162(document.body,"wait"); MVUtil._f162(this._f224,"wait"); } MVMapView.prototype._f877=function() { MVUtil._f162(document.body,""); this.setTileLayerCursor(this._f218); } MVMapView.prototype.getMapTileLayer=function(x296) { var x297=x296.split("."); if(x297.length<2){ return ""; } else return x297[1]; } MVMapView.prototype.getMapImageURL=function(x298,x299,x300,x301) { var x302=this.getMapAsXML(x299,x300,x301); var x303=(this._f4==this._f772); var x304=x303||MVMapView._f117; var x305=""; if(MVMapView._f117&&!x303) x305=this._f772; else x305=this._f4; if(MVUtil._f5(x305,'/')) x305=x305+'omserver'; else x305=x305+'/omserver'; var x306=MVUtil.getXMLHttpRequest(x304); x306.open("POST",MVUtil._f119(x305),true); x306.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); x306.send(MVUtil._f120(x305,"xml_request="+encodeURIComponent(x302))); var x307=this; x306.onreadystatechange=function() { if(x306.readyState==4) { if(x306.status==200) { var x308=x306.responseText; var x309=x308.indexOf("url=\""); if(x309<0) { MVi18n._f6("MVMapView.getMapImageURL","MAPVIEWER-05519",x308,x307._f7); return ; } var x310=x308.substring(x309+5,x308.indexOf("\"",x309+5)); x298(x310); } } } } MVMapView.prototype.getMapAsXML=function(x311,x312,x313) { if(!x312) x312=this._f106(); if(!x313) x313=this._f107(); var x314="" var x315=this._f533?this._f533:MVMessages["default_datasource"]; x314=x314+"" var x319=parseInt(this._f107())/this._f74; var x320=this.getCenter(); x314=x314+"
"+x320.sdo_point.x+","+x320.sdo_point.y+"
"; x314=x314+""; for(i=0;i"+this._f136[i].layerControl.getXMLForPrint()+""; } var x321=""; var x322=""; var x323=""; for(var x324=0;x3240) { for(var x329=0;x329"; if(x322!="") x314+=" "+x322+""; if(x323!="") x314+=x323; x314=x314+this._f255._f34(); if(this._f693) { var x330="SOUTH_WEST"; switch(this._f688) { case 1:x330="NORTH_EAST"; break; case 3:x330="SOUTH_EAST"; break; case 4:x330="NORTH_WEST"; break; } var x331="DUAL_MODES"; if(this._f693.format!=null&&this._f693.format=="METRIC") x331="METRIC_MODE"; else if(this._f693.format!=null&&this._f693.format=="IMPERIAL") x331="US_MODE"; x314=x314+""; } x314=x314+"
"; return x314; } MVMapView.prototype._f34=function() { return this.getMapAsXML("GIF_URL"); } MVMapView.prototype._f649=function() { this.real_base_div.className=null; this._f878=null; if(this._f692) while(this._f692.childNodes.length>0) { var x332=this._f692.childNodes[0]; if(x332.src) { } x332.onload=null; this._f692.removeChild(x332); MVUtil._f87(x332); } } MVMapView.prototype._f879=function() { this.real_base_div.className=("noprint"); } MVMapView.prototype.print=function(x333) { var x334=this; if(x333.style.position!="absolute") x333.style.position="relative"; x333.style.width=MVUtil._f26(this._f106()); x333.style.height=MVUtil._f26(this._f107()); if(!this._f880) { this._f876(); this._f649(); var x335=this._f34(); var x336=(this._f4==this._f772); var x337=x336||MVMapView._f117; var x338=""; if(MVMapView._f117&&!x336) x338=this._f772; else x338=this._f4; if(MVUtil._f5(x338,'/')) x338=x338+'omserver'; else x338=x338+'/omserver'; _f289=MVUtil.getXMLHttpRequest(x337); _f289.open("POST",MVUtil._f119(x338),true); _f289.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); _f289.send(MVUtil._f120(x338,"xml_request="+encodeURIComponent(x335))); _f289.onreadystatechange=function() { if(_f289.readyState==4) { if(_f289.status==200) { x334._f692=x333; var x339=document.createElement("img"); var x340=_f289.responseText; var x341=x340.indexOf("url=\""); if(x341<0) { MVi18n._f6("MVMapView.print","MAPVIEWER-05519",x340,x334._f7); return ; } x339.src=x340.substring(x341+5,x340.indexOf("\"",x341+5));x339.style.position="absolute"; x339.style.left=MVUtil._f26(0); x339.style.top=MVUtil._f26(0); x334._f692.appendChild(x339); x339.onload=MVUtil._f103(x339,function() { x334._f879(); if(x334._f770!=null) for(var x342=0;x342=x351|| x353.top<=0||x353.top>=x352|| x349<=1||x349>=document.body.clientWidth|| x350<=1||x350>=document.body.clientHeight) { x346._f882(x348); x346._f500=false; if(x346._f781.contains(37))x346._f781.remove(37); if(x346._f781.contains(38))x346._f781.remove(38); if(x346._f781.contains(39))x346._f781.remove(39); if(x346._f781.contains(40))x346._f781.remove(40); } }); this._f224.onclick=MVUtil._f103(this._f224,function(x354) { if((x346.mouseDownLoc&&x346.mouseUpLoc&& (Math.abs(x346.mouseDownLoc.left-x346.mouseUpLoc.left)>1|| Math.abs(x346.mouseUpLoc.top-x346.mouseUpLoc.top)>1))|| (Math.abs(x346.mouseDownScreenX-x346.mouseUpScreenX)>1|| Math.abs(x346.mouseDownScreenY-x346.mouseUpScreenY)>1)) return ; if(x346._f625) { x346._f625(MVUtil.getEvent(x354)); } MVUtil.runListeners(x346._f93,MVEvent.MOUSE_CLICK,[MVUtil.getEvent(x354)]); }); if(!this._f799) MVUtil.detachEvent(document.body,"mousedown",this._f799); this._f799=MVUtil._f103(document.body,function() { x346._f500=false; }); MVUtil.attachEvent(document.body,"mousedown",this._f799); if(x347=="IF") { this._f224.onselectstart=MVUtil._f103(this._f224,function() { if((x346._f76&&x346._f76._f200)|| (x346.infoLayer2&&x346.infoLayer2._f200)) return true; else return false; }); this._f224.oncontextmenu=MVUtil._f103(this._f224,function(x355) { x346._f509(window.event); if(x346._f779) { x346._f779(MVUtil.getEvent(x355)); } MVUtil.runListeners(x346._f93,MVEvent.MOUSE_RIGHT_CLICK,[MVUtil.getEvent(x355)]); if((x346._f76&&x346._f76._f200)) return true; else return false; }); if(this._f762) this._f224.onmousewheel=MVUtil._f103(this._f224,function() { return x346._f883(window.event); }); else this._f224.onmousewheel=null; this._f224.onmousedown=MVUtil._f103(this._f224,function() { MVUtil._f175(window.event); return x346._f358(window.event); }); this._f224.onmousemove=MVUtil._f103(this._f224,function() { return x346._f884(window.event); }); this._f224.onmouseup=MVUtil._f103(this._f224,function() { x346._f500=true; return x346._f882(window.event); }); this._f224.ondblclick=MVUtil._f103(this._f224,function() { return x346._f885(window.event); }); document.body.attachEvent('onmouseup',MVUtil._f103(document.body,function() { return x346._f882(window.event); })); if(!this._f221) { if(!this._f802) MVUtil.detachEvent(document.body,"keydown",this._f802); this._f802=MVUtil._f103(document.body,function() { return x346._f886(window.event); }); MVUtil.attachEvent(document.body,"keydown",this._f802); if(!this._f803) MVUtil.detachEvent(document.body,"keyup",this._f803); this._f803=MVUtil._f103(document.body,function() { return x346._f887(window.event); }); MVUtil.attachEvent(document.body,"keyup",this._f803); var x356=function() { x346._f888(window.event); return false; } var x357=function() { if(x346._f807==document.body.offsetWidth) { x346._f806=0; x356(); } else { x346._f808=window.setTimeout(x357,100); } } if(!this._f796) MVUtil.detachEvent(window,"resize",this._f796); this._f796=MVUtil._f103(window,function(x358) { if(Math.abs(x346._f790-x346._f106())<=3|| Math.abs(x346._f791-x346._f107())<=3) { return ; } this._f806++; this._f807=document.body.offsetWidth; if(this._f806>1) { if(this._f808) window.clearTimeout(this._f808); MVUtil._f808=window.setTimeout(x357,100); } }); MVUtil.attachEvent(window,"resize",this._f796); } } else if(x347=="NS") { this._f224.oncontextmenu=function(x359) { x346._f509(x359); if(x346._f779) { x346._f779(MVUtil.getEvent(x359)); } MVUtil.runListeners(x346._f93,MVEvent.MOUSE_RIGHT_CLICK,[MVUtil.getEvent(x359)]); if((x346._f76&&x346._f76._f200)) return true; else return false; }; this._f224.onmousedown=function(x360) { x360.stopPropagation(); return x346._f358(x360); }; this._f224.onmousemove=function(x361) { return x346._f884(x361); }; this._f224.onmouseup=function(x362) { x346._f500=true; return x346._f882(x362); }; var x363=function(x364) { MVUtil._f175(x364); if(!x346.lastWheelTime) x346.lastWheelTime=new Date(); else { var x365=new Date(); if(x365-x346.lastWheelTime<10) return ; } x346.lastWheelTime=new Date(); x364.preventDefault(); if(x346._f762) { if(x364.detail<0)x346.zoomIn(); else x346.zoomOut(); } } if(this._f762) { this._f224.addEventListener("DOMMouseScroll",x363,false); } else this._f224.removeEventListener("DOMMouseScroll",x363,false); this._f224.ondblclick=function(x366) { return x346._f885(x366); }; if(!this._f797) MVUtil.detachEvent(window.document,"mouseup",this._f797); this._f797=function(x367) { return x346._f882(x367); }; MVUtil.attachEvent(window.document,"mouseup",this._f797); if(!this._f221) { if(!this._f800) MVUtil.detachEvent(window.document,"keydown",this._f800); this._f800=function(x368) { return x346._f886(x368); }; MVUtil.attachEvent(window.document,"keydown",this._f800); if(!this._f801) MVUtil.detachEvent(window.document,"keyup",this._f801); this._f801=function(x369) { return x346._f887(x369); }; MVUtil.attachEvent(window.document,"keyup",this._f801); if(!this._f796) MVUtil.detachEvent(window,"resize",this._f796); this._f796=function(x370) { if(Math.abs(x346._f790-x346._f106())<=3|| Math.abs(x346._f791-x346._f107())<=3) { return ; } x346._f888(x370); return false; }; MVUtil.attachEvent(window,"resize",this._f796); } } else if(x347=="SF") { this._f224.oncontextmenu=function(x371) { x346._f509(x371); if(x346._f779) { x346._f779(MVUtil.getEvent(x371)); } MVUtil.runListeners(x346._f93,MVEvent.MOUSE_RIGHT_CLICK,[MVUtil.getEvent(x371)]); if((x346._f76&&x346._f76._f200)) return true; else return false; }; this._f224.onmousedown=function(x372) { x372.stopPropagation(); return x346._f358(x372); }; this._f224.onmousemove=function(x373) { return x346._f884(x373); }; this._f224.onmouseup=function(x374) { x346._f500=true; return x346._f882(x374); }; var x375=function(x376) { x376.preventDefault(); if(x376.detail>0||x376.wheelDelta<0) x346.zoomOut(); else x346.zoomIn(); } if(this._f762) this._f224.onmousewheel=x375; else this._f224.onmousewheel=null; this._f224.ondblclick=function(x377) { return x346._f885(x377); }; if(!this._f797) MVUtil.detachEvent(window.document,"mouseup",this._f797); this._f797=function(x378) { return x346._f882(x378); }; MVUtil.attachEvent(window.document,"mouseup",this._f797); if(!this._f221) { if(!this._f800) MVUtil.detachEvent(window.document,"keydown",this._f800); this._f800=function(x379) { return x346._f886(x379); }; MVUtil.attachEvent(window.document,"keydown",this._f800); if(!this._f801) MVUtil.detachEvent(window.document,"keyup",this._f801); this._f801=function(x380) { return x346._f887(x380); }; MVUtil.attachEvent(window.document,"keyup",this._f801); if(!this._f796) MVUtil.detachEvent(window,"resize",this._f796); this._f796=function(x381) { if(Math.abs(x346._f790-x346._f106())<=3|| Math.abs(x346._f791-x346._f107())<=3) { return ; } x346._f888(x381); return false; }; MVUtil.attachEvent(window,"resize",this._f796); } } if(x347=="OS") { this._f224.onmousedown=function() { window.event.stopPropagation(); return x346._f358(window.event); }; this._f224.onmousemove=function() { return x346._f884(window.event); }; this._f224.onmouseup=function() { x346._f500=true; return x346._f882(window.event); }; this._f224.ondblclick=function() { return x346._f885(window.event); }; if(!this._f797) MVUtil.detachEvent(window.document,"mouseup",this._f797); this._f797=function(x382) { return x346._f882(window.event); }; MVUtil.attachEvent(window.document,"mouseup",this._f797); if(!this._f221) { if(!this._f796) MVUtil.detachEvent(window,"resize",this._f796); this._f796=function(x383) { if(Math.abs(x346._f790-x346._f106())<=3|| Math.abs(x346._f791-x346._f107())<=3) { return ; } x346._f888(window.event); return false; }; MVUtil.attachEvent(window,"resize",this._f796); } this._f224.onkeypress=function() { return x346._f886(window.event); }; this._f224.onkeyup=function() { return x346._f887(window.event); }; } this._f302.oncontextmenu=this._f224.oncontextmenu; this._f302.onmousedown=this._f224.onmousedown; this._f302.onmousemove=this._f224.onmousemove; this._f302.onmouseup=this._f224.onmouseup; this._f302.ondblclick=this._f224.ondblclick; } MVMapView.prototype._f883=function(x384) { if(x384.wheelDelta>0)this.zoomIn(); else this.zoomOut(); return false; } MVMapView.prototype._f888=function(x385) { this._f792=false; this._f53=this.getZoomLevel(); if(this._f53>this._f757) { this._f53=this._f757; return ; } MVUtil._f70(this.div,0,0); MVUtil._f70(this._f302,0,0); this._f139=0; this._f140=0; this._f423=this._f139; this._f424=this._f140; this._f815=0; this._f816=0; this.setZoomLevel(this._f53); if(this._f842) { if(this.centerMarkUrl) this.setCenterMark(this.centerMarkUrl,this.centerMarkW,this.centerMarkH); else this.setCenterMark(_f65._f141+"center.gif",20,20); } if(this.navigationPanel) this.navigationPanel.init(null,this); this.display(); if(this._f693) { this._f693._f701(this); } if(this._f220) { this._f220._f211._f888(); this._f220._f227(); } if(this._f770!=null) for(var x386=0;x386((this._f835+this._f836)/4)?300:200; this._f839=0; this._f840=0; this._f841=0; this.smoothPan(); } MVMapView.prototype.pan=function(x414,x415) { this.smoothScroll(x414,x415); } MVMapView.prototype.smoothScroll=function(x416,x417) { if(x416==0&&x417==0) { return; } if(this._f750) { this._f180=null; this._f224.style.cursor=this._f218; return true; } this._f224.style.cursor=this._f218; if(this._f754!=null) { clearTimeout(this._f754); this._f754=null; } this._f833=x416*(-1); this._f834=x417*(-1); this._f275=Math.sqrt(x416*x416+x417*x417); this._f837=10; this._f835=this._f106(); this._f836=this._f107(); this._f838=this._f275>((this._f835+this._f836)/4)?300:200; this._f839=0; this._f840=0; this._f841=0; this.smoothPan(); } MVMapView.prototype.smoothPan=function(x418) { this._f839++; var x419=x418?1:this._f839*this._f837/this._f838; this.targetX=this._f833*(2*x419-x419*x419); this.targetY=this._f834*(2*x419-x419*x419); var x420=this._f835/2; var x421=this._f836/2; this._f817(x420,x421); x420=Math.round(this.targetX-this._f840)+this._f835/2; x421=Math.round(this.targetY-this._f841)+this._f836/2; this._f556(x420,x421); if(this._f220) { this._f220._f233(this._f423-this._f139,this._f424-this._f140) } if(this._f780) { this._f780(this._f423-this._f139,this._f424-this._f140); } this._f840=this.targetX; this._f841=this.targetY; this._f126(); for(i=0;i0) { var x429=((this._f781.contains(37)||this._f781.contains(x428+4))?1:0)+ ((this._f781.contains(39)||this._f781.contains(x428+6))?-1:0); var x430=((this._f781.contains(38)||this._f781.contains(x428+8))?1:0)+ ((this._f781.contains(40)||this._f781.contains(x428+2))?-1:0); this.moveOffsetX=(x429==1?15:0)+(x429==-1?-15:0); this.moveOffsetY=(x430==1?15:0)+(x430==-1?-15:0); this._f817(0,0); this._f556(this.moveOffsetX,this.moveOffsetY); if(this._f220) { this._f220._f233(this._f423-this._f139,this._f424-this._f140) } if(this._f780) { this._f780(this._f423-this._f139,this._f424-this._f140); } for(i=0;i= this._f106())||(x434<=0)||(x434>= this._f107()))&&(this._f180)) { this._f882(); } } MVMapView.prototype._f509=function(x435) { var x436=MVUtil.getMouseLocation(this,x435); var x437=x436.sdo_point.x; var x438=x436.sdo_point.y; this._f743=x437; this._f744=x438; } MVMapView.prototype._f899=function(x439) { this._f750=x439; } MVMapView.prototype.enableDragging=function(x440) { this.draggingEnabled=x440; } function _f782(x0) { this.length=0; if(x0) { for(var x1=x0.length-1;x1>=0;--x1) { this.add(x0[x1]); this.length++; } } } _f782.prototype.add=function(x441) { if(!this.contains(x441)) { this["key"+x441]=1; this.length++; } } _f782.prototype.remove=function(x442) { if(this.exist(x442)) { delete this["key"+x442]; this.length--; } } _f782.prototype.contains=function(x443) { return this["key"+x443]==1; } _f782.prototype.exist=function(x444) { return this["key"+x444]==1||this["key"+x444]==2; } _f782.prototype.sleep=function() { for(prop in this) { if(typeof this[prop]!="function") { this[prop]=2; } } } _f782.prototype.wakeup=function() { for(prop in this) { if(typeof this[prop]!="function") { this[prop]=1; } } } MVMapView.prototype.addMapDecoration=function(x445) { if(this._f770==null) this._f770=new Array(); this._f770.push(x445); if(this._f88) { var id="_md_"+this._f771 x445.init(id,this,this._f224); this._f771++; x445._f88=true; if(x445.afterDisAction) { x445.afterDisAction(); } } } MVMapView.prototype.removeMapDecoration=function(x446) { if(x446==null||x446.id==null||this._f770==null) { return; } for(var x447=0;x4470) { x477.addThemeBasedFOI(x477._f788.shift()); } } if(!this._f789) this._f789=setInterval(x478,50); } MVMapView.prototype._f534=function(x479) { if(!this._f533) this._f533=x479; } MVMapView.prototype.compareBaseURL=function(x480) { if(x480&&x480!=""&&x480.indexOf(this._f4)<0) return false; else return true; } MVMapView.prototype.checkSize=function() { clearTimeout(this._f794); if(!this._f224) return ; if(Math.abs(this._f790-this._f106())>3|| Math.abs(this._f791-this._f107())>3) { this._f792=true; this._f793=0.4; this._f790=this._f106(); this._f791=this._f107(); } else this._f793+=0.4; if(this._f793>0.4&&this._f792) { this._f888(); this._f792=false; this._f793=0; } this._f794=this.setTimeout("this.checkSize()",300); } MVMapView.prototype._f164=function(x481,x482) { return {x:(x481-this._f90)*this._f72+this._f106()/2, y:(this._f91-x482)*this._f74+this._f107()/2}; } MVMapView.prototype.showInfoTip=function(x483,x484) { if(this.infoTipDiv) this.infoTipDiv.parentNode.removeChild(this.infoTipDiv); this.infoTipDiv=MVUtil._f732(x483); this.infoTipDiv.id="mv_mrqzm_msg"; this.infoTipDiv.style.border="1px solid #000000"; this.infoTipDiv.style.backgroundColor="#FFFFCC"; this.infoTipDiv.style.position="absolute"; var x485=MVUtil._f713(this,x484); this.infoTipDiv.style.left=x485.x+"px"; this.infoTipDiv.style.top=x485.y+"px"; this.infoTipDiv.style.zIndex=9999; this._f224.appendChild(this.infoTipDiv); }; MVMapView.prototype._f194=function() { if(this.infoTipDiv) { this.infoTipDiv.parentNode.removeChild(this.infoTipDiv); this.infoTipDiv=null; } }; MVMapView.prototype._f862=function() { if(arguments.length<2) return ; var x486=new Array(); for(var x487=2;x487x512) { x514=Math.ceil((x509-x512)/x513); x509-=x513*x514; x510-=x513*x514; } if(x510>x512) return true; } return false } MVMapView.prototype.enableMapWrapAround=function(x515) { this.wraparound=x515; } MVMapView._f903=0; MVMapView.prototype._f859=function(x516,x517) { if(!x516) return ; this._f136.push(x516); var x518=document.createElement("div"); this._f224.appendChild(x518); if(!x516.visible) x518.style.visibility="hidden"; x518.style.zIndex=this._f136.length; x518.style.position="absolute"; x518.style.zIndex=1; x518.style.left=MVUtil._f26(0); x518.style.top=MVUtil._f26(0); x518.style.width="100%"; x518.style.height="100%"; var x519=document.createElement("img"); x519.src=_f65._f141+"transparent."+(_f65._f66=="IF"?"gif":"png"); x519.style.position="absolute"; x519.style.zIndex=9999; x519.style.left=MVUtil._f26(0); x519.style.top=MVUtil._f26(0); x519.style.width="100%"; x519.style.height="100%"; x518.appendChild(x519); var x520=this; x518.ondblclick=function(x521) { return x520._f885(x521); }; var x522=document.createElement("div"); x516.layerDiv=x522; x522.id="mvexttl_"+MVMapView._f903++; x522.style.position="absolute"; x522.style.left=MVUtil._f26(0); x522.style.top=MVUtil._f26(0); x522.style.width="100%"; x522.style.height="100%"; x518.appendChild(x522); if(this._f88) { x516.setCenterAndZoomLevel(this._f90,this._f91,this._f53,true); x516.init(x522); } x516.parent=this; MVMapView.addMapTileLayerDefinition(x516._f555); } MVMapView.prototype._f819=function(x523,x524,x525,x526) { for(var x527=0;x5270) return this._f136[0]; else return null; } MVMapView.prototype._f818=function(x546,x547,x548,x549) { var x550,x551; if(this.wraparound||this._f221||!this._f805) return {left:x547,top:x549}; if(x546==x547) x550=x547; else { var x552=(x546-x547)/this._f72; var x553=(x546x557) { if(x559x555) { if(x558>x557) { if(x559>x556) x559=x556; } else { if(this._f299>x555) x559=this._f90; else x559=x559-(x561-x555); } } } x552=x559-this._f90; x550=x546-x552*this._f72; } if(x548==x549) x551=x549; else { var x562=(x548-x549)/this._f74; var x563=(x548x567) { if(x569x565) { if(x568>x567) { if(x569>x566) x569=x566; } else { if(this._f73>x565) x569=this._f91; else x569=x569-(x571-x565); } } } x562=x569-this._f91; x551=x548+x562*this._f74; } return {left:Math.round(x550),top:Math.round(x551)}; } MVMapView.prototype._f821=function(x572) { if(this._f221) this.reCenterTag=false; if(this.wraparound||this._f221||!this._f805) return x572; if(this.originalCenter==null) this.originalCenter=x572; if(this.reCenterTag) this.originalCenter=x572; else x572=this.originalCenter; this.reCenterTag=false; var x573=this.msi.mapConfig.coordSys.minX; var x574=this.msi.mapConfig.coordSys.maxX; var x575=(this.msi.mapConfig.coordSys.minX+this.msi.mapConfig.coordSys.maxX)/2; var x576=this.msi.mapConfig.coordSys.maxX-this.msi.mapConfig.coordSys.minX; var x577=this._f106()/this._f72; var x578=x572.getPointX(); var x579=x578-x577/2; var x580=x578+x577/2; if(x577>x576) x578=x575; else { if(x579x574) x578=x574-x577/2; } var x581=this.msi.mapConfig.coordSys.minY; var x582=this.msi.mapConfig.coordSys.maxY; var x583=(this.msi.mapConfig.coordSys.minY+this.msi.mapConfig.coordSys.maxY)/2; var x584=this.msi.mapConfig.coordSys.maxY-this.msi.mapConfig.coordSys.minY; var x585=this._f107()/this._f74; var x586=x572.getPointY(); var x587=x586-x585/2; var x588=x586+x585/2; if(x585>x584) x586=x583; else { if(x587x582) x586=x582-x585/2; } return MVSdoGeometry.createPoint(x578,x586,this.srid); } MVMapView.prototype._f104=function() { for(var x589=0;x589id) 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._f26(0); this.foiGroupLayer.style.top=MVUtil._f26(0); this.div.appendChild(this.foiGroupLayer); } MVMapView.prototype.showOverLayerMarkWindow=function(x604,x605,x606,x607) { if(this.infoWindowTimeout2) { clearTimeout(this.infoWindowTimeout2); this.infoWindowTimeout2=null; } var x608=this; var x609=function(x610) { if(x610) x604=x610; x608.overlayMarker=true; x608.infoLayer2.domDiv=x605; if(x606==null) x606=0; if(x607==null) x607=0; x608.infoLayer2._f316("",x604.sdo_point.x,x604.sdo_point.y,x606,x607,"MVInfoWindowStyle4"); x608.overlayMarker=false; x608.infoLayer2.domDiv=null; } var x611=function() { if(x608._f88) { if(!x604.srid) x604.srid=x608.srid; if(x604.srid&&(x608.srid!=x604.srid)) center=x608.transformGeom(x604,x608.srid,null,x609); else x609(); } else x608.infoWindowTimeout2=setTimeout(x611,200); } x611(); } MVMapView.prototype.removeOverLayerMarkWindow=function() { if(this.infoLayer2._f77.length>0) this.infoLayer2.deleteInfoWindow(this.infoLayer2._f77[0]); } MVMapView.setUtilImgURL=function(x612) { _f65._f141=x612; } MVMapView.prototype.getMapConfig=function() { if(!this._f136) return null; if(!this.msi.mapConfig) MVi18n._f6("MVMapView.getMapConfig","MAPVIEWER-05526"); else return this.msi.mapConfig; } MVMapView.prototype._f825=function() { this.refreshThemeBasedFOIs(true); this._f291(); this.refreshGroupFOIs(true); this._f76.refresh(this._f71,this._f305, this._f299,this._f73, this._f106(),this._f107()); this.infoLayer2.refresh(this._f71,this._f305, this._f299,this._f73, this._f106(),this._f107()); } MVMapView.setLocale=function(x613,x614) { if(MVi18n.language!=x613||MVi18n.country!=x614) { MVi18n.language=x613; MVi18n.country=x614; } } MVMapView.prototype.getCopyright=function() { if(this._f813!=null) return this._f813; else return this.getEmbeddedCopyright(); } MVMapView.prototype._f900=function(x615,x616) { if(this.copyright!=undefined) { this._f224.removeChild(this.copyright); delete this.copyright; } var x617=1; var x618=1; var x619=0; var x620=0; var x621=null; if(x616) { if(x616.left!=undefined||x616.top!=undefined) { this._f814=false; if(x616.left!=undefined) x617=x616.left; if(x616.top!=undefined) x618=x616.top; if(x616.xOffset!=undefined) x619=x616.xOffset; if(x616.yOffset!=undefined) x620=x616.yOffset; if(x616.style!=undefined) x621=x616.style; } } if(x621==null) x621='position:absolute;z-index:2000;font-size:12'; var x622="",x617,x618,500,null,x619,x620); this.addMapDecoration(cr); } else { var x623=document.createElement("SPAN"); x623.className="MV_COPYRIGHT"; x623.innerHTML=" "+x615+" "; x623.setAttribute("style",x621); x623.style.cssText=x621; x623.style.position="absolute"; x623.style.bottom=MVUtil._f26(1); this._f224.appendChild(x623); this.copyright=x623; this._f650(); } } MVMapView.prototype._f561=function() { if(this._f813!=null||this._f221) return ; var x624=this.getEmbeddedCopyright(); if(x624==null) return ; this._f900(x624); } MVMapView.prototype.getEmbeddedCopyright=function() { var x625=""; for(var x626=0;x6260) { var x6=document.getElementById(x2+"_content"); x6.style.height=MVUtil._f26(_height-x5-26); } } } else { if(_width==0) _width=_f65._f310; if(_height==0) _height=_f65._f311; _f452.appendChild(_f453); x3=MVInfoWindowStyle4.createTabsAndContent(tabs,index,_width,_height,_f453,close); } if(autoResize) { _width=x3.offsetWidth; if(_width<_f65._f310) { x3.style.width=MVUtil._f26(_f65._f310); _width=_f65._f310; } _height=x3.offsetHeight; if(_height<_f65._f311) { x3.style.height=MVUtil._f26(_f65._f311); _height=_f65._f311; } } var x7=MVInfoWindowStyle4.createWindow(x,y,_width,_height,tabs,x2,close,mouseOver); _f453.appendChild(x7); var x8=document.getElementById("infowindow4_"+x2); if(x8) { MVInfoWindowStyle4._f310[x2]=x8.offsetWidth; MVInfoWindowStyle4._f311[x2]=x8.offsetHeight; if(!isNaN(screenLoc.x)) { var x9=mvinfo.checkInfoWindowOverLayer(parent,infoLayerId,x8,screenLoc,MVInfoWindowStyle4._f454); x8.style.left=MVUtil._f26(x9.x-screenLoc.x); x8.style.top=MVUtil._f26(x9.y-screenLoc.y); if(x3!=null) { x3.style.left=MVUtil._f26(x9.x-screenLoc.x); x3.style.top=MVUtil._f26(x9.y-screenLoc.y); } if(!mouseOver) { MVInfoWindowStyle4._f455(_f452,x2); } } else { if(!mouseOver) { MVInfoWindowStyle4._f455(_f452,x2); } } } } MVInfoWindowStyle4._f306[x2]=setTimeout(drawInfoWindow,500); } drawInfoWindow(); this._f453=_f453; } else { div=this._f456(tabs[0].getContent(),_width); eval(style+".addContent(div)"); if(!mouseOver) { eval(style+".addCloseButton(close)"); } } } _f309.prototype._f456=function(x0,x1) { var x2=window.document.createElement("DIV"); x2.className="infowindow"; x2.style.position="absolute"; x2.style.zIndex=3; x2.innerHTML="
"+x0+"
"; MVUtil._f162(x2,"auto"); return x2; } _f309.prototype._f457=function() { if(this._f453){ this._f453.style.display="none"; } } _f309.prototype._f458=function() { this._f453.style.display=""; this._f453.style.visibility="visible"; } _f309.prototype.isVisible=function() { return this._f453&&this._f453.style.display!="none"; } _f309.prototype.checkInfoWindowOverLayer=function(x3,x4,x5,x6,x7) { var x8=x5.offsetWidth; var x9=x5.offsetHeight; var x10=x3.parent._f139; var x11=x3.parent._f140; 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._f6("MVSdoGeometry.constructor","MAPVIEWER-05519","gtype"); if(x2!=undefined&&x2!=null&&!MVUtil.isNumberArray(x2)) MVi18n._f6("MVSdoGeometry.constructor","MAPVIEWER-05527","sdo_elem_info"); if(x3!=undefined&&x3!=null&&!MVUtil.isNumberArray(x3)) MVi18n._f6("MVSdoGeometry.constructor","MAPVIEWER-05527","sdo_ordinates"); if(x4!=undefined&&x4!=null&&!(x4 instanceof MVSdoPointType)) MVi18n._f6("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._f6("MVSdoGeometry.createRectangleByGCD","MAPVIEWER-05527","minLon"); return null; } if(!MVUtil.isNumber(x36)) { MVi18n._f6("MVSdoGeometry.createRectangleByGCD","MAPVIEWER-05527","minLat"); return null; } if(!MVUtil.isNumber(x37)) { MVi18n._f6("MVSdoGeometry.createRectangleByGCD","MAPVIEWER-05527","width"); return null; } if(!MVUtil.isNumber(x38)) { MVi18n._f6("MVSdoGeometry.createRectangleByGCD","MAPVIEWER-05527","height"); return null; } if(!x39) x39=8307; var x40=_f370._f372(new MVSdoPointType(x35,x36,0),x38,0); var x41=_f370._f372(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._f6("MVSdoGeometry.createCircle","MAPVIEWER-05527","cx"); return null; } if(!MVUtil.isNumber(x47)) { MVi18n._f6("MVSdoGeometry.createCircle","MAPVIEWER-05527","cy"); return null; } if(!MVUtil.isNumber(x48)) { MVi18n._f6("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._f6("MVSdoGeometry.createCirclePolygon","MAPVIEWER-05527","cx"); return null; } if(!MVUtil.isNumber(x51)) { MVi18n._f6("MVSdoGeometry.createCirclePolygon","MAPVIEWER-05527","cy"); return null; } if(!MVUtil.isNumber(x52)) { MVi18n._f6("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._f6("MVSdoGeometry.createGeodeticCirclePolygon","MAPVIEWER-05527","longitude"); return null; } if(!MVUtil.isNumber(x57)) { MVi18n._f6("MVSdoGeometry.createGeodeticCirclePolygon","MAPVIEWER-05527","latitude"); return null; } if(!MVUtil.isNumber(x58)) { MVi18n._f6("MVSdoGeometry.createGeodeticCirclePolygon","MAPVIEWER-05527","radius"); return null; } if(!x59) x59=8307; var x60=new Array(); for(i=0;i<36;i++) { var x61=_f370._f372(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._f6("MVSdoGeometry.createPointAtBearing","MAPVIEWER-05527","longitude"); return null; } if(!MVUtil.isNumber(x63)) { MVi18n._f6("MVSdoGeometry.createPointAtBearing","MAPVIEWER-05527","latitude"); return null; } if(!MVUtil.isNumber(x64)) { MVi18n._f6("MVSdoGeometry.createPointAtBearing","MAPVIEWER-05527","bearing"); return null; } if(!MVUtil.isNumber(x65)) { MVi18n._f6("MVSdoGeometry.createPointAtBearing","MAPVIEWER-05527","distance"); return null; } if(!x66) x66=8307; var x67=_f370._f372(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=_f65._f467(); return x68; } MVSdoGeometry.prototype.getLength=function(unit,_f405,foiURL,callBack,dataSource) { if(!dataSource) dataSource=_f65._f468(); if(!this.srid) { var len=MVSdoGeometry.calcLength(this.sdo_ordinates); if(callBack) callBack(len); return len; } var srs=_f65._f469(this.srid); var clientTransFunc=null; if(_f405) clientTransFunc=_f65._f470(this.srid,8307); if(!_f405||this.srid==8307||this.srid==8265|| _f405&&clientTransFunc) { if((srs||this.srid==8307||this.srid==8265||_f405&&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=_f65._f471(unit); if(srs&&srs.distConvFactor&&!_f405) convFactor=convFactor/srs.distConvFactor; } var ordinates=this.sdo_ordinates; if(clientTransFunc) ordinates=MVMapView._f472(clientTransFunc,ordinates); if(convFactor) { var len=0; if(srs&&srs.type!='GEODETIC'&&!_f405) len=MVSdoGeometry.calcLength(ordinates)/convFactor; else len=_f370._f376(ordinates)/convFactor; if(callBack) callBack(len); return len; } } } var request=null; var _f473; var _f474=MVUtil._f43(this.toString(),"null",""); if(this.gtype%10!=2&&this.gtype%10!=6&&this.gtype%10!=3&&this.gtype%10!=7) { MVi18n._f6("MVSdoGeometry.getLength","MAPVIEWER-05513"); return 0; } else { _f474=MVUtil._f43(_f474," ",""); } var _f475=this.getRequestURL(foiURL); var localDomain=(_f475.indexOf(_f65._f116())<0&& MVUtil.isLocalDomain(_f475)); var xmlHttp=localDomain||MVMapView._f117; if(!xmlHttp&&!callBack) { MVi18n._f6("MVSdoGeometry.getLength","MAPVIEWER-05521"); return -1; } var requestStr="request=getlength&version=1.1&figord="+encodeURIComponent(_f474)+""; if(unit) { requestStr=requestStr+"&unit="+unit; } if(_f405) { var trans=(_f405==true)?"yes":"no"; requestStr=requestStr+"&togeodetic="+trans; } if(dataSource) requestStr=requestStr+"&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); _f473=result; if(result.length==0) { result=null; return; } result=null; } catch(e) { MVi18n._f6("MVSdoGeometry.getLength","MAPVIEWER-05523",resp+"\n"+e); return ; } if(callBack) callBack(_f473); if(xmlHttp) return _f473; } } }; try { request=MVUtil.getXMLHttpRequest(xmlHttp); if(callBack||!xmlHttp) request.onreadystatechange=respLoaded; request.open("POST",MVUtil._f119(_f475),callBack||!xmlHttp); request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); request.send(MVUtil._f120(_f475,requestStr)); }catch(e) { MVi18n._f6("MVSdoGeometry.getLength","MAPVIEWER-05511",e); } if(!callBack&&xmlHttp) { if(request.status==200) { return respLoaded(); } } } MVSdoGeometry.prototype.getArea=function(unit,_f405,foiURL,callBack,dataSource) { if(!dataSource) dataSource=_f65._f468(); var request=null; var _f473; var _f474=MVUtil._f43(this.toString(),"null",""); if(this.gtype%10!=3&&this.gtype%10!=7) { MVi18n._f6("MVSdoGeometry.getArea","MAPVIEWER-05513"); return 0; } else { _f474=MVUtil._f43(_f474," ",""); } var _f475=this.getRequestURL(foiURL); var localDomain=(_f475.indexOf(_f65._f116())<0&& MVUtil.isLocalDomain(_f475)); var xmlHttp=localDomain||MVMapView._f117; if(!xmlHttp&&!callBack) { MVi18n._f6("MVSdoGeometry.getArea","MAPVIEWER-05521") return -1; } var requestStr="request=getarea&version=1.1&figord="+encodeURIComponent(_f474)+""; if(unit) { requestStr=requestStr+"&unit="+unit; } if(_f405) { var trans=(_f405==true)?"yes":"no"; requestStr=requestStr+"&togeodetic="+trans; } if(dataSource) requestStr=requestStr+"&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); _f473=result; if(result.length==0) { result=null; return; } result=null; } catch(e) { MVi18n._f6("MVSdoGeometry.getArea","MAPVIEWER-05523",resp+"\n"+e); } if(callBack) callBack(_f473); if(xmlHttp) return _f473; } } }; try { request=MVUtil.getXMLHttpRequest(xmlHttp); if(callBack||!xmlHttp) request.onreadystatechange=respLoaded; request.open("POST",MVUtil._f119(_f475),callBack||!xmlHttp); request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); request.send(MVUtil._f120(_f475,requestStr)); }catch(e) { MVi18n._f6("MVSdoGeometry.getArea","MAPVIEWER-05511",e); } if(!callBack&&xmlHttp) { if(request.status==200) { return respLoaded(); } } } MVSdoGeometry.prototype.densify=function() { var x70=this.getGType(); if(x70<=1||x70==5) return this; var x71=_f65._f469(this.srid); if(this.srid!=8307&&this.srid!=8265&&(!x71||x71.type!='GEODETIC'&&x71.type!='PROJECTED')) return this; if(!this.sdo_elem_info||this.sdo_elem_info.length<3||!this.sdo_ordinates) return this; var x72=this.sdo_point?this.sdo_point.clone():null; var x73=this.sdo_elem_info.slice(); var x74=this.sdo_ordinates; var x75=this.getComponents(x73,x74); if(x75==null||x75.length<=0) return null; var x76=null; var x77=1; if(x71&&x71.type=='PROJECTED') x77=100000*x71.distConvFactor; for(var x78=0;x780) { x101=x101*1.0/x103; x102=x102*1.0/x103; for(var x104=0;x104"; x109=x109+x108+""; return x109; } MVSdoGeometry.prototype._f477=function(x110) { var x111=MVSdoGeometry._f482(x110); var x112=""; x112=x112+x111+"" return x112; } MVSdoGeometry.prototype._f479=function(x113) { var x114=MVSdoGeometry._f482(x113); var x115=""; x115=x115+x114+"" return x115; } MVSdoGeometry.prototype._f481=function() { var x116=this.getOrdinatesOfElements(); var x117=""; for(var x118=0;x118"; x117=x117+this._f479(x116[x118]); x117=x117+""; } x117=x117+""; return x117; } MVSdoGeometry.prototype._f480=function() { var x119=this.getOrdinatesOfElements(); var x120=""; for(var x121=0;x121"; x120=x120+this._f477(x119[x121]); x120=x120+""; } x120=x120+""; return x120; } MVSdoGeometry.prototype._f478=function(x122) { var x123=parseFloat(x122[2]); var x124=parseFloat(x122[1]); var x125=parseFloat(x122[0])-parseFloat(x122[2]); var x126=""; var x127=2*Math.PI; var x128=x123+x125*Math.cos((x127*0)/120); for(var x129=1;x129<120;x129++) { if(x129%2==0) { x126=x123+x125*Math.cos((x127*x129)/120); x128+=" "+x126; } else { x126=x124+x125*Math.sin((x127*x129)/120); x128+=","+x126; } } var x130=""; x130+=x128+""; return x130; } MVSdoGeometry._f482=function(x131) { var x132=0; var x133=""; for(;x1320) x133+=" "; x133+=x131[x132+0]+","+x131[x132+1]; } return x133; } MVSdoGeometry.getDistance=function(x134,x135,x136,x137,x138,x139,x140,x141,x142) { if(!MVUtil.isNumber(x134)) { MVi18n._f6("MVSdoGeometry.getDistance","MAPVIEWER-05527","x1"); return null; } if(!MVUtil.isNumber(x135)) { MVi18n._f6("MVSdoGeometry.getDistance","MAPVIEWER-05527","y1"); return null; } if(!MVUtil.isNumber(x136)) { MVi18n._f6("MVSdoGeometry.getDistance","MAPVIEWER-05527","x2"); return null; } if(!MVUtil.isNumber(x137)) { MVi18n._f6("MVSdoGeometry.getDistance","MAPVIEWER-05527","y2"); return null; } var x143=new Array(x134,x135,x136,x137); var x144=MVSdoGeometry.createLineString(x143,x138); return x144.getLength(x139,x140,x141,x142); } MVSdoGeometry.calcLength=function(x145) { var x146=0,x147=2; if(x145&&x145.length>3) { for(;x147=4) { var x152=0; var x153=x150.length/2; var x154; for(x154=1;x154+1x8&&x3._f209._f225) { x3._f211._f225=false; x3._f209.setZoomLevel(MVOverviewMap._f226(x3._f209.getZoomLevel()-x10)); x3._f227(); } else if(x9"; else if(_f65._f66=='SF') x17._f223.innerHTML="
"; else if(_f65._f66=='IF') x17._f223.innerHTML="
"; if(x22>x17._f211._f106()||x23>x17._f211._f107()) x17._f223.style.visibility="hidden"; else x17._f223.style.visibility=x17._f211._f224.style.visibility; x17._f223.onmousedown=MVUtil._f103(x17._f223,function(x24){ var x25=x17._f209.getCenter(); x24=(x24)?x24:((window.event)?event:null); if(x24.button==2) { return; } x17.coords=x17._f211._f229(x24) x17._f212=true; MVUtil._f175(x24); x17._f213=0; x17._f214=0; }) x17._f223.onmouseup=MVUtil._f103(x17._f223,function(x26) { if(x17._f212) { x26=(x26)?x26:((window.event)?event:null); x17._f212=false; x26.cancelBubble=true; x17._f223._f230(); } }) x17._f223._f230=MVUtil._f103(x17._f223,function() { x17._f212=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._f211; var x30=x27-x29._f106()/2; x30=x30/x29._f72; var x31=x28-x29._f107()/2; x31=x31/x29._f74; var x32=x17._f211._f231()+x30; var x33=x17._f211._f232()-x31; var x34=MVSdoGeometry.createPoint(x32,x33,x17._f211.srid); x17._f211.setCenter(x34); }) if(!x17._f219) MVUtil.detachEvent(window.document,"mouseup",x17._f219); x17._f219=MVUtil._f103(window.document,function(x35) { if(x17._f212){ x17._f212=false; x17._f223._f230(); } }); MVUtil.attachEvent(window.document,"mouseup",x17._f219); x17._f223.onmousemove=MVUtil._f103(x17._f223,function(x36) { x36=(x36)?x36:((window.event)?event:null); if(x17._f212) { var x37=x17._f211._f229(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._f209.transformGeom(x15,x16.srid,null,x18); } else x18(x15); } MVOverviewMap.prototype._f233=function(x38,x39) { if(this.xRatio==undefined) return ; var x40=Math.floor(this.xRatio*x38*(this._f211._f106()/this._f209._f106())); var x41=Math.floor(this.yRatio*x39*(this._f211._f107()/this._f209._f107())); 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._f215) { this._f216=true; this._f223.style.left=(parseInt(this._f223.style.left)+x40)+"px"; this._f223.style.top=(parseInt(this._f223.style.top)+x41)+"px"; } } MVOverviewMap.prototype._f234=function() { if(!this._f215) { this._f216=true; this._f211.setCenter(this._f209.getCenter()); this._f227(); } this._f215=false; } MVOverviewMap.prototype._f235=function(x42,x43,x44) { var x45=x42-x43; if(x43>=x42&&this._f211._f225) { this._f209._f225=false; if(x42-this._f211.getZoomLevel()==this._f210){ if(x44) this._f211.setCenterAndZoomLevel(x44,MVOverviewMap._f226(this._f211.getZoomLevel()-x45)); else this._f211.setZoomLevel(MVOverviewMap._f226(this._f211.getZoomLevel()-x45)); } else { if(x44) this._f211.setCenterAndZoomLevel(x44,MVOverviewMap._f226(x42-x45-this._f210)); else this._f211.setZoomLevel(MVOverviewMap._f226(x42-x45-this._f210)); } } else if(x43=0&&i1) x18.removeChild(x18.childNodes[1]); x18.appendChild(x13._f927[x15]); x13._f930[x13.active].style.cssText=x13.style_inactiveTab; x13._f930[x13.active].style.height=MVUtil._f26(10);x13._f930[x13.active].style.width=((100-10)/x16)+"%"; x13._f930[x13.active].style.borderBottom=x13.style_tabBorder; x13._f930[x13.active].style.cursor="pointer"; if(x13.active+1==x13._f930.length) x13._f930[x13.active].style.borderRight="none"; else x13._f930[x13.active].style.borderRight=x13.style_tabBorder; x13._f930[x15].style.cssText=x13.style_activeTab; x13._f930[x15].style.height=MVUtil._f26(10);x13._f930[x15].style.width=((100-10)/x16)+"%"; x13._f930[x15].style.borderBottom="none"; x13._f930[x15].style.borderRight=x13.style_tabBorder; x13._f930[x15].style.cursor="default"; if(x15+1==x13._f930.length){ x13._f930[x15].style.borderRight=x13.style_tabBorder; } x13.active=x15; MVInfoWindowStyle1.pauseRedraw=false; MVInfoWindowStyle1._f310=x17.offsetWidth;MVInfoWindowStyle1._f311=x17.offsetHeight;x17.style.height=x17.offsetHeight} for(var x19=0;x191){ x33.style.cssText=this._f923; x33.style.border="0px none"; x33.style.padding="0px"; x33.style.height=MVUtil._f26(10); for(var x35=0;x35(x69?x69:_f65._f310)) x72.style.width=MVUtil._f26(x73); var x74=0; var x75=this._f927[0].offsetHeight; for(var x76=1;x76(x70?x70:_f65._f311)) x72.style.height=MVUtil._f26(x77); } } MVInfoWindowStyle1.setCloseButtonSize=function() { if(this.closeButtonWidth||!this._f929||!this._f929.firstChild) return ; this.closeButtonWidth=this._f929.firstChild.offsetWidth; this.closeButtonHeight=this._f929.firstChild.offsetHeight; } MVInfoWindowStyle1.clear=function() { if(this._f926) MVUtil._f197(this._f926); this._f926=null; if(this._f927) MVUtil._f197(this._f927); this._f927=null; if(this._f929) MVUtil._f197(this._f929); this._f929=null; if(this.titleRow) MVUtil._f197(this.titleRow); this.titleRow=null; if(this._f930) { for(var x78=0;x781){ for(var x83=0;x83=0&&i1) x15=new _f296(MVInfoWindowStyle4.windowTabsHeaderLeft,5,31,null,null,null,true) else x15=new _f296(MVInfoWindowStyle4.windowHeaderLeft,5,31,null,null,null,true) x14.appendChild(x15); var x16=document.createElement("td"); x16.style.paddingTop=MVUtil._f26(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); var x17=document.createElement("td"); x13.appendChild(x17); var x18=null; if(x7&&x7.length>1) x18=new _f296(MVInfoWindowStyle4.windowTabsHeaderRight,5,31,null,null,null,true) else x18=new _f296(MVInfoWindowStyle4.windowHeaderRight,5,31,null,null,null,true); x17.appendChild(x18); var x19=document.createElement("tr"); x12.appendChild(x19); var x20=document.createElement("td"); x19.appendChild(x20); x20.colSpan="3"; x20.style.backgroundColor="#EBEFF5"; x20.style.borderLeft="1px solid #C2C7D3"; x20.style.borderRight="1px solid #C2C7D3"; var x21=document.createElement("div"); x21.style.width=MVUtil._f26(x5-2); x21.style.height=MVUtil._f26(x6-62>0?x6-62:0); x20.appendChild(x21) var x22=document.createElement("tr"); x12.appendChild(x22); var x23=document.createElement("td"); x22.appendChild(x23); var x24=new _f296(MVInfoWindowStyle4.windowFooterLeft,5,31,null,null,null,true) x23.appendChild(x24); var x25=document.createElement("td"); x22.appendChild(x25); var x26=new _f296(MVInfoWindowStyle4.windowFooterMiddle,x5-5-5,31,null,null,null,true); x25.appendChild(x26); var x27=document.createElement("td"); x22.appendChild(x27); var x28=new _f296(MVInfoWindowStyle4.windowFooterRight,5,31,null,null,null,true); x27.appendChild(x28); if(!x11.style.width||x11.style.width==""|| x11.style.width=="0"||x11.style.width=="0px") { if(x5) x11.style.width=MVUtil._f26(x5); else x11.style.width=MVUtil._f26(_f65._f310[x8]); } if(!x11.style.height||x11.style.height==""|| x11.style.height=="0"||x11.style.height=="0px") { if(x6) x11.style.height=MVUtil._f26(x6); else x11.style.height=MVUtil._f26(_f65._f311[x8]); } var x29=MVInfoWindowStyle4.createWindowShadow(x5,x6); this._f384.appendChild(x29); this._f384.style.left=MVUtil._f26(x3-MVInfoWindowStyle4._f454); this._f384.style.top=MVUtil._f26(x4+MVInfoWindowStyle4._f454); this._f384.style.position='absolute'; this._f384.style.zIndex=200; return this._f384; } MVInfoWindowStyle4.createWindowShadow=function(x30,x31) { var x32=0; var x33=0; var x34=[24,16,12,10,8,6,6,4,4,4,4,2,2,2,2,2,2,2]; var x35=document.createElement("DIV"); x35.style.zIndex="-1"; x35.style.position="absolute"; x35.style.left=MVUtil._f26(3); x35.style.top=MVUtil._f26(3); for(var x36=0;x36<18;x36++) { var x37=document.createElement("DIV"); x37.style.backgroundColor="#000000"; x37.style.left=MVUtil._f26(x32); x37.style.top=MVUtil._f26(x33); x37.style.position="absolute"; x37.style.width=MVUtil._f26(x30-3); x37.style.height=MVUtil._f26(x31-3); var x38=x34[x36]; MVInfoWindowStyle4.setOpaque(x37,x38); if(x36%2==0) x32++; else x33++; x35.appendChild(x37); } return x35; } MVInfoWindowStyle4.createTitleAndContent=function(x39,x40,x41,x42,x43,x44,x45,x46) { var x47=document.createElement("table"); x47.id="infowindow4tablebutton_"+x39; x47.style.left="0px"; x47.style.top="0px"; x47.style.width=MVUtil._f26(x43); x47.style.height=MVUtil._f26(x44); x47.style.position="absolute"; x47.style.zIndex="250"; x47.cellPadding="0"; x47.cellSpacing="0"; var x48=document.createElement("tbody"); x47.appendChild(x48); var x49=document.createElement("tr"); x48.appendChild(x49); var x50=document.createElement("td"); x49.appendChild(x50); var x51=document.createElement("td"); x49.appendChild(x51); if(x40==null||x40=="") { x50.innerHTML=""; x50.width=MVUtil._f26(10); var x52=document.createElement("td"); x52.width=MVUtil._f26(13); x52.height="100%"; if(!x46) { var x53=document.createElement("table"); x53.style.height="100%"; x53.cellPadding="0"; x53.cellSpacing="0"; x52.style.verticalAlign="top"; x52.appendChild(x53); var x54=document.createElement("tbody"); x53.appendChild(x54); var x55=document.createElement("tr"); x54.appendChild(x55); var x56=document.createElement("td"); x56.height=MVUtil._f26(6); x56.innerHTML=""; x55.appendChild(x56); var x57=document.createElement("tr"); x54.appendChild(x57); var x58=document.createElement("td"); x58.height=MVUtil._f26(13); x57.appendChild(x58); var x59=document.createElement("tr"); x54.appendChild(x59); var x60=document.createElement("td"); x60.style.height="100%"; x60.innerHTML=""; x59.appendChild(x60); var x61=MVInfoWindowStyle4.addCloseButton(x45); if(x61!=null) x58.appendChild(x61); } x49.appendChild(x52); var x62=document.createElement("td"); x62.width=MVUtil._f26(5); x62.innerHTML=""; x49.appendChild(x62); var x63=document.createElement("table"); x63.cellPadding="0"; x63.cellSpacing="0"; x63.style.width="100%"; x63.style.height="100%"; x51.style.verticalAlign="top"; x51.appendChild(x63); var x64=document.createElement("tbody"); x63.appendChild(x64); var x65=document.createElement("tr"); x64.appendChild(x65); var x66=document.createElement("td"); x66.height=MVUtil._f26(10); x66.innerHTML=""; x65.appendChild(x66); var x67=document.createElement("tr"); x64.appendChild(x67); var x68=document.createElement("td"); x68.style.height="100%"; x68.style.verticalAlign="top"; x67.appendChild(x68); var x69=document.createElement("div"); x69.style.overflow="auto"; x69.id=x39+"_content"; x69.innerHTML=x41; if(x44&&x44>20) x69.style.height=MVUtil._f26(x44-20); if(x43&&x43>28) x69.style.width=MVUtil._f26(x43-28); x68.appendChild(x69); var x70=document.createElement("tr"); x64.appendChild(x70); var x71=document.createElement("td"); x71.height=MVUtil._f26(10); x71.innerHTML=""; x70.appendChild(x71); } else { x50.style.width=MVUtil._f26(6); x51.style.height="100%"; x50.innerHTML=""; var x72=document.createElement("table"); x72.cellPadding="0"; x72.cellSpacing="0"; x72.style.width="100%"; x72.style.height="100%"; x51.appendChild(x72); var x73=document.createElement("tbody"); x72.appendChild(x73); var x74=document.createElement("tr"); x73.appendChild(x74); var x75=document.createElement("td"); x75.width="100%"; x74.appendChild(x75); var x76=document.createElement("table"); x76.style.width="100%"; x76.cellPadding="0"; x76.cellSpacing="0"; x75.appendChild(x76); var x77=document.createElement("tbody"); x76.appendChild(x77); var x78=document.createElement("tr"); x77.appendChild(x78); var x79=document.createElement("td"); x79.style.width="100%"; x78.appendChild(x79); var x80=document.createElement("table"); x80.style.width="100%"; x80.cellPadding="0"; x80.cellSpacing="0"; x79.appendChild(x80); var x81=document.createElement("tbody"); x80.appendChild(x81); var x82=document.createElement("tr"); x81.appendChild(x82); var x83=document.createElement("td"); x83.height="6px"; x83.innerHTML=""; x82.appendChild(x83); var x84=document.createElement("tr"); x81.appendChild(x84); var x85=document.createElement("td"); x85.style.cssText="font-family: Tahoma; font-size: 12px;font-weight: bold; color:#3E403D"; x84.appendChild(x85); x85.id=x39+"_title"; x85.innerHTML=x40; var x86=document.createElement("tr"); x81.appendChild(x86); var x87=document.createElement("td"); x87.height="10px"; x87.innerHTML=""; x86.appendChild(x87); var x88=document.createElement("td"); x88.style.width=MVUtil._f26(18); x78.appendChild(x88); if(!x46) { var x53=document.createElement("table"); x53.cellPadding="0"; x53.cellSpacing="0"; x53.style.height="100%"; x53.style.width=MVUtil._f26(18); x88.style.height="100%" x88.appendChild(x53); x88.style.verticalAlign="top"; var x54=document.createElement("tbody"); x53.appendChild(x54); var x55=document.createElement("tr"); x54.appendChild(x55); var x56=document.createElement("td"); x56.style.height=MVUtil._f26(6); x56.innerHTML=""; x56.colSpan="2"; x55.appendChild(x56); var x57=document.createElement("tr"); x54.appendChild(x57); var x89=document.createElement("td"); x89.style.height=MVUtil._f26(13); x89.style.width=MVUtil._f26(13); x57.appendChild(x89); var x90=document.createElement("td"); x90.style.width=MVUtil._f26(5); x90.innerHTML=""; x57.appendChild(x90); var x57=document.createElement("tr"); x54.appendChild(x57); var x60=document.createElement("td"); x60.style.height="100%"; x60.colSpan="2"; x57.appendChild(x60); var x61=MVInfoWindowStyle4.addCloseButton(x45); if(x61!=null) x89.appendChild(x61); } var x91=document.createElement("tr"); x73.appendChild(x91); var x92=document.createElement("td"); x92.width="100%"; x92.height="100%"; x91.appendChild(x92); var x93=document.createElement("tr"); x73.appendChild(x93); var x94=document.createElement("td"); x94.height=MVUtil._f26(10); x94.innerHTML=""; x93.appendChild(x94); var x63=document.createElement("table"); x63.cellPadding="0"; x63.cellSpacing="0"; x63.style.height="100%"; x63.style.width="100%"; x92.style.verticalAlign="top"; x92.appendChild(x63); var x64=document.createElement("tbody"); x63.appendChild(x64); x65=document.createElement("tr"); x64.appendChild(x65); x66=document.createElement("td"); x66.style.width=MVUtil._f26(4); x66.innerHTML=""; x65.appendChild(x66); x68=document.createElement("td"); x65.appendChild(x68); x71=document.createElement("td"); x71.style.width=MVUtil._f26(5); x71.innerHTML=""; x65.appendChild(x71); var x69=document.createElement("div"); x69.style.overflow="auto"; x69.innerHTML=x41; x69.id=x39+"_content"; if(x43&&x43>15) x69.style.width=MVUtil._f26(x43-15); x68.style.verticalAlign="top"; x68.appendChild(x69); } return x47; } MVInfoWindowStyle4.createTabsAndContent=function(x95,x96,x97,x98,x99,x100) { return MVInfoWindowStyle4.tabStyleOne(x95,x96,x97,x98,x99,x100,this.tabStyle); } MVInfoWindowStyle4.tabStyleTwo=function(x101,x102,x103,x104,x105,x106) { var x107=MVInfoWindowStyle4.addCloseButton(x106); var x108=document.createElement("div"); var x109=null; var x110=9; var x111=30; var x112=0; var x113=0; var x114=true; var x115=document.createElement("div"); var x116=MVUtil._f172(MVInfoWindowStyle4.overFlowLeftEnable,true); var x117=MVUtil._f172(MVInfoWindowStyle4.overFlowRightEnable,true); var x118=null; var x119=null; var x120=null; var x121={startImg:null,midImg:null,endImag:null}; var x122=0; var x123=new Array(); var x124=x103-15-13-10-5; var x125; var x126=15; var x127; var x128; MVInfoWindowStyle4.getPageDirection(x105); var x129=MVUtil._f172(MVInfoWindowStyle4.tabSelectedStartImgURL,true); x129.style.width=x126+"px"; x129.style.height="24px"; var x130=MVUtil._f172(MVInfoWindowStyle4.tabEnableStartImgURL,true); x130.style.width=x126+"px"; x130.style.height="24px"; var x131=MVUtil._f172(MVInfoWindowStyle4.tabSelectedEndImgURL,true); x131.style.width="36px"; x131.style.height="24px"; var x132=MVUtil._f172(MVInfoWindowStyle4.tabEnableEndImgURL,true); x132.style.width="36px"; x132.style.height="24px"; if(x102!=null||x102!=undefined) x112=x102; for(var x133=0;x133=x115.scrollHeight) { x120=MVInfoWindowStyle4.createContentDiv(x103-x110,x104-x111-(x122-1)*20,x115.offsetTop+15+(x122-1)*20); } else { x115.style.top=x115.offsetTop+13+"px"; x120=MVInfoWindowStyle4.createContentDiv(x103-x110,x104-x115.offsetTop-x115.offsetHeight-5,x115.offsetTop+x115.offsetHeight-6); x115.scrollTop=x115.scrollHeight; } x108.appendChild(x120); document.getElementById("realContentDivId").innerHTML=x101[x112].content; return x108; } MVInfoWindowStyle4.tabStyleOne=function(x139,x140,x141,x142,x143,x144,x145) { var x146=MVInfoWindowStyle4.addCloseButton(x144); var x147=document.createElement("div"); var x148=null; var x149=9; var x150=30; var x151=0; var x152=0; var x153=true; var x154=document.createElement("div"); var x155=document.createElement("div"); var x156=MVUtil._f172(MVInfoWindowStyle4.overFlowLeftEnable,true); var x157=MVUtil._f172(MVInfoWindowStyle4.overFlowRightEnable,true); var x158=null; var x159=null; var x160=null; var x161=10; var x162=20; var x163=12; var x164=4; var x165=x163; var x145=this.tabStyle; var x166; var x167; var x168={startImg:null,midImg:null,endImag:null}; if(x140!=null||x140!=undefined) x151=x140; MVInfoWindowStyle4.getPageDirection(x143); var x169=MVUtil._f172(MVInfoWindowStyle4.tabSelectedStartImgURL,true,true); x169.style.width=x161+"px"; x169.style.height="24px"; var x170=MVUtil._f172(MVInfoWindowStyle4.tabEnableStartImgURL,true,true); x170.style.width=x161+"px"; x170.style.height="24px"; var x171=MVUtil._f172(MVInfoWindowStyle4.tabSelectedEndImgURL,true,true); x171.style.width=x162+"px"; x171.style.height="24px"; var x172=MVUtil._f172(MVInfoWindowStyle4.tabEnableEndImgURL,true,true); x172.style.width=x162+"px"; x172.style.height="24px"; x147.style.position="absolute"; x147.style.width=MVUtil._f26(x141); x147.style.height=MVUtil._f26(x142); x147.style.zIndex="220"; x143.appendChild(x147); for(var x173=0;x173=0) x156.style.visibility="hidden"; else x156.style.visibility="visible"; var x5=document.getElementById("inforwindowtab_"+(x139.length-1)); if(x5.offsetLeft+x5.offsetWidth+x154.offsetLeft<=x155.offsetWidth) x157.style.visibility="hidden"; else x157.style.visibility="visible"; } x147.appendChild(x156); if(MVInfoWindowStyle4.pageDirection) x156.style.left="2px"; else { x156.style.right="2px"; if(x156.tagName=='IMG') x156.src=MVInfoWindowStyle4.overFlowRightEnable; else if(x156.tagName=='DIV') x156.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowRightEnable+"', sizingMethod='image')" } x156.style.width="13px"; x156.style.top="5px"; x156.style.position="absolute"; x156.style.zIndex=500; x156.style.visibility="hidden"; MVUtil.attachEvent(x156,"mouseover",mouseOverLeftOverflow); MVUtil.attachEvent(x156,"mouseout",mouseOutLeftOverflow); MVUtil.attachEvent(x156,"mousedown",mouseDownLeftOverflow); MVUtil.attachEvent(x156,"mouseup",mouseUpLeftOverflow); function mouseOverRightOverflow(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); if(MVInfoWindowStyle4.pageDirection) { if(x1.tagName=='IMG') x1.src=MVInfoWindowStyle4.overFlowRightOver; else if(x1.tagName=='DIV') x1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowRightOver+"', sizingMethod='image');" } else { if(x1.tagName=='IMG') x1.src=MVInfoWindowStyle4.overFlowLeftOver; else if(x1.tagName=='DIV') x1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowLeftOver+"', sizingMethod='image');" } } function mouseOutRightOverflow(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); if(MVInfoWindowStyle4.pageDirection) { if(x1.tagName=='IMG') x1.src=MVInfoWindowStyle4.overFlowRightEnable; else if(x1.tagName=='DIV') x1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowRightEnable+"', sizingMethod='image');" } else { if(x1.tagName=='IMG') x1.src=MVInfoWindowStyle4.overFlowLeftEnable; else if(x1.tagName=='DIV') x1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowLeftEnable+"', sizingMethod='image');" } } function mouseDownRightOverflow(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); if(MVInfoWindowStyle4.pageDirection) { if(x1.tagName=='IMG') x1.src=MVInfoWindowStyle4.overFlowRightDown; else if(x1.tagName=='DIV') x1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowRightDown+"', sizingMethod='image');" } else { if(x1.tagName=='IMG') x1.src=MVInfoWindowStyle4.overFlowLeftDown; else if(x1.tagName=='DIV') x1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowLeftDown+"', sizingMethod='image');" } } function mouseUpRightOverflow(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); if(MVInfoWindowStyle4.pageDirection) { if(x1.tagName=='IMG') x1.src=MVInfoWindowStyle4.overFlowRightEnable; else if(x1.tagName=='DIV') x1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowRightEnable+"', sizingMethod='image');" } else { if(x1.tagName=='IMG') x1.src=MVInfoWindowStyle4.overFlowLeftEnable; else if(x1.tagName=='DIV') x1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowLeftEnable+"', sizingMethod='image');" } if(MVInfoWindowStyle4.pageDirection) { var x2=x154.style.left.toString(); var x3=x2.substr(0,x2.length-2).valueOf(); x154.style.left=MVUtil._f26(x3-30); if(x154.offsetLeft>=0) x156.style.visibility="hidden"; else x156.style.visibility="visible"; var x4=document.getElementById("inforwindowtab_"+(x139.length-1)); if(x4.offsetLeft+x4.offsetWidth+x154.offsetLeft<=x155.offsetWidth) x157.style.visibility="hidden"; else x157.style.visibility="visible"; } else { var x2=x154.style.right.toString(); var x5=x2.substr(0,x2.length-2).valueOf(); x154.style.right=MVUtil._f26(x5-30); if(x154.offsetLeft>=0) x156.style.visibility="hidden"; else x156.style.visibility="visible"; var x4=document.getElementById("inforwindowtab_"+(x139.length-1)); if(x4.offsetLeft+x4.offsetWidth+x154.offsetLeft<=x155.offsetWidth) x157.style.visibility="hidden"; else x157.style.visibility="visible"; } } if(MVInfoWindowStyle4.pageDirection) { x157.style.right="25px"; } else { x157.style.left="25px"; if(x157.tagName=='IMG') x157.src=MVInfoWindowStyle4.overFlowLeftEnable; else if(x157.tagName=='DIV') x157.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.overFlowLeftEnable+"', sizingMethod='image')" } x157.style.width="13px"; x157.style.top="5px"; x157.style.position="absolute"; x157.style.zIndex="500"; x157.style.visibility="hidden"; MVUtil.attachEvent(x157,"mouseover",mouseOverRightOverflow); MVUtil.attachEvent(x157,"mouseout",mouseOutRightOverflow); MVUtil.attachEvent(x157,"mousedown",mouseDownRightOverflow); MVUtil.attachEvent(x157,"mouseup",mouseUpRightOverflow); x147.appendChild(x157); if(MVInfoWindowStyle4.pageDirection) { x154.style.left="0px"; } else { x154.style.right="0px"; } x159=document.createElement("div"); x159.style.position="absolute"; x159.style.borderColor="black"; x159.style.backgroundColor="#ffffe1"; x159.style.borderWidth="1px"; x159.style.borderStyle="solid"; x159.style.fontSize="14px"; x159.style.whiteSpace="nowrap"; x159.style.padding="2px"; x159.style.zIndex="10000"; x159.style.fontFamily="Tahoma"; x159.id="TabbedInforwindowToolTip"; function mouseOver(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); x158=x1.style.color; x1.style.color="#78c3ff"; x159.topOffset=15; x159.leftOffset=15; if(window.innerWidth) { x159.topOffset+=window.pageYOffset; x159.leftOffset+=window.pageXOffset; }else if(document.documentElement&&document.documentElement.clientWidth) { x159.topOffset+=document.documentElement.scrollTop; x159.leftOffset+=document.documentElement.scrollLeft; }else if(document.body.clientWidth) { x159.topOffset+=document.body.scrollTop; x159.leftOffset+=document.body.scrollLeft; } x159.innerHTML=x139[x1.parentNode.parentNode.indexInList].title; x159.style.top=x0.clientY+x159.topOffset+"px"; x159.style.left=x0.clientX+x159.leftOffset+"px"; document.body.appendChild(x159); } function mouseOut(x0){ x0=(x0)?x0:((window.event)?event:null); var x1=MVUtil.getEventSource(x0); x1.style.color=x158; document.body.removeChild(x159); } function _f152(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); x151=x1.parentNode.parentNode.indexInList; x168.startImg.parentNode.style.zIndex=100; x1.parentNode.parentNode.style.zIndex=200; MVUtil._f197(x168.startImg); x168.startImg.appendChild(x170.cloneNode(true)); if(MVInfoWindowStyle4.pageDirection) { x168.startImg=x1.parentNode.parentNode.firstChild; }else { x168.startImg=x1.parentNode.parentNode.childNodes[2]; } MVUtil._f197(x168.startImg); x168.startImg.appendChild(x169.cloneNode(true)); x168.midImg.style.backgroundImage="url('"+MVInfoWindowStyle4.tabEnableMidImgURL+"')"; x1.parentNode.style.backgroundImage="url('"+MVInfoWindowStyle4.tabSelectedMidImgURL+"')"; x168.midImg.firstChild.style.color="#e9f6fe"; x168.midImg=x1.parentNode; x1.style.color="#00234c"; MVUtil._f197(x168.endImg); x168.endImg.appendChild(x172.cloneNode(true)); if(MVInfoWindowStyle4.pageDirection) { x168.endImg=x1.parentNode.parentNode.childNodes[2]; }else { x168.endImg=x1.parentNode.parentNode.firstChild; } MVUtil._f197(x168.endImg); x168.endImg.appendChild(x171.cloneNode(true)); document.getElementById("realContentDivId").innerHTML=x139[x1.parentNode.parentNode.indexInList].content; x158=x1.style.color; } function createTabs(x0,x1,x2,x3) { x148=0; for(x173=0;x173x155.offsetWidth+20&&x145=="p") { var x12=x6.clientWidth; x8.innerHTML=x0[x173].title; var x13; if(x0[x173].title.length-2>x3) x13=x0[x173].title.substr(0,x3)+".."; else x13=x0[x173].title; x8.innerHTML=x13; } MVUtil.attachEvent(x8,"mouseover",mouseOver); MVUtil.attachEvent(x8,"mouseout",mouseOut); MVUtil.attachEvent(x8,"mousedown",_f152); MVUtil.attachEvent(x8,"mouseup",mouseUp); x7.style.width=x162+"px"; x7.style.height="24px"; x7.style.backgroundPosition="bottom"; x7.style.position="relative"; if(x173==x151) x11=MVUtil._f172(MVInfoWindowStyle4.tabSelectedEndImgURL,true,true); else x11=MVUtil._f172(MVInfoWindowStyle4.tabEnableEndImgURL,true,true); x11.style.width=x162+"px"; x11.style.height="24px"; x7.appendChild(x11); x148=x148+x6.clientWidth+x161+x162; x1.style.width=x148+"px"; x4.id="inforwindowtab_"+x173; if(x173==x151) { x168.endImg=x7; x168.startImg=x5; x168.midImg=x6; } } } if(x165<=x155.offsetWidth+20||x145=="f") { createTabs(x139,x154,document.getElementById("realContentDivId")); } else { createTabs(x139,x154,document.getElementById("realContentDivId"),1); if(x154.offsetWidth-x163*(x139.length-1)x155.offsetWidth+20) { for(var x174=1;;x174++) { for(var x173=0;x173x167-x174) x175.innerHTML=x139[x173].title.substr(0,x167-x174)+".."; else x175.innerHTML=x139[x173].title; var x177=x175.offsetWidth; x154.style.width=x154.offsetWidth+x177-x176; if(x154.offsetWidth-x163*(x139.length-1)<=x155.offsetWidth+20) { x155.style.width=x141-2-13-25-13+20+"px"; return x147; } } if(x154.offsetWidth-x163*(x139.length-1)<=x155.offsetWidth+20) { x155.style.width=x141-2-13-25-13+20+"px"; return x147; } } } MVUtil._f129(x154); } } else if(x154.offsetWidth-x163*(x139.length-1)>x155.offsetWidth+20) { MVUtil._f129(x154); x167=4; createTabs(x139,x154,document.getElementById("realContentDivId"),x167); } } if(x154.offsetWidth-x163*(x139.length-1)>x155.offsetWidth+20) x157.style.visibility="visible"; else if(x154.offsetWidth-x163*(x139.length-1)>x155.offsetWidth) x155.style.width=x141-2-13-25+7+"px"; return x147; } MVInfoWindowStyle4.createContentDiv=function(x178,x179,x180) { var x181=document.createElement("div"); x181.style.left="5px"; x181.style.top=x180+"px"; x181.style.width=x178+"px"; if(x179<30) x179=70; x181.style.height=x179+"px"; x181.style.position="absolute"; var x182=document.createElement("div"); var x183=document.createElement("div"); var x184=MVUtil._f172(MVInfoWindowStyle4.tabContentHeadStartImgURL,true); var x185=document.createElement("div"); var x186=document.createElement("div"); var x187=MVUtil._f172(MVInfoWindowStyle4.tabContentHeadEndImgURL,true); x182.style.position="absolute"; x182.style.top="5px"; x183.style.width="5px"; x183.style.height="5px"; x183.style.position="absolute"; x184.style.width="5px"; x183.appendChild(x184); x182.appendChild(x183); x185.style.width=(x178-5-8)+"px"; x185.style.height="5px"; x185.style.position="absolute"; x185.style.backgroundRepeat="repeat-x"; x185.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentHeadMidImgURL+")"; x182.appendChild(x185); x186.style.width="8px"; x186.style.height="5px"; x186.style.position="absolute"; x187.style.width="8px"; x186.appendChild(x187); x182.appendChild(x186); x181.appendChild(x182); var x188=document.createElement("div"); var x189=document.createElement("div"); var x190=document.createElement("div"); var x191=document.createElement("div"); var x192=document.createElement("div"); x188.style.position="absolute"; x188.style.top="10px"; x189.style.width="5px"; x189.style.height=(x179-5-7)+"px"; x189.style.position="absolute"; x189.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentMidStartImgURL+")"; x188.appendChild(x189); x190.style.width=(x178-5-8)+"px"; x190.style.height=(x179-5-7)+"px"; x190.style.position="absolute"; x190.style.backgroundRepeat="repeat-x"; x190.style.backgroundColor="#F8F8FB"; x190.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentMidMidImgURL+")"; x191.style.overflow="auto"; x191.style.width=(x178-5-8)+"px"; x191.style.height=(x179-5-7-6-9)+"px"; x191.style.position="absolute"; x191.style.top="15px"; x191.style.left="0px"; x191.id="realContentDivId"; x190.appendChild(x191); x188.appendChild(x190); x192.style.width="8px"; x192.style.height=(x179-5-7)+"px"; x192.style.position="absolute"; x192.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentMidEndImgURL+")"; x188.appendChild(x192); x181.appendChild(x188); var x193=document.createElement("div"); var x194=document.createElement("div"); var x195=MVUtil._f172(MVInfoWindowStyle4.tabContentFooterStartImgURL,true); var x196=document.createElement("div"); var x197=document.createElement("div"); var x198=MVUtil._f172(MVInfoWindowStyle4.tabContentFooterEndImgURL,true); x193.style.position="absolute"; x193.style.top=(x179-7+5)+"px"; x194.style.width="6px"; x194.style.height="7px"; x194.style.position="absolute"; x195.style.width="6px"; x194.appendChild(x195); x193.appendChild(x194); x196.style.width=(x178-6-8)+"px"; x196.style.height="7px"; x196.style.position="absolute"; x196.style.backgroundRepeat="repeat-x"; x196.style.backgroundImage="url("+MVInfoWindowStyle4.tabContentFooterMidImgURL+")"; x193.appendChild(x196); x197.style.width="8px"; x197.style.height="7px"; x197.style.position="absolute"; x198.style.width="8px"; x197.appendChild(x198); x193.appendChild(x197); x181.appendChild(x193); if(MVInfoWindowStyle4.pageDirection) { x182.style.left="0px"; x188.style.left="0px"; x193.style.left="0px"; x183.style.left="0px"; x189.style.left="0px"; x194.style.left="0px"; x185.style.left="5px"; x186.style.left=(x178-8)+"px"; x190.style.left="5px"; x192.style.left=(x178-8)+"px"; x196.style.left="6px"; x197.style.left=(x178-8)+"px"; } else { x182.style.right="0px"; x188.style.right="0px"; x193.style.right="0px"; x183.style.right="0px"; x189.style.right="0px"; x194.style.right="0px"; x185.style.right="5px"; x186.style.right=(x178-8)+"px"; x190.style.right="5px"; x192.style.right=(x178-8)+"px"; x196.style.right="6px"; x197.style.right=(x178-8)+"px"; } return x181; } MVInfoWindowStyle4.addCloseButton=function(x199) { if(this.hideCloseButton) return null; var x200=MVUtil._f172(MVInfoWindowStyle4.closeButtonImgURL,true); x200.style.width=MVUtil._f26(13); x200.style.height=MVUtil._f26(13); var x201=function(x202) { MVInfoWindowStyle4.closeButtonImgURL=MVInfoWindowStyle4.closeButtonOverImgURL; x202=(x202)?x202:((window.event)?event:null); var x203=MVUtil.getEventSource(x202); if(x203.tagName=='IMG') x203.src=MVInfoWindowStyle4.closeButtonImgURL; else if(x203.tagName=='DIV') x203.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.closeButtonImgURL;+"', sizingMethod='image');" } var x204=function(x205) { MVInfoWindowStyle4.closeButtonImgURL=MVInfoWindowStyle4.closeButtonEnableImgURL; x205=(x205)?x205:((window.event)?event:null); var x206=MVUtil.getEventSource(x205); if(x206.tagName=='IMG') x206.src=MVInfoWindowStyle4.closeButtonImgURL; else if(x206.tagName=='DIV') x206.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.closeButtonImgURL;+"', sizingMethod='image');" } var x207=function(x208) { MVInfoWindowStyle4.closeButtonImgURL=MVInfoWindowStyle4.closeButtonDownImgURL; x208=(x208)?x208:((window.event)?event:null); var x209=MVUtil.getEventSource(x208); if(x209.tagName=='IMG') x209.src=MVInfoWindowStyle4.closeButtonImgURL; else if(x209.tagName=='DIV') x209.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.closeButtonImgURL;+"', sizingMethod='image');" } var x210=function(x211) { MVInfoWindowStyle4.closeButtonImgURL=MVInfoWindowStyle4.closeButtonOverImgURL; x211=(x211)?x211:((window.event)?event:null); var x212=MVUtil.getEventSource(x211); if(x212.tagName=='IMG') x212.src=MVInfoWindowStyle4.closeButtonImgURL; else if(x212.tagName=='DIV') x212.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ MVInfoWindowStyle4.closeButtonImgURL;+"', sizingMethod='image');" } MVUtil.attachEvent(x200,"mouseover",x201); MVUtil.attachEvent(x200,"mouseout",x204); MVUtil.attachEvent(x200,"mousedown",x207); MVUtil.attachEvent(x200,"mouseup",x210); if(x199!=null) MVUtil.attachEvent(x200,"click",x199); return x200; } MVInfoWindowStyle4._f455=function(x213,x214) { MVInfoWindowStyle4._f931(x213,this.x,this.y,x214); } MVInfoWindowStyle4._f931=function(x215,x216,x217,x218) { if(this._f925==0) return ; var x219=document.getElementById("infowindow4_"+x218); var x220=x219.style.zIndex-1; var x221=x219.offsetLeft; var x222=x219.offsetTop; x221-=x216; x222-=x217; var x223=1; var x224=1; var x225=x219.offsetWidth; var x226=x219.offsetHeight; var x227=0; var x228=50; var x229=260; var x230=340; var x231=50;if(this._f926) { MVUtil._f197(this._f926); if(this._f926.parentNode) this._f926.parentNode.removeChild(this._f926); } var x232=document.createElement("DIV"); x232.id=x219.id+'cones'; x232.style.position='absolute'; x232.style.left=x216+'px'; x232.style.top=x217+'px'; x232.style.border='0px solid #000000'; x232.style.zIndex=x220; this._f926=x232; x215.appendChild(x232); zcounter=0; var x233=x231;var x234=Math.round((this._f925/x231)*7); var x235=Math.abs(x221/x231); var x236=Math.abs(x222/x231); var x237=Math.abs(x235/x236); var x238=0; for(var x239=0;x239x248.offsetWidth+24?x249+15:x248.offsetWidth+24; } else { if(_f65._f66=='IF'&& x246.style.height!="0px") x250=x246.offsetHeight; else x250+=MVInfoWindowStyle4.TotalMarginHeight; if(MVUtil._f5(x245,"2")) x249+=MVInfoWindowStyle4.MultiFeatureListTotalMarginWidth; else x249+=28; } if(Math.abs(x249-x246.offsetWidth)>=5) return true; if(Math.abs(x250-x246.offsetHeight)>=5) return true; } } if((x246&& MVInfoWindowStyle4._f310[x245]&& Math.abs(MVInfoWindowStyle4._f310[x245]-x246.offsetWidth)<5&& MVInfoWindowStyle4._f311[x245]&& Math.abs(MVInfoWindowStyle4._f311[x245]-x246.offsetHeight)<5)) return false; else return true; } MVInfoWindowStyle4.clear=function() { if(this._f384) { MVUtil._f197(this._f384); this._f384=null; } if(this._f926) MVUtil._f197(this._f926); this._f926=null; } MVInfoWindowStyle4.createContentByDiv=function(x251,x252,x253,x254,x255) { var x256=document.createElement("table"); x256.style.position="absolute"; x256.style.zIndex="300"; x256.cellPadding="0"; x256.cellSpacing="0"; var x257=document.createElement("tbody"); x256.appendChild(x257); var x258=document.createElement("tr"); x257.appendChild(x258); var x259=document.createElement("td"); x259.rowSpan="3"; x259.style.width=MVUtil._f26(10); x259.innerHTML=""; x258.appendChild(x259); var x260=document.createElement("td"); x260.style.height=MVUtil._f26(10); x260.innerHTML=""; x258.appendChild(x260); var x261=document.createElement("td"); x261.style.width=MVUtil._f26(5); x261.rowSpan="3"; x261.innerHTML=""; x258.appendChild(x261); var x262=document.createElement("tr"); x257.appendChild(x262); var x263=document.createElement("td"); x263.style.verticalAlign="top"; var x264=document.createElement("div"); x264.id=x251+"_content"; x264.appendChild(x252); x263.appendChild(x264); x262.appendChild(x263); var x265=document.createElement("tr"); var x266=document.createElement("td"); x266.style.height=MVUtil._f26(10); x266.innerHTML=""; x265.appendChild(x266); x257.appendChild(x265); if(!x253) { x264.style.width=MVUtil._f26(x254-MVInfoWindowStyle4.MultiFeatureListTotalMarginWidth); x264.style.height=MVUtil._f26(x255-MVInfoWindowStyle4.TotalMarginHeight); x264.style.overflow="auto"; } return x256; } MVInfoWindowStyle4.getPageDirection=function(x267) { if(MVInfoWindowStyle4.pageDirection==null) { var x268=document.createElement("table"); var x269=document.createElement("tr"); var x270=document.createElement("td"); var x271=document.createElement("td"); var x272=document.createElement("tbody"); x268.cellSpacing=0; x268.cellPadding=0; x270.innerHTML="fsdfsds"; x271.innerHTML="p"; x272.appendChild(x269); x268.appendChild(x272); x269.appendChild(x270); x269.appendChild(x271); x267.appendChild(x268); var x273=x270.offsetLeft; if(x273==0) MVInfoWindowStyle4.pageDirection=true; else MVInfoWindowStyle4.pageDirection=false; x267.removeChild(x268); } if(!MVInfoWindowStyle4.pageDirection) { MVInfoWindowStyle4.tabEnableStartImgURL=_f65._f141+"infoicons/t3_above_start_n_r.png"; MVInfoWindowStyle4.tabEnableMidImgURL=_f65._f141+"infoicons/t3_above_mid_n_r.png"; MVInfoWindowStyle4.tabEnableEndImgURL=_f65._f141+"infoicons/t3_above_end_n_r.png"; MVInfoWindowStyle4.tabDisableStartImgURL=_f65._f141+"infoicons/t3_above_start_d_r.png"; MVInfoWindowStyle4.tabDisableMidImgURL=_f65._f141+"infoicons/t3_above_mid_d_r.png"; MVInfoWindowStyle4.tabDisableEndImgURL=_f65._f141+"infoicons/t3_above_end_d_r.png"; MVInfoWindowStyle4.tabSelectedStartImgURL=_f65._f141+"infoicons/t3_above_start_a_r.png"; MVInfoWindowStyle4.tabSelectedMidImgURL=_f65._f141+"infoicons/t3_above_mid_a_r.png"; MVInfoWindowStyle4.tabSelectedEndImgURL=_f65._f141+"infoicons/t3_above_end_a_r.png"; MVInfoWindowStyle4.tabContentHeadStartImgURL=_f65._f141+"infoicons/ptts_r.png"; MVInfoWindowStyle4.tabContentHeadMidImgURL=_f65._f141+"infoicons/ptt_r.png"; MVInfoWindowStyle4.tabContentHeadEndImgURL=_f65._f141+"infoicons/ptte_r.png"; MVInfoWindowStyle4.tabContentMidStartImgURL=_f65._f141+"infoicons/pts_r.png"; MVInfoWindowStyle4.tabContentMidMidImgURL=_f65._f141+"infoicons/ptc_r.png"; MVInfoWindowStyle4.tabContentMidEndImgURL=_f65._f141+"infoicons/pte_r.png"; MVInfoWindowStyle4.tabContentFooterStartImgURL=_f65._f141+"infoicons/ptbs_r.png"; MVInfoWindowStyle4.tabContentFooterMidImgURL=_f65._f141+"infoicons/ptb_r.png"; MVInfoWindowStyle4.tabContentFooterEndImgURL=_f65._f141+"infoicons/ptbe_r.png"; } } MVInfoWindowStyle4.getRealWithOfOneTab=function(x274,x275,x276) { var x277=0; var x278=document.createElement("a"); var x279=document.createElement("div"); x279.style.position="absolute"; x278.style.cursor="pointer"; x278.style.fontFamily="Tahoma"; x278.style.fontSize="11px"; x278.style.fontWeight="bold"; x274.appendChild(x279); x279.appendChild(x278); var x280=(x276-9-36)/6; x280=x280-x280%1+1; if(x280>x275.title.length) x280=x275.title.length; x278.innerHTML=x275.title.replace(/\s/g," "); x277=x279.offsetWidth+9+36; while(x277>x276){ var x281=x275.title.substring(0,x280).replace(/\s/g," ")+".."; x278.innerHTML=x281; x277=x279.offsetWidth+9+36; x275.showTitle=x281; x280--; } x274.removeChild(x279); return x277; } MVInfoWindowStyle4.getOrignalWithOfOneTab=function(x282,x283) { var x284=0; var x285=document.createElement("a"); var x286=document.createElement("div"); var x287=10; var x288=20; x286.style.position="absolute"; x285.style.cursor="pointer"; x285.style.fontFamily="Tahoma"; x285.style.fontSize="11px"; x285.style.fontWeight="bold"; x285.style.whiteSpace="nowrap"; x282.appendChild(x286); x286.appendChild(x285); x285.innerHTML=x283.title.replace(/\s/g," "); x284=x286.offsetWidth+x287+x288; x282.removeChild(x286); return x284; } MVInfoWindowStyle4.groupingTabs=function(x289,x290) { var x291; var x292=new Array(); var x293; var x294=0; var x295=false; for(var x296=0;x296x290) { x300[x305]-=x302[x306][1]; if(x301!=0) x300[x305]+=19; if(x306==x302.length-1) x304=x305+1; } else { x291[x305][x301]=x302[x306][0]; x302.splice(x306,1); break; } } } if(x302.length==0)break; if(x304==x299)break; x301++; } if(x302.length==0)break; } return x291; } function MVNSDP(x0) { this.nsdp_id=x0; this.nsdp_theme=null; this.nsdp_keycol=null; this.nsdp_rendersty=null; this.nsdp_labelsty=null; this.nsdp_params=null; this.nsdp_timeout=20; this.nsdp_smfo=true; } MVNSDP.prototype.setTheme=function(x0) { this.nsdp_theme=x0; } MVNSDP.prototype.setKeyColumn=function(x1) { this.nsdp_keycol=x1; } MVNSDP.prototype.setRenderStyle=function(x2) { this.nsdp_rendersty=x2; } MVNSDP.prototype.setLabelStyle=function(x3) { this.nsdp_labelsty=x3; } MVNSDP.prototype.setShowMatchedFeatureOnly=function(x4) { this.nsdp_smfo=x4; } MVNSDP.prototype.setParameters=function(x5) { this.nsdp_params=x5; } MVNSDP.prototype.setTimeout=function(x6) { this.nsdp_timeout=x6; } MVNSDP.prototype.getFlatString=function() { var x7="{"; x7+="\"nsdp_id\":"+"\""+this.nsdp_id+"\","; x7+="\"nsdp_theme\":"+"\""+this.nsdp_theme+"\","; x7+="\"nsdp_keycol\":"+"\""+this.nsdp_keycol+"\","; if(this.nsdp_smfo!=null&&this.nsdp_smfo==false) x7+="\"nsdp_smfo\":"+"\""+this.nsdp_smfo+"\","; if(this.nsdp_rendersty!=null) x7+="\"nsdp_rendersty\":"+"\""+this.nsdp_rendersty+"\","; if(this.nsdp_labelsty!=null) x7+="\"nsdp_labelsty\":"+"\""+this.nsdp_labelsty+"\","; x7+="\"nsdp_timeout\":"+"\""+this.nsdp_timeout+"\""; if(this.nsdp_params==null) { return x7+="}"; } x7+=",\"nsdp_params\":["; var x8=0; for(p in this.nsdp_params) { var x9=this.nsdp_params[p]; var x10=MVUtil._f43(x9,"\"","\\\""); x7+="{"+"\""+p+"\":"+"\""+x10+"\"},"; x8++; } if(x8>0) 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._f108!=null) x13=x11._f108; 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._f563=null; this._f564=new Array(); this._f562=x0; if(x0!="SCHEME_CUSTOM"&&x0!="SCHEME_EQUAL_INTERVAL") this._f562="SCHEME_CUSTOM"; } MVBucketSeries.prototype.setBuckets=function(x0) { this._f564=x0; } MVBucketSeries.prototype.getBuckets=function() { return this._f564; } MVBucketSeries.prototype.getScheme=function() { return _f562; } MVBucketSeries.prototype.setDefaultRenderingStyle=function(x1) { this._f563=x1; } MVBucketSeries.prototype.getXMLString=function() { var x2=(this._f563==null)?"":' default_style="'+this._f563+'" '; var x3=""; for(var x4=0;x4'; x0+=this._f564.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._f622.style.left=MVUtil._f26(0); this._f622.style.top=this._f633+((_f65._f66=="IF")?-1:1)+"px"; this._f622.style.border=MVUtil._f26(0); if(_f65._f66=="NS"||_f65._f66=="IF") { this._f622.style.width=this.width-2+"px" this._f622.style.height=(this.height-this._f633-1)+"px"; } else { this._f622.style.width=this.width-2+"px" this._f622.style.height=(this.height-this._f633-2)+"px"; } if(this.html) this._f622.innerHTML=this.html; this.realContdiv.appendChild(this._f622); this._f651=true; this.n=(this.height-this._f633)/this._f635+1; this._f160(this.realContdiv); this._f646(this._f647); if(this._f640) this.collapse(); else if(this._f622._f221||this._f621) this.parent._f650(this.parent); } else { if(this._f621) this.parent._f650(this.parent); x34.appendChild(this._f622); if(this.html) this._f622.innerHTML=this.html; this._f646(this._f622); if(this.width) this._f622.style.width=MVUtil._f26(this.width); if(this.height) this._f622.style.height=MVUtil._f26(this.height); this._f160(this._f622); var x36=this; var x40=document.createElement("img"); x40.src=MVUtil.getImageURL(this.style.dragIconImg); MVUtil._f654(x40); x40.style.zIndex=9999; x40.style.left=MVUtil._f26(0); x40.style.top=MVUtil._f26(-20); x40.style.visibility="hidden"; if(_f65._f66=="NS") { x40.onmousedown=function(x41) { if(x36._f645) { x36.parent._f653=x36; x36.dragStartMouseLoc=MVUtil._f177(x41); x36.dragStartLeft=MVUtil._f80(x36._f622); x36.dragStartTop=MVUtil._f81(x36._f622); if(x36._f630) x36._f630(x36.getPosition()); MVUtil.runListeners(x36._f93,MVEvent.AFTER_RESTORE,[x36.getPosition()]); MVUtil._f175(x41); } } } this._f622.appendChild(x40); var x42=this._f622.onmouseover; this._f622.onmouseover=function(x43) { if(x42) x42(x43); if(x36._f645) x40.style.visibility="visible"; } var x44=this._f622.onmouseout; this._f622.onmouseout=function(x45) { if(x44) x44(x45); if(x36.parent._f653!=x36) x40.style.visibility="hidden"; } if(this._f645) MVUtil._f162(this._f622,"move"); else MVUtil._f162(this._f622,"default"); this._f622.onmousedown=function(x46) { if(x36._f645) { x36.parent._f653=x36; x36.dragStartMouseLoc=MVUtil._f177(x46); x36.dragStartLeft=MVUtil._f80(x36._f622); x36.dragStartTop=MVUtil._f81(x36._f622); if(x36._f630) x36._f630(x36.getPosition()); MVUtil.runListeners(x36._f93,MVEvent.AFTER_RESTORE,[x36.getPosition()]); MVUtil.trapEvent(x46); } else if(!x36._f174) MVUtil.trapEvent(x46); } } if(this.mapControl) { if(this.mapControl.setMouseCursorStyle&&this.cursorStyle) this.mapControl.setMouseCursorStyle(this.cursorStyle,"default"); this.mapControl.init(this._f622,x33); this.mapControl._f620=true; } if(!this._f640) this._f648(); } MVMapDecoration.prototype._f160=function(x47) { var x48=this; var x49=function(x50) { if(!x48._f174) MVUtil.trapEvent(x50); } x47.onclick=function(x51) { x49(x51); if(x48._f625) { x48.parent._f179(); x48._f625(); } if(x48._f93[MVEvent.MOUSE_CLICK]!=null&&x48._f93[MVEvent.MOUSE_CLICK].length!=0) { x48.parent._f179(); MVUtil.runListeners(x48._f93,MVEvent.MOUSE_CLICK); } } x47.onmouseover=function(x52) { x49(x52); if(x48._f626) x48._f626(x52); MVUtil.runListeners(x48._f93,MVEvent.MOUSE_OVER,[x52]); }; x47.onmouseout=function(x53) { x49(x53); if(x48._f627) x48._f627(x53); MVUtil.runListeners(x48._f93,MVEvent.MOUSE_OUT,[x53]); } x47.ondblclick=x49; x47.onmousedown=x49; x47.onmouseup=function(x54) { x49(x54); if(x48._f645) x48._f179(); } x47.onkeyup=x49 if(_f65._f66=="OS") x47.onkeypress=x49; else x47.onkeydown=x49; if(_f65._f66=="IF") { x47.oncontextmenu=x49; x47.onselectstart=x49; } } MVMapDecoration.prototype.setIconImageListeners=function(x55) { var x56; if(this._f642) x56=this._f642; else if(x55) x56=MVUtil.getImageURL(this.style.resBtnImg); else x56=MVUtil.getImageURL(this.style.minBtnImg); var x57=null; if(x55) x57=this._f644; else x57=this.icon; x57.src=x56; var x58=this; if(x55) { x57.style.height=MVUtil._f26(this._f633-3); x57.style.width=MVUtil._f26(this._f633-3); x57.parentNode.onmouseover=MVUtil._f103(x57.parentNode,function() { x57.parentNode.style.backgroundImage="url("+MVUtil.getImageURL(x58.style.titleBgImgMO)+")"; x57.src=MVUtil.getImageURL(x58.style.resBtnImgMO); }); x57.parentNode.onmouseout=MVUtil._f103(x57.parentNode,function() { x57.parentNode.style.backgroundImage="url("+MVUtil.getImageURL(x58.style.titleBgImg)+")"; x57.src=MVUtil.getImageURL(x58.style.resBtnImg); }); x57.onmousedown=MVUtil._f103(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._f103(x57.parentNode,function(x60) { MVUtil._f175(x60); x59._f655(); }); } else { var x61=this.titleBg; x57.parentNode.onmouseover=MVUtil._f103(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._f103(x57.parentNode,function() { x61.src=MVUtil.getImageURL(x58.style.titleBgImg); x57.src=MVUtil.getImageURL(x58.style.minBtnImg); }); x57.onmousedown=MVUtil._f103(x57.parentNode,function() { x61.src=MVUtil.getImageURL(x58.style.titleBgImgMD); x57.src=MVUtil.getImageURL(x58.style.minBtnImgMD); }); var x59=this; x57.onclick=MVUtil._f103(x57,function() { x59._f655(); }); } } MVMapDecoration.prototype._f228=function() { if(this.mapControl) this.mapControl._f228(); if(this._f644) { this._f644.parentNode.parentNode.removeChild(this._f644.parentNode); MVUtil._f197(this._f644.parentNode,this.parent._f7); this._f644=null; } this.parent=null; } MVMapDecoration.prototype._f656=function() { this.setPosition(this.left,this.top,this.xOffset,this.yOffset); } MVMapDecoration.prototype._f657=function() { var x62=document.createElement("div"); x62.innerHTML=this.html; x62.style.zIndex=2000; x62.style.position="absolute"; if(this.collasible) { this._f658.style.right=MVUtil._f26(0); this._f658.style.bottom=MVUtil._f26(0); this._f658.style.width=MVUtil._f26(width); this._f658.style.height=MVUtil._f26(height-this._f633); this._f658.style.border="1px solid black"; this._f658.style.backgroundColor="white"; } else{ this._f646(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._f648=function() { if(this.visible) this._f622.style.visibility="visible"; else this._f622.style.visibility="hidden"; if(this._f623) { if(this.visible&&!this.collapsed) this._f647.style.visibility="visible"; else this._f647.style.visibility="hidden"; if(!this.collapsed&&this.parent._f220&&this.parent._f220._f209&& this._f622._f221&&this.parent) { this.parent._f220._f227(); } if(this._f644&&!this.visible) { this._f644.parentNode.parentNode.removeChild(this._f644.parentNode); MVUtil._f197(this._f644.parentNode,this.parent._f7); this._f644=null; } else if(this.visible&&this.collapsed) this._f652(); } } MVMapDecoration.prototype._f655=function(x63) { if(!this._f651) { var x64=this._f644; x64.parentNode.parentNode.removeChild(x64.parentNode); MVUtil._f197(x64.parentNode,this.parent._f7); this._f644=null; this._f647.style.visibility="visible"; } if(this._f639!=null&&this._f639!="") return; var x65=15; if(this._f651) { if(this._f628) this._f628(); MVUtil.runListeners(this._f93,MVEvent.COLLAPSE); this._f639=this.setTimeout("this.scrollElement(-1)",10); } else { if(this._f629) this._f629(); MVUtil.runListeners(this._f93,MVEvent.RESTORE); this._f646(this._f647,true); this._f639=this.setTimeout("this.scrollElement(1)",10); } } MVMapDecoration.prototype._f652=function() { this._f644=document.createElement("img"); var x66=document.createElement("td"); x66.style.border=this.style.borderStyle; x66.style.backgroundImage="url("+MVUtil.getImageURL(this.style.titleBgImg)+")"; x66.appendChild(this._f644); if(this._f643) x66.title=this._f643; MVUtil._f162(x66,"pointer"); this.parent.toolBarContainer.appendChild(x66); var x67=this.parent; setTimeout(function(){x67._f650(x67);},100); this.setIconImageListeners(true); } MVMapDecoration.prototype.scrollElement=function(x68) { var x69=parseInt(this._f647.style.height); var x70=parseInt(this._f622.style.height); var x71=parseInt(this._f647.style.width); var x72=parseInt(this._f622.style.width); var x73=MVUtil._f81(this._f647); var x74=MVUtil._f80(this._f647); if(x68<0) { if(x70>1) { if(x70>this._f635) { if(x730) { x70+=this._f635; x72+=this._f634; x69+=this._f635; x71+=this._f634; x73-=this._f637; x74-=this._f636; var x75=false; if(this._f424'+ ''; 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._f201=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) { if(x0==null||x0=="undefined") { this.format="BOTH"; this._f686=(arguments.length==2&&typeof arguments[1]=="number")?arguments[1]:125; this._f405=false; } else if(typeof x0=="object") { this.format=x0.format?x0.format:"BOTH"; this._f686=(x0.maxWidth&&(typeof x0.maxWidth=="number"))?x0.maxWidth:125; this._f405=(x0._f405&&(typeof x0._f405=="boolean"))?x0._f405:false; } else { this.format="BOTH"; this._f686=(arguments.length==2&&typeof arguments[1]=="number")?arguments[1]:125; this._f405=(typeof x0=="boolean")?x0:false; } this.type="MVScaleBar"; this._f208=true; this._f620=false; this.textSize=11; this._f687=null; this._f123=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; if(x1.isMapDecoration) { var x3=x1.offsetLeft; var x4=x1.offsetTop; x2._f688=4; x2._f689=x3; x2._f690=x4; } this._f691(x2); } MVScaleBar.prototype._f691=function(x5,x6,x7) { if(!x6) x5._f693=this; this._f687=x5; if(!this.div) { this.div=document.createElement("div"); this.div.style.zIndex=2000; if(x6) x6.appendChild(this.div); else x5._f224.appendChild(this.div); } this._f694=document.createElement("div"); this._f695=document.createElement("div"); MVUtil._f654(this.div); MVUtil._f654(this._f694); MVUtil._f654(this._f695); this.div.style.height=MVUtil._f26(40); this.div.style.width=MVUtil._f26(125); this.div.style.fontSize=MVUtil._f26(5); var x8=this; var x9=function(x10) { var x11=x10.fpsLength; var x12=x10.metricLength; var x13=Math.max(x11,x12); var x14=3; x8._f696(x8._f694,x10.fpsText); x8._f694.style.cssText=x8.style.textStyle; x8._f694.style.position="absolute"; MVUtil._f697(x8._f694,4,0,x13,x14,10); x8.textSize=MVUtil.getNumber(x8._f694.style.fontSize); var x15=x14+x8.textSize; x8.topBar=x8._f698(x11,x8.style.barHeight,3,x15,x8.style.barStyle); x8.bottomBar=x8._f698(x12,x8.style.barHeight,3,x15+x8.style.barHeight+x8.barSpacing,x8.style.barStyle); x8._f696(x8._f695,x10.metricText); x8._f695.style.cssText=x8.style.textStyle; x8._f695.style.position="absolute"; MVUtil._f697(x8._f695,4,x15+2*x8.style.barHeight+x8.barSpacing+2,x13,0,10); if(x8.format=="METRIC") { x8.div.appendChild(x8._f695); x8._f695.style.top="0px"; x8.bottomBar.style.top=x15+"px"; x8.topBar.style.visibility="hidden"; } else if(x8.format=="IMPERIAL") { x8.div.appendChild(x8._f694); x8.bottomBar.style.visibility="hidden"; } else { x8.div.appendChild(x8._f695); x8.div.appendChild(x8._f694); } x8.div.title=MVi18n._f349("scaleBarInfoTip"); x8._f699(); x8._f123=true; if(x7) x7(x8.div); } this._f700(x5,this._f686,x9); } MVScaleBar.prototype._f698=function(x16,x17,x18,x19,x20) { var x21=document.createElement("div"); x21.style.cssText=x20; x21.style.position="absolute"; MVUtil._f70(x21,x18,x19); x21.style.fontSize="1px"; x21.style.width=MVUtil._f26(x16); x21.style.height=MVUtil._f26(x17); this.div.appendChild(x21); return x21; } MVScaleBar.prototype._f699=function() { if(!this.div) return ; var x22="black"; this._f694.style.color=x22; this._f695.style.color=x22; } MVScaleBar.prototype._f701=function(x23) { if(!this.div||!this._f123) return ; var x24=this; var x25=function(x26) { var x27=Math.max(x26.fpsLength,x26.metricLength); x24._f696(x24._f694,x26.fpsText); x24._f696(x24._f695,x26.metricText); x24.width=x27+4; x24.topBar.style.width=MVUtil._f26(x26.fpsLength); x24.bottomBar.style.width=MVUtil._f26(x26.metricLength); x24._f695.style.width=MVUtil._f26(x26.metricLength+2); x24._f694.style.width=MVUtil._f26(x26.fpsLength+2); } this._f700(x23,this._f686,x25); } MVScaleBar.prototype._f700=function(x28,x29,x30) { var x31; var x32; var x33; var x34; var x35; var x36; var x37=x28.msi._f575(); var x38=x28.msi._f574(); var x39=this; var x40=function() { x34=x39._f702(x33); if(x34>=1000) { var x41=x39._f702(x33/1000); var x42=x33/1000; x36=Math.round(x39._f686*x41/x42); x35=MVUtil.formatNum(x41)+" "+MVi18n._f349("kilometers"); } else { x36=Math.round(x39._f686*x34/x33); x35=MVUtil.formatNum(x34)+" "+MVi18n._f349("meters"); } var x43=x33/1609.344; var x44=x33*3.28084; var x45; var x46; if(x43>=1) { var x47=x39._f702(x43); x45=Math.round(x39._f686*x47/x43); x46=MVUtil.formatNum(x47)+" "+MVi18n._f349("miles"); } else { var x48=x39._f702(x44); x45=Math.round(x39._f686*x48/x44); x46=MVUtil.formatNum(x48)+" "+MVi18n._f349("feet"); } return new _f703(x45,x36,x46,x35); } if(x38=='GEODETIC') { var x49=function(x50) { x32=x50; var x51=6378137.0; var x52=0.9966471893352525; var x53=0.0033528106647474805; x33=MVScaleBar._f704(x31,x32,x51,x52,x53); x30(x40()); } var x54=function(x55) { x31=x55; MVScaleBar._f705(x28._f706+x29/2,x28._f707,x28,x49); } MVScaleBar._f705(x28._f706-x29/2,x28._f707,x28,x54); return ; } else if(x38=='PROJECTED') { if(this._f405==true) { var x56=x29/2; var x57=x28._f90-x56/x28._f72; var x58=x56/x28._f72+x28._f90; var x59=x28._f91; var x60=MVSdoGeometry.createLineString([x57,x59,x58,x59],x28.srid); var x61=function(x62) { x33=x62; x30(x40()); } x33=x60.getLength("meter",true,x28._f4+'/foi',x61); return ; } else { x33=x37*x29/x28._f72; } } else if(x38=='LOCAL'||(x38=='UNDEFINED'&&x37!=0)) { x33=x37*x29/x28._f72; } else if(x38=='UNDEFINED'&&x37==0) { x33=x29/x28._f72; _f65._f708=''; _f65._f709=''; _f65._f710=''; _f65._f711=''; } x30(x40()); } MVScaleBar.prototype._f702=function(x63) { var x64=x63; if(x64>1) { var x65=0; while(x64>=10){x64=x64/10;x65=x65+1;} if(x64>=5){x64=5;} else if(x64>=2){x64=2;} else {x64=1;} while(x65>0){x64=x64*10;x65=x65-1;} } return x64; } MVScaleBar.prototype._f696=function(x66,x67) { if(x66.innerHTML!=x67) { x66.innerHTML=x67; } } MVScaleBar.prototype._f228=function() { this._f687._f693=null; } MVScaleBar._f705=function(x68,x69,x70,x71) { var x72=MVSdoGeometry.createPoint(0,0,x70.srid); x72.sdo_point.x=(x68-x70._f706)/x70._f72+x70._f90; x72.sdo_point.y=x70._f91-(x69-x70._f707)/x70._f74; var x73=function(x74) { if(x74) x72=x74; while(x72.sdo_point.x<-180)x72.sdo_point.x+=360; while(x72.sdo_point.x>180)x72.sdo_point.x-=360; x72.sdo_point.x=(x72.sdo_point.x)*Math.PI/180; x72.sdo_point.y=(x72.sdo_point.y)*Math.PI/180; x71(x72.sdo_point); } if(x72.srid&&x72.srid!=8307) x72=x70.transformGeom(x72,8307,null,x73); else x73(); } MVScaleBar._f704=function(x75,x76,x77,x78,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;var x100; var x101=Math.PI/2.0; if(x101-Math.abs(x75.y)<1.e-10) x93=x75.y; else x93=Math.atan(x78*Math.tan(x75.y)); if(x101-Math.abs(x76.y)<1.e-10) x94=x76.y; else x94=Math.atan(x78*Math.tan(x76.y)); x81=(x93+x94)/2.0; x82=(x93-x94)/2.0; x80=Math.abs(x75.x-x76.x); if(x80>Math.PI) x80=2.0*Math.PI-x80; x80/=2.0; if(x80<5.e-8&&Math.abs(x82)<5.e-8) return 0.0; else if((x101-x80<5.e-8&&Math.abs(x81)<5.e-8)|| x101-Math.abs(x82)<5.e-8) return -1.0; x95=Math.sin(x81); x96=Math.cos(x81); x97=Math.sin(x82); x98=Math.cos(x82); x99=Math.sin(x80); x83=x97*x97+x99*x99*(x98*x98-x95*x95); x84=Math.acos(1.0-2.0*x83); x100=Math.sin(x84); x85=2.0*(1.0-2.0*x83); x86=2.0*x95*x95*x98*x98/(1.0-x83); x87=2.0*x97*x97*x96*x96/x83; x88=x86+x87; x89=x86-x87; x90=x84/x100; x91=4.0*x90*x90; x92=x91*x85; var x102=(x92+(x90-(x92-x85)/2.0)*x88); return x77*x100*(x90-x79*(x90*x88-x89)/4.0+x79*x79* (x88*x102-x89*(2.0*x91+x85*x89)+x91*x88*x89)/64.0); } function _f703(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._f208=true; if(x0==undefined|| x0!=0&&x0!=4&&x0!=8) x0=8; this._f910=x0; this._f911=x1; this._f912=x2; this.zoomLevelBars=x3; this._f913=null; this._f902=null; this._f687=null; this.containerDiv=null; this._f123=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._f194=function() { x4.hideInfoTimeOut=setTimeout(x4.doHideInfoTip,500); } this.doHideInfoTip=function() { for(div in x4.infoTipDivs) { x4.infoTipDivs[div].style.visibility="hidden"; } } this.offsetTop=10; } MVNavigationPanel.prototype.setZoomLevelInfoTips=function(x0,x1) { this.infoTipTexts=x0; this.infoTipTextStyle=x1; if(this._f914){ MVUtil._f197(this._f914.div,this._f687._f7); this._f914=new MVZoomBarAndPin(this); } } MVNavigationPanel.prototype.enableZoomLevelInfoTips=function(x2) { this.enableZoomLevelInfoTip=x2; } MVNavigationPanel.prototype.setNavPosition=function(x3) { this._f902=x3; } MVNavigationPanel.prototype.init=function(x4,x5) { if(x4) { this.containerDiv=x4; if(x4.isMapDecoration) { this.offsetTop=x4.offsetTop; } } if(this._f913) { if(this._f913.parentNode) this._f913.parentNode.removeChild(this._f913); MVUtil._f197(this._f913,x5._f7); } this._f913=document.createElement('div'); this._f913.style.position='absolute'; this._f913.className="noprint"; this._f913.ondblclick=MVUtil._f103(this._f913,function(x6) { MVUtil._f175(MVUtil.getEvent(x6)); }); this._f913.onclick=MVUtil._f103(this._f913,function(x7) { MVUtil._f175(MVUtil.getEvent(x7)); }); this.containerDiv.appendChild(this._f913); if(x5) { this._f687=x5; x5.navigationPanel=this; } if(this._f902) { if(this._f902.toLowerCase()=="east") { if(this._f910==8) this._f913.style.left=MVUtil._f26(this._f687._f106()-80); else if(this._f910==4) this._f913.style.left=MVUtil._f26(this._f687._f106()-80); else if(this._f910==0) this._f913.style.left=MVUtil._f26(this._f687._f106()-50); } else { if(this._f910==8) this._f913.style.left=MVUtil._f26(10); else if(this._f910==8) this._f913.style.left=MVUtil._f26(10); else if(this._f910==0) this._f913.style.left=MVUtil._f26(30); } this._f913.style.top=MVUtil._f26(10); } else { this._f913.style.left=MVUtil._f26(0); this._f913.style.top=MVUtil._f26(0); } this._f913.style.zIndex=2000; MVUtil._f162(this._f913,"pointer"); this._f601=0; this._f602=0; var x5=this._f687; var x8=function(x9) { if(x5._f764&&x5._f768) { x5._f765.clear(); x5.marqueeZoom(); } x9=(x9)?x9:((window.event)?event:null); MVUtil._f175(x9); } if(this._f910!=false) { this._f915(); } this._f597=0; this._f598=0; if(this._f911!=false) { this._f597=_f65._f597; this._f598=_f65._f598; } this._f605=0; this._f606=0; if(this._f912!=false) { this._f605=_f65._f605; this._f606=_f65._f606; var x10=new _f901(this._f913,src=_f65._f141+"navicons/zoomin.gif", this._f605,this._f606,2000,MVi18n._f349("zoomInInfoTip")); var x11=this._f910>0?(this._f601*3-this._f605)/2+1:0; var x12=this._f910>0?this._f602*3+3:0; MVUtil._f70(x10,x11,x12); x10.onmousedown=MVUtil._f103(x10,function(x13) { x13=(x13)?x13:((window.event)?event:null); MVUtil._f175(x13); if(x5._f764&&x5._f766) x5._f768=true; x5.zoomIn(); }); x10.onmouseup=MVUtil._f103(x10,function(x14) { x8(x14); }); x10.onmouseover=this.showInfoTip; x10.onmouseout=this._f194; var x15=new _f901(this._f913,_f65._f141+"navicons/zoomout.gif", this._f605,this._f606,2000,MVi18n._f349("zoomOutInfoTip")); MVUtil._f70(x15,x11,x12+this._f606+this._f598+1); x15.onmousedown=MVUtil._f103(x15,function(x16) { x16=(x16)?x16:((window.event)?event:null); MVUtil._f175(x16); if(x5._f764&&x5._f766) x5._f768=true; x5.zoomOut(); }); x15.onmouseup=MVUtil._f103(x15,function(x17) { x8(x17); }); x15.onmouseover=this.showInfoTip; x15.onmouseout=this._f194; } if(this._f911!=false) { this._f914=new MVZoomBarAndPin(this); } this._f123=true; } MVNavigationPanel.prototype._f915=function() { this._f601=_f65._f601; this._f602=_f65._f602; var x18=this._f687; var x19=function(x20) { if(x18._f764&&x18._f768) { x18._f765.clear(); x18.marqueeZoom(); } x20=(x20)?x20:((window.event)?event:null); MVUtil._f175(x20); } var x21=new _f901(this._f913,_f65._f141+"navicons/north.gif", this._f601,this._f602,2000,MVi18n._f349("panNInfoTip")); MVUtil._f70(x21,this._f601+1,0); x21.onmousedown=MVUtil._f103(x21,function(x22) { if(x18._f764&&x18._f766) x18._f768=true; x18.smoothScroll(0,(x18._f106()+x18._f107())*(-0.25)); x22=(x22)?x22:((window.event)?event:null); MVUtil._f175(x22); }); x21.onmouseup=MVUtil._f103(x21,function(x23) { x19(x23); }); var x24=new _f901(this._f913,_f65._f141+"navicons/west.gif", this._f601,this._f602,2000,MVi18n._f349("panWInfoTip")); MVUtil._f70(x24,0,this._f602+1); x24.onmousedown=MVUtil._f103(x24,function(x25) { if(x18._f764&&x18._f766) x18._f768=true; x18.smoothScroll((x18._f106()+x18._f107())*(-0.25),0); x25=(x25)?x25:((window.event)?event:null); MVUtil._f175(x25); }); x24.onmouseup=MVUtil._f103(x24,function(x26) { x19(x26); }); var x27=new _f901(this._f913,_f65._f141+"navicons/east.gif", this._f601,this._f602,2000,MVi18n._f349("panEInfoTip")); MVUtil._f70(x27,this._f601*2+2,this._f602+1); x27.onmousedown=MVUtil._f103(x27,function(x28) { if(x18._f764&&x18._f766) x18._f768=true; x18.smoothScroll((x18._f106()+x18._f107())*(0.25),0); x28=(x28)?x28:((window.event)?event:null); MVUtil._f175(x28); }); x27.onmouseup=MVUtil._f103(x27,function(x29) { x19(x29); }); var x30=new _f901(this._f913,_f65._f141+"navicons/south.gif", this._f601,this._f602,2000,MVi18n._f349("panSInfoTip")); MVUtil._f70(x30,this._f601+1,this._f602*2+2); x30.onmousedown=MVUtil._f103(x30,function(x31) { if(x18._f764&&x18._f766) x18._f768=true; x18.smoothScroll(0,(x18._f106()+x18._f107())*(0.25)); x31=(x31)?x31:((window.event)?event:null); MVUtil._f175(x31); }); x30.onmouseup=MVUtil._f103(x30,function(x32) { x19(x32); }); if(this._f910==4) return ; var x33=new _f901(this._f913,_f65._f141+"navicons/nw.gif", this._f601,this._f602,200,MVi18n._f349("panNWInfoTip")); MVUtil._f70(x33,0,0); x33.onmousedown=MVUtil._f103(x33,function(x34) { if(x18._f764&&x18._f766) x18._f768=true; x18.smoothScroll((x18._f106()+x18._f107())*(-0.18),(x18._f106()+x18._f107())*(-0.18)); x34=(x34)?x34:((window.event)?event:null); MVUtil._f175(x34); }); x33.onmouseup=MVUtil._f103(x33,function(x35) { x19(x35); }); var x36=new _f901(this._f913,_f65._f141+"navicons/ne.gif", this._f601,this._f602,2000,MVi18n._f349("panNEInfoTip")); MVUtil._f70(x36,this._f601*2+2,0); x36.onmousedown=MVUtil._f103(x36,function(x37) { if(x18._f764&&x18._f766) x18._f768=true; x18.smoothScroll((x18._f106()+x18._f107())*(0.18),(x18._f106()+x18._f107())*(-0.18)); x37=(x37)?x37:((window.event)?event:null); MVUtil._f175(x37); }); x36.onmouseup=MVUtil._f103(x36,function(x38) { x19(x38); }); var x39=new _f901(this._f913,_f65._f141+"navicons/sw.gif", this._f601,this._f602,2000,MVi18n._f349("panSWInfoTip")); MVUtil._f70(x39,0,this._f602*2+2); x39.onmousedown=MVUtil._f103(x39,function(x40) { if(x18._f764&&x18._f766) x18._f768=true; x18.smoothScroll((x18._f106()+x18._f107())*(-0.18),(x18._f106()+x18._f107())*(0.18)); x40=(x40)?x40:((window.event)?event:null); MVUtil._f175(x40); }); x39.onmouseup=MVUtil._f103(x39,function(x41) { x19(x41); }); var x42=new _f901(this._f913,_f65._f141+"navicons/se.gif", this._f601,this._f602,2000,MVi18n._f349("panSEInfoTip")); MVUtil._f70(x42,this._f601*2+2,this._f602*2+2); x42.onmousedown=MVUtil._f103(x42,function(x43) { if(x18._f764&&x18._f766) x18._f768=true; x18.smoothScroll((x18._f106()+x18._f107())*(0.18),(x18._f106()+x18._f107())*(0.18)); x43=(x43)?x43:((window.event)?event:null); MVUtil._f175(x43); }); x42.onmouseup=MVUtil._f103(x42,function(x44) { x19(x44); }); if(x18._f760){ var x45=new _f901(this._f913,_f65._f141+"navicons/center.gif", this._f601,this._f602,2000,MVi18n._f349("panCenterInfoTip")); MVUtil._f70(x45,this._f601+1,this._f602+1); x45.onmousedown=MVUtil._f103(x45,function(x46) { if(x18._f764&&x18._f766) x18._f768=true; x18.setCenterAndZoomLevel(x18._f760,x18._f761); x46=(x46)?x46:((window.event)?event:null); MVUtil._f175(x46); }); x45.onmouseup=MVUtil._f103(x45,function(x47) { x19(x47); }); } } MVNavigationPanel.prototype.updateSliderBar=function() { if(!this._f123) return ; if(this._f914&&this._f914._f916) { var x48=this._f602!=0?3:0; this._f914._f916.style.top= MVUtil._f26(this._f602*3+x48+this._f606+ (this._f598-_f65._f600)* (this._f687._f757-this._f687._f53)/this._f687._f757); } } MVNavigationPanel.prototype._f228=function() { this._f687.navigationPanel=null; } MVNavigationPanel.prototype.getMaxZoomLevel=function() { if(this._f914.maxZoomlevel) return this._f914.maxZoomleve; else return this.parent._f757; } MVNavigationPanel.prototype.updateSlider=function() { if(this._f914){ MVUtil._f197(this._f914.div,this._f687._f7); this._f914=new MVZoomBarAndPin(this); } } function MVZoomBarAndPin(x0) { var x1=x0; this.div=document.createElement("div"); var x2=x1._f910>0?(x1._f601*3-x1._f597)/2+1:0; var x3=x1._f910>0?x1._f602*3+3+x1._f606:x1._f606; this._f917=new _f901(this.div,_f65._f141+"navicons/zoombar.gif", x1._f597,x1._f598,2000,MVi18n._f349("sliderBarInfoTip")); this._f917.onmouseover=x0.showInfoTip; this._f917.onmouseout=x0._f194; MVUtil._f70(this._f917,x2,x3); this.maxZoomlevel=x1._f687._f757; for(var x4=0;x4<=x1._f687._f757;x4++) { var x5=x1._f597-4; if(x0.zoomLevelBars!=false) { var x6=new _f901(this.div,_f65._f141+"navicons/zoomBarHoriz.gif",x5,10,1999); MVUtil._f70(x6,x2+2,x3+2+x4*(x1._f598-14)/x1._f687._f757); } for(tipLevel in x0.infoTipTexts) { if(parseInt(tipLevel)==(x1._f687._f757-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.style.direction="LTR"; 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("+_f65._f141+"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._f902&&x1._f902.toLowerCase()=="east") { this.infoDivLeft.innerHTML=''; this.infoDivRight.innerHTML=''; this.infoDivCenter.style.textAlign="left"; this.infoDivCenter.style.align="left"; this.infoDivCenter.style.direction="RTL" if(_f65._f369==2) { this.infoDiv.style.pixelRight=x2-22; this.infoDiv.style.pixelTop=x3+x4*(x1._f598-16)/x1._f687._f757; } else { this.infoDiv.style.right=MVUtil._f26(x2-22); this.infoDiv.style.top=MVUtil._f26(x3+x4*(x1._f598-16)/x1._f687._f757); } } else { this.infoDivLeft.innerHTML=''; this.infoDivRight.innerHTML=''; this.infoDivCenter.style.textAlign="right"; this.infoDivCenter.style.align="right"; MVUtil._f70(this.infoDiv,x2+16,x3+x4*(x1._f598-16)/x1._f687._f757); } this.infoDiv.style.visibility="hidden"; this.infoDiv._f53=x1._f687._f757-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)"; this.style.zIndex=100; } var x9=function(x10) { this.style.opacity=0.6; this.style.filter="alpha(opacity = 60)"; x0.hideInfoTimeOut=setTimeout(x0.doHideInfoTip,500); this.style.zIndex=0; } var x11=function(x12) { x0._f687.zoomTo(this._f53) x12=(x12)?x12:((window.event)?event:null); MVUtil._f175(x12); } this.infoDiv.onmouseover=MVUtil._f103(this.infoDiv,x7); this.infoDiv.onmouseout=MVUtil._f103(this.infoDiv,x9); this.infoDiv.onmousedown=MVUtil._f103(this.infoDiv,x11); } } } this._f916=new _f901(this.div,_f65._f141+"navicons/slider.gif",_f65._f599, _f65._f600,2002); this._f916.onmouseover=x0.showInfoTip; this._f916.onmouseout=x0._f194; MVUtil._f70(this._f916,x2,x3+ (x1._f598-_f65._f600)* (x1._f687._f757-x1._f687._f53)/x1._f687._f757); x1._f913.appendChild(this.div); this._f918=Math.floor(_f65._f600/2); var x13=0; var x14=0; var x15=function(x16) { x1._f687._f751=false; x16=(x16)?x16:((window.event)?event:null); var x17=x1._f687._f229(x16); var x18=x17.top-x1._f914._f918-x1.offsetTop;var x19=x1._f602!=0?3:0; var x20=x1._f602*3+x19+x1._f606; if(x18<=x20) x18=x20; else if(x18>=x20+x1._f598-_f65._f600) x18=x20+x1._f598-_f65._f600; var x21=(x1._f598-_f65._f600); x21=x21/x1._f687._f757; var x22=Math.floor((x18-x20)/x21); x18=x22*x21+x20; var x23=x1._f687._f757-x22; x1._f687.zoomTo(x23); MVUtil._f175(x16); if(x1._f687._f764&&x1._f687._f766) { x1._f687._f768=true; x1._f687._f765.clear(); } x1._f914._f916.style.top=MVUtil._f26(x18); } var x24=function(x25) { x25=(x25)?x25:((window.event)?event:null); x1._f687._f751=false; if(!x1._f914._f919)return; var x26=x1._f687._f229(x25); var x27=x26.top-x13+x14; var x28=x1._f602!=0?3:0; if(x27<=x1._f602*3+x28+x1._f606) x27=x1._f602*3+x28+x1._f606; else if(x27>=x1._f602*3+x28+x1._f606+ x1._f598-_f65._f600) x27=x1._f602*3+x28+x1._f606+ x1._f598-_f65._f600; x1._f914._f916.style.top=MVUtil._f26(x27); MVUtil._f175(x25); } var x29=function(x30) { if(!x1._f914._f919) return ; x30=(x30)?x30:((window.event)?event:null); x1._f687._f751=true; x1._f914._f919=false; var x31=x1._f687._f229(x30); var x32=MVUtil._f81(x1._f914._f916); var x33=x1._f602!=0?3:0; var x34=x1._f602*3+x33+x1._f606; var x35=(x1._f598-_f65._f600); x35=x35/x1._f687._f757; var x36=Math.round((x32-x34)/x35); x32=x36*x35+x34; var x37=x1._f687._f757-x36; x1._f687.zoomTo(x37); x1._f914._f916.style.top=MVUtil._f26(x32); x1._f687.zoomTo(x37); MVUtil._f175(x30); if(x1._f687._f764&&x1._f687._f768) x1._f687.marqueeZoom(); } var x38=function(x39) { x39=(x39)?x39:((window.event)?event:null); x1._f687._f751=true; if(x1._f914._f919) { x29(x39); } return false; } var x40=function(x41) { x41=(x41)?x41:((window.event)?event:null); var x42=x1._f687._f229(x41); x13=x42.top; x14=MVUtil._f81(x1._f914._f916); x1._f914._f919=true; MVUtil._f175(x41); } this.div.onmousedown=MVUtil._f103(this.div,x15); this.div.onmouseup=MVUtil._f103(this.div,x29); this.div.onmousemove=MVUtil._f103(this.div,x24); this.div.onmouseout=MVUtil._f103(this.div,x38); this._f916.onmousedown=MVUtil._f103(this._f916,x40); this._f919=false; } function _f407() { } _f407._f408=[ {srid:54004,params:[0,0,1,0,0]}, {srid:8307,params:[6378137,298.257223563]} ]; _f407._f409=function(x0,x1,x2,x3,x4) { var x5=_f407._f412(x3); var x6=_f407._f412(x2); if(!x5||!x6) { MVi18n._f6("MVCSTransformMercator.geodeticToMercator","MAPVIEWER-05522",x2+"->"+x3,x4); return null; } var x7=_f370._f373({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}; } _f407._f413=function(x22,x23,x24,x25,x26) { var x27=_f407._f412(x24); var x28=_f407._f412(x25); if(!x27||!x28) { MVi18n._f6("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 _f370._f374({x:x59,y:x58}); } _f407._f412=function(x60) { for(var x61=0;x61<_f407._f408.length;x61++) { if(_f407._f408[x61].srid==x60) return _f407._f408[x61].params; } return null; } _f65._f414(54004,8307,function(x62,x63,x64){ return _f407._f413(x62,x63,54004,8307,x64); }); _f65._f414(8307,54004,function(x65,x66,x67){ return _f407._f409(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._f439=x1; this._f428=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._f439._f428[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._f106()/2; var x7=x2-this.mapview._f107()/2; return {x:x6/x4+this.mapview._f90, y:this.mapview._f91-x7/x5}; } MVZoomControl.prototype._f164=function(x8,x9,x10) { var x11=this.getPPXByZoomLevel(x10); var x12=this.getPPYByZoomLevel(x10); return {x:(x8-this.mapview._f90)*x11+this.mapview._f106()/2, y:(this.mapview._f91-x9)*x12+this.mapview._f107()/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._f80(x23)-this.movedLeft; var x33=MVUtil._f81(x23)-this.movedTop; var x34=this.getScreenCor(x32-this.ldiff+this.movedLeft,x33-this.tdiff+this.movedTop,x21); var x35=this._f164(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._f70(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._f87(this.tileLayerDiv); } this.tileLayerDiv=this._f439._f439; this.tileLayerDiv.zooming=true; this._f428=this._f439._f428; this.tileLayerDiv.style.zIndex=200+this._f439.zIndex; return; } MVZoomControl.prototype.zoomToNewCenter=function(x45,x46,x47) { if((x45)&&(x46)&&(x45.getPointX()!=x46.getPointX()||x45.getPointY()!=x46.getPointY())) { var x48=this._f164(x45.getPointX(),x45.getPointY(),x47); var x49=this._f164(x46.getPointX(),x46.getPointY(),x47); var x50=x49.x-x48.x; var x51=x49.y-x48.y; var x52=this.mapview.div; if(_f65._f369==2) { x52.style.pixelLeft=x52.style.pixelLeft-x50; x52.style.pixelTop=x52.style.pixelTop-x51; } else { x52.style.left=(MVUtil._f80(x52)-x50)+'px'; x52.style.top=(MVUtil._f81(x52)-x51)+'px'; } } } MVZoomControl.prototype.clearLastZoom=function(){ for(var x53=0;x531||this._f439._f420) { this.reset(); return; } this._f439.setVisible(false); this._f439._f439.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._f428)) { return true; } for(var x69=0;x691000) return MVUtil.formatNum(x39/1000)+MVi18n._f349("km"); else if(x39>1) return MVUtil.formatNum(x39)+MVi18n._f349("m"); else return MVUtil.formatNum(x39*10)+MVi18n._f349("cm"); } else { if(x39>1760) return MVUtil.formatNum(x39/1760)+MVi18n._f349("mi"); else if(x39*3>1000) return MVUtil.formatNum(x39)+MVi18n._f349("yd"); else if(x39*3>1) return MVUtil.formatNum(x39*3)+MVi18n._f349("ft"); else return MVUtil.formatNum(x39*3*12)+MVi18n._f349("in"); } } this._f402=function() { if(x2._f396) x2._f401(); else { if(x2._f344) x2._f344(); MVUtil.runListeners(x2._f93,MVEvent.MODIFY); } } } MVDistanceTool.prototype.setUnitStandard=function(x0) { this._f395=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._f175(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._f659=x0; this._f660=x1; this.mapviewer=null; this.toolBarDecoration=null; this._f661; this._f662=new Object(); var x3=this; var x4=null; this.visible=true; this.clearButtonAdded=false; this._f663=new MVToolButton(x0+"_bt_clear",MVToolButton.COMMAND,_f65._f141+"tbicons/clear.gif",_f65._f141+"tbicons/p_clear.gif"); this._f664=new MVToolButton(x0+"_bt_redline",MVToolButton.TOGGLE,_f65._f141+"tbicons/redline.gif",_f65._f141+"tbicons/p_redline.gif"); this._f665=new MVToolButton(x0+"_bt_distance",MVToolButton.TOGGLE,_f65._f141+"tbicons/distance.gif",_f65._f141+"tbicons/p_distance.gif"); this._f666=new MVToolButton(x0+"_bt_circle",MVToolButton.TOGGLE,_f65._f141+"tbicons/circle.gif",_f65._f141+"tbicons/p_circle.gif"); this._f667=new MVToolButton(x0+"_bt_rectangle",MVToolButton.TOGGLE,_f65._f141+"tbicons/rectangle.gif",_f65._f141+"tbicons/p_rectangle.gif"); this._f668=new MVToolButton(x0+"_bt_zoom",MVToolButton.TOGGLE,_f65._f141+"tbicons/zoom.gif",_f65._f141+"tbicons/p_zoom.gif"); this._f669=new MVButtonGroup(); this._f670=new Array(); this.buttonsToAdd=new Array(); this._f170=function() { this._f660=null; this.mapviewer=null; this.toolBarDecoration=null; this._f661=null; this._f662=null; this._f663._f170(); this._f664._f170(); this._f665._f170(); this._f666._f170(); this._f667._f170(); this._f668._f170(); this._f663=null; this._f664=null; this._f665=null; this._f666=null; this._f667=null; this._f668=null; this._f669=null; this._f670=null; this.buttonsToAdd=null; } 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._f660[MVToolBar.BUILTIN_ALL]==true||x3._f660[x10]==true) { var x11=null; switch(x10) { case MVToolBar.BUILTIN_CIRCLE: x11=x3._f666; break; case MVToolBar.BUILTIN_RECTANGLE: x11=x3._f667; break; case MVToolBar.BUILTIN_REDLINE: x11=x3._f664; break; case MVToolBar.BUILTIN_DISTANCE: x11=x3._f665; break; } if(x11) return x11.tool; else return null; } else return null; } this.addButton=function(x12) { if(x12._f671==MVToolButton.SEPARATOR) { if(x3.Direction==MVToolBar.HORIZONTAL) x12._f672.setAttribute("src",_f65._f141+"tbicons/bk_v.png"); else x12._f672.setAttribute("src",_f65._f141+"tbicons/bk_h.png"); } if(x4) x3.addButtonToDOM(x12); else x3.buttonsToAdd.push(x12); } this.addButtonToDOM=function(x13) { var x14=null; var x15=null; if(x3.Direction==MVToolBar.HORIZONTAL) { if(x4.childNodes.length==0) { x14=x4.insertRow(0); } else { x14=x4.firstChild.firstChild; } x15=x14.insertCell(x14.childNodes.length); x15.id="_td_"+x13._f203 } else { if(x4.childNodes.length==0) x14=x4.insertRow(0); else x14=x4.insertRow(x4.firstChild.childNodes.length); x14.id="_tr_"+x13._f203; x15=x14.insertCell(0); } x13._f673=x3; x15.appendChild(x13._f674); x3._f662[x13._f203]=x13; x13._f673=x3; } this.addSeparator=function(x16) { var x17=new MVToolButton(x16,MVToolButton.SEPARATOR); x3.addButton(x17); } this.getButton=function(x18) { return x3._f662[x18]; } this.getBuiltInButton=function(x19) { if(x19==MVToolBar.BUILTIN_CLEAR&&this.clearButtonAdded) return this._f663; if(x3._f660[MVToolBar.BUILTIN_ALL]==true||x3._f660[x19]==true) { var x20=null; switch(x19) { case MVToolBar.BUILTIN_CIRCLE: x20=x3._f666; break; case MVToolBar.BUILTIN_RECTANGLE: x20=x3._f667; break; case MVToolBar.BUILTIN_REDLINE: x20=x3._f664; break; case MVToolBar.BUILTIN_DISTANCE: x20=x3._f665; break; case MVToolBar.BUILTIN_MARQUEE_ZOOM: x20=x3._f668; break; } if(x20) return x20; else return null; } else return null; } this.removeButton=function(x21) { if(!x21) return ; delete x3._f662[x21._f203]; if(x21.group) { delete x21.group._f202[x21._f203]; x21.group=null; } if(x3.Direction==MVToolBar.HORIZONTAL) { if(x4.childNodes.length==0) { return; } else { oTR=x4.firstChild.firstChild; for(var x22=0;x220) { var x29=x28.shift() x3.addButtonToDOM(x29); } } this._f675=function() { x3._f663.setToolTip(MVi18n._f349("clearButton")); x3._f664.setToolTip(MVi18n._f349("redlineTool")); x3._f665.setToolTip(MVi18n._f349("distanceTool")); x3._f666.setToolTip(MVi18n._f349("circleTool")); x3._f667.setToolTip(MVi18n._f349("retangleTool")); x3._f668.setToolTip(MVi18n._f349("marqueeZoomTool")); x3._f664.btName=MVToolBar.BUILTIN_REDLINE; x3._f665.btName=MVToolBar.BUILTIN_DISTANCE; x3._f666.btName=MVToolBar.BUILTIN_CIRCLE; x3._f667.btName=MVToolBar.BUILTIN_RECTANGLE; x3._f668.btName=MVToolBar.BUILTIN_MARQUEE_ZOOM; x3._f663.attachEventListener(MVEvent.BUTTON_DOWN,x3._f676); x3._f664.attachEventListener(MVEvent.BUTTON_DOWN,x3._f676); x3._f665.attachEventListener(MVEvent.BUTTON_DOWN,x3._f676); x3._f666.attachEventListener(MVEvent.BUTTON_DOWN,x3._f676); x3._f667.attachEventListener(MVEvent.BUTTON_DOWN,x3._f676); x3._f668.attachEventListener(MVEvent.BUTTON_DOWN,x3._f676); x3._f664.attachEventListener(MVEvent.BUTTON_UP,x3._f677); x3._f665.attachEventListener(MVEvent.BUTTON_UP,x3._f677); x3._f666.attachEventListener(MVEvent.BUTTON_UP,x3._f677); x3._f667.attachEventListener(MVEvent.BUTTON_UP,x3._f677); x3._f668.attachEventListener(MVEvent.BUTTON_UP,x3._f677); x3._f669.add(x3._f663); x3._f669.add(x3._f664); x3._f669.add(x3._f665); x3._f669.add(x3._f666); x3._f669.add(x3._f667); x3._f669.add(x3._f668); var x30=new MVCircleTool(); var x31=new MVStyleColor("_bt_circle_area_color",null,"FF0000"); x30.setAreaStyle(x31); x3._f666.tool=x30; var x32=new MVRectangleTool(); var x31=new MVStyleColor("_bt_rectangle_area_color",null,"FF0000"); x32.setAreaStyle(x31); x3._f667.tool=x32; var x33=new MVRedlineTool(); x3._f664.tool=x33; var x34=new MVDistanceTool(MVDistanceTool.IMPERIAL); var x35=new MVStyleMarker("_bt_distance_point","vector"); x35.setStrokeColor("ff0000"); x35.setFillColor("00FF00"); x35.setVectorShape("c:30"); x34.setRenderingStyle(MVRedlineTool.STYLE_POINT,x35); var x36=''+ ''; var x37=new MVXMLStyle("_bt_distance_line",x36); x34.setRenderingStyle(MVRedlineTool.STYLE_LINE,x37); x3._f665.tool=x34; } this._f678=function() { x3._f661=document.getElementById("div_"+x3._f659); x3._f661.appendChild(x4); } this._f679=function(x38) { var x39=[false,false,false,false,false,false]; if(x38==null&&x3._f660) { for(var x40=0;x400) x3._f664.tool.clear(); x41("redline"); } var x50=function() { if(x3._f665.tool._f400.getPointFOIs().length>0) x3._f665.tool.clear(); x41("distance"); } var x51=function() { x41("circle"); if(x3._f666.tool.getStatus()!=0) x3._f666.tool.clear(); } var x52=function() { x41("rectangle"); if(x3._f667.tool.getStatus()!=0) x3._f667.tool.clear(); } var x53=function() { x41("zoom"); } var x54=function(x55) { var x56=x3.getBuiltInButton(x55); if(x56._f680==MVToolButton.UP) { x56.group.reset(); x56._f672.setAttribute("src",x56._f681); x56._f680=MVToolButton.DOWN; if(x56._f204) x56._f204(x56._f203); } } for(var x40=1;x40=3) x3.getButton(x66).tool.generateArea(); else x3.getButton(x66).tool.clear(); } } if(x66==x0+"_bt_distance") { if(x3.getButton(x66).tool) { x3.getButton(x66).tool.clear(); } } else if(x66==x0+"_bt_zoom") { x3.mapviewer.stopMarqueeZoom(); } } this.toolBarDecoration=new MVMapDecoration("
",0.35,0.05); } 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._f203=x0; this._f671=x1; this._f905=x2; this._f681=x3; this._f680=MVToolButton.UP; this._f673=null; this._f93=new Array(); this._f906=null; this._f907=null; this._f204=null; this._f674=document.createElement("div"); this._f672=document.createElement("img"); this._f908=document.createElement("div"); this.btName=null; var x4=this; this._f170=function() { MVUtil._f197(x4._f674); x4._f674=null; MVUtil._f197(x4._f672); x4._f672=null; MVUtil._f197(x4._f908); x4._f908=null; x4=null; } this.attachEventListener=function(x5,x6) { MVUtil.attachEventListener(x4._f93,x5,x6) } this.detachEventListener=function(x7,x8) { MVUtil.detachEventListener(x4._f93,x7,x8); } this.setToolTip=function(x9) { x4._f908.innerHTML=x9; } this.reset=function() { this._f206(); } this._f909=function() { x4._f674.appendChild(x4._f672); x4._f674.appendChild(x4._f908); x4._f908.style.position="absolute"; x4._f908.style.display="none"; x4._f908.style.borderColor="black"; x4._f908.style.backgroundColor="#ffffe1"; x4._f908.style.borderWidth="1px"; x4._f908.style.borderStyle="solid"; x4._f908.style.fontSize="14px"; x4._f908.style.whiteSpace="nowrap"; x4._f908.style.padding="2px"; if(x4._f671!=MVToolButton.SEPARATOR) { x4._f672.setAttribute("src",x4._f905); } } this._f672.onmouseover=function() { if(x4._f671!=MVToolButton.SEPARATOR) { MVUtil._f162(x4._f673._f661,"pointer"); if(x4._f908.innerHTML) { x4._f908.style.display=""; MVUtil._f70(x4._f908,x4._f674.parentNode.offsetLeft+5,x4._f674.parentNode.offsetTop+30); } } else { MVUtil._f162(x4._f673._f661,"default"); } } this._f672.onmouseout=function(x10) { if(x4._f680==MVToolButton.DOWN) x4._f672.onmouseup(x10); x4._f908.style.display="none"; } this._f672.onmousedown=function(x11) { if(x4._f204) x4._f204(x4._f203); if(x4._f671==MVToolButton.COMMAND) { x4._f672.setAttribute("src",x4._f681); x4._f680=MVToolButton.DOWN; x11=(x11)?x11:((window.event)?event:null); MVUtil._f175(x11); if(x4._f906) x4._f906(x4._f203); MVUtil.runListeners(x4._f93,MVEvent.BUTTON_DOWN,[x4._f203]); } else if(x4._f671==MVToolButton.TOGGLE) { if(x4._f680==MVToolButton.UP) { x4._f672.setAttribute("src",x4._f681); x4._f680=MVToolButton.DOWN; x11=(x11)?x11:((window.event)?event:null); MVUtil._f175(x11); if(x4._f906) x4._f906(x4._f203); MVUtil.runListeners(x4._f93,MVEvent.BUTTON_DOWN,[x4._f203]); } else { x4._f672.setAttribute("src",x4._f905); x4._f680=MVToolButton.UP; x11=(x11)?x11:((window.event)?event:null); MVUtil._f175(x11); if(x4._f907) x4._f907(x4._f203); MVUtil.runListeners(x4._f93,MVEvent.BUTTON_UP,[x4._f203]); } } } this._f672.onmouseup=function(x12) { if(x4._f671==MVToolButton.COMMAND&&x4._f680==MVToolButton.DOWN) { x4._f672.setAttribute("src",x4._f905); if(x4._f907) x4._f907(x4._f203); MVUtil.runListeners(x4._f93,MVEvent.BUTTON_UP,[x4._f203]); x4._f680=MVToolButton.UP; } } this._f206=function(x13,x14) { if(x4._f671==MVToolButton.TOGGLE&&(x13==undefined||x4._f203!=x13)) { if(x4._f680==MVToolButton.DOWN) { x4._f672.setAttribute("src",x4._f905); x4._f680=MVToolButton.UP; if(x14==null||!x14) MVUtil.runListeners(x4._f93,MVEvent.BUTTON_UP,[x4._f203]); } } } x4._f909(); } MVToolButton.COMMAND=0; MVToolButton.TOGGLE=1; MVToolButton.SEPARATOR=2; MVToolButton.UP=0; MVToolButton.DOWN=1; MVGoogleTileLayer.LOADEDJS=false; MVGoogleTileLayer.LOADING=false; MVGoogleTileLayer.TYPES=null; MVGoogleTileLayer.finishLoadJs=function() { MVGoogleTileLayer.LOADEDJS=true; MVGoogleTileLayer.TYPES=new Array(); MVGoogleTileLayer.TYPES[MVGoogleTileLayer.TYPE_ROAD]=G_NORMAL_MAP; MVGoogleTileLayer.TYPES[MVGoogleTileLayer.TYPE_SATELLITE]=G_SATELLITE_MAP; MVGoogleTileLayer.TYPES[MVGoogleTileLayer.TYPE_HYBRID]=G_HYBRID_MAP; MVGoogleTileLayer.TYPES[MVGoogleTileLayer.TYPE_SHADED]=G_PHYSICAL_MAP; } function MVGoogleTileLayer(config) { this.key="your_google_api_key"; this.libURL=null; if(config&&config.key) this.key=config.key; if(eval("typeof GMap2")!="undefined") MVGoogleTileLayer.finishLoadJs(); if(!MVGoogleTileLayer.LOADEDJS&&!MVGoogleTileLayer.LOADING) { MVGoogleTileLayer.LOADING=true; if(config&&config.libURL) { this.libURL=config.libURL MVUtil.loadScriptByUrl(this.libURL+"&key="+this.key+"&async=2&callback=MVGoogleTileLayer.finishLoadJs"); } else MVUtil.loadScriptByUrl("http://maps.google.com/maps?file=api&v=2&key="+this.key+"&async=2&callback=MVGoogleTileLayer.finishLoadJs"); } this._f555= { "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._f554=MVMapTileLayer; this._f554(this._f555.mapTileLayer); this.mapType=MVGoogleTileLayer.TYPE_ROAD; if(config&&config.mapType) this.mapType=config.mapType; this._f22=null; this._f23=null; this._f53=null; this.initializeListener=null; this.map=null; this._f618=null; this._f619=null; this.clonedGmap=null; } MVGoogleTileLayer.prototype=new MVMapTileLayer; MVGoogleTileLayer.prototype.setMapType=function(x0) { var x1=this; var x2=function() { x1.mapType=x0; if(x1.map) { x1.checkMapType(); if(x1.map) x1.map.setMapType(MVGoogleTileLayer.TYPES[x1.mapType]); if(x1.clonedGmap) x1.clonedGmap.map.setMapType(MVGoogleTileLayer.TYPES[x1.mapType]); } else setTimeout(x2,1000); } x2(); } MVGoogleTileLayer.prototype.getMapType=function() { return this.mapType; } MVGoogleTileLayer.prototype.setKey=function(x3) { if(x3) this.key=x3; } MVGoogleTileLayer.prototype.getType=function() { return "MVExternalAPIMapTileLayer"; } MVGoogleTileLayer.prototype.init=function(x4) { var x5=this; var x6=function() { if(x5.map) return; x5.map=new GMap2(x4); x5.checkMapType(); if(x5.mapType) x5.map.setMapType(MVGoogleTileLayer.TYPES[x5.mapType]); if(x5._f22!=null&&x5._f23!=null&&x5._f53!=null) { var x7=new GLatLng(x5._f23,x5._f22); x5.map.setCenter(x7,x5._f53+1); } if(x5.initializeListener) x5.initializeListener(); var x8=function() { if(x4.childNodes.length==2&&x5.parent._f221==false) { x5._f618=x4.lastChild; x5._f618.id="google_copyright"; x4.removeChild(x5._f618); x5._f618.style.zIndex="100"; x4.parentNode.parentNode.parentNode.appendChild(x5._f618); x5._f619=x4.lastChild; if(x5._f619&&x5._f619.id=="logocontrol") { x5._f619.id="google_logo"; x4.removeChild(x5._f619); x5._f619.style.zIndex="100"; x4.parentNode.parentNode.appendChild(x5._f619); } } } setTimeout(x8,1000); } var x9=function() { if(MVGoogleTileLayer.LOADEDJS) x6(x4); else setTimeout(x9,1000); }; x9(); } MVGoogleTileLayer.prototype.setCenterAndZoomLevel=function(x10,x11,x12,x13) { this._f22=x10; this._f23=x11; this._f53=x12; var x14=this; var x15=function() { if(x14.map) { x14.map.setCenter(new GLatLng(x11,x10),x12+1); } else if(!x13) setTimeout(x15,1000); }; x15(); } MVGoogleTileLayer.prototype._f556=function(x16,x17) { var x18=this; var x19=function() { if(x18.map) { x18.map.getDragObject().moveBy(new GSize(x16,x17)); } else setTimeout(x19,1000); }; x19(); } MVGoogleTileLayer.prototype.getCenter=function() { var x20=this.map.getCenter(); if(x20) return MVSdoGeometry.createPoint(x20.lng(),x20.lat(),this.srid); else return null; } MVGoogleTileLayer.prototype.setCenter=function(x21,x22) { this._f22=x21; this._f23=x22; var x23=this; var x24=function() { if(x23.map) { x23.map.setCenter(new GLatLng(x22,x21)); } else setTimeout(x24,1000); }; x24(); } MVGoogleTileLayer.prototype.resize=function() { var x25=this; var x26=function() { if(x25.map) { x25.map.checkResize(); } else setTimeout(x26,1000); }; x26(); } MVGoogleTileLayer.prototype.clone=function() { this.clonedGmap=new MVGoogleTileLayer({mapType:this.mapType,key:this.key,libURL:this.libURL}); return this.clonedGmap; } MVGoogleTileLayer.prototype.setVisible=function(x27) { MVMapTileLayer.prototype.setVisible.call(this,x27); if(this._f618) this._f618.style.display=x27?"":"none"; if(this._f619) this._f619.style.display=x27?"":"none"; } MVGoogleTileLayer.prototype._f170=function() { MVMapTileLayer.prototype._f170.call(this); this.map=null; if(this._f618) { if(this._f618.parentNode) this._f618.parentNode.removeChild(this._f618); this._f618=null; } if(this._f619) { if(this._f619.parentNode) this._f619.parentNode.removeChild(this._f619); this._f619=null; } GUnload(); } MVGoogleTileLayer.prototype.getStaticMapURL=function() { var x28="http://maps.google.com/maps/api/staticmap?"; var x29=this.map.getCenter(); var x30="center="+x29.lat()+","+x29.lng(); var x31="zoom="+(this._f53+1); var x32="size="+this.map.getSize().width+"x"+this.map.getSize().height; var x33; switch(this.mapType) { case MVGoogleTileLayer.TYPE_SATELLITE: x33="satellite"; break; case MVGoogleTileLayer.TYPE_HYBRID: x33="hybrid"; break; case MVGoogleTileLayer.TYPE_SHADED: x33="terrain"; break; default: x33="roadmap"; } x33="maptype="+x33; var x34="sensor="+"false"; var x35="key="+this.key; x28=x28+x30+"&"+x31+"&"+x32+"&"+x33+"&"+x34+"&"+x35; return x28; } MVGoogleTileLayer.prototype.checkMapType=function() { var x36=MVGoogleTileLayer.TYPES[this.mapType]; if(!x36) { for(t in MVGoogleTileLayer.TYPES) { if(MVGoogleTileLayer.TYPES[t]==this.mapType) { this.mapType=t; break; } } } } MVGoogleTileLayer.TYPE_ROAD="road"; MVGoogleTileLayer.TYPE_SATELLITE="satellite"; MVGoogleTileLayer.TYPE_HYBRID="hybrid"; MVGoogleTileLayer.TYPE_SHADED="shaded"; MVBingTileLayer.LOADING=false; MVBingTileLayer.TYPES=null; function MVBingTileLayer(config) { this.key="your_bing_api_key"; this.libURL=null; if(eval("typeof VEMap")=="undefined"&&!MVBingTileLayer.LOADING) { if(config&&config.libURL) { this.libURL=config.libURL; MVUtil.loadScriptByUrl(this.libURL); } else MVUtil.loadScriptByUrl("http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"); MVBingTileLayer.LOADING=true; } if(config&&config.key) this.key=config.key; this.mapType=MVBingTileLayer.TYPE_ROAD; if(config&&config.mapType) this.mapType=config.mapType; this._f555= { "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._f554=MVMapTileLayer; this._f554(this._f555.mapTileLayer); this._f22=null; this._f23=null; this._f53=null; this.initializeListener=null; this.map=null; this.key=null; this.clonedMap=null; } MVBingTileLayer.prototype=new MVMapTileLayer; MVBingTileLayer.prototype.setMapType=function(x0) { var x1=this; var x2=function() { x1.mapType=x0; if(x1.map) { x1.checkMapType(); type=MVBingTileLayer.TYPES[x1.mapType]; if(x1.map) x1.map.SetMapStyle(type); if(x1.clonedMap&&x1.clonedMap.map) x1.clonedMap.map.SetMapStyle(type); } else setTimeout(x2,1000); } x2(); } MVBingTileLayer.prototype.getMapType=function() { return this.mapType; } MVBingTileLayer.prototype.setKey=function(x3) { if(x3) this.key=x3; } MVBingTileLayer.prototype.getType=function() { return "MVExternalAPIMapTileLayer"; } MVBingTileLayer.prototype.init=function(div) { var bing=this; var init_bing=function(x4) { if(MVBingTileLayer.TYPES==null) { MVBingTileLayer.TYPES=new Array(); MVBingTileLayer.TYPES[MVBingTileLayer.TYPE_ROAD]=VEMapStyle.Road; MVBingTileLayer.TYPES[MVBingTileLayer.TYPE_SHADED]=VEMapStyle.Shaded; MVBingTileLayer.TYPES[MVBingTileLayer.TYPE_SATELLITE]=VEMapStyle.Aerial; MVBingTileLayer.TYPES[MVBingTileLayer.TYPE_HYBRID]=VEMapStyle.Hybrid; } bing.map=new VEMap(x4.id); bing.validateKey(); var x5=null; if(bing._f22!=null&&bing._f23!=null) x5=new VELatLong(bing._f23,bing._f22); bing.checkMapType(); bing.map.LoadMap(x5,bing._f53+1,MVBingTileLayer.TYPES[bing.mapType],true); if(bing.initializeListener) bing.initializeListener(); } var myInterval=setInterval( function(){ if((eval("typeof VEMap")!="undefined")&&(document.getElementById(div.id).attachEvent!=undefined)) { clearInterval(myInterval); init_bing(div); }},2000); } MVBingTileLayer.prototype.setCenterAndZoomLevel=function(x6,x7,x8,x9) { this._f22=x6; this._f23=x7; this._f53=x8; var x10=this; var x11=function() { if(x10.map) { x10.map.SetCenterAndZoom(new VELatLong(x7,x6),x8+1); } else if(!x9) setTimeout(x11,1000); }; x11(); } MVBingTileLayer.prototype._f556=function(x12,x13) { var x14=this; var x15=function() { if(x14.map) { x14.map.vemapcontrol.PanMap(-x12,-x13); } else setTimeout(x15,1000); }; x15(); } MVBingTileLayer.prototype.getCenter=function() { var x16=this.map.GetCenter(); return MVSdoGeometry.createPoint(x16.Longitude,x16.Latitude,this.srid); } MVBingTileLayer.prototype.setCenter=function(x17,x18) { this._f22=x17; this._f23=x18; var x19=this; var x20=function() { if(x19.map) { x19.map.SetCenter(new VELatLong(x18,x17)); } else setTimeout(x20,1000); }; x20(); } MVBingTileLayer.prototype.resize=function() { var x21=this; var x22=function() { if(x21.map) { if(x21.layerDiv.parentNode.offsetWidth>0) x21.map.Resize(x21.layerDiv.parentNode.offsetWidth,x21.layerDiv.parentNode.offsetHeight); } else setTimeout(x22,1000); }; x22(); } MVBingTileLayer.prototype.clone=function() { this.clonedMap=new MVBingTileLayer({mapType:this.mapType,key:this.key,libURL:this.libURL}); return this.clonedMap; } MVBingTileLayer.prototype.validateKey=function() { var x23="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(x23)}); this.map.SetCredentials(this.key); } MVBingTileLayer.prototype.getStaticMapURL=function() { var x24="http://dev.virtualearth.net/REST/V1/Imagery/Map/"; var x25=this.getCenter(); var x26=x25.getPointY()+","+x25.getPointX(); var x27; switch(this.mapType){ case MVBingTileLayer.TYPE_SATELLITE: x27="Aerial"; break case MVBingTileLayer.TYPE_HYBRID: x27="AerialWithLabels"; break default: x27="Road"; } var x28=this._f53+1; var x29="mapSize="+this.map.GetWidth()+","+this.map.GetHeight(); var x30="key="+this.key; x24=x24+x27+"/"+x26+"/"+x28+"?"+x29+"&"+x30; return x24; } MVBingTileLayer.prototype.checkMapType=function() { var x31=MVBingTileLayer.TYPES[this.mapType]; if(!x31) { for(t in MVBingTileLayer.TYPES) { if(MVBingTileLayer.TYPES[t]==this.mapType) { this.mapType=t; break; } } } } MVVirtualEarthTileLayer=MVBingTileLayer; MVBingTileLayer.TYPE_ROAD="road"; MVBingTileLayer.TYPE_SHADED="shaded"; MVBingTileLayer.TYPE_SATELLITE="satellite"; MVBingTileLayer.TYPE_HYBRID="hybrid"; MVBingTileLayer.prototype._f170=function() { MVMapTileLayer.prototype._f170.call(this); this.map=null; } function MVYahooTileLayer() { this._f555= { "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._f554=MVMapTileLayer; this._f554(this._f555.mapTileLayer); this.mapType=YAHOO_MAP_REG; this._f22=null; this._f23=null; this._f53=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._f22!=null&&this._f23!=null) { x2=new YGeoPoint(this._f23,this._f22); this.map.drawZoomAndCenter(x2,17-this._f53); } if(this.initializeListener) this.initializeListener(); } MVYahooTileLayer.prototype.setCenterAndZoomLevel=function(x3,x4,x5) { this._f22=x3; this._f23=x4; this._f53=x5; if(this.map) this.map.panToLatLon(new YGeoPoint(x4,x3),17-this._f53); } MVYahooTileLayer.prototype.getCenter=function() { var x6=this.map.getCenterLatLon(); return MVSdoGeometry.createPoint(x6.Lon,x6.Lat,this.srid); } MVYahooTileLayer.prototype._f556=function(x7,x8) { this.map.moveByXY(new YCoordPoint(x7,x8)); } MVYahooTileLayer.prototype.setCenter=function(x9,x10) { this._f22=x9; this._f23=x10; if(this.map) this.map.panToLatLon(new YGeoPoint(x10,x9)); } MVYahooTileLayer.prototype.resize=function() { var x11=new YGeoPoint(this._f23,this._f22); this.map.drawZoomAndCenter(x11,17-this._f53); } MVYahooTileLayer.prototype.clone=function() { var x12=new MVYahooTileLayer(); return x12; } function MVFOIGroup(x0) { this._f448=new Array(); this._f449=new Array(); this._f511=new Object(); if(x0 instanceof Array) { for(var x1=0;x1=0) { if(this.parent._f88) { var x6=this; var x7=function() { var x8=x5._f237.getPointX(); var x9=x5._f237.getPointY(); if(x6.clustering&&x6._f519>=x6.parent._f53 &&x5.gtype%10==1) { result=x6._f523(x5); if(result!=null) { var x10=x6._f524(result.x,result.y); var x11=x6.clusters[result.x][result.y]; if(x10==null) { x6._f525(x11); } else { if(x11!=null) { x6._f525(x11); } else if(x6.clusters[result.x+x10.directionX][result.y+x10.directionY]!=null) { x6._f525(x6.clusters[result.x+x10.directionX][result.y+x10.directionY]); } else if(x6.clusters[result.x][result.y+x10.directionY]!=null) { x6._f525(x6.clusters[result.x][result.y+x10.directionY]); } else if(x6.clusters[result.x+x10.directionX][result.y]!=null) { x6._f525(x6.clusters[result.x+x10.directionX][result.y]); } } x5._f88=true; } return; } else if(x5.gtype%10==1&& (x8x6.maxX||x9x6.maxY)) { return; } x5._f88=true; if(x5.gtype%10==1&&x6._f526) { if(x6._f268(x5)) return; } x6.parent._f255._f264(x5); if(x5.gtype%10==1&&(x6.pointDiv.parentNode==null ||x6.pointDiv.parentNode!=x6.div)) x6.div.appendChild(x6.pointDiv); } this._f522(x5,x7); } } } MVFOIGroup.prototype.removeFOI=function(x12) { if(!x12) return ; if(x12.id!=null&&x12.id!="") { this._f511[x12.id]=null; } var x13=false; if(x12.gtype%10==1) { for(var x14=0;x14=this.parent._f53&&this.clusters) { if(x12._f237.srid==null) x12._f237.srid=this.parent.srid; else if(x12._f237.srid!=this.parent.srid) this.parent.transformGeom(x12._f237,this.parent.srid,null,callBack); var x15=x12._f237.getPointX(); var x16=x12._f237.getPointY(); for(var x17=0;x170) if(this.parent._f76._f77[0].nid==x12.id) { this.parent._f76.deleteInfoWindow(this.parent._f76._f77[0]); } } } MVFOIGroup.prototype.refresh=function() { if(this.parent&&this.parent._f88) { this.startNum=0; if(this._f515!=null) clearTimeout(this._f515); this._f520(); this._f521(); var x23=this; this.transformGeomNum=0; if(this._f448.length>0) { this._f24=true; this.parent.setLoadingIconVisible(true); } for(var x24=0;x24=x23.parent._f53) { x23._f529(); x23._f530(); try{ if(x23.pointDiv.parentNode==null|| x23.pointDiv.parentNode!=x23.div) x23.div.appendChild(this.pointDiv); } catch(ex){ alert(ex); } x23._f531(1); } else x23.initializePointBatch(); } if(x25._f237.srid==null) x25._f237.srid=this.parent.srid; if(x25._f237.srid!=this.parent.srid) this.parent.transformGeom(x25._f237,this.parent.srid,null,x26); else x26(); } this._f532(); } } MVFOIGroup.prototype.setVisible=function(x28) { this.visible=x28; if(this.div!=null) { if(this.visible) { this.refresh(); } else { var x29=this.pointDiv.childNodes; for(var x30=0;x30=2) { _f65._f534(x47[0]); this.parent._f534(x47[0]); } } x45._f262=this._f262; x45.parent=this.parent; if(x45.gtype%10==1&&!x45.style) { x45._f102=x45._f3; } if(!x45._f3&&!x45.isHTMLFOI) x45._f3=_f65._f467(); if(this.parent._f88) { var x48=function(x49) { if(x49) x45._f237=x49; if(x46) x46(); } if(x45._f237.srid==null) x45._f237.srid=this.parent.srid; if(x45._f237.srid!=this.parent.srid) this.parent.transformGeom(x45._f237,this.parent.srid,null,x48); else x48(); } } MVFOIGroup.prototype.display=function(x50,x51,x52,x53,x54) { this.minX=x50; this.minY=x51; this.maxX=x52; this.maxY=x53; this.startNum=0; if(this._f515!=null) clearTimeout(this._f515); var x55=this; this.transformGeomNum=0; if(this._f448.length>0) { this._f24=true; this.parent.setLoadingIconVisible(true); } for(var x56=0;x56=x55.parent._f53) { x55._f520(); x55._f529(); x55._f530(); try{ if(x55.pointDiv.parentNode==null|| x55.pointDiv.parentNode!=x55.div) x55.div.appendChild(x55.pointDiv); } catch(ex){ alert(ex); } x55._f531(1); } else if(x54||x55.parent.wrapAroundLayer(x55._f84())) { x55._f520(); x55.initializePointBatch(); } else { x55._f535(); } } if(x57._f237.srid==null) x57._f237.srid=this.parent.srid; if(x57._f237.srid!=this.parent.srid) this.parent.transformGeom(x57._f237,this.parent.srid,null,x58); else x58(); } this._f521(); this._f532(); } MVFOIGroup.prototype._f532=function() { var x60=this; for(var x61=0;x61=this.minY&&x69<=this.maxY&&((x68>=this.minX&&x68<=this.maxX)||x70)) { if(this.parent._f255==null) this.parent._f537(); if(x67>=200&&x64=this._f448.length) { this.startNum=0; this._f24=false; this.parent._f79(); try{ if(this.pointDiv.parentNode==null|| this.pointDiv.parentNode!=this.div) this.div.appendChild(this.pointDiv); } catch(ex){ alert(ex); } } } MVFOIGroup.prototype._f293=function(x71,x72) { if(x72.gtype%10==1) this.pointDiv.appendChild(x71); else this.polygonDiv.appendChild(x71); } MVFOIGroup.prototype._f521=function() { MVUtil._f197(this.polygonDiv,this.parent._f7); } MVFOIGroup.prototype._f520=function() { MVUtil._f197(this.pointDiv,this.parent._f7); } MVFOIGroup.prototype._f273=function(id) { for(var x73=0;x73=this._f514 &&this.parent._f53<=this._f513) return true; else return false; } MVFOIGroup.prototype._f539=function() { for(var x78=0;x78=0&&this.clusters[x91-1][x92]!=null) x96=this._f542(this.clusters[x91][x92],this.clusters[x91-1][x92]); if(x92-1>=0&&this.clusters[x91][x92-1]!=null) x97=this._f542(this.clusters[x91][x92],this.clusters[x91][x92-1]); if(x91+1=0&&x92+1=0&&this.clusters[x91+1][x92-1]!=null) x100=this._f542(this.clusters[x91][x92],this.clusters[x91+1][x92-1]); if(x91-1>=0&&x92-1>=0&&this.clusters[x91-1][x92-1]!=null) x101=this._f542(this.clusters[x91][x92],this.clusters[x91-1][x92-1]); var x102= Math.min(x94, Math.min(x95, Math.min(x96, Math.min(x97, Math.min(x98, Math.min(x99, Math.min(x100,x101))))))); if(x102this.horizontalGrids[x111+1*x113]&& this.clusters[x111][x112].clusterY>this.verticalGrids[x112+1*x114]) { this._f527(this.clusters[x111+1*x113][x112+1*x114]); this.clusters[x111+1*x113][x112+1*x114]=this.clusters[x111][x112]; this._f527(this.clusters[x111][x112]); this.clusters[x111][x112]=null; } else { if(this.clusters[x111][x112].clusterX<=this.horizontalGrids[x111+1*x113]) { if(this.clusters[x111][x112+1*x114]==null) this.clusters[x111][x112+1*x114]=this.clusters[x111][x112]; else { this.clusters[x111][x112+1*x114].addCluster(this.clusters[x111][x112]); this.clusterCount--; } } else { if(this.clusters[x111+1*x113][x112]==null) this.clusters[x111+1*x113][x112]=this.clusters[x111][x112]; else { this.clusters[x111+1*x113][x112].addCluster(this.clusters[x111][x112]); this.clusterCount--; } } this._f527(this.clusters[x111][x112]); this.clusters[x111][x112]=null; this._f527(this.clusters[x111+1*x113][x112+1*x114]); this.clusters[x111+1*x113][x112+1*x114]=null; } this.clusterCount--; } MVFOIGroup.prototype._f541=function() { var x115=this.parent; var x116=0; this._f450=new Array(); for(var x117=0;x117=this._f518) { var x120=x119.createClusterFOI(this.parent,"-CL"+x116,this._f517,this._f262); this._f546(x120); x116++; } } } } MVFOIGroup.prototype._f523=function(x121) { x121._f88=false; if(x121._f237.srid==null) x121._f237.srid=this.parent.srid; else if(x121._f237.srid!=this.parent.srid) this.parent.transformGeom(x121._f237,this.parent.srid,null,callBack); var x122=x121._f237.getPointX(); var x123=x121._f237.getPointY(); if(this.parent.wraparound) { var x124=this.parent.wrapAroundLayer(this._f84()); if(!x124) { this.minX=MVUtil.keepInCSBoundary(this.parent,this.minX); this.maxX=MVUtil.keepInCSBoundary(this.parent,this.maxX); } else { this.minX=this.parent.msi._f166; this.maxX=this.parent.msi._f165; } x122=MVUtil.keepInCSBoundary(this.parent,x122); } if(x123>=this.minY&&x123<=this.maxY&&((x122>=this.minX&&x122<=this.maxX)||x124)) { var x125=Math.floor((x122-this.minX)/this.gridSizeInX); var x126=Math.floor((x123-this.minY)/this.gridSizeInY); var x127=this.clusters[x125][x126]; if(x127==null){ x127=new MVFOICluster(x122,x123,x121); this.clusters[x125][x126]=x127; } else x127.addFOI(x122,x123,x121); return {x:x125,y:x126}; } return null; } MVFOIGroup.prototype._f546=function(x128) { this._f450.push(x128); x128.parent=this.parent; this.parent._f255._f264(x128); for(var x129=0;x129=this._f518) { var x139=this._f273(x138); this.parent._f255._f266(x139.id,x139); x139.setHTMLElement(x137.numberOfPoints,10,10); this.parent._f255._f264(x139); return; } this._f527(x137); if(x137.numberOfPoints>=this._f518) { var x140=0; var x141=this._f450.length; if(x141>0) x140=parseInt(this._f450[x141-1].id.substring(3))+1; var x142=x137.createClusterFOI(this.parent,"-CL"+x140,this._f517,this._f262); this._f546(x142); } else this._f528(x137); } MVFOIGroup.prototype.enableMultiFeatureMarker=function(x143,x144) { this._f526=x143; if(x144) { if(typeof(x144)=="string"||x144 instanceof MVXMLStyle|| x144 instanceof MVStyleMarker) x144={style:x144}; if(x144.style) this._f547=x144.style if(x144.listWidth) this.listWidth=x144.listWidth; if(x144.listHeight) this.listHeight=x144.listHeight; } } MVFOIGroup.prototype._f536=function(x145) { if(x145==null&&x145.length<2) return; for(var x146=0;x1461) { this._f130(x147); } } } MVFOIGroup.prototype._f130=function(x149) { var x150=x149[0]._f237.clone(); var x151=new MVFOI("-OL"+x149[0].id,x150,this._f547,_f65._f549); x151.attachEventListener(MVEvent.MOUSE_OVER,this._f186); x151.attachEventListener(MVEvent.MOUSE_OUT,this._f192); x151.overLayFOIs=x149; x151._f262=this._f262; x151.parent=this.parent; this._f451.push(x151); this.parent._f255._f264(x151); for(var x152=0;x1520) { x160=true; x167.id="_MFLC"+x161; } } var x180=document.createElement("a"); x180.style.cssText="font:11px normal Tahoma;color: #000000"; x180.href="javascript:void(0)"; x180.index=x161; x180.onclick=function(x181) { x181=(x181)?x181:((window.event)?event:null); var x182=x154[this.index]; if(x182._f181||(x182._f93[MVEvent.MOUSE_CLICK]!=null&&x182._f93[MVEvent.MOUSE_CLICK].length!=0)) { x157._f179(); if(x182._f181) x182._f181(x153,x182,MVUtil.getEvent(x181)); MVUtil.runListeners(x182._f93,MVEvent.MOUSE_CLICK,[x153,x182,MVUtil.getEvent(x181)]); } else if(x182._f243&&x182._f199) { var x183=new MVInfoWindowTab(x182._f198,x182._f199); var x184=new Array(x183); if(x182._f245>0&&x182._f246>0) x157._f76._f298(x182.id,x153.sdo_point.x,x153.sdo_point.y, x184,0,x182._f245,x182._f246,x182._f249,x182._f198); else x157._f76._f298(x182.id,x153.sdo_point.x,x153.sdo_point.y, x184,0,null,null,x182._f249,x182._f198); return; } } x180.innerHTML=x165; x168.appendChild(x180); } var x185=MVUtil.checkRealSize(x157,x155); if(x185.width+MVInfoWindowStyle4.MultiFeatureListTotalMarginWidth0&&x191.childNodes[0]) { var x192=x191.childNodes[0]; var x193=MVUtil.getRealSize(x192); if(x191.offsetWidth=this.minY&&x201<=this.maxY&&((x200>=this.minX&&x200<=this.maxX)||x202)) return true; else return false; } MVFOIGroup.prototype._f263=function(x203) { if(x203.overlayFOI) { for(var x204=0;x204