Base Maps

"+"
  • m - Street Map Google
    "+"
  • s - Aerial Google Satellite
    "+"
  • h - Aerial Google Hybrid
    "+"
  • naip - Aerial USA low-res
    "+"
  • t1 - Topo Google Terrain
    ";if(dL.tK=="1"){dL.lw+="
  • t2 - MyTopo USA-Canada
    ";}dL.lw+=""+"
  • t4 - CalTopo Hi-res USA
    "+"
  • t5 - Topo Canada
    "+"
  • t6 - Topo ESRI USA
    "+"
  • t7 - Topo ESRI World
    "+"
  • t8 - Topo OSM Cycle World
    "+"
  • bc - BC basemap
    "+"
  • osm - Open Street Map
    ";max=dL.J.length;for(i=0;i
    "+dL.J[i]+"
    ";}}dL.DB=true;dL.lw+="
  • awb - All white basemap
    "+""+"
    "+"
    Close List
    "+"
    "+""+"
    "+"
    Close List
    "+"
    "+""+"";gr(2);break;default:}};function cB(qs){if(dL.bV=="desktop"){dL.et=""+"
    "+"
    Terms of service and privacy
    "+"
    Donate
    "+"
    Gmap4 Facebook page - Tips
    "+"
    Help and Quick Start
    "+"
    Gmap4 Homepage
    "+"
    Link to this map
    "+"
    Embed this map
    "+"
    My Location"+dL.mf+"
    "+"
    Search
    "+"
    Draw and save
    "+"
    t4 CalTopo hill shading
    "+"
    UTM - USNG - LatLng
    "+"
    ";dL.fu=""+"
    "+"
    Declination"+dL.mr+"
    "+"
    Data file"+dL.km+"
    "+"
    Label"+dL.mv+"
    "+"
    Streetview"+dL.mk+"
    "+"
    Crosshair"+dL.lf+"
    "+"
    Map tilt"+dL.ld+"
    "+"
    Directions
    "+"
    Full screen
    "+"
    About
    "+"
    Gmap4 special maps
    "+"
    Property Line Maps
    "+"
    FindMeSAR
    "+"
    ";}else{dL.fx=""+"
    "+""+"
    ";}};function gr(K){dL.lF="";dL.oM=0;mw=0;dL.tz=0;if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_content=""+"
    "+"
    Add GIS overlays
    "+"
    Manage GIS overlays
    "+"
    Turn off all overlays
    "+"
    Help
    ";dL.TOP_RIGHT_overlay_middle_dropdown_content=""+"
    ";rX=0;max=dL.gis_overlay_add_ix_ary.length;for(i=0;i"+""+dL.cV[i]+" - "+dL.J[i]+"
    ";}else if(dL.J[i]=="Congress_districts"){dL.TOP_RIGHT_overlay_left_dropdown_content+="
    "+""+dL.cV[i]+" - "+dL.J[i]+"
    ";}else{dL.html_all="
    "+dL.cV[f]+" - "+dL.J[f]+"
    ";if(dL.gk===false||(dL.gk!==false&&rX<=dL.pv)){dL.TOP_RIGHT_overlay_left_dropdown_content+=dL.html_all;}else{dL.TOP_RIGHT_overlay_middle_dropdown_content+=dL.html_all;}}if(dL.ds[f]==""&&isNaN(dL.cV[f])===false){dL.tz++;if(dL.cV[f]>mw){mw=dL.cV[f];dL.lF=dL.mH[f];dL.oM=dL.mp[f];dL.rj=dL.J[f];}}}}}if(dL.gk===false){dL.TOP_RIGHT_overlay_left_dropdown_content+="
    ";}else{dL.TOP_RIGHT_overlay_left_dropdown_content+="";dL.TOP_RIGHT_overlay_middle_dropdown_content+="";}}else if(dL.bV=="scroll"){dL.iJ=dL.lw;max=dL.J.length;for(i=0;i
    "+""+dL.cV[i]+" - "+dL.J[i]+"
    ";}else{if(dL.J[i]=="Congress_districts"){dL.iJ+="
  • "+""+dL.cV[i]+" - "+dL.J[i]+"
    ";}else{dL.iJ+="
  • "+dL.cV[i]+" - "+dL.J[i]+"
    ";}}if(dL.ds[i]==""&&isNaN(dL.cV[i])===false){if(dL.cV[i]>mw){mw=dL.cV[i];dL.lF=dL.mH[i];dL.oM=dL.mp[i];dL.rj=dL.J[i];}}}}}dL.iJ+=dL.Az;}else{}};function jM(qs){if(dL.bV=="desktop"){if(dL.TOP_RIGHT_basemap_dropdown_div.style.display=="block"){dL.kL=dL.uD.replace("'hn' ","'hn' style='background-color:#FFFFCC;")+dL.db+dL.sk;}else{dL.kL=dL.uD+dL.db+dL.sk;}dL.TOP_RIGHT_basemap_button_div.innerHTML=dL.kL;}else{aq=dL.db.length;dL.kL=dL.Aq+dL.db+dL.zE;dL.ox.innerHTML=dL.kL;}};function tR(){eu("point","utm");dL.zZ=dL.cX;eu("","mgrs");dL.Aa=dL.cX;eu("","usng");dL.zg=dL.cX;eu("","latlng-dms-all");dL.rd=""+"
    "+"
    "+"
    "+"
    Close
    "+"
    "+"
    "+"Coordinates for point you selected
    "+"Datum WGS84

    "+"
    "+"
    Link to this spot
    "+"
    "+"
    "+"USNG "+dL.zg+"
    "+"Read why USNG is important"+"

    "+"UTM
    "+dL.zZ+"

    "+"Decimal degrees:
    "+"Lat,Lon "+dL.jN+"
    "+"Lon,Lat "+dL.xk+"

    "+"Degrees and decimal minutes (Lat Lng):
    "+dL.vy+"

    "+"Degrees Minutes Seconds (Lat Lng):
    "+dL.wJ+"

    "+"MGRS "+dL.Aa+"

    "+"Current zoom level: "+dL.map.getZoom()+"

    "+"
    "+"
    Directions from here
    "+"
    "+"
    "+"
    "+"
    Directions to here
    "+"
    "+"
    "+"
    "+"
    Close
    "+"
    "+"
    "+"
    ";};function fq(){if(dL.ce=="grid"){dL.debug_sequence="9152 START func a16. ___masu.fO = "+dL.fO+" ___masu.bV = "+dL.bV+"
    "+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;r(11055,null);}dL.tZ++;if(dL.tZ<10){}if(dL.H!="off"){dL.lE="";dL.kU="";if(dL.fO!==undefined&&(dL.H=="usng"||dL.H=="mgrs")){if(dL.H=="usng"){dL.cq.length=0;dL.cq=dL.fO.split(" ");aq=" ";if(dL.cq.length==7){aq="";dL.cq.unshift("");}dL.aS=dL.cq[5];dL.aU=dL.cq[7];os();dL.cq[5]=dL.aS;dL.cq[7]=dL.aU;dL.lE=""+dL.cq[0]+aq+""+dL.cq[1]+"  "+""+dL.cq[3]+"  "+dL.cq[5]+"  "+dL.cq[7];if(dL.eH!="Cursor        "&&(dL.bV=="desktop"||dL.at=="desktop")){dL.cq.length=0;dL.cq=dL.eH.split(" ");aq=" ";if(dL.cq.length==7){aq="";dL.cq.unshift("");}dL.aS=dL.cq[5];dL.aU=dL.cq[7];os();dL.cq[5]=dL.aS;dL.cq[7]=dL.aU;dL.kU=""+dL.cq[0]+aq+""+dL.cq[1]+"  "+""+dL.cq[3]+"  "+dL.cq[5]+"  "+dL.cq[7];}}else{bY=dL.fO.substr(0,12);if(bY!="Center "){bY="";}cw=dL.fO.replace("Center ","");aq=dL.fO.slice(-8);dL.aS=aq.substr(0,4);dL.aU=aq.substr(4,4);os();dL.cq.length=0;if(isNaN(cw.substr(1,1))!==false){dL.lE=""+bY+""+cw.substr(0,2)+""+""+cw.substr(2,2)+""+dL.aS+dL.aU;}else{dL.lE=""+bY+""+cw.substr(0,3)+""+""+cw.substr(3,2)+""+dL.aS+dL.aU;}if(dL.eH!="Cursor        "&&(dL.bV=="desktop"||dL.at=="desktop")){aq=dL.eH.slice(-8);dL.aS=aq.substr(0,4);dL.aU=aq.substr(4,4);os();bY=dL.eH.substr(0,12);if(bY!="Cursor "){bY="";}cw=dL.eH.replace("Cursor ","");if(isNaN(cw.substr(1,1))!==false){dL.kU=""+bY+""+cw.substr(0,2)+""+""+cw.substr(2,2)+""+dL.aS+dL.aU;}else{dL.kU=""+bY+""+cw.substr(0,3)+""+""+cw.substr(3,2)+""+dL.aS+dL.aU;}}}}if(dL.lE==""){dL.rA=dL.fO;}else{dL.rA=dL.lE;}if(dL.kU==""){dL.sh=dL.eH;}else{dL.sh=dL.kU;}if(dL.bV=="desktop"){if(dL.qo!==false){dL.qo=false;dL.ia.innerHTML="";dL.iT.innerHTML="";}dL.ia.innerHTML=dL.rA;dL.iT.innerHTML=dL.sh;}else if(dL.bV=="scroll"){dL.ky.innerHTML=dL.rA;if(dL.at=="desktop"){dL.ki.innerHTML=dL.sh;}}}};function os(){if(dL.R>19){dL.aS=""+dL.aS+"";dL.aU=""+dL.aU+"";}else if(dL.R>16){dL.aS=""+dL.aS.substr(0,3)+""+dL.aS.substr(3,1);dL.aU=""+dL.aU.substr(0,3)+""+dL.aU.substr(3,1);}else if(dL.R>12){dL.aS=""+dL.aS.substr(0,2)+""+dL.aS.substr(2,2);dL.aU=""+dL.aU.substr(0,2)+""+dL.aU.substr(2,2);}else if(dL.R>9){dL.aS=""+dL.aS.substr(0,1)+""+dL.aS.substr(1,3);dL.aU=""+dL.aU.substr(0,1)+""+dL.aU.substr(1,3);}};function pq(){aq="";if(dL.bi=="t2"){aq=dL.zw;if(dL.bV=="desktop"){dL.la.innerHTML=aq;}else{dL.jY.innerHTML=aq;}}else{if(dL.bV=="desktop"){dL.la.innerHTML=aq;}else{dL.jY.innerHTML=aq;}}};function iF(){if(dL.bV=="desktop"){dL.ge.innerHTML=dL.ej+dL.cb;if(dL.map.controls[google.maps.ControlPosition.BOTTOM_CENTER].getLength()==0){dL.map.controls[google.maps.ControlPosition.BOTTOM_CENTER].push(dL.jL);}dL.im.innerHTML="";}else{dL.im.innerHTML=dL.cb;dL.ge.innerHTML="";}};function uS(){if(dL.bV=="desktop"){dL.ps.innerHTML=dL.iR;}else{dL.nA.innerHTML=dL.iR;}};function oL(){dL.ar=dL.map.getCenter();if(dL.cl==""&&(dL.H=="utm"||dL.H=="usng"||dL.H=="mgrs")){fN(0,11257);}else{if(dL.cl!=""&&dL.H!="utm"&&dL.H!="usng"&&dL.H!="mgrs"){fN(dL.iW,11264);}}cN="";if(dL.H=="utm"){cN="center";}dL.ac=dL.ar;eu(cN,"");c="Center ";if(dL.at=="phone"){c="";}dL.fO=""+c+dL.cX;fq();if(dL.H=="utm"){cj("16 function to switch_coordinate_type",1);if(dL.eo=="on"){if(dL.mn=="small"){dL.eo="off";ek();dL.eo="on";ek();}}}else if(dL.H=="latlng-d"||dL.H=="latlng-dm"||dL.H=="latlng-dms"){if(dL.cl!=""){cj("17 function to switch_coordinate_type",0);}if(dL.eo=="on"){if(dL.mn=="big"){dL.eo="off";ek();dL.eo="on";ek();}}}else{cj("17B function to switch_coordinate_type",1);if(dL.at=="desktop"||(dL.H!="usng"&&dL.H!="mgrs")){fq();}if(dL.eo=="on"){if(dL.mn=="small"){dL.eo="off";ek();dL.eo="on";ek();}}}};function eu(cN,pB){ey=dL.H;if(pB!=""){ey=pB;}if(ey=="utm"){LLtoUTM(dL.ac.lat(),dL.ac.lng(),dL.dk);if(dL.ac.lat()<0){dL.dk[1]=10000000+dL.dk[1];}xP=dL.dk[0];o=dL.dk[1];dL.cX=""+UTMZone+" "+xP.toFixed(0)+","+o.toFixed(0);}else if(ey=="latlng-d"||ey=="latlng-dm"||ey=="latlng-dms"||ey=="latlng-dms-all"){if(ey=="latlng-dms-all"){ey=2;}lu(ey);if(ey!="latlng-dms-all"){dL.cX=dL.latlng_formatted;}}else{dL.lat=dL.ac.lat();dL.lng=dL.ac.lng();jp(1);dL.cX=dL.dP;if(ey=="usng"){vz=dL.dP;Ab(vz);dL.cX=dL.ow;}}};function gB(action){if(action=="desktop_action"||action=="desktop_map"){if(action=="desktop_action"){bF(2);dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].clear();if(dL.at=="desktop"&&dL.fG<500){dL.fD.style.display="none";}dL.TOP_RIGHT_overlay_left_button_div.innerHTML="";dL.TOP_RIGHT_basemap_button_div.innerHTML="";dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_overlay_left_dropdown_div.style.display="block";dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu;dL.TOP_RIGHT_basemap_dropdown_div.style.display="block";dL.nK=1;}else if(action=="desktop_map"){bF(2);dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].clear();dL.AD=""+"
    "+"Basemaps"+"
    ";dL.uY=""+"
    "+"Overlays"+"
    ";dL.TOP_RIGHT_overlay_left_button_div.innerHTML=dL.uY;dL.TOP_RIGHT_basemap_button_div.innerHTML=dL.AD;dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.TOP_RIGHT_overlay_left_dropdown_content;dL.TOP_RIGHT_overlay_left_dropdown_div.style.display="block";if(dL.gk!==false){dL.TOP_RIGHT_overlay_middle_button_div.innerHTML=dL.uY;dL.TOP_RIGHT_overlay_middle_container_div.style.display="block";dL.TOP_RIGHT_overlay_middle_button_div.style.display="block";dL.TOP_RIGHT_overlay_middle_dropdown_div.innerHTML=dL.TOP_RIGHT_overlay_middle_dropdown_content;dL.TOP_RIGHT_overlay_middle_dropdown_div.style.display="block";}dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.TOP_RIGHT_basemap_dropdown_content;dL.TOP_RIGHT_basemap_dropdown_div.style.display="block";dL.nK=1;}}else{bF(2);dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].clear();dL.map.controls[google.maps.ControlPosition.RIGHT_TOP].clear();dL.dX=false;dL.map.controls[google.maps.ControlPosition.BOTTOM_CENTER].clear();dL.im.innerHTML="";dL.la.innerHTML="";switch(action){case "scroll_action_content":dL.dD.innerHTML=dL.fx;dL.rm=true;break;case "scroll_map_type_content":dL.dD.innerHTML=dL.iJ;dL.kF=true;break;default:}dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(dL.dD);pq();iF();}};function bh(action){if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.style.display="none";dL.TOP_RIGHT_overlay_middle_dropdown_div.style.display="none";dL.TOP_RIGHT_basemap_dropdown_div.style.display="none";}else{dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].clear();dL.rm=false;if(action!="cancel"&&action!="desktop"&&action!="button"&&action!="scroll"){if(dL.he!="icepeak"){dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(dL.eb);}dL.map.controls[google.maps.ControlPosition.RIGHT_TOP].push(dL.fp);dL.dX=true;}}if(action!="manage_gis"){bF(2);}switch(action){case 'nU':nU();break;case 'button_action_content_2':gB("button_action_content_2");break;case 'button_action_content_3':gB("button_action_content_3");break;case 'cancel':if(dL.he!="icepeak"){dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(dL.eb);}dL.map.controls[google.maps.ControlPosition.RIGHT_TOP].push(dL.fp);dL.dX=true;break;case 'oi':oi();break;case 'qL':qL();break;case 'pd':pd();break;case 'oD':oD();break;case 'display_map_url_1':dL.jE="Link to the map on your screen";ha(1);break;case 'display_map_url_embed':dL.jE="Code to embed the map you see on your screen";ha("embed");break;case 'uu':uu();break;case 'display_tos':AT();break;case 'pa':pa();break;case 'download_gis_data':ye();break;case 'facebook_link':window.open("https://www.facebook.com/Gmap4","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");break;case 'full_screen':AI();break;case 'hill_shade_-1':bg(-1);break;case 'special_maps':Ax();break;case 'property_line_maps':AH();break;case 'find_me_sar':window.open("https://findmesar.com/p/911-wireless-location-accuracy.html","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");break;case 'mU':mU();break;case 'display_coordinate_type_picker_0':gW(0);break;case 'ek':ek();break;case 'gN':gN();break;case 'ka':ka();break;case 'gG':gG();break;case 'iI':iI(1);break;case 'on':on();break;case 'kN':kN();break;case 'jU':jU();break;case 'ui':ui();break;}};function rz(){aq=dL.bi;switch(aq){case 'h':dL.db="Hybrid";dL.cb="";break;case 'm':dL.db="Map";dL.cb="";break;case 's':dL.db="Satellite";dL.cb="";break;case 'naip':dL.db="NAIP Aerial";dL.cb=dL.za;break;case 't1':dL.db="t1 Terrain";dL.cb="";break;case 't2':dL.db="t2 MyTopo";dL.cb=dL.zU;break;case 't3':dL.db="t3 Topo USGS";dL.cb=dL.yN;break;case 't4':dL.db="t4 CalTopo Hi-res";dL.cb=dL.yV;break;case 't5':dL.db="t5 Topo Canada";dL.cb=dL.zm;break;case 't6':dL.db="t6 Topo USA ESRI";dL.cb=dL.xM;break;case 't7':dL.db="t7 Topo World ESRI";dL.cb=dL.yz;break;case 't8':dL.db="t8 Topo World OSM Cycle";if(dL.bV=="desktop"){dL.cb=dL.zp;}else{dL.cb=dL.AC;}break;case 'osm':dL.db="osm Open Street Map";dL.cb=dL.AA;break;case 'bc':dL.db="BC basemap";dL.cb="GeoBC, DataBC";break;case 'awb':dL.db="awb All white basemap";dL.cb="";break;case 'cancel':break;case 'All white basemap':dL.db="All white basemap";dL.cb="";break;default:i=0;max=dL.J.length;while(i1){for(i=1;ihttps://mappingsupport.com/p2/gissurfer.com
    ";r(12528,null);};function hW(){dL.bi="";i=0;while(i=3){pq();iF();jM("function I");dL.fD.style.display="block";}if(dL.fF=="on"){max=dL.cr.length;if((dL.bi=="s"||dL.bi=="h"||dL.bi=="naip")&&(!(dL.gF!==false))){dL.gF=true;for(i=0;idL.cV[f]){dL.cV[temp_slot_ix]--;}}}}}dL.cV[f]=" -";dL.kw[f]="";if(gb=="State_legislature_districts"){if(K=="menu"){dL.fB=false;dL.dq="";dL.oB="";dL.eV="";dL.cE="";}else if(K=="zoom_changed"){cL("kmz","I");}}}}if(dL.J[f]!="Google_traffic"){if(dL.eQ==1){fN(0,12288);}else if(dL.eQ==0){fN(dL.iW,12293);}}gr(4);if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.TOP_RIGHT_overlay_left_dropdown_content;if(dL.gk!==false){dL.TOP_RIGHT_overlay_middle_dropdown_div.innerHTML=dL.TOP_RIGHT_overlay_middle_dropdown_content;}}else if(dL.bV=="scroll"){dL.vC=dL.dD.scrollTop;if(dL.vC!=0){dL.dD.innerHTML=dL.iJ;dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].clear();dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(dL.dD);dL.dD.scrollTop=dL.vC;}}else{}}};function sT(){max=dL.ju.length;for(i=0;i State House or Assembly
    "+" State Senate
    ";}else{kp="congress";mh=" style='width:100%;'";o='this.className="oS"';c='this.className="oU"';dL.tx=""+"
    "+"
       Congress All States"+"
    "+"
    ";}Bi="";mh="";if(dL.at=="tablet"){mh=" style='width:40%;'";}dL.zD=""+"
    "+"
    ";dL.qJ=""+"
    "+"
    "+"
    ";o='this.className="oS"';c='this.className="oU"';for(i=0;i<50;i++){dL.ii.length=0;dL.ii=dL.xJ[i].split("^");dL.qJ+="
    "+dL.ii[0]+"
    ";}dL.qJ+=""+"
    "+"
    "+"
    ";dL.zI=""+"
    "+"
    "+"
    Turn off district overlay
    "+"
    "+dL.zD+dL.tx+dL.qJ;dL.msg=dL.zI;r(12528,null);};function tm(action){dL.hN=true;if(action==1){dL.hT="house";dL.aD="state_house";dL.eV="lower";}else if(action==2){dL.hT="senate";dL.aD="state_senate";dL.eV="upper";}};function nF(kp,mD,state_abbr,xq,yK,K){dL.kS=false;dL.Eo=yK;if(kp=="congress"){dL.aD="congress";}else{if(dL.hT=="house"){dL.aD="state_house";}else{dL.aD="state_senate";}}if(dL.bV=="scroll"){I("cancel","false",-1,"menu");}dL.oB=xq;if((dL.aD=="state_house"||dL.aD=="state_senate")&&state_abbr=="NE"&&dL.eV=="lower"){dL.msg="The Nebraska legislature does not have a state house. Instead, Nebraska only has a state senate.
    ";r(12586,null);}else{bF(2);dL.cE="";dL.fB=false;dL.hN=true;if(dL.aD=="congress"){if(mD=="congress_all_states"){dL.aD="congress_all_states";dL.kQ="";dL.dq="";}else{dL.aD="congress_one_state";dL.kQ=mD;dL.dq=state_abbr.toLowerCase();dL.sB=dL.mV+state_abbr+dL.jG;dL.sy=dL.kP+mD+dL.kd;}}else{dL.kQ=mD;dL.dq=state_abbr.toLowerCase();}if(dL.dx!==undefined){if(dL.dx.getMap()){if(dL.iK!==undefined){dL.iK.remove();dL.dx.setMap(null);}}}cL("kmz","nF");}};function cL(action,K){if(K=="initialize"&&dL.aD!="congress_all_states"&&dL.gp!==false&&dL.ev!==false){if(dL.pr>dL.iQ){action="gis";dL.sB=dL.mV+dL.dq+dL.jG;dL.sy=dL.kP+dL.py+dL.kd;}}dL.hP=false;dL.qF=false;if(K=="zoom_changed"){dL.qF=true;}if(dL.fl!==undefined){if(dL.fl.getMap()){dL.qU.remove();dL.fl.setMap(null);}}if(dL.dx!==undefined){if(dL.dx.getMap()){if(dL.iK!==undefined){dL.iK.remove();dL.dx.setMap(null);}}}if(action=="off"){if(dL.hN!==false){dL.hN=false;dL.map.controls[google.maps.ControlPosition.TOP_LEFT].clear();}dL.cV[dL.gi]=" -";dL.cV[dL.js]=" -";gr(5);dL.fA="";dL.fh="";if(dL.fA=="gis"){aq=dL.gi;I(dL.J[aq],"true",dL.nq,"cL-1");}if(dL.fh=="gis"){aq=dL.js;I(dL.J[aq],"true",dL.lQ,"cL-2");}}else{if(K=="nF"){dL.map.controls[google.maps.ControlPosition.TOP_LEFT].clear();uM="href='https://mappingsupport.com/p/politics/state-district-map-tips.html' target='_blank'";if(dL.aD=="state_house"){dL.nj="State House";if(dL.dq=="ca"||dL.dq=="nv"||dL.dq=="nj"||dL.dq=="ny"||dL.dq=="wi"){dL.nj="Assembly";}}else if(dL.aD=="state_senate"){dL.nj="State Senate";}else{dL.nj="Congress";uM="href='https://mappingsupport.com/p/politics/congressional-district-map-tips.html' target='_blank'";if(dL.aD=="congress_all_states"){dL.kQ="All districts";}}dL.jd=""+dL.kQ+"
    "+dL.nj+"
    Map Tips
    ";dL.kG.innerHTML=dL.jd;dL.map.controls[google.maps.ControlPosition.TOP_LEFT].push(dL.nN);if((dL.aD=="state_house"||dL.aD=="state_senate")&&dL.fh=="gis"){dL.fh="";aq=dL.js;I(dL.J[aq],"true",dL.lQ,"cL-3");}else if((dL.aD=="congress_one_state"||dL.aD=="congress_all_states")&&dL.fA=="gis"){dL.fA="";aq=dL.gi;I(dL.J[aq],"true",dL.nq,"cL-4");}}if(action=="gis"){if(dL.aD=="state_house"||dL.aD=="state_senate"){dL.fA="gis";dL.fd[dL.gi]="off";aq=1;if(dL.eV=="lower"){aq=2;}dL.d[dL.gi]="https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/Legislative/MapServer/export?bboxSR=4326&layers=show:"+aq+"&size=256,256&imageSR=3857&format=png&transparent=true&dpi=&f=image&layerDefs="+aq+":STATE="+dL.oB;CC=dL.gi;if(dL.cE!=""){hw=K+" - cL 1";jw(hw);}aq=dL.gi;I(dL.J[aq],"true",dL.nq,"cL-5");}else{dL.fh="gis";dL.fd[dL.js]="off";if(dL.cE!=""){hw=K+" - cL 2";jw(hw);}aq=dL.js;I(dL.J[aq],"true",dL.lQ,"cL-6");}}else if(action=="kmz"){if(dL.aD=="state_house"||dL.aD=="state_senate"){dL.fh="";if(dL.fA=="gis"){dL.fA="";aq=dL.gi;I(dL.J[aq],"true",dL.nq,"cL-7");}dL.fA="kmz";dL.cV[dL.gi]="kmz";dL.cV[dL.js]=" -";gr(6);}else{dL.fA="";if(dL.fh=="gis"){dL.fh="";aq=dL.js;I(dL.J[aq],"true",dL.lQ,"cL-8");}dL.fh="kmz";dL.cV[dL.gi]=" -";dL.cV[dL.js]="kmz";gr(7);}if(dL.fB!==false){oQ();hw=K+" - cL 3";jw(hw);}else{if(dL.aD=="state_house"||dL.aD=="state_senate"){dL.dj="https://mappingsupport.com/p/politics/state_kmz/"+dL.dq+"/_"+dL.dq+"_census_"+dL.eV+"_general.kmz"+dL.ku;}else{if(dL.aD=="congress_one_state"){dL.dj="https://mappingsupport.com/p/politics/congress_kmz/"+dL.dq+"/_"+dL.dq+"_census_congress_general.kmz"+dL.ku;}else{dL.dj="https://mappingsupport.com/p/politics/congress_kmz/census_congress_general_all_USA.kmz"+dL.ku;}}if(K=="zoom_changed"){dL.fl=new google.maps.KmlLayer(dL.dj,{preserveViewport:true,suppressInfoWindows:true});}else{if(K=="initialize"){if((dL.gp!==false&&dL.ev!==false)||(dL.aD=="congress_all_states"&&dL.dq!=""&&dL.cE=="")){dL.hP=true;if(dL.gp!==false&&dL.ev!==false){hK=dL.du;gU=dL.pr;}else{hK=dL.wy;gU=dL.oo;}if(dL.aD=="congress_all_states"&&gU>dL.dV){gU=dL.dV;}uE(hK,gU,"initialize")}}dL.fl=new google.maps.KmlLayer(dL.dj,{preserveViewport:dL.hP,suppressInfoWindows:true});}if(dL.aD=="state_house"||dL.aD=="state_senate"){dL.fl.setMap(dL.map);google.maps.event.addListenerOnce(dL.fl,'status_changed',function(){fH=dL.fl.getStatus();dL.jR.length=0;dL.jR=dL.dj.split("?");if(fH!='OK'){dL.msg="Problem displaying the data file
    "+"The data file is: "+dL.jR[1]+"

    "+"Google sent this error message: "+fH;dL.msg+="

    Please report this error message by going to the Gmap4 contact page and sending an email.
    https://mappingsupport.com/p/gmap4_contact.html ";r(12975,null);}else{google.maps.event.addListenerOnce(dL.fl,"defaultviewport_changed",function(){if(dL.cE!=""){hw=K+" - cL 4";jw(hw);}});}google.maps.event.addListenerOnce(dL.fl,'metadata_changed',function(kmlEvent){dL.qU=google.maps.event.addListener(dL.fl,'click',function(kmlEvent){dL.dF=setTimeout(function(){dL.kc=false;dL.kS=false;bF(2);dL.cy=kmlEvent.featureData.snippet;if(dL.cy!==undefined){aK.length=0;aK=dL.cy.split("^");dL.cE=aK[2];if(jn){aq="https://mappingsupport.com/p/php_get_openstates_57.php?snippet="+dL.cy+"&K=gmap4_1&at="+dL.at;cA.open("GET",aq,true);cA.send();eR("open");}}if(dL.fB===false){jw("click listener 2");}},300);});});});}else{dL.fl.setMap(dL.map);dL.qU=google.maps.event.addListenerOnce(dL.fl,'status_changed',function(){fH=dL.fl.getStatus();dL.jR.length=0;dL.jR=dL.dj.split("?");if(fH!='OK'){dL.msg="Problem displaying the data file
    "+"The data file is: "+dL.jR[1]+"

    "+"Google sent this error message: "+fH;dL.msg+="

    Please report this error message by going to the Gmap4 contact page and sending an email.
    https://mappingsupport.com/p/gmap4_contact.html ";r(13058,null);}else{if(K=="initialize"&&dL.aD=="congress_all_states"&&dL.map.getZoom()>dL.dV){dL.map.setZoom(dL.dV);}google.maps.event.addListenerOnce(dL.fl,"defaultviewport_changed",function(){if(dL.cE!=""){hw=K+" - cL 6";jw(hw);}});}google.maps.event.addListenerOnce(dL.fl,'metadata_changed',function(kmlEvent){dL.qU=google.maps.event.addListener(dL.fl,'click',function(kmlEvent){dL.dF=setTimeout(function(){dL.kc=false;dL.kS=false;bF(2);dL.mQ=kmlEvent.featureData.description;oR();if(dL.fB===false){jw("click listener 3");}},300);});});});}}}}};function oR(){if(dL.mQ!==undefined){aK.length=0;aK=dL.mQ.split("||");dL.di.length=0;dL.di=aK[0].split("^");dL.dp.length=0;dL.dp=aK[1].split("^");dL.dg.length=0;dL.dg=aK[2].split("^");dL.dq=dL.di[2];dL.cE=dL.di[3];if(dL.di[7].substr(0,4)=="http"){dL.uB="    Facebook: "+dL.di[7]+"
    ";}else{dL.uB="    Facebook: "+dL.di[7]+"
    ";}if(dL.di[8].substr(0,4)=="http"){dL.uv="    Twitter: "+dL.di[8]+"
    ";}else{dL.uv="    Twitter: "+dL.di[8]+"
    ";}if(dL.di[9].substr(0,4)=="http"){dL.vg="    YouTube: "+dL.di[9]+"
    ";}else{dL.vg="    YouTube: "+dL.di[9]+"
    ";}if(dL.dp[5].substr(0,4)=="http"){dL.uQ="    Facebook: "+dL.dp[5]+"
    ";}else{dL.uQ="    Facebook: "+dL.dp[5]+"
    ";}if(dL.dp[6].substr(0,4)=="http"){dL.uV="    Twitter: "+dL.dp[6]+"
    ";}else{dL.uV="    Twitter: "+dL.dp[6]+"
    ";}if(dL.dp[7].substr(0,4)=="http"){dL.uc="    YouTube: "+dL.dp[7]+"
    ";}else{dL.uc="    YouTube: "+dL.dp[7]+"
    ";}if(dL.dg[5].substr(0,4)=="http"){dL.tU="    Facebook: "+dL.dg[5]+"
    ";}else{dL.tU="    Facebook: "+dL.dg[5]+"
    ";}if(dL.dg[6].substr(0,4)=="http"){dL.uo="    Twitter: "+dL.dg[6]+"
    ";}else{dL.uo="    Twitter: "+dL.dg[6]+"
    ";}if(dL.dg[7].substr(0,4)=="http"){dL.vb="    YouTube: "+dL.dg[7]+"
    ";}else{dL.vb="    YouTube: "+dL.dg[7]+"
    ";}dL.msg=""+""+dL.di[1]+"
    "+"Congress District "+dL.di[3]+"
    "+"
    "+"Representative
    "+dL.di[4]+", "+dL.di[5]+"

    "+"    Homepage: "+dL.di[6]+"
    "+dL.uB+dL.uv+dL.vg+"
    "+"Senator
    "+dL.dp[2]+", "+dL.dp[3]+"

    "+"    Homepage: "+dL.dp[4]+"
    "+dL.uQ+dL.uV+dL.uc+"
    "+"Senator
    "+dL.dg[2]+", "+dL.dg[3]+"

    "+"    Homepage: "+dL.dg[4]+"
    "+dL.tU+dL.uo+dL.vb+"
    ";dL.qz="voting district attributes";r(13217,null);}};function jw(K){if(dL.dx!==undefined){if(dL.dx.getMap()){dL.dx.setMap(null);dL.iK.remove();}}dL.kr=false;if(dL.fB!==false){dL.is="detail";dL.limit_zoom=false;}else if(dL.fA=="gis"||dL.fh=="gis"){dL.is="detail";dL.limit_zoom=false;}else{if(dL.qF!==false){dL.is="general";dL.limit_zoom=false;}else{dL.is="general";dL.limit_zoom=true;}}if(K.substr(0,14)=="click listener"){if(dL.fA=="kmz"||dL.fh=="kmz"){dL.hP=false;}else{dL.hP=true;}}else{aK.length=0;aK=K.split("zoom_changed");if(aK.length>1){dL.hP=true;}}if(dL.aD=="state_house"||dL.aD=="state_senate"){dL.ji=dL.cE;if(dL.ji.match(/^[0-9]+$/)!=null){if(dL.ji.length==1){dL.ji="00"+dL.ji;}else if(dL.ji.length==2){dL.ji="0"+dL.ji;}}dL.dj="https://mappingsupport.com/p/politics/state_kmz/"+dL.dq+"/"+dL.dq+"_census_"+dL.eV+"_"+dL.is+"_"+dL.ji+".kmz"+dL.ku;}else{if(dL.cE.length==1){dL.cE="0"+dL.cE;}if(dL.map.getZoom()<=dL.iQ){dL.is="general";}else{dL.is="detail";}dL.dj="https://mappingsupport.com/p/politics/congress_kmz/"+dL.dq+"/"+dL.dq+"_census_congress_"+dL.is+"_"+dL.cE+".kmz"+dL.ku;}if(dL.kc!==false&&dL.aD=="congress_all_states"&&dL.cE!=""){dL.kc=false;dL.kS=true;}dL.dx=new google.maps.KmlLayer(dL.dj,{preserveViewport:dL.hP,suppressInfoWindows:true});dL.dx.setMap(dL.map);dL.hP=false;google.maps.event.addListenerOnce(dL.dx,'status_changed',function(){fH=dL.dx.getStatus();if(fH!='OK'){dL.msg="Problem displaying the data file
    "+"The data file is: "+dL.dj+"
    "+"Google sent this error message: "+fH;dL.msg+="

    Make sure you specified a valid district number or name.

    You can report this error message by going to the Gmap4 contact page and sending an email.
    https://mappingsupport.com/p/gmap4_contact.html ";r(13337,null);}else{dL.ml=false;aK.length=0;aK=K.split("initialize ");if(aK.length>1){dL.ml=true;}if(dL.limit_zoom!==false||(dL.ml!==false&&dL.gp!==false&&dL.ev!==false)){dL.kr=true;google.maps.event.addListenerOnce(dL.dx,"defaultviewport_changed",function(){google.maps.event.addListenerOnce(dL.map,"bounds_changed",function(){if(dL.ml!==false&&dL.gp!==false&&dL.ev!==false){dL.ml=false;hK=dL.du;gU=dL.pr;if(dL.aD=="congress_all_states"&&gU>dL.dV){gU=dL.dV;}uE(hK,gU,"display highlight")}else{if(dL.aD=="congress_all_states"){if(dL.map.getZoom()>dL.dV){dL.map.setZoom(dL.dV);}}else if(dL.map.getZoom()>dL.iQ){dL.map.setZoom(dL.iQ);}}});});}google.maps.event.addListenerOnce(dL.dx,'metadata_changed',function(kmlEvent){dL.iK=google.maps.event.addListener(dL.dx,'click',function(kmlEvent){dL.dF=setTimeout(function(){dL.kc=false;bF(2);if(dL.aD=="state_house"||dL.aD=="state_senate"){dL.cy=kmlEvent.featureData.snippet;if(dL.cy!==undefined){if(jn){aq="https://mappingsupport.com/p/php_get_openstates_57.php?snippet="+dL.cy+"&K=gmap4_2&at="+dL.at;cA.open("GET",aq,true);cA.send();eR("open");}}}else{dL.mQ=kmlEvent.featureData.description;oR();}},300);});});}});dL.ml=false;};function uE(hK,gU,K){aK.length=0;aK=hK.split(",");dL.ar=new google.maps.LatLng(aK[0],aK[1]);dL.map.setCenter(dL.ar);dL.map.setZoom(gU);};function rN(){dL.ta.setMap(dL.map);dL.uh=setTimeout(function(){rN()},180000);};function nU(){dL.date=new Date();dL.msg="
    Gmap4 version "+dL.il+"  "+dL.yQ+"
    "+"Written by Joseph Elfelt  © 2009-"+dL.date.getFullYear()+"
    "+"Google Maps API Version "+dL.yy+"
    "+"
    "+"MappingSupport Twitter feed
    "+"Gmap4 Facebook page
    "+"
    "+"For a Quick Start guide please see the
    "+"Gmap4 help page";r(15235,null);};function lu(action){dL.lat=dL.ac.lat();dL.lng=dL.ac.lng();rJ="N ";if(dL.lat<0){rJ="S ";}sZ="E ";if(dL.lng<0){sZ="W ";}if(dL.H=="latlng-d"||action==2||action=="latlng-d"){dL.oO=fi(dL.lat,6);dL.qh=fi(dL.lng,6);dL.latlng_formatted=""+dL.oO+","+dL.qh;dL.jN=""+dL.oO+","+dL.qh;dL.xk=""+dL.qh+","+dL.oO;}latAbs=Math.abs(Math.round(dL.lat*1000000.));dL.mR=Math.floor(latAbs/1000000);lngAbs=Math.abs(Math.round(dL.lng*1000000.));dL.lI=Math.floor(lngAbs/1000000);if(action!="latlng-d"&&(dL.H=="latlng-dm"||action==2)){dL.zH=fi((Math.abs(dL.lat)-Math.abs(dL.mR))*60,3);dL.AJ=fi((Math.abs(dL.lng)-Math.abs(dL.lI))*60,3);dL.latlng_formatted=rJ+dL.mR+"° "+dL.zH+"'  "+sZ+dL.lI+"° "+dL.AJ+"'";dL.vy=dL.latlng_formatted;dL.CD=dL.vy.replace(/[  ]/g," ");}if(action!="latlng-d"&&(dL.H=="latlng-dms"||action==2)){dL.mE=Math.floor(((latAbs/1000000)-Math.floor(latAbs/1000000))*60);dL.ql=Math.round(Math.floor(((((latAbs/1000000)-Math.floor(latAbs/1000000))*60)-Math.floor(((latAbs/1000000)-Math.floor(latAbs/1000000))*60))*100000)*60/100000);if(dL.ql==60){dL.ql=0;dL.mE++;if(dL.mE==60){dL.mE=0;dL.mR++;}}dL.ng=Math.floor(((lngAbs/1000000)-Math.floor(lngAbs/1000000))*60);dL.oW=Math.round(Math.floor(((((lngAbs/1000000)-Math.floor(lngAbs/1000000))*60)-Math.floor(((lngAbs/1000000)-Math.floor(lngAbs/1000000))*60))*100000)*60/100000);if(dL.oW==60){dL.oW=0;dL.ng++;if(dL.ng==60){dL.ng=0;dL.lI++;}}dL.latlng_formatted=rJ+dL.mR+"° "+dL.mE+"' "+dL.ql+""  "+sZ+dL.lI+"° "+dL.ng+"' "+dL.oW+""";dL.wJ=dL.latlng_formatted;dL.BX=dL.wJ.replace(/[  ]/g," ");}};function gW(action){bF(2);if(action==0){dL.msg="
    "+"
    Select the type of coordinates to appear in the lower right corner.
    "+"UTM, USNG and MGRS will display a grid on the screen.

    "+"
    "+"
    Lat Lng dd.dddddd
    "+"
    "+"
    Lat Lng dd mm.mmm
    "+"
    "+"
    Latitude Longitude dd mm ss
    "+"
    "+"
    UTM
    "+"
    "+"
    USNG (USA National Grid)
    "+"
    "+"
    MGRS (Military)
    "+"
    "+"
    Turn coordinates off
    "+"
    ";r(13574,null);}else if((action==1||action==2||action==3)&&dL.H!="latlng"){if(action==1){dL.H="latlng-d";}else if(action==2){dL.H="latlng-dm";}else{dL.H="latlng-dms";}if(dL.cl==""){lo();}oL();dL.gO="latlng";}else if(action==4&&dL.H!="utm"){if(dL.H=="off"){dL.H="utm";lo();}else{dL.H="utm";}oL();dL.gO="utm";}else if(action==5&&dL.H!="mgrs"){if(dL.H=="off"){dL.H="mgrs";lo();}else{dL.H="mgrs";}oL();dL.gO="mgrs";}else if(action==6&&dL.H!="usng"){if(dL.H=="off"){dL.H="usng";lo();}else{dL.H="usng";}oL();dL.gO="usng";}else if(action==7&&dL.H!="off"){dL.iT.style.padding="0px";dL.ia.style.padding="0px";dL.ia.innerHTML="";dL.iT.innerHTML="";dL.ky.style.padding="0px";dL.ki.style.padding="0px";dL.ky.innerHTML="";dL.ki.innerHTML="";dL.H="off";if(dL.cl!=""){cj("18 function gW. Turn grid off",0);}}};function qL(){window.open("https://mappingsupport.com/p/gmap4_contact.html","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");};function kX(kmlEvent){bF(2);dL.name="";dL.description="";dL.name=kmlEvent.featureData.name;dL.description=kmlEvent.featureData.description;if(dL.name===undefined||dL.name=="?"){dL.name="";}if(dL.description===undefined||dL.description=="?"){dL.description="";}rn=kmlEvent.latLng;dL.msg=""+"
    "+"
    "+"
    "+"
    "+"
    Close
    "+"
    "+"
    "+"
    "+dL.name+"
    "+dL.description+"
    ";dL.bx.setContent(dL.msg);dL.bx.setPosition(rn);dL.bx.open(dL.map);};function pd(){window.open("https://mappingsupport.com/p/gmap4_donate.html","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");};function AI(){ha(2);window.open(dL.bO,"_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");};function oD(){window.open("https://mappingsupport.com/p/gmap4_help.html","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");};function tW(){dL.jQ=true;dL.jE="Link to the spot you selected";ha(1);};function ha(action){dL.bO=dL.original_url;if(dL.qu!="BIVOUAC.COM"){dL.aq.length=0;dL.bO+="?";if(action==1||action==2||action==4||action==6||action=="embed"){cN="";if(dL.H=="utm"){cN="center";}if(dL.jQ!==false){dL.ac=dL.qa;}else{dL.ac=dL.ar;}eu(cN,"");if(dL.H=="latlng-d"||dL.H=="latlng-dm"||dL.H=="latlng-dms"){dL.bO+="ll="+dL.ar.lat().toFixed(6)+","+dL.ar.lng().toFixed(6);}else if(dL.H=="utm"){dL.cX=dL.cX.replace(/  /g,",");dL.bO+="utm="+dL.cX+"&tilt=off";}else if(dL.H=="usng"){dL.cX=dL.cX.replace(/  /g,"_");dL.bO+="usng="+dL.cX+"&tilt=off";}else{dL.bO+="mgrs="+dL.cX+"&tilt=off";}}if(action!=3&&action!=5){dL.bO+="&z="+dL.map.getZoom();}if(dL.bi=="All white basemap"){c="&t=awb";}else{c="&t="+dL.bi;}if(dL.fd[1]=="on"){c+="^Google_traffic";}max=dL.J.length;for(i=1;i<=dL.eQ;i++){j=0;while(jdL.iQ)){c+=","+dL.J[j];}}}}c=c.replace("&t=,","&t=");dL.bO+=c;if(dL.gI!=.18){aq=Math.round(dL.gI*100);dL.bO+="&hillshade="+aq;}if(dL.H=="latlng-dm"){dL.bO+="&coord="+"dm";}else if(dL.H=="latlng-dms"){dL.bO+="&coord="+"dms";}else if(dL.H=="off"){dL.bO+="&coord="+"off";}else if(dL.kx!=""||dL.fC!=""){if(dL.H=="utm"){dL.bO+="&coord="+"utm";}else if(dL.H=="usng"){dL.bO+="&coord="+"usng";}else if(dL.H=="mgrs"){dL.bO+="&coord="+"mgrs";}if(dL.H=="utm"||dL.H=="usng"||dL.H=="mgrs"){if(dL.bO.search("&tilt=off")== -1){if(dL.oV==0){dL.bO+="&tilt=off";}}}}if(dL.mG=="off"){dL.bO+="&crosshair=off";}if(dL.ok!="off"){dL.bO+="&directions="+dL.ok;}if(dL.fF!="off"){dL.bO+="&label="+dL.fF;}if(dL.ob===false){dL.bO+="&streetview=off";}if(dL.nV!=""){dL.bO+="&symbol="+dL.nV;}if(dL.aD=="congress_all_states"||dL.aD=="congress_one_state"){if(dL.aD=="congress_all_states"){dL.bO+="&congress=all";if(dL.dq!=""&&dL.dq!==undefined){dL.bO+=","+dL.dq.toUpperCase();if(dL.cE!=""){dZ=""+dL.cE;if(dZ.substr(0,1)=="0"){dZ=dZ.replace("0","");}dL.bO+=","+dZ;}}}else if(dL.fB!==false){dZ=""+dL.cE;if(dZ.substr(0,1)=="0"){dZ=dZ.replace("0","");}dL.bO+="&congress=only,"+dL.dq.toUpperCase()+","+dZ;}else{dL.bO+="&congress="+dL.dq.toUpperCase();if(dL.cE!=""){dZ=""+dL.cE;if(dZ.substr(0,1)=="0"){dZ=dZ.replace("0","");}dL.bO+=","+dZ;}}}if(dL.aD=="state_house"||dL.aD=="state_senate"){if(dL.fB!==false){aq="&state=only,"+dL.dq.toUpperCase();}else{aq="&state="+dL.dq.toUpperCase();}if(dL.eV!=""){aq+=","+dL.eV;}if(dL.cE!=""){if(dL.cE.substr(0,2)=="00"){aq+=","+dL.cE.substr(2,1);}else if(dL.cE.substr(0,1)=="0"){aq+=","+dL.cE.substr(1,2);}else{aq+=","+dL.cE;}}dL.bO+=aq;}if(dL.fC!=""||dL.jQ!==false){aq="&mar_kers=";aq=aq.replace("_","");dL.bO+=aq;if(dL.fC!=""){dL.bO+=dL.fC;}if(dL.jQ!==false){dL.jQ=false;dL.cX=dL.cX.replace(/_/g,"%20");dL.bO+="||"+dL.ac.toUrlValue(6)+"^^<span%20style='font-weight:bold;'>"+dL.cX+"</span>";}}if(dL.kx!=""){dL.bO+="&q="+dL.kx;}aq=dL.zb.replace(/[ ]/g,"/export");dL.bO+=aq;}else{dL.bO="This feature is not supported for data obtained from Bivouac.com";}dL.bO=dL.bO.replace(".php?&",".php?");if(action==1||action==3||action==4||action=="embed"){dL.Bc="";if(dL.lG!=undefined){dL.lG.length=0;dL.rB= -1;for(f=dL.eP;f<=dL.jF;f++){if(dL.dT[f]!="_"){dL.ba.length=0;dL.ba=dL.d[f].split("/");dL.mN=dL.ba.pop();dL.xh=dL.ba.join("/");dL.ba.length=0;dL.ba=dL.mN.split("show:");dL.ba=dL.ba[1].split("&");dL.el=dL.ba[0];if(dL.fd[f]=="on"){dL.rB++;if(dL.cV[f].length==1){dL.lG[dL.rB]="_"+dL.cV[f]+"^"+dL.J[f];}else{dL.lG[dL.rB]=dL.cV[f]+"^"+dL.J[f];}}dL.bO+="&rest="+dL.xh+"?name="+dL.J[f]+"&layers="+dL.el+"&transparent=true";}}}dL.bO=dL.bO.replace(/[ ]/g,"%20");dL.bO=dL.bO.replace(/ /g,"");if(action=="embed"){dL.bO='<iframe width="600" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+dL.bO+'"></iframe><br /><small><a href="'+dL.bO+'" style="color:#0000FF;text-align:left">Open this map full screen.</a></small>';}ty="";if(action=="embed"){temp_buttons="";ty="
    Please ask permission before embedding a 'live' Gmap4 map on a website. Gmap4 contact page. The minimum embed size so the user interface works well is 500px by 500px. Gmap4 may not be used for any commercial purpose. If in doubt, ask.
    ";}else{temp_buttons=""+"
    Switch to Gmap4 link
    "+"
    "+"
    Switch to text file
    "+"
    "+"
    Help
    ";}dL.msg=""+"
    "+temp_buttons+"
    "+""+ty+"
    "+""+"
    "+dL.Bc+""+"
    ";r(14242,null);if(action=="embed"){document.getElementById("link_to_this_map_caption_id").innerHTML="The embed code is shown below. You can edit the width and height. A 'best practice' is to include a link below the map that will open the map full screen.";}else{document.getElementById("link_to_this_map_caption_id").innerHTML="This Gmap4 link will replicate the map on your screen. Simply copy this link and paste it into a browser.";}selectText('link_to_this_map_url_id');}};function selectText(containerid){if(document.selection){var range=document.body.createTextRange();range.moveToElementText(document.getElementById(containerid));range.select();}else if(window.getSelection){var range=document.createRange();range.selectNode(document.getElementById(containerid));window.getSelection().removeAllRanges();window.getSelection().addRange(range);}};function display_map_url_more_text(action){if(action==1){document.getElementById("link_to_this_map_more_text").innerHTML=dL.link_to_this_map_help;}document.getElementById("link_to_this_map_more_text").style.display="block";};function display_map_url_switch_output(action){if(action==1){document.getElementById("link_to_this_map_caption_id").innerHTML="This Gmap4 link will replicate the map on your screen. Simply copy this link and paste it into a browser.";document.getElementById("link_to_this_map_url_id").innerHTML=""+"
    "+dL.bO+"
    ";selectText('link_to_this_map_url_id');}else if(action==2){document.getElementById("link_to_this_map_caption_id").innerHTML="To replicate the map on your screen, (1) put this text file online and (2) make a Gmap4 link that points to this text file. Google Sites will host your text file for free. For more information see the Gmap4 help page and download the pdf file 'Working With Files'.
    ";dL.gis_text_file_content=""+"title=<b>Map title line 1<br />Map title line 2</b>
    "+"
    "+"// Lines that start with // are 'comments'
    "+"
    ";for(f=dL.lM;f<=dL.jF;f++){if(dL.dT[f]!="_"){dL.gis_text_file_content+=""+"// "+dL.J[f]+"
    "+"rest="+dL.gis_url_for_text_file[f]+"
    "+"
    ";}}document.getElementById("link_to_this_map_url_id").innerHTML=dL.gis_text_file_content;}};function r(source,style_input){style="";if(style_input!==undefined){if(style_input=="bold"){style=" style='font-weight:bold;'";}}if(source!="document.getElementById"&&source!="progress"){if(dL.map!==undefined){if(dL.TOP_CENTER_is_displayed!==false){dL.map.controls[google.maps.ControlPosition.TOP_CENTER].clear();}else{dL.TOP_CENTER_is_displayed=true;}}dL.msg=""+"
    "+"
    "+"
    Close
    "+"
    "+""+dL.msg+"
    "+"
    "+"
    "+"
    Close
    "+"
    "+"
    "+"
    "+"";dL.kK.innerHTML=dL.msg;dL.map.controls[google.maps.ControlPosition.TOP_CENTER].push(dL.pp);}else{dL.msg=""+"
    "+"
    "+"
    Close
    "+"
    "+"
    "+dL.msg+"
    ";if(source=="progress"){document.getElementById("non_google_msg_container").style.backgroundColor="#ccffff";}else{document.getElementById("non_google_msg_container").style.backgroundColor="#ffffcc";}document.getElementById("non_google_msg_container").innerHTML=dL.msg;document.getElementById("non_google_msg_container").style.display="block";document.getElementById("non_google_msg_container").scrollTop=0;}};function uP(action){if(action=="right"){dL.mg.innerHTML=dL.tL;aq=dL.map.getBounds();ne=aq.getNorthEast();sw=aq.getSouthWest();nw=new google.maps.LatLng(ne.lat(),sw.lng());dL.ac=google.maps.geometry.spherical.interpolate(nw,sw,0.5);dI=dL.ac.lat();dL.ac=google.maps.geometry.spherical.interpolate(sw,ne,0.25);cv=dL.ac.lng();dL.ac=new google.maps.LatLng(dI,cv);dL.ua={url:'https://mappingsupport.com/p/png/center_63px_63_drag_white_black.png',size:new google.maps.Size(63,110),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(32,32)};dL.uK={clickable:true,crossOnDrag:false,draggable:true,icon:dL.ua,map:dL.map,position:dL.ac,title:"Drag then click this marker"};dL.ms=new google.maps.Marker(dL.uK);google.maps.event.addListener(dL.ms,'click',function(){bF(2);dL.iD=dL.map.getCenter();dL.ac=dL.ms.getPosition();dL.qX=dL.ac;dL.qa=dL.ac;tR();qQ=dL.rd;dL.bx.setContent(qQ);qQ=dL.ac;dL.bx.setPosition(qQ);dL.bx.open(dL.map);});}else{dL.mg.innerHTML=dL.qI;bF(2);google.maps.event.clearListeners(dL.ms,'click');dL.ms.setMap(null);}};function uI(){dL.msg=dL.AQ;r(15536,null);};function uu(){dL.msg="Printing is done through your browser. Gmap4 does not handle the printing.
    "+"In your browser menu bar, click File ==> Print preview.
    "+"Using the controls at the top of the screen, turn 'landscape' mode on.
    "+"Adjust the scale so that the map is nicely positioned on the page.
    "+"Print.
    ";r(14090,null);};function AH(){dL.msg="Hi - My name is Joseph Elfelt and I am the developer of Gmap4.

    If you need an online map showing your property lines or
    GPS coordinates for your property corners please check out my other project to see examples and for more information:
    PropertyLineMaps.com.

    Income from that site helps support further development of Gmap4.
    The cost is amazingly reasonable since the heavy lifting is done by first-of-its-kind software I developed.";r(14098,null);};function Ax(){window.open("https://mappingsupport.com/index.html?open=special_maps","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");};function AT(){window.open("https://mappingsupport.com/p/gmap4_tos_privacy.html","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");};function ui(){dL.msg="* Latitude, longitude (datum = WGS84) in several formats: right-click anywhere. Also returns current zoom level
    "+"* Drag the map: left-click-and-hold.
    "+"* Zoom the map in/out: mouse wheel.
    "+"* Center the map at cursor position: double-left-click.
    "+"* Get a link that will display the same map image presently on your screen. (Menu ==> Link to this map)
    "+"* Your browser settings can change the text size. (Page ==> Text size; or View ==> Text)
    "+"* If you use Internet Explorer and the data added to the map appears to not agree with the aerial image, then check your Window's DPI setting. Control Panel ==> Display ==> Settings ==> Advanced ==> DPI Setting. Try using either 96 DPI or 120 DPI.
    "+"* If you right-click the map then the text you see should appear with a light yellow background. If the background is clear instead of light yellow, then please change your browser settings to use the web page's colors.
    "+"* Conditions on the land and surrounding area may have changed since the aerial photos were taken and/or since the topographic maps were made.
    ";r(15374,null);};function pa(){window.open("https://mappingsupport.com/p/gmap4-free-online-topo-maps.html","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");};function bF(action){dL.qz="";if(dL.map!==undefined){if(dL.TOP_CENTER_is_displayed!==false){dL.TOP_CENTER_is_displayed=false;dL.map.controls[google.maps.ControlPosition.TOP_CENTER].clear();}}if(dL.kK!==undefined){dL.kK.innerHTML="";}eR("close");if(dL.bx!==undefined){dL.bx.close();}if(action==2&&dL.iD!=""){if(dL.map!==undefined){dL.map.setCenter(dL.iD);}dL.iD="";}document.getElementById("non_google_msg_container").style.display="none";if(action==3){fX(1);if(dL.cF[dL.aF]!==undefined){if(dL.cF[dL.aF][dL.bU]!==undefined){nC(1);}}}};function jp(action){if(action==1){dL.Aj=LLtoUSNG();dL.dP=dL.Aj.replace(/[" "]/g,"");}else{switch_value=dL.eC;switch(switch_value){case "100,000":dL.dr=""+dL.dr+"55";break;case "10,000":dL.aB=dL.dr.substr(0,dL.dr.length-2);dL.aR=dL.dr.substr(dL.dr.length-2);dL.cD=dL.aR.substr(0,1);dL.hx=dL.aR.substr(1);dL.dr=""+dL.aB+dL.cD+"5"+dL.hx+"5";break;case "1,000":dL.aB=dL.dr.substr(0,dL.dr.length-4);dL.aR=dL.dr.substr(dL.dr.length-4);dL.cD=dL.aR.substr(0,2);dL.hx=dL.aR.substr(2);dL.dr=""+dL.aB+dL.cD+"5"+dL.hx+"5";break;case "100":dL.aB=dL.dr.substr(0,dL.dr.length-6);dL.aR=dL.dr.substr(dL.dr.length-6);dL.cD=dL.aR.substr(0,3);dL.hx=dL.aR.substr(3);dL.dr=""+dL.aB+dL.cD+"5"+dL.hx+"5";break;case "10":dL.aB=dL.dr.substr(0,dL.dr.length-8);dL.aR=dL.dr.substr(dL.dr.length-8);dL.cD=dL.aR.substr(0,4);dL.hx=dL.aR.substr(4);dL.dr=""+dL.aB+dL.cD+"5"+dL.hx+"5";break;case "1":break;}USNGtoLL();}};function jf(action){dL.cU=false;dL.ln="";dL.bD="";dL.eC="";dL.je=false;dL.ig="";dL.lat="";dL.lng="";af=dL.dW;if(af==""){dL.bD="Coordinates cannot be blank";}else{if(action==1){dL.pJ=0;af=af.replace(/[,]/g," ");af=af.trim();af=af.qq();af=af.toUpperCase();dL.aK.length=0;dL.aK=af.split(" ");dL.cd.length=0;dL.cd=dL.aK[0].split("");sL=dL.cd[dL.cd.length-1];dL.aK[0]=dL.aK[0].substr(0,dL.aK[0].length-1);af=dL.aK.join(" ");if(sL.match(/[^\CDEFGHJKLMNPQRSTUVWX.]/)!=null||af.match(/[^\xA0\s0-9.]/)!=null){dL.bD="UTM coordinate has invalid character";}else{dL.pe=false;if(sL.charCodeAt(0)<78){dL.pe=true;}af=af.qq();dL.aK.length=0;dL.aK=af.split(" ");if(dL.aK.length==3){dL.aK[0]=parseFloat(dL.aK[0]);dL.aK[1]=parseFloat(dL.aK[1]);dL.aK[2]=parseFloat(dL.aK[2]);if(dL.aK[0]==parseInt(dL.aK[0])&&isNaN(dL.aK[0])===false&&isNaN(dL.aK[1])===false&&isNaN(dL.aK[2])===false){if(dL.aK[1]>99999){dL.cU=true;if(dL.aK[0]>=1&&dL.aK[0]<=60){if(dL.aK[1]>=167000&&dL.aK[1]<=833000){if(dL.pe===false){if(dL.aK[2]<0||dL.aK[2]>9329005){dL.cZ=false;dL.bD="In the north hemisphere the UTM northing
    must be in the range 0 through 9329005";}}else{if(Math.abs(dL.aK[2])<1116915||Math.abs(dL.aK[2])>10000000){dL.cZ=false;dL.bD="In the fZ hemisphere the UTM northing
    must be in the range 1116915 through 10000000";}}if(dL.bD==""){dL.pJ=dL.aK[0];dL.xv=dL.aK[1];dL.xH=dL.aK[2];}}else{dL.cZ=false;dL.bD="UTM easting must be in the range 167000 through 833000";}}else{dL.cZ=false;dL.bD="UTM bd must be in the range 1 through 60";}}else{dL.bD="Easting is not in correct range. This might be MGRS or USNG coord";}}else{dL.bD="Part of the coordinate is not a valid number";}}else{dL.bD="UTM coordinates must have three numbers";}}if(dL.pJ!=0){dL.ln="utm";o=dL.xv;c=dL.xH;bY=dL.pJ;cw=dL.pe;dL.aK=gA(o,c,bY,cw);dL.lat=fi(dL.aK[0],6);dL.lng=fi(dL.aK[1],6);dL.ig=""+dL.lat+","+dL.lng;}}else if(action==2){dL.Cs="";cs=new Array();cs=dL.dW.split("");rb=new Array();qf=true;fW= -1;dL.cU=true;fZ=false;wC=0;nm=false;qV=0;i=0;for(i=0;i=65&&sb.charCodeAt(0)<=90){qV++;}if((cs[i].charCodeAt(0)>=48&&cs[i].charCodeAt(0)<=57)||cs[i]=="."||cs[i]=="-"){if(cs[i]=="-"){if(fW== -1){fZ=true;}else{nm=true;}}if(qf!==false||cs[i]=="-"){qf=false;fW++;rb[fW]=cs[i];}else{rb[fW]+=cs[i];}}else{qf=true;switch(sb){case "N":fZ=false;break;case "S":fZ=true;wC++;break;case "E":nm=false;break;case "W":nm=true;break;case "-":break;case "D":break;case "M":break;case ":":break;case ",":break;case String.fromCharCode(176):break;case "'":break;case String.fromCharCode(2032):break;case String.fromCharCode(8242):break;case '"':break;case String.fromCharCode(2033):break;case String.fromCharCode(8243):break;case " ":break;default:dL.cU=false;dL.bD="error";}if(wC==2){fZ=false;}}}if(qV!=1&&qV!=3){if(dL.bD==""&&(fW==1||fW==3||fW==5)){dL.cU=true;dL.ln="latlng";fJ=new Array();for(i=0;i<=fW;i++){fJ[i]=Math.abs(parseFloat(rb[i]));}if(fW==1){dL.lat=fJ[0];dL.lng=fJ[1];if(dL.lat>85||dL.lng>180){dL.cZ=false;dL.bD="error";}}else if(fW==3){dL.mS=fJ[0];dL.jA=fJ[1];dL.mb=fJ[2];dL.ib=fJ[3];if(dL.mS>85||dL.mb>180||dL.jA>=60||dL.ib>=60){dL.cZ=false;dL.bD="error";}else{dL.lat=dL.mS+(dL.jA/60);dL.lng=dL.mb+(dL.ib/60);}}else{dL.mS=fJ[0];dL.jA=fJ[1];dL.vP=fJ[2];dL.mb=fJ[3];dL.ib=fJ[4];dL.vr=fJ[5];if(dL.lat>85||dL.lng>180||dL.jA>=60||dL.ib>=60||dL.vP>=60||dL.vr>=60){dL.cZ=false;dL.bD="error";}else{dL.jA=dL.jA+(dL.vP/60);dL.ib=dL.ib+(dL.vr/60);dL.lat=dL.mS+(dL.jA/60);dL.lng=dL.mb+(dL.ib/60);}}if(dL.bD!=""){dL.bD=""+"Please check the above line for a valid latitude and longitude
    "+"Latitude degrees must be in the range -85 <= x <= 85
    "+"Longitude degrees must be in the range -180 <= x <= 180
    "+"Minutes (if used) must be in the range -60 < x < 60
    "+"Seconds (if used) must be in the range -60 < x < 60
    ";}else{if(nm!==false){cv=dL.lng* -1;dL.lng=cv;}if(fZ!==false){dI=dL.lat* -1;dL.lat=dI;}LLtoUTM(dL.lat,dL.lng,dL.dk);if(dL.lat<0){dL.dk[1]=10000000+dL.dk[1];}dL.ig=""+UTMZone+" "+dL.dk[0].toFixed(0)+","+dL.dk[1].toFixed(0);}}else{dL.bD=""+"Please check the above line for a valid latitude and longitude
    "+"You can use dd.dddddd (2 numbers on the line)
    "+"Or dd mm.mmm (4 numbers on the line)
    "+"Or dd mm ss (6 numbers on the line)
    ";}}else{dL.bD="Only 1 or 3 letters in string. This might be MGRS or USNG coord";dL.cU=false;}}else if(action==3){dL.lat="";dL.pF="";dL.hB="";dL.pb=dL.dW;dL.af=dL.dW.replace(/[" ",_]/g,"");dL.af=dL.af.toUpperCase();dL.tC=dL.af.length;if(dL.tC<2||dL.tC>15){dL.cU=false;dL.bD="error";}else{if(isNaN(parseInt(dL.af.substr(1,1)))){dL.ws=1;aB=dL.af.substr(0,1);aR=dL.af.substr(1,3);cD=dL.af.substr(4);}else{dL.ws=2;aB=dL.af.substr(0,2);aR=dL.af.substr(2,3);cD=dL.af.substr(5);}if(!(aR.length==1||aR.length==3)||isNaN(parseInt(aB))||(cD!=""&&isNaN(parseInt(cD)))){dL.cU=false;dL.bD="error";}else{dL.pA=/^[a-zA-Z]+$/;if(!(aR.match(dL.pA))){dL.cU=false;dL.bD="error";}else{aq=""+aB+cD;dL.pA=/^[0-9]+$/;if(!(aq.match(dL.pA))||parseInt(aB)<1||parseInt(aB)>60){dL.cU=false;dL.bD="error";}else{dL.cU=true;dL.ln="mgrs";aq=parseInt(aB);if(aq<1||aq>60){dL.cZ=false;dL.bD="error";}else{aq=aR.substr(0,1);if(aq=="A"||aq=="B"||aq=="I"||aq=="O"||aq=="Y"||aq=="Z"){dL.cZ=false;dL.bD="error";}else{dL.pF=""+aB+aq;aq=aR.substr(1,1);if(aq=="I"||aq=="O"){dL.cZ=false;dL.bD="error";}else{aq=aR.substr(2,1);if(aq=="I"||aq=="O"||aq=="W"||aq=="X"||aq=="Y"||aq=="Z"){dL.cZ=false;dL.bD="error";}else{aq=cD.length;if(aq!=0&&aq!=2&&aq!=4&&aq!=6&&aq!=8&&aq!=10){dL.cZ=false;dL.bD="error";}}}}}if(dL.bD!=""){dL.bD=""+"Please check the search box for a valid MGRS or USNG coordinate.
    "+"Latitude band must be in the range C-H or J-N or P-X.
    "+"100,000-meter column letter cannot be I or O.
    "+"100,000-meter row letter cannot be I, O, W, X, Y or Z.
    "+"Coordinates must have 0, 2, 4, 6, 8 or 10 digits.

    "+"If you are not trying to search on this type of coordinate, then please enter more information for your search such as the name of the state, province or country.";}else{if(aR.length==1){dL.lng= -180+((parseInt(aB)-1)*6)+3;aq="CDEFGHJKLMNPQRSTUVWX";aq=aq.indexOf(aR);dL.lat= -80+(8*aq)+4;if(aR=="X"){dL.lat+=2;}dL.eC="biggest";dL.gQ=5;}else{aq=cD.length;switch(aq){case 0:dL.eC="100,000";dL.gQ=9;break;case 2:dL.eC="10,000";dL.gQ=12;break;case 4:dL.eC="1,000";dL.gQ=15;break;case 6:dL.eC="100";dL.gQ=18;break;case 8:dL.eC="10";dL.gQ=18;break;case 10:dL.eC="1";dL.gQ=18;break;}}if(dL.lat==""){dL.dr=dL.af;jp(2);}jp(1);dL.zs=dL.lat;dL.Ar=dL.lng;dL.AU=dL.dP;if(isNaN(parseInt(dL.dP.substr(1,1)))){dL.lY=dL.dP.substr(0,2);}else{dL.lY=dL.dP.substr(0,3);}if(dL.pF!=dL.lY){dL.kM=false;aq=dL.eC;c=4;if(dL.ws==2){c=5;}if(dL.df===undefined){dL.df=[];}switch(aq){case "100,000":dL.df[0]=""+dL.af+"0000200002";dL.df[1]=""+dL.af+"0000299998";dL.df[2]=""+dL.af+"9999800002";dL.df[3]=""+dL.af+"9999899998";break;case "10,000":dL.dK=dL.af.substr(c,1);dL.bW=dL.af.substr(c+1,1);dL.df[0]=""+aB+aR+dL.dK+"0002"+dL.bW+"0002";dL.df[1]=""+aB+aR+dL.dK+"0002"+dL.bW+"9998";dL.df[2]=""+aB+aR+dL.dK+"9998"+dL.bW+"0002";dL.df[3]=""+aB+aR+dL.dK+"9998"+dL.bW+"9998";break;case "1,000":dL.dK=dL.af.substr(c,2);dL.bW=dL.af.substr(c+2,2);dL.df[0]=""+aB+aR+dL.dK+"002"+dL.bW+"002";dL.df[1]=""+aB+aR+dL.dK+"002"+dL.bW+"998";dL.df[2]=""+aB+aR+dL.dK+"998"+dL.bW+"002";dL.df[3]=""+aB+aR+dL.dK+"998"+dL.bW+"998";break;case "100":dL.dK=dL.af.substr(c,3);dL.bW=dL.af.substr(c+3,3);dL.df[0]=""+aB+aR+dL.dK+"02"+dL.bW+"02";dL.df[1]=""+aB+aR+dL.dK+"02"+dL.bW+"98";dL.df[2]=""+aB+aR+dL.dK+"98"+dL.bW+"02";dL.df[3]=""+aB+aR+dL.dK+"98"+dL.bW+"98";break;case "10":dL.dK=dL.af.substr(c,4);dL.bW=dL.af.substr(c+4,4);dL.df[0]=""+aB+aR+dL.dK+"2"+dL.bW+"2";dL.df[1]=""+aB+aR+dL.dK+"2"+dL.bW+"8";dL.df[2]=""+aB+aR+dL.dK+"8"+dL.bW+"2";dL.df[3]=""+aB+aR+dL.dK+"8"+dL.bW+"8";break;case "1":dL.dK=dL.af.substr(c,4);dL.bW=dL.af.substr(c+4,4);dL.df[0]=""+aB+aR+dL.dK+"2"+dL.bW+"2";dL.df[1]=""+aB+aR+dL.dK+"2"+dL.bW+"8";dL.df[2]=""+aB+aR+dL.dK+"8"+dL.bW+"2";dL.df[3]=""+aB+aR+dL.dK+"8"+dL.bW+"8";break;}k=0;while(k<4&&dL.kM===false){dL.dr=dL.df[k];jp(2);jp(1);if(isNaN(parseInt(dL.dP.substr(1,1)))){dL.lY=dL.dP.substr(0,2);}else{dL.lY=dL.dP.substr(0,3);}if(dL.pF==dL.lY){dL.kM=true;}else{k++;}}if(dL.kM){dL.je=true;dL.lat=dL.zs;dL.lng=dL.Ar;dL.hB=dL.AU;dL.bD=""+"Caution!
    "+"You searched for "+dL.pb+". That is not a full size "+dL.eC+" meter grid box. The box you searched for is close to the center of the map but the map is centered outside of your search box.";}else{dL.bD=""+"Sorry!
    "+"You searched for "+dL.pb+". None of that "+dL.eC+" meter grid box exists.";}}else{dL.kM=true;switch(dL.eC){case "biggest":dL.hB=dL.dP;break;case "100,000":dL.hB=""+aB+aR+"5000050000";break;case "10,000":dL.hB=""+aB+aR+cD.substr(0,1)+"5000"+cD.substr(1,1)+"5000";break;case "1,000":dL.hB=""+aB+aR+cD.substr(0,2)+"500"+cD.substr(2,2)+"500";break;case "100":dL.hB=""+aB+aR+cD.substr(0,3)+"50"+cD.substr(3,3)+"50";break;case "10":dL.hB=""+aB+aR+cD.substr(0,4)+"5"+cD.substr(4,4)+"5";break;case "1":dL.hB=dL.af;break;}}}}}}}}}};function pH(coords){if(jn){aq="https://mappingsupport.com/p/php_get_declination.php?ll="+coords;cA.open("GET",aq,true);cA.send();}};function zN(){bF(2);dL.directionsDisplay.setPanel(null);dL.directionsDisplay.setMap(null);dL.directionsDisplay.directions=null;document.getElementById('ee').style.display="none";document.getElementById('dR').style.width="100%";google.maps.event.trigger(dL.map,'resize');dL.map.setCenter(dL.hu);dL.map.setZoom(dL.lS);if(dL.cl=="utm"||dL.cl=="usng"||dL.cl=="mgrs"){cj("directions open",1);}};function AM(){bF(2);aq=document.getElementById('starting_id');dL.start=aq.value;aq=document.getElementById('ending_id');dL.end=aq.value;dL.dW=dL.start;dL.cU=false;dL.gj=false;pW();if(dL.cU!==false&&dL.gj===false){dL.start=""+dL.lat+","+dL.lng;}dL.dW=dL.end;dL.cU=false;dL.gj=false;pW();if(dL.cU!==false&&dL.gj===false){dL.end=""+dL.lat+","+dL.lng;}var request={origin:dL.start,destination:dL.end,travelMode:google.maps.DirectionsTravelMode.DRIVING,unitSystem:google.maps.DirectionsUnitSystem.IMPERIAL};dL.directionsService.route(request,function(result,status){switch(status){case google.maps.DirectionsStatus.OK:dL.o="OK";break;case google.maps.DirectionsStatus.INVALID_REQUEST:dL.o="INVALID_REQUEST";dL.c="The DirectionsRequest provided was invalid.";break;case google.maps.DirectionsStatus.MAX_WAYPOINTS_EXCEEDED:dL.o="MAX_WAYPOINTS_EXCEEDED";dL.c="Too many DirectionsWaypoints were provided in the DirectionsRequest. The total allowed waypoints is 8, plus the origin and destination.";break;case google.maps.DirectionsStatus.NOT_FOUND:dL.o="NOT_FOUND";dL.c="At least one of the origin, destination, or waypoints could not be geocoded.";break;case google.maps.DirectionsStatus.OVER_QUERY_LIMIT:dL.o="OVER_QUERY_LIMIT";dL.c="The webpage has gone over the requests limit in too short a period of time.";break;case google.maps.DirectionsStatus.REQUEST_DENIED:dL.o="REQUEST_DENIED";dL.c="The webpage is not allowed to use the directions service.";break;case google.maps.DirectionsStatus.UNKNOWN_ERROR:dL.o="UNKNOWN_ERROR";dL.c="A directions request could not be processed due to a server error. The request may succeed if you try again.";break;case google.maps.DirectionsStatus.ZERO_RESULTS:dL.o="ZERO_RESULTS";dL.c="No route could be found between the origin and destination.";break;}if(dL.o=="OK"){dL.directionsDisplay.setDirections(result);}else{dL.msg="Your request for directions did not succeed.
    "+"Google sent back this error code:
    "+"    "+dL.o+"

    "+"Google says this error code means:
    "+"    "+dL.c+"

    "+"Message #114.


    ";r(15108,null);}});};function oi(){dL.msg="To get directions please:
    "+"    1. Place your cursor at either the start or end of your trip and right click.
    "+"    2. Click 'Directions to here' or 'Directions from here'.
    "+"    3. Enter an address, place name or latitude longitude in the empty 'from' or 'to' box.

    "+"If you need help to find the start or end of your trip, then try the Gmap4 search feature(Menu ==> Search). You can search by address, place name and any reasonable way to write a latitude longitude.

    "+"To obtain a latitude longitude for a location, find that spot on the map, place your cursor there and right click.

    "+"You can change any part of the route by pointing to it and dragging. The written directions will be updated automatically.

    "+"If you click any part of the written directions, then the map will zoom to that spot.";r(15123,null);};function pf(action){dL.directionsDisplay.setMap(dL.map);dL.directionsDisplay.setPanel(document.getElementById("eF"));bF(2);dL.hu=dL.map.getCenter();dL.lS=dL.map.getZoom();dL.ac=dL.qX;if(dL.H=="utm"){eu("point","utm");}else{aq=dL.H;eu("",aq);}dL.iz=dL.cX.replace(/[  ]/g," ");dL.iz=dL.iz.trim();dL.iz=dL.iz.qq();aq="";if(dL.H=="usng"){dL.aK.length=0;dL.aK=dL.iz.split(" ");aq=dL.aK[0]+" "+dL.aK[1]+" ";}if(action==1){dL.qj=dL.iz;dL.rU=aq;}else if(action==2){dL.rU=dL.iz;dL.qj=aq;}else{dL.qj=dL.iz;dL.rU=aq;}document.getElementById('dR').style.float="left";document.getElementById('dR').style.width=""+dL.direction_map_width+"%";aq=100-dL.direction_map_width;document.getElementById('ee').style.width=""+aq+"%";google.maps.event.trigger(dL.map,'resize');dL.map.setCenter(dL.hu);if(dL.cl=="utm"||dL.cl=="usng"||dL.cl=="mgrs"){cj("directions open",1);}dL.Aw="
    "+"
    "+"
    "+"
    "+"
    Close
    "+"
    "+"
    "+"
    "+"Starting location:
    "+"
    "+""+"
    "+"Ending location:
    "+"
    "+""+"
    "+"
    "+"
    "+"
    "+"
    Get Directions
    "+"
    "+"
    "+"";document.getElementById("ee").style.backgroundColor="#ffffcc";document.getElementById("fk").innerHTML=dL.Aw;document.getElementById('ee').style.display="block";if(action==1||action==3){document.hD.ov.focus();}else{document.hD.mP.focus();}if(dL.H=="usng"){if(action==1||action==3){document.hD.ov.selectionStart=document.hD.ov.selectionEnd=document.hD.ov.value.length;}else{document.hD.mP.selectionStart=document.hD.mP.selectionEnd=document.hD.mP.value.length;}}};function yo(){dL.ca=[];dL.ca[0]=156543.03392;dL.ca[1]=78271.51696;dL.ca[2]=39135.75848;dL.ca[3]=19567.87924;dL.ca[4]=9783.93962;dL.ca[5]=4891.96981;dL.ca[6]=2445.98490;dL.ca[7]=1222.99245;dL.ca[8]=611.49622;dL.ca[9]=305.74811;dL.ca[10]=152.87405;dL.ca[11]=76.43702;dL.ca[12]=38.21851;dL.ca[13]=19.10925;dL.ca[14]=9.55462;dL.ca[15]=4.77731;dL.ca[16]=2.38865;dL.ca[17]=1.19432;dL.ca[18]=0.59716;dL.ca[19]=0.29858;};function cj(K,action){dL.cp=dL.map.getProjection();if(dL.cp===undefined){google.maps.event.addListenerOnce(dL.map,"projection_changed",function(){dL.cp=dL.map.getProjection();cj(K,action)});}else{if(dL.ce=="grid"){dL.debug_sequence="12231 cj fired. ___called_from = "+K+" ___action = "+action+" ___masu.iY = "+dL.iY+" ___masu.cl = "+dL.cl+" ___masu.H = "+dL.H+"
    "+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;(15436,null);}if(dL.iY===false){dL.iY=true;if(dL.cl==dL.H&&action==1&&dL.uw.equals(dL.map.getBounds())!==false){}else{dL.uw=dL.map.getBounds();dL.R=dL.map.getZoom();if(dL.cl=="utm"||dL.cl=="usng"||dL.cl=="mgrs"){dL.cl="";AL();}if(action==1){BB();if(dL.H=="utm"){dL.cl="utm";if(dL.R>=6){qP("utm");}if(dL.R>3){va();}}else{if(dL.H=="usng"){dL.cl="usng";}else{dL.cl="mgrs";}if(dL.R>9){qP("grid");}if(dL.R>5){dL.dn=100000;dL.bb=dL.dn*2;qP("100km");}if(dL.R>3){va();}if(dL.R==4||dL.R==5){if(dL.at!="desktop"&&(dL.H=="utm"||dL.H=="usng"||dL.H=="mgrs")){fq();}}}if(dL.qB!==false){BH();}}}}else{dL.ot=action;dL.BR=dL.H;}dL.iY=false;if(dL.ot!=""){dL.ot="";aq=dL.ot;cj("cj",aq)}}};function BB(){if(dL.qE===false){dL.qE=true;dL.Bl="off";dL.as=[];dL.grid_line_e_w=[];dL.grid_line_n_s=[];dL.grid_line_e_w_narrow=[];dL.grid_line_n_s_narrow=[];dL.ef=[];dL.mt=[];dL.nQ=[];dL.dh=[];dL.dh[6]=100000;dL.dh[7]=100000;dL.dh[8]=100000;dL.dh[9]=100000;dL.dh[10]=10000;dL.dh[11]=10000;dL.dh[12]=10000;dL.dh[13]=1000;dL.dh[14]=1000;dL.dh[15]=1000;dL.dh[16]=1000;dL.dh[17]=100;dL.dh[18]=100;dL.dh[19]=100;dL.dh[20]=10;dL.dh[21]=10;dL.cG=[];dL.cG[4]="GDZ Grid";dL.cG[5]="GDZ Grid";dL.cG[6]="100km Grid";dL.cG[7]="100km Grid";dL.cG[8]="100km Grid";dL.cG[9]="100km Grid";dL.cG[10]="10km Grid";dL.cG[11]="10km Grid";dL.cG[12]="10km Grid";dL.cG[13]="1km Grid";dL.cG[14]="1km Grid";dL.cG[15]="1km Grid";dL.cG[16]="1km Grid";dL.cG[17]="100m Grid";dL.cG[18]="100m Grid";dL.cG[19]="100m Grid";dL.cG[20]="10m Grid";dL.cG[21]="10m Grid";dL.lO=false;dL.CA=false;dL.gM=[];dL.oF=[];dL.mF=[];dL.eg=[];dL.hp=[];dL.jK=[];dL.mi=[];dL.vE=75;dL.wM=25;if(dL.at=="desktop"){dL.sI=85;}else{dL.sI=125;}dL.xb=25;dL.wa=10;dL.vp=35;dL.wT=15;dL.vu=30;aq="CDEFGHJKLMNPQRSTUVWX";dL.wW=[];dL.wW=aq.split("");for(i=0;i<60;i++){dL.mF[i]=[];dL.oF[i]=[];dL.jK[i]= -180+(6*i);dL.cv=dL.jK[i]+3;aq=i+1;for(j=0;j<20;j++){dL.oF[i][j]=""+aq+dL.wW[j];dL.dI= -80+(8*j)+4;if(dL.fS==72){dL.dI=78;}dL.mF[i][j]=new google.maps.LatLng(dL.dI,dL.cv);}dL.jK[60]=180;}for(j=0;j<20;j++){dL.mi[j]= -80+(8*j);}dL.mi[20]=84;dL.vY={strokeWeight:5,strokeColor:"#FF0000",strokeOpacity:0.5,zIndex:99};dL.lg="FFCCCC";dL.xY='position: relative; left:-22px; top:-10px; '+'white-space: nowrap; border: 1px solid black; padding: 0px; margin: 0px;'+'background-color: #'+dL.lg+'; font-size:1.5em; font-weight:bold;';dL.yx="FFCCCC";dL.sJ=false;dL.jB=[];dL.zA=[];dL.mI=[];aq="ABCDEFGHJKLMNPQRSTUVWXYZ";dL.zY=[];dL.zY=aq.split("");aq="ABCDEFGHJKLMNPQRSTUV";dL.zJ=[];dL.zJ=aq.split("");dL.cC=[];dL.dM=[];dL.zj=30;dL.nk={strokeWeight:5,strokeColor:"#00FF00",strokeOpacity:0.6,zIndex:99};dL.Ap="CCFFCC";dL.zX='position: relative; left:-20px; top:-10px; '+'white-space: nowrap; border: 1px solid black; padding: 1px; margin: 0px;'+'background-color: #'+dL.Ap+'; font-size:1.37em; font-weight:bold;';dL.kD="AAFFAA";dL.wu={strokeWeight:4,strokeColor:"#FFFFFF",strokeOpacity:0.7,zIndex:99};dL.vG={strokeWeight:2,strokeColor:"#000000",strokeOpacity:0.7,zIndex:99};dL.ep=[];dL.dY= -1;dL.xd=50;if(dL.at=="desktop"){dL.wz=122;}else{dL.wz=71;}dL.AY=false;dL.wg="000000";dL.kg="00FFFF";dL.kO="FFCC00";dL.eB=[];dL.eB[6]=0;dL.eB[7]=100000;dL.eB[8]=50000;dL.eB[9]=50000;dL.eB[10]=25000;dL.eB[11]=10000;dL.eB[12]=5000;dL.eB[13]=2000;dL.eB[14]=1000;dL.eB[15]=1000;dL.eB[16]=500;dL.eB[17]=250;dL.eB[18]=100;dL.eB[19]=50;dL.hC='position: relative; '+'left:-30px; top:25px;'+'white-space: nowrap; border: 1px solid black; padding: 1px; background-color: #FFFFFF; font-size: 0.87em;';dL.gX='position: relative; '+'left:5px; top:-10px;'+'white-space: nowrap; border: 1px solid black; padding: 1px; background-color: #FFFFFF; font-size:0.87em;';}dL.zG=60;dL.dA= -1;dL.ci= -1;dL.lx= -1;dL.jC= -1;eL= -1;grid_white_e_w.length=0;grid_white_n_s.length=0;grid_black_e_w.length=0;grid_black_n_s.length=0;dL.grid_line_e_w.length=0;dL.grid_line_n_s.length=0;dL.grid_line_e_w_narrow.length=0;dL.grid_line_n_s_narrow.length=0;dL.gM.length=0;dL.eg.length=0;dL.hp.length=0;dL.cC.length=0;dL.jB.length=0;dL.zA.length=0;dL.mI.length=0;dL.lW= -1;dL.R=dL.map.getZoom();dL.v=dL.ar.lat().toFixed(6);dL.lH=false;if(dL.v<0){dL.lH=true;}if(dL.H=="usng"||dL.H=="mgrs"){if(dL.bV=="desktop"){if(dL.H=="usng"||dL.H=="mgrs"){if(dL.R<4){dL.ej="";}else if(dL.R<22){dL.ej=dL.cG[dL.R];}else{dL.ej=dL.cG[21];}}if(dL.ej!=""){dL.ej=""+dL.ej+"  ";}iF();}else{if(dL.R<4){dL.ej="";}else if(dL.R<22){dL.ej=dL.cG[dL.R];}else{dL.ej=dL.cG[21];}dL.hE.innerHTML=dL.ej+"  Zoom level "+dL.R;}}if(dL.R>5){if(dL.R<19){if(dL.H=="utm"){dL.dn=dL.eB[dL.R];}else{dL.dn=dL.dh[dL.R];}}else{if(dL.H=="utm"){dL.dn=dL.eB[19];}else{if(dL.R<22){dL.dn=dL.dh[dL.R];}else{dL.dn=dL.dh[21];}}}dL.bb=dL.dn*2;}dL.hZ=dL.map.getBounds();dL.qC=dL.hZ.getNorthEast();dL.pV=dL.hZ.getSouthWest();dL.dU=dL.qC.lat();dL.ec=dL.qC.lng();dL.fg=dL.pV.lat();dL.eU=dL.pV.lng();if(dL.dU>84){dL.dU=84;}if(dL.fg< -80){dL.fg= -80;}dL.CH=true;dL.mO=dL.cp.fromLatLngToPoint(dL.qC);dL.kR=dL.cp.fromLatLngToPoint(dL.pV);dL.by=Math.pow(2,dL.R);o=((dL.mO.x*dL.by)-dL.wM)/dL.by;c=((dL.mO.y*dL.by)+dL.vE)/dL.by;dL.rD=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));o=(o*dL.by-dL.vp)/dL.by;c=(c*dL.by+dL.wa)/dL.by;dL.wN=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));o=((dL.mO.x*dL.by)-dL.wM)/dL.by;c=((dL.kR.y*dL.by)-dL.sI)/dL.by;dL.Ci=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));o=(o*dL.by-dL.vp)/dL.by;c=(c*dL.by-dL.wT)/dL.by;dL.DW=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));o=((dL.kR.x*dL.by)+dL.xb)/dL.by;c=((dL.kR.y*dL.by)-dL.sI)/dL.by;dL.sd=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));o=(o*dL.by+dL.vu)/dL.by;c=(c*dL.by-dL.wT)/dL.by;dL.wY=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));o=((dL.kR.x*dL.by)+dL.xb)/dL.by;c=((dL.mO.y*dL.by)+dL.vE)/dL.by;dL.Cn=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));o=(o*dL.by+dL.vu)/dL.by;c=(c*dL.by+dL.wa)/dL.by;dL.DR=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));dL.pk=dL.rD.lat();dL.mT=dL.sd.lat();dL.ph=dL.rD.lng();dL.nh=dL.sd.lng();dL.vj=dL.wN.lat();dL.vk=dL.wY.lat();dL.wr=dL.wN.lng();dL.vw=dL.wY.lng();dL.Cq={strokeWeight:4,strokeColor:"#FFFF00",strokeOpacity:1.0,zIndex:99};if(dL.rQ!==undefined){dL.rQ.clear();}dL.wA=new google.maps.LatLngBounds(dL.sd,dL.rD);dL.Bb={strokeWeight:4,strokeColor:"#0000FF",strokeOpacity:1.0,zIndex:99};if(dL.rI!==undefined){dL.rI.clear();}dL.qW=(dL.kR.y*dL.by)-dL.wz;dL.lT=(dL.kR.x*dL.by)+dL.xd;dL.wt=dL.cp.fromPointToLatLng(new google.maps.Point(dL.lT/dL.by,dL.qW/dL.by));dL.AZ=dL.wt.lat();dL.Bh=dL.wt.lng();if(dL.R<22){aq=dL.cG[dL.R];}else{aq=dL.cG[21];}switch(aq){case "10km Grid":dL.fb=1;dL.mY="-8";dL.jl=2;break;case "1km Grid":dL.fb=2;dL.mY="-11";dL.jl=0;break;case "100m Grid":dL.fb=3;dL.mY="-16";dL.jl=0;break;case "10m Grid":dL.fb=4;dL.mY="-16";dL.jl=0;break;}dL.xl='position: relative; '+'left:'+dL.mY+'px; '+'white-space: nowrap; border: 1px solid; border-color:'+dL.wg+'; padding-left: '+dL.jl+'px; padding-right: '+dL.jl+'px; background-color: #'+dL.kg+'; font-size:1em; font-weight:bold;';dL.yc='position: relative; '+'left:3px; top:-10px;'+'white-space: nowrap; border: 1px solid; border-color:'+dL.wg+'; padding-left: '+dL.jl+'px; padding-right: '+dL.jl+'px; background-color: #'+dL.kO+'; font-size: 1em; font-weight:bold;';};function AL(){dL.fM="11565 start grid erase";max=dL.grid_line_e_w.length;for(i=0;i"+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;r(16211,null);}dL.tw=Math.floor((dL.eU+180.0)/6)+1;dL.ff= -180+(dL.tw*6)-12;ag=0;for(i=0;i=0&&dL.ec<0){if((dL.dN>dL.eU&&dL.dN<180)||(dL.dN>= -180&&dL.dN=dL.eU&&dL.dN<=dL.ec){ag++;}}dL.gV=ag+1;LLtoUTM(dL.dU,dL.ec,dL.mt);if(dL.v<0){dL.mt[1]=10000000+dL.mt[1];}dL.yw=dL.mt[1];dL.bj=Math.floor(dL.yw/dL.dn)*dL.dn+dL.bb;LLtoUTM(dL.fg,dL.eU,dL.nQ);if(dL.v<0){dL.nQ[1]=10000000+dL.nQ[1];}dL.xt=dL.nQ[1];dL.bf=Math.floor(dL.xt/dL.dn)*dL.dn-dL.bb;if(dL.bf>=dL.bj){if(dL.v<0){dL.bj=dL.bj+10000000;}else{dL.bf=dL.bf+dL.bb-10000000;}}if(dL.dU>0&&dL.fg>=0){dL.dI=dL.fg;dL.cv=dL.eU;dL.ni=dL.fg;dL.qH=dL.ec;dL.lm=dL.fg;}else if(dL.dU>0&&dL.fg<0){dL.dI=0;dL.cv=dL.eU;dL.ni=0;dL.qH=dL.ec;dL.lm=0;}else{dL.dI=dL.dU;dL.cv=dL.eU;dL.ni=dL.dU;dL.qH=dL.ec;dL.lm=dL.dU;}LLtoUTM(dL.dI,dL.cv,dL.ef);if(dL.dI<0){dL.ef[1]=10000000+dL.ef[1];}aq=dL.ef[0];dL.yp=Math.floor(aq/dL.dn)*dL.dn;LLtoUTM(dL.ni,dL.qH,dL.ef);if(dL.ni<0){dL.ef[1]=10000000+dL.ef[1];}aq=dL.ef[0];dL.xj=Math.floor(aq/dL.dn)*dL.dn+dL.dn;if(dL.gV>1){LLtoUTM(dL.lm,-90,dL.ef);if(dL.lm<0){dL.ef[1]=10000000+dL.ef[1];}aq=dL.ef[0];dL.yJ=Math.floor(aq/dL.dn)*dL.dn+dL.dn;LLtoUTM(dL.lm,-84.00001,dL.ef);if(dL.lm<0){dL.ef[1]=10000000+dL.ef[1];}aq=dL.ef[0];dL.xg=Math.floor(aq/dL.dn)*dL.dn;}dL.lj=dL.tw;max=dL.gV;for(i=1;i<=max;i++){if(i==1){dL.pG=dL.yp;}else{dL.pG=dL.yJ;}if(i==dL.gV){dL.rK=dL.xj;}else{dL.rK=dL.xg;}if(dL.gV>1){dL.ff=dL.ff+6;if(dL.ff==180){dL.ff= -180;}dL.fm=dL.ff+6;}else{dL.ff=0;dL.fm=0;}dL.pU="ns";for(j=dL.pG;j<=dL.rK;j=j+dL.dn){dL.kE=dL.wu;if(action=="100km"){dL.kE=dL.nk;}dL.as.length=0;x=j;dL.ae=gA(x,dL.bj,dL.lj,dL.lH);dL.ac=new google.maps.LatLng(dL.ae[0],dL.ae[1]);aq=dL.ac;dL.as.push(dL.ac);dL.ae=gA(x,dL.bf,dL.lj,dL.lH);dL.ac=new google.maps.LatLng(dL.ae[0],dL.ae[1]);dL.as.push(dL.ac);if(dL.gV>1){tQ("doing NS lines",-111,-111);}if(aq!=dL.as[0]){dL.Bj=dL.as[0].lat();}if(action=="100km"&&dL.R>9){}else{if(dL.as[0].show=="yes"||dL.gV==1){dL.ci++;grid_white_n_s[dL.ci]=new google.maps.Polyline(dL.kE);grid_white_n_s[dL.ci].setMap(dL.map);dL.grid_line_n_s[dL.ci]=grid_white_n_s[dL.ci].getPath();if(action=="utm"||action=="grid"){dL.jC++;grid_black_n_s[dL.jC]=new google.maps.Polyline(dL.vG);grid_black_n_s[dL.jC].setMap(dL.map);dL.grid_line_n_s_narrow[dL.jC]=grid_black_n_s[dL.jC].getPath();}dL.grid_line_n_s[dL.ci].push(dL.as[0]);dL.grid_line_n_s[dL.ci].push(dL.as[1]);if(action=="utm"||action=="grid"){dL.grid_line_n_s_narrow[dL.jC].push(dL.as[0]);dL.grid_line_n_s_narrow[dL.jC].push(dL.as[1]);dL.hz=dL.cp.fromLatLngToPoint(dL.as[0]);dL.hY=dL.hz.x*dL.by;dL.kt=dL.hz.y*dL.by;dL.hz=dL.cp.fromLatLngToPoint(dL.as[1]);dL.kB=dL.hz.x*dL.by;dL.qm=dL.hz.y*dL.by;if(dL.hY==dL.kB){dL.aN=dL.hY;}else{dL.jW=(dL.kt-dL.qm)/(dL.hY-dL.kB);dL.qb=dL.kt-(dL.jW*dL.hY);dL.aN=(dL.qW-dL.qb)/dL.jW;}c=dL.qW/dL.by;o=dL.aN/dL.by;dL.ac=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));if(action=="grid"){dL.fo=dL.xl;dL.dY++;dL.ep[dL.dY]=new cR({map:dL.map});dL.lat=dL.ac.lat();dL.lng=dL.ac.lng();jp(1);if(isNaN(parseInt(dL.dP.substr(1,1)))){dL.aS=dL.dP.substr(4,4);}else{dL.aS=dL.dP.substr(5,4);}if(dL.fb==4){dL.bQ=dL.aS.substr(0,4);if(dL.aS.substr(4,1)=="9"||dL.aS.substr(4,1)=="8"){if(dL.aS.substr(0,4)=="9999"){dL.bQ="0000";}else{dL.bQ=(parseInt(dL.aS.substr(0,4))+1).toString();}}}else if(dL.fb==3){dL.bQ=dL.aS.substr(0,3);if(dL.aS.substr(3,1)=="9"||dL.aS.substr(3,1)=="8"){if(dL.aS.substr(0,3)=="999"){dL.bQ="000";}else{dL.bQ=(parseInt(dL.aS.substr(0,3))+1).toString();}}}else if(dL.fb==2){dL.bQ=dL.aS.substr(0,2);if(dL.aS.substr(2,2)=="99"||dL.aS.substr(2,2)=="98"){if(dL.aS.substr(0,2)=="99"){dL.bQ="00";}else{dL.bQ=(parseInt(dL.aS.substr(0,2))+1).toString();}}}else{dL.bQ=dL.aS.substr(0,1);if(dL.aS.substr(1,3)=="999"||dL.aS.substr(1,3)=="998"){if(dL.aS.substr(0,1)=="9"){dL.bQ="0";}else{dL.bQ=(parseInt(dL.aS.substr(0,1))+1).toString();}}}if(dL.fb==3){if(dL.bQ.length==1){dL.bQ="00"+dL.bQ;}else if(dL.bQ.length==2){dL.bQ="0"+dL.bQ;}}else if(dL.fb==2){if(dL.bQ.length==1){dL.bQ="0"+dL.bQ;}}}else{cw=""+j;aq=cw.length-5;bK=cw.substr(0,aq);aq=cw.slice(-5);bJ=aq.slice(0,2);bN=aq.slice(-3);dL.bQ=""+bK+""+bJ+""+bN;dL.fo=dL.hC;dL.dY++;dL.ep[dL.dY]=new cR({map:dL.map});}dL.ep[dL.dY].set('text',dL.bQ);dL.ep[dL.dY].set('position',dL.ac);}if(action=="grid"&&j%100000==0){dL.ci++;grid_white_n_s[dL.ci]=new google.maps.Polyline(dL.nk);grid_white_n_s[dL.ci].setMap(dL.map);dL.grid_line_n_s[dL.ci]=grid_white_n_s[dL.ci].getPath();dL.grid_line_n_s[dL.ci].push(dL.as[0]);dL.grid_line_n_s[dL.ci].push(dL.as[1]);}}}}dL.pU="ew";dL.cC.length=0;ss=0;for(j=dL.bf;j<=dL.bj;j=j+dL.dn){ss++;dL.kE=dL.wu;if(action=="100km"){dL.kE=dL.nk;}o=dL.pG-dL.dn;c=dL.rK+dL.dn;dL.as.length=0;for(k=o;k<=c;k=k+dL.dn){dL.xK=k;dL.xR=j;dL.ae=gA(dL.xK,dL.xR,dL.lj,dL.lH);dL.ac=new google.maps.LatLng(dL.ae[0],dL.ae[1]);dL.as.push(dL.ac);}if(dL.gV>1){tQ("doing EW lines",i,ss);}else{for(z=0;z9){dL.dM.length=0;dL.mX=0;for(k=0;k1){for(k=0;k1){dL.dA++;grid_white_e_w[dL.dA]=new google.maps.Polyline(dL.kE);grid_white_e_w[dL.dA].setMap(dL.map);dL.grid_line_e_w[dL.dA]=grid_white_e_w[dL.dA].getPath();if(action=="utm"||action=="grid"){dL.lx++;grid_black_e_w[dL.lx]=new google.maps.Polyline(dL.vG);grid_black_e_w[dL.lx].setMap(dL.map);dL.grid_line_e_w_narrow[dL.lx]=grid_black_e_w[dL.lx].getPath();}for(k=0;k=dL.lT){aq=true;}}if(aq===false){}else{dL.qm=dL.hz.y*dL.by;dL.hz=dL.cp.fromLatLngToPoint(dL.as[ctr-1]);dL.hY=dL.hz.x*dL.by;dL.kt=dL.hz.y*dL.by;dL.jW=(dL.kt-dL.qm)/(dL.hY-dL.kB);dL.qb=dL.kt-(dL.jW*dL.hY);dL.AN=(dL.jW*dL.lT)+dL.qb;o=dL.lT/dL.by;c=dL.AN/dL.by;dL.ac=dL.cp.fromPointToLatLng(new google.maps.Point(o,c));if(action=="grid"){dL.fo=dL.yc;dL.dY++;dL.ep[dL.dY]=new cR({map:dL.map});dL.lat=dL.ac.lat();dL.lng=dL.ac.lng();jp(1);if(isNaN(parseInt(dL.dP.substr(1,1)))){dL.aU=dL.dP.substr(8,4);}else{dL.aU=dL.dP.substr(9,4);}if(dL.fb==4){dL.bQ=dL.aU.substr(0,4);if(dL.aU.substr(4,1)=="9"||dL.aU.substr(4,1)=="8"){if(dL.aU.substr(0,4)=="9999"){dL.bQ="0000";}else{dL.bQ=(parseInt(dL.aU.substr(0,4))+1).toString();}}}else if(dL.fb==3){dL.bQ=dL.aU.substr(0,3);if(dL.aU.substr(3,1)=="9"||dL.aU.substr(3,1)=="8"){if(dL.aU.substr(0,3)=="999"){dL.bQ="000";}else{dL.bQ=(parseInt(dL.aU.substr(0,3))+1).toString();}}}else if(dL.fb==2){dL.bQ=dL.aU.substr(0,2);if(dL.aU.substr(2,2)=="99"||dL.aU.substr(2,2)=="98"){if(dL.aU.substr(0,2)=="99"){dL.bQ="00";}else{dL.bQ=(parseInt(dL.aU.substr(0,2))+1).toString();}}}else{dL.bQ=dL.aU.substr(0,1);if(dL.aU.substr(1,3)=="999"||dL.aU.substr(1,3)=="998"){if(dL.aU.substr(0,1)=="9"){dL.bQ="0";}else{dL.bQ=(parseInt(dL.aU.substr(0,1))+1).toString();}}}if(dL.fb==3){if(dL.bQ.length==1){dL.bQ="00"+dL.bQ;}else if(dL.bQ.length==2){dL.bQ="0"+dL.bQ;}}else if(dL.fb==2){if(dL.bQ.length==1){dL.bQ="0"+dL.bQ;}}}else{cw=""+j;aq=cw.length-5;bK=cw.substr(0,aq);aq=cw.slice(-5);bJ=aq.slice(0,2);bN=aq.slice(-3);dL.bQ=""+bK+""+bJ+""+bN;dL.fo=dL.gX;dL.dY++;dL.ep[dL.dY]=new cR({map:dL.map});}dL.ep[dL.dY].set('text',dL.bQ);dL.ep[dL.dY].set('position',dL.ac);}}}if(action=="grid"&&j%100000==0){dL.dA++;grid_white_e_w[dL.dA]=new google.maps.Polyline(dL.nk);grid_white_e_w[dL.dA].setMap(dL.map);dL.grid_line_e_w[dL.dA]=grid_white_e_w[dL.dA].getPath();for(k=0;k6&&action=="100km"){if(dL.cC.length!=0){if(i==1){if(dL.cC.length==dL.dM.length){gm=0;hq=dL.cC.length-1;dH=1;}else if(dL.cC.length-1==dL.dM.length){gm=0;hq=dL.cC.length-2;dH=1;}else{gm=1;hq=dL.cC.length-2;dH=0;}}else if(i==max){o=Math.abs(dL.cC[0].lng()-dL.cC[1].lng());c=Math.abs(dL.dM[0].lng()-dL.dM[1].lng());if(o=0){aq=dL.tX=dL.cp.fromLatLngToPoint(dL.cC[m]).x*dL.by;dL.uA=dL.cp.fromLatLngToPoint(dL.cC[m+1]).x*dL.by;}else{dL.tX=dL.cp.fromLatLngToPoint(dL.dM[m+dH-1]).x*dL.by;dL.uA=dL.cp.fromLatLngToPoint(dL.dM[m+dH]).x*dL.by;}if(Math.abs(dL.uA-dL.tX)>dL.zj){dL.ht=0;dL.eW=false;if(dL.hZ.contains(dL.cC[m])!==false){dL.ht++;}if(dL.hZ.contains(dL.cC[m+1])!==false){dL.ht++;}if(dL.hZ.contains(dL.dM[m+dH-1])!==false){dL.ht++;}if(dL.hZ.contains(dL.dM[m+dH])!==false){dL.ht++;}if(dL.ht==0){dL.sn=false;dL.zn=new google.maps.LatLngBounds(dL.cC[m],dL.dM[m+dH]);if(dL.hZ.intersects(dL.zn)!==false){dL.sn=true;}}if(dL.ht>0||dL.sn!==false){dL.ac=google.maps.geometry.spherical.interpolate(dL.cC[m],dL.dM[m+dH],0.5);if(dL.wA.contains(dL.ac)===false){if(dL.ht==1||dL.ht==2||dL.sn!==false){dL.dI=dL.ac.lat();dL.cv=dL.ac.lng();dL.eW=false;if(dL.dI>dL.pk){aq=dL.cC[m].lat();if(dL.cC[m+1].lat()>dL.cC[m].lat()){aq=dL.cC[m+1].lat();}if(aq<=dL.vj){dL.eW=true;dL.dI=dL.pk;}}else if(dL.dI=dL.vk){dL.eW=true;dL.dI=dL.mT;}}if(dL.cv>dL.ph){aq=dL.cC[m].lng();if(dL.dM[m+dH-1].lng()>dL.cC[m].lng()){aq=dL.dM[m+dH-1].lng();}if(aq<=dL.wr){dL.eW=true;dL.cv=dL.ph;}}else if(dL.cv=dL.vw){dL.eW=true;dL.cv=dL.nh;}}if(dL.eW!==false){dL.vL=new google.maps.LatLng(dL.dI,dL.cv);}}}aq=dL.wA.contains(dL.ac);if(dL.ht>2||aq!==false||dL.eW!==false){if(dL.eW!==false){dL.eW=false;dL.ac=new google.maps.LatLng(dL.dI,dL.cv);}dL.lW++;dL.mI[dL.lW]=dL.ac;}}}}}cw=dL.dM.length;if(cw>1){dL.cC.length=0;for(m=0;m0){dL.sJ=true;dL.fo=dL.zX;for(i=0;i<=dL.lW;i++){dL.jB[i]=new cR({map:dL.map});dL.lat=dL.mI[i].lat();dL.lng=dL.mI[i].lng();jp(1);if(isNaN(parseInt(dL.dP.substr(1,1)))){aq=dL.dP.substr(2,2);}else{aq=dL.dP.substr(3,2);}dL.jB[i].set('text',aq);dL.jB[i].set('position',dL.mI[i]);}}dL.fM="12466 in grid_4";if(dL.ce=="grid"){dL.debug_sequence="13899 near END of grid_4 func. ___masu.H = "+dL.H+"
    "+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;r(17108,null);}if(dL.at!="desktop"&&(dL.H=="utm"||dL.H=="usng"||dL.H=="mgrs")){fq();}dL.fM="12472 END grid_4";};function tQ(K,yG,ss){dL.vS=dL.as.length-1;dL.as[dL.vS].show="no";for(ag=0;ag=dL.fm){if(dL.fm== -174&&bX>0){}else if(bX>dL.fm){dL.as[ag].show="no";}}else if((dL.kC&dL.oj)!=0){dL.as[ag].show="no";}else if((bX<=dL.ff&&gZ<=dL.ff)||(bX>=dL.fm&&gZ>=dL.fm)){dL.as[ag].show="no";}if((dL.kC|dL.oj)==0){}else if(dL.as[ag].show=="yes"){dL.wE=false;if(zB(gC,bX)){dL.wE=true;aq=bX;bX=gZ;gZ=aq;aq=gC;gC=mW;mW=aq;aq=dL.kC;dL.kC=dL.oj;dL.oj=aq;}dL.dH=0;if(dL.kC&1){if(bX>0&&gZ<0){aq=bX+(180-bX)+(180+gZ);dL.na=((dL.ff* -1)-bX)/(aq-bX);}else{dL.na=(dL.ff-bX)/(gZ-bX);}gC+=dL.na*(mW-gC);if(dL.ff== -180){bX=180;}else{bX=dL.ff;}dL.as[ag]=new google.maps.LatLng(gC,bX);dL.as[ag].show="yes";}else if(dL.kC&2){if(dL.pU=="ew"){dL.dH=1;dL.as[ag].show="yes";}if(bX<0&&gZ>0){aq=bX-(180+bX)-(180-gZ);dL.na=((dL.fm* -1)-bX)/(aq-bX);}else{dL.na=(dL.fm-bX)/(gZ-bX);}gC+=dL.na*(mW-gC);bX=dL.fm;dL.as[ag+dL.dH]=new google.maps.LatLng(gC,bX);dL.as[ag+dL.dH].show="yes";}}}if(dL.as[ag-1].show=="no"){dL.as[ag].show="no";}if(dL.as[ag].toUrlValue(6)==dL.as[ag-1].toUrlValue(6)){dL.as[ag].show="no";}};function vd(lat,lng){dL.lk=0;if(dL.ff== -180&&lng>0){dL.lk|=1;}else if(dL.fm==180&&lng<0){dL.lk|=2;}else{if(lngdL.fm){dL.lk|=2;}}};function zB(lat,lng){if(lngdL.fm){return 0;}return 1;};function va(){if((dL.H=="usng"||dL.H=="mgrs")&&dL.R>3){eL=0;for(i=0;i<20;i++){dL.fS= -80+(8*i);dL.tN=dL.fS+8;if(dL.fS==72){dL.tN=84;}if(dL.fS==80){dL.fS=84;}if(dL.fS>=dL.fg&&dL.fS<=dL.dU){dL.dA++;grid_white_e_w[dL.dA]=new google.maps.Polyline(dL.vY);grid_white_e_w[dL.dA].setMap(dL.map);dL.grid_line_e_w[dL.dA]=grid_white_e_w[dL.dA].getPath();dL.ac=new google.maps.LatLng(dL.fS,dL.ec);dL.grid_line_e_w[dL.dA].push(dL.ac);dL.ac=new google.maps.LatLng(dL.fS,dL.eU);dL.grid_line_e_w[dL.dA].push(dL.ac);if(i==0){dL.hp[eL]=19;}else{dL.hp[eL]=i-1;}eL++;}else{if(eL==0&&i<19){if(dL.dU<= -80){dL.oT=0;}else if(dL.fg>=84){dL.oT=19;}else if(dL.fg>dL.fS&&dL.dU3){eL=0;for(i=0;i<60;i++){dL.dN= -180+(6*i);if(dL.dN==180){dL.dN= -180;}dL.Cw=dL.dN+6;aq=false;if(dL.eU>=0&&dL.ec<0){if((dL.dN>dL.eU&&dL.dN<180)||(dL.dN>= -180&&dL.dN=dL.eU&&dL.dN<=dL.ec){aq=true;if(i==0){dL.eg[eL]=59;}else{dL.eg[eL]=i-1;}eL++;}if(aq!==false){dL.ci++;grid_white_n_s[dL.ci]=new google.maps.Polyline(dL.vY);grid_white_n_s[dL.ci].setMap(dL.map);dL.grid_line_n_s[dL.ci]=grid_white_n_s[dL.ci].getPath();dL.ac=new google.maps.LatLng(dL.dU,dL.dN);dL.grid_line_n_s[dL.ci].push(dL.ac);dL.ac=new google.maps.LatLng(dL.fg,dL.dN);dL.grid_line_n_s[dL.ci].push(dL.ac);}}if(eL==0){i=0;while(i<60&&(-180+(6*i)3&&(dL.H=="usng"||dL.H=="mgrs")&&dL.lO===false){pN=dL.eg.length;qx=dL.hp.length;if(pN!=1||qx!=1){dL.lO=true;dL.fo=dL.xY;for(i=0;idL.pk){if(dL.mi[qT]<=dL.vj){dL.eW=true;dL.dI=dL.pk;}}else if(dL.dI=dL.vk){dL.eW=true;dL.dI=dL.mT;}}if(dL.cv>dL.ph){if(dL.jK[po]<=dL.wr){dL.eW=true;dL.cv=dL.ph;}}else if(dL.cv=dL.vw){dL.eW=true;dL.cv=dL.nh;}}if(dL.eW!==false){dL.vL=new google.maps.LatLng(dL.dI,dL.cv);}};function BH(){max=grid_white_e_w.length;for(i=0;i"+"Current hill shading is "+aq+"
    "+"Only works for 't4 CalTopo Hi-res' maps.
    "+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+"
    02468
    1012141618
    2022242628
    3032343638
    ";r(17601,null);}else{dL.msg=""+"
    "+"
    "+"Click the amount of hill shading you want

    "+"
    "+"Tip: You can also use the '&hillshade=' URL parameter so your preferred setting will already be in place when Gmap4 opens.

    "+"Remember: This adjustable hill shading feature only works with the 't4 CalTopo Hi-res' map view.

    "+"Current hill shade setting is "+aq+"

    "+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+"
    0123456789
    10111213141516171819
    20212223242526272829
    303132333435
    ";r(17651,null);}}else{bF(2);dL.gI=action/100;if(dL.bi=="t4"){dL.map.overlayMapTypes.setAt(0,null);dL.iL=new google.maps.ImageMapType({alt:"Shading",name:"iL",opacity:dL.gI,tileSize:new google.maps.Size(256,256),maxZoom:16,minZoom:8,getTileUrl:function(coord,zoom){return "https://ctrelief.s3.amazonaws.com/relief/"+zoom+"/"+coord.x+"/"+coord.y+".png"}});dL.map.overlayMapTypes.setAt(0,dL.iL);}else{dL.iL=new google.maps.ImageMapType({alt:"Shading",name:"iL",opacity:dL.gI,tileSize:new google.maps.Size(256,256),maxZoom:16,minZoom:8,getTileUrl:function(coord,zoom){return "https://ctrelief.s3.amazonaws.com/relief/"+zoom+"/"+coord.x+"/"+coord.y+".png"}});}}};function tH(){if(dL.ud!==false){dL.dS="looking";dL.hX=0;dL.gq="";dL.qK=false;if(dL.lD=="yes"){if(dL.at=="phone"){dL.msg=dL.mK;}else{dL.msg=dL.nc;}r(17709,null);}dL.tF=navigator.geolocation.watchPosition(zt,CB,{enableHighAccuracy:true,maximumAge:5000});}else{dL.msg="
    The browser does not have the ability to determine your location.
    "+"Reason: The browser does not support the W3C Geolocation standards.";r(17716,null);}};function zt(position){dL.hX++;if(dL.dS=="looking"){bF(2);}dL.iq=position;dL.gv=dL.iq.coords.latitude;dL.fQ=dL.iq.coords.longitude;dL.gq=new google.maps.LatLng(dL.gv,dL.fQ);if(dL.hX==1){dL.qK=true;dL.dS="done";dL.An=new google.maps.MarkerImage("https://propertylinemaps.com/p/png/bombsite/red_circle_black_white_solid_hair.png",new google.maps.Size(31,31),new google.maps.Point(0,0),new google.maps.Point(15,15));dL.pO={clickable:true,draggable:false,icon:dL.An,map:dL.map,position:dL.gq,title:"Your approximate location"};dL.ar=dL.gq;dL.map.setCenter(dL.ar);if(dL.oZ!==false||dL.ev!==false){dL.map.setZoom(dL.cH);}else{if(dL.at=="phone"){if(dL.map.getZoom()<14){dL.map.setZoom(14);}}else{if(dL.map.getZoom()<15){dL.map.setZoom(15);}}}if(dL.oZ!==false&&dL.qE===false){gc();}else if(dL.cl!=""){if(dL.mJ===false){cj("8-B zoom_changed",1);if(dL.at=="desktop"||(dL.H!="usng"&&dL.H!="mgrs")){fq();}}}dL.mC=new google.maps.Marker(dL.pO);google.maps.event.addListener(dL.mC,'click',function(){bF(2);dL.gE=dL.iq.coords.accuracy;dL.BU=dL.iq.coords.altitude;dL.Bp=dL.iq.coords.altitudeAccuracy;dL.Cd=dL.iq.coords.heading;dL.BG=dL.iq.coords.speed;if(!isNaN(dL.gE)){eK=dL.gE*0.000621371192;if(eK>1){eK=""+eK.toFixed(2)+" miles, ";}else{eK=dL.gE*3.2808399;eK=""+eK.toFixed(0)+" feet, ";}if(dL.gE>1000){iV=dL.gE/1000;iV=""+iV.toFixed(2)+" km";}else{iV=""+dL.gE+" meters";}dL.gE=""+eK+iV;}dL.ac=new google.maps.LatLng(dL.gv,dL.fQ);dL.qX=dL.ac;dL.qa=dL.ac;dL.BL=dL.ac.toUrlValue(6);cN="";if(dL.H=="utm"){cN="draw";}eu(cN,"");dL.Ad=dL.cX+"
    ";dL.uL=dL.cX;dL.AS=""+"
    "+""+dL.Ad+"Accuracy = "+dL.gE+"
    "+"
    "+"
    ";dL.jE="Link to your location";dL.Ae=""+"
    "+"
    Close
    "+"
    "+"
    Location off
    "+"
    "+"
    "+"
    "+"
    Link to this spot
    "+"
    "+"
    Directions
    "+"
    ";dL.msg=dL.AS+dL.Ae+"
    ";dL.bx.setContent(dL.msg);dL.bx.setPosition(this.getPosition());dL.bx.open(dL.map);});}else{dL.pO={position:dL.gq};dL.mC.setOptions(dL.pO);if(dL.hX%4==0){dL.rx=dL.map.getBounds();if(dL.rx.contains(dL.gq)){dL.AP=dL.rx.getNorthEast();dL.qi=dL.AP.toUrlValue(6);dL.hs.length=0;dL.hs=dL.qi.split(",");dL.wB=dL.hs[0];dL.wR=dL.hs[1];dL.xo=dL.rx.getSouthWest();dL.qi=dL.xo.toUrlValue(6);dL.hs.length=0;dL.hs=dL.qi.split(",");dL.vN=dL.hs[0];dL.vI=dL.hs[1];eK=Math.abs(dL.wB-dL.vN)/4;iV=Math.abs(dL.wR-dL.vI)/4;if(Math.abs(dL.wB-dL.gv)1){google.maps.event.removeListener(dL.xu);}if(oA.code==1){dL.msg=""+"
    Geolocate failed
    User denied geolocation.

    Please open your settings and turn on location services.

    "+"Mobile users: Please try tapping the 3 dots in the corner of the screen. If you see an option to 'Open in Safari or Chrome' then select that option. You should then be able to do Menu ==> 'My location' and turn geolocation on.";}else if(oA.code==2){dL.msg="
    Geolocate failed
    Position unavailable.";}else if(oA.code==3){}else{dL.msg="
    Geolocate failed. Please notify MappingSupport of the following error message.
    "+oA.message;}r(17984,null);gG("error");gc();};function Bo(){bF(2);dL.ar=dL.gq;dL.map.setCenter(dL.ar);};function qO(action){navigator.geolocation.clearWatch(dL.tF);dL.qK=false;dL.dS="off";dL.gq="";if(action!="error"){bF(2);}if(dL.hX>0){google.maps.event.clearListeners(dL.mC,'click');dL.mC.setMap(null);google.maps.event.removeListener(dL.xu);}dL.hX=0;};function uj(){dL.dQ=0;dL.oe=true;if(dL.dy==0){if(dL.bV=="auto"){if(dL.at=="desktop"){dL.bV="desktop";}else{dL.bV="scroll";}}dL.er=0;dL.uz=0;ir("uj");if(dL.wm!=""){dL.msg=dL.wm;r(23);}dL.dQ=1;dL.lD="no";if("geolocation"in navigator){dL.ud=true;}else{dL.ud=false;}dL.dS="off";dL.nc="
    "+"
    "+"Trying to find you
    "+"
    "+"
    "+"
    Location off
    "+"
    ";dL.mK=""+"
    Trying to find you

    "+"
    "+"
    Location off
    "+"
    ";if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'');};}String.prototype.Ed=function(){return this.replace(/\s+/g,"");};String.prototype.qq=function(){return this.replace(/[\xA0 \s]+/g,' ');};document.title="Map produced by Gmap4 from mappingsupport.com";dL.aq=dL.wl.split("?",1);dL.bO=dL.aq[0];if(dL.bO.indexOf("beta")!= -1){dL.bO="https://mappingsupport.com/p/gmap4.php";}dL.original_url=dL.bO;dL.mG="off";dL.iD="";dL.BV=false;dL.eH="Cursor        ";dL.ti=false;dL.jQ=false;dL.jE="";dL.iR="";dL.dz=new google.maps.Geocoder();dL.hs=[];dL.gv=0;dL.fQ=0;dL.gq="";dL.f= -1;dL.jF=40;dL.lM=6;dL.dT=[];dL.gis_overlay_add_ix_ary=[];dL.gis_overlay_add_ix_ary.aq=[];dL.gis_overlay_delete_ix_ary=[];dL.so=false;dL.gis_sequential_layer_ctr=0;dL.gis_current_added_layer_ctr=0;dL.iA=false;dL.gis_sidebar_ix_ary=[];dL.aW=[];dL.dm=[];dL.cl="";dL.iY=false;dL.ej="";dL.qo=false;dL.Cp=false;dL.mJ=true;dL.Bv=1;dL.iu=[];dL.eN=[];dL.Bg=[];dL.mz="on";dL.cr=[];dL.es= -1;dL.ih= -1;dL.hj='position: relative; left:-22px; top:0px; '+'white-space: nowrap; border: 1px solid black; '+'padding: 2px; background-color: #FFFFCC; font-size:1em; ';dL.Af="";dL.link_to_this_map_help=""+"
    "+"There are 2 ways to 'save' a Gmap4 map. First, you can save all the information needed to replicate your map right in the Gmap4 link itself as parameters. If the link is relatively short this is the best choice. Even if your link includes 2 or 3 layers of GIS data that you added to the map, saving your map as a Gmap4 link is still a good choice.
    "+"
    "+"Second, you can save a text file, put the text file online and make a Gmap4 link that points to the text file. You only should consider this option if you have added more than about 3 layers of GIS data to the map. Google Sites will host your text file for free. For more information please visit the Gmap4 help page and download the pdf file 'Working With Files'";dL.nr=false;dL.Cx=false;dL.dF=null;dL.jS=[];dL.Cv= -1;dL.fe=[];dL.qw="";dL.cb="";dL.ks=0;dL.vQ=false;dL.qB=false;dL.qz="";dL.df=[];dL.nd="";dL.AW="";dL.Dq="";dL.tl=false;dL.lB="";dL.bR=[];for(i=0;i<21;i++){dL.bR[i]=0;}dL.uF="";dL.qI="
    arrow
    ";dL.tL="
    arrow
    ";dL.kW=[];dL.rm=false;dL.kF=false;dL.nK=0;dL.qK=false;dL.kn=4;dL.pv=0;dL.gk=false;dL.sR=18;dL.AQ=""+"
    "+"Gmap4 has 5 built-in overlays that can be displayed on top of any basemap. You can also add overlays from any public-facing ArcGIS server. GIS stands for Geographical Information System. Gmap4 lets you surf data on ArcGIS servers almost as easily as you surf the internet. No special GIS knowledge is required! To get started, click 'Add GIS overlays' and then click 'Help'.
    "+"
    "+"When a GIS overlay is on, there is a number in front of its name. Click the overlay name again to turn it off. Overlays are stacked on top of each other with the highest numbered overlay on top of the stack. To move an overlay to the top of the stack, click its name to turn it off then click again to turn it on.
    "+"
    "+"If you click the map on data that is part of the top overlay, then you will see a display with all the attribute data the GIS server has for the thing that you clicked. Sometimes the attribute data includes a link that leads to more information.
    "+"
    "+"Note that if you change the basemap to 'awb - All white basemap' then your screen will just show the overlay data.
    "+"
    "+"The 3 built-in overlays named Google_traffic, State_legislature_districts and Congress_districts are special overlays and work a bit differently than the GIS overlays.
    ";dL.Cz=0;dL.dX=false;dL.cZ=false;dL.jX=false;dL.aq=[];dL.fa=[];dL.hi=[];dL.aK=[];dL.cd=[];dL.cq=[];dL.tZ=0;dL.jR=[];dL.Be=[];dL.DO=[];dL.ju=[];dL.AE={path:google.maps.SymbolPath.CIRCLE,scale:15,strokeColor:"#FF0000",strokeWeight:5,strokeOpacity:1};dL.mc=[];dL.pZ=[];dL.zT={path:google.maps.SymbolPath.CIRCLE,scale:1,strokeColor:"#FF0000",fillColor:"#FF0000",strokeWeight:3,strokeOpacity:1};dL.qn=false;dL.F=[];dL.nb=[];dL.nt=256;dL.kc=true;dL.kS=false;dL.rh=false;dL.hT="house";dL.CK="one state";dL.gi=2;dL.js=3;dL.nq=2;dL.lQ=3;dL.dV=7;dL.iQ=12;dL.fA="";dL.fh="";dL.DE=true;dL.qF=false;if(dL.eV==""){dL.eV="lower";}dL.yE=[];dL.Ah=[];dL.dG=[];dL.mj=[];dL.TOP_CENTER_is_displayed=false;dL.dk=[];dL.yy=google.maps.version;dL.yQ="May 2, 2017";dL.qk="5/2/2017";dL.il="8.2";dL.tM="";dL.fs="8CFF8C";dL.eE="FF8CFF";if(dL.fw=="on"){dL.mf=" On";}else{dL.mf=" Off";}dL.mr=" Off";dL.km=" On";if(dL.fF=="on"){dL.mv=" On";}else{dL.mv=" Off";}if(dL.De!==false){dL.mk=" On";}else{dL.mk=" Off";}if(dL.eo=="on"){dL.lf=" On";}else{dL.lf=" Off";}if(dL.iW==45){dL.ld=" On";}else{dL.ld=" Off";}dL.wI={path:google.maps.SymbolPath.CIRCLE,fillColor:"#00FFFF",fillOpacity:1,scale:3,strokeColor:"#00FFFF",strokeOpacity:1};dL.vo={path:google.maps.SymbolPath.CIRCLE,scale:15,strokeColor:"#FFFF00",strokeWeight:5,strokeOpacity:1};dL.lp=false;dL.ug=new google.maps.LatLng(38.000000,-16.000000);dL.uk=2;cd=[];if(window==window.top&&top==self){dL.om=true;}else{if(dL.AO=="off"){dL.om=false;}else{dL.om=true;}}var zL=new google.maps.ImageMapType({getTileUrl:function(coord,zoom,ownerDocument){return "http://tileserver.mytopo.com/SecureTile/TileHandler.ashx?mapType=Topo&partnerID=12313&hash="+dL.xw+"&x="+coord.x+"&y="+coord.y+"&z="+zoom;},tileSize:new google.maps.Size(256,256),name:"MyTopo",maxZoom:16,minZoom:9,alt:"Detailed topographic maps"});var zQ=new google.maps.ImageMapType({alt:"Canada Topographic English",getTileUrl:pP,isPng:true,maxZoom:17,minZoom:3,name:"toporama_t5_id",tileSize:new google.maps.Size(256,256)});var tu=new google.maps.ImageMapType({alt:"DRG GeoPDF",name:"tu",opacity:1,tileSize:new google.maps.Size(256,256),maxZoom:16,minZoom:8,getTileUrl:function(coord,zoom){return "https://caltopo.s3.amazonaws.com/topo/"+zoom+"/"+coord.x+"/"+coord.y+".png"}});dL.iL=new google.maps.ImageMapType({alt:"Shading",name:"iL",opacity:dL.gI,tileSize:new google.maps.Size(256,256),maxZoom:16,minZoom:8,getTileUrl:function(coord,zoom){return "https://ctrelief.s3.amazonaws.com/relief/"+zoom+"/"+coord.x+"/"+coord.y+".png"}});dL.zy=new google.maps.ImageMapType({alt:"USDA Farm Service Agency aerials",getTileUrl:pP,isPng:false,maxZoom:18,minZoom:1,name:"Aerial NAIP",tileSize:new google.maps.Size(256,256)});var tA=new google.maps.ImageMapType({name:"tA",alt:"ArcGis USA Topos",minZoom:1,maxZoom:15,tileSize:new google.maps.Size(256,256),isPng:false,getTileUrl:function(coord,zoom){url="https://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/"+zoom+"/"+coord.y+"/"+coord.x;return url;}});var tJ=new google.maps.ImageMapType({name:"tJ",alt:"ArcGis World Topos",minZoom:1,maxZoom:16,tileSize:new google.maps.Size(256,256),isPng:false,getTileUrl:function(coord,zoom){return "https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/"+zoom+"/"+coord.y+"/"+coord.x;}});var uR=new google.maps.ImageMapType({name:"uR",alt:"Open Cycle - Worldwide Topo",minZoom:1,maxZoom:18,tileSize:new google.maps.Size(256,256),isPng:false,getTileUrl:function(coord,zoom){return "https://tile.thunderforest.com/cycle/"+zoom+"/"+coord.x+"/"+coord.y+".png?apikey=0c97e28f525442edbef31aa6160f7858";}});var rC=new google.maps.ImageMapType({name:"rC",alt:"Open Street Map",minZoom:1,maxZoom:18,tileSize:new google.maps.Size(256,256),isPng:false,getTileUrl:function(coord,zoom){return "http://tile.openstreetmap.org/"+zoom+"/"+coord.x+"/"+coord.y+".png";}});dL.bc_basemap=new google.maps.ImageMapType({alt:"British Columbia basemap",getTileUrl:pP,isPng:false,maxZoom:21,minZoom:1,name:"BC basemap",tileSize:new google.maps.Size(256,256)});dL.EA="all_white_id";dL.vT=new google.maps.ImageMapType({alt:"All white basemap",isPng:true,maxZoom:21,minZoom:1,name:"All white basemap",tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url="https://sites.google.com/site/gmap4files/p/png/white_tile.png";return url;}});dL.ta=new google.maps.TrafficLayer();dL.eQ=0;if(dL.nP!=""){dL.sa=[];dL.sa=dL.nP.split("||");dL.ks=dL.sa.length;dL.Q=[];dL.eh=[];dL.bM=[];dL.J=[];dL.d=[];dL.mH=[];dL.gis_url_for_text_file=[];dL.mp=[];dL.bP=[];dL.lJ=[];dL.fd=[];dL.kw=[];dL.cV=[];dL.ds=[];for(i=0;i<=dL.jF;i++){dL.dT[i]="_";}for(f=0;fdL.sR){dL.gk=true;dL.pv=Math.floor(dL.kn/2)-1;}}max=dL.J.length;for(i=0;i"+dL.J[i]+"
    ";}}dL.TOP_RIGHT_basemap_dropdown_content+="
    awb - All white basemap
    ";dL.mx=[];dL.lV=[];dL.oI=[];aK=dL.yZ.split("||");dL.ns=aK.length;for(i=0;idL.dV){dL.cH=dL.dV;}}}dL.aq=dL.du.split(",");dL.ar=new google.maps.LatLng(parseFloat(dL.aq[0]),parseFloat(dL.aq[1]));dL.options={center:dL.ar,disableDefaultUI:false,disableDoubleClickZoom:false,draggableCursor:'default',draggingCursor:'move',fullscreenControl:false,mapTypeControl:false,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.ROADMAP,],style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},rotateControl:false,rotateControlOptions:{position:google.maps.ControlPosition.LEFT_TOP},scaleControl:true,scrollwheel:dL.om,tilt:dL.iW,zoom:dL.cH,streetViewControl:dL.jO,streetViewControlOptions:{position:google.maps.ControlPosition.LEFT_TOP},zoomControl:dL.nX,zoomControlOptions:{style:google.maps.ZoomControlStyle.LARGE,position:google.maps.ControlPosition.LEFT_TOP}};dL.map=new google.maps.Map(document.getElementById("dR"),dL.options);dL.map.mapTypes.set('mytopo_id',zL);dL.map.mapTypes.set('matt_id',tu);dL.map.mapTypes.set('toporama_t5_id',zQ);dL.map.overlayMapTypes.push(null);dL.map.mapTypes.set('naip_id',dL.zy);dL.map.mapTypes.set('esri_usa_topo_id',tA);dL.map.mapTypes.set('esri_world_topo_id',tJ);dL.map.mapTypes.set('topo_world_oc_id',uR);dL.map.mapTypes.set('open_street_map_id',rC);dL.map.mapTypes.set('bc_id',dL.bc_basemap);for(i=0;i"+"The data file is: "+dL.kx+"
    "+"Google sent this error message: "+fH;dL.msg+="

    For more information about this error message please go to the Gmap4 help page and download the pdf file 'Working With Files'.";r(18736,null);}});ik=dL.cH;google.maps.event.addListenerOnce(dL.hy,"defaultviewport_changed",function(){google.maps.event.addListenerOnce(dL.map,"bounds_changed",function(){dL.qw="q file loading";if(dL.ev){dL.map.setZoom(ik);}if(dL.du!="0,0"){uU=dL.du.split(",");dL.ar=new google.maps.LatLng(parseFloat(uU[0]),parseFloat(uU[1]));dL.map.setCenter(dL.ar);}else{dL.ar=dL.map.getCenter();}if(dL.dS=="done"){dL.ar=new google.maps.LatLng(dL.gv,dL.fQ);dL.map.setCenter(dL.ar);}hW();hR("close");document.getElementById("dR").style.display="block";document.getElementById("dR").style.visibility="visible";if(dL.dS=="looking"){if(dL.at=="phone"){dL.msg=dL.mK;}else{dL.msg=dL.nc;}r(18781,null);}dL.lD="yes";if(dL.dS=="error"){bF(2);r(18788,null);}if(dL.fw!="on"){gc();}});});dL.qN="^";if(dL.rw!=""){dL.fa.length=0;dL.fa=dL.rw.split("≡≡");dL.kq=dL.fa.length;dL.mz="on";for(i=2;i"+"
    "+"
    "+"
    "+"
    Close
    "+"
    "+"
    "+"
    "+dL.name+"
    "+dL.description+"
    ";dL.bx.setContent(dL.msg);dL.bx.setPosition(rn);dL.bx.open(dL.map);},300);});});}if(dL.ze!=""){oQ();if(dL.eV=="lower"){dL.hT="house";}else if(dL.eV=="upper"){dL.hT="senate";}cL("kmz","initialize");}if(dL.aD=="congress_all_states"||dL.aD=="congress_one_state"){oQ();if(dL.aD=="congress_one_state"){dL.kQ=dL.py;dL.sB=dL.mV+dL.dq+dL.jG;dL.sy=dL.kP+dL.py+dL.kd;}cL("kmz","initialize");}if(dL.of==1||dL.nJ!=""){dL.fa.length=0;dL.fa=dL.nJ.split("≡≡");dL.kq=dL.fa.length;dL.zz=0;dL.msg="";dL.gg="off";dL.gY= -1;dL.line=[];dL.lq="off";dL.mq= -1;dL.circle=[];dL.kk=[];dL.jh=[];dL.fr= -1;dL.fr++;dL.kk[dL.fr]="DEFAULT";dL.jh[dL.fr]="https://maps.gstatic.com/mapfiles/ms2/micons/red-dot.png";dL.fr++;dL.kk[dL.fr]="PRS";dL.jh[dL.fr]="https://propertylinemaps.com/p/png/paddles/red_blank_small.png";dL.fr++;dL.kk[dL.fr]="PGS";dL.jh[dL.fr]="https://propertylinemaps.com/p/png/paddles/green_blank_small.png";dL.hJ= -1;dL.cJ=[];dL.jH=[];dL.iw=[];for(i=0;i<5;i++){dL.jH=false;}dL.rk=false;if(dL.hM.indexOf("https://mappingsupport.com/p/recreation/usfs")==0){dL.rk=true;}if(dL.zz!=0){dL.msg="Error in the data file
    "+"The data file is: "+dL.kx+"
    "+dL.msg;r(18981,null);}else{if(dL.gp===false){if(dL.jk!= -90){dL.bounds_point_line_data=new google.maps.LatLngBounds(new google.maps.LatLng(dL.vR,dL.wU),new google.maps.LatLng(dL.jk,dL.pD));}dL.jy=Number(dL.jy);if(dL.jy>0){dL.hG=new google.maps.LatLng(parseFloat(dL.zf),parseFloat(dL.zR));options={center:dL.hG,radius:dL.jy};dL.xZ=new google.maps.Circle(options);dL.bounds_circle_data=dL.xZ.getBounds();}if(dL.jk== -90&&dL.jy==0){if(dL.du=="0,0"){dL.ar=dL.ug;dL.map.setCenter(dL.ar);dL.map.setZoom(dL.uk);}}else{if(dL.jk!= -90&&dL.jy>0){dL.jV=dL.bounds_point_line_data.union(dL.bounds_circle_data);}else if(dL.jk!= -90){dL.jV=dL.bounds_point_line_data;}else{dL.jV=dL.bounds_circle_data;}if(dL.jk!= -90&&dL.jy==0&&dL.jk==dL.vR&&dL.pD==dL.wU){dL.ar=new google.maps.LatLng(dL.jk,dL.pD);dL.map.setCenter(dL.ar);}else{dL.map.fitBounds(dL.jV);}}}google.maps.event.addListenerOnce(dL.map,"bounds_changed",function(){if(dL.ev!==false){dL.map.setZoom(dL.cH);}if(dL.du!="0,0"){uO=dL.du.split(",");dL.ar=new google.maps.LatLng(parseFloat(uO[0]),parseFloat(uO[1]));dL.map.setCenter(dL.ar);}if(dL.dS=="done"){dL.ar=new google.maps.LatLng(dL.gv,dL.fQ);dL.map.setCenter(dL.ar);}hW();hR("close");document.getElementById("dR").style.display="block";document.getElementById("dR").style.visibility="visible";if(dL.dS=="looking"){if(dL.at=="phone"){dL.msg=dL.mK;}else{dL.msg=dL.nc;}r(19040,null);}dL.lD="yes";if(dL.dS=="error"){bF(2);r(19047,null);}dL.ar=dL.map.getCenter();if(dL.eo=="on"){if(dL.sp!==undefined){dL.sj.setPosition(dL.ar);}}if(dL.map.getBounds()===undefined){google.maps.event.addListenerOnce(dL.map,"bounds_changed",function(){if(dL.fw!="on"){gc();}});}else{if(dL.fw!="on"){gc();}}dL.mJ=false;});dL.qy="";dL.mo="";dL.kZ="off";dL.my=[];dL.lA= -1;dL.bS=[];for(i=0;i0){dL.dj=dL.iw[1];dL.cJ[1]=new google.maps.KmlLayer(dL.dj,dL.lz);dL.cJ[1].setMap(dL.map);google.maps.event.addListenerOnce(dL.cJ[1],'status_changed',function(){wb=dL.cJ[1].getStatus();if(wb=='OK'){dL.jH[1]=true;google.maps.event.addListener(dL.cJ[1],'click',function(kmlEvent){dL.dF=setTimeout(function(){dL.cy=kmlEvent.featureData.snippet;if(dL.cy!==undefined&&dL.name!="?"){jZ();}kX(kmlEvent);},300);});if(dL.hJ>1){dL.dj=dL.iw[2];dL.cJ[2]=new google.maps.KmlLayer(dL.dj,dL.lz);dL.cJ[2].setMap(dL.map);google.maps.event.addListenerOnce(dL.cJ[2],'status_changed',function(){wX=dL.cJ[2].getStatus();if(wX=='OK'){dL.jH[2]=true;google.maps.event.addListener(dL.cJ[2],'click',function(kmlEvent){dL.dF=setTimeout(function(){dL.cy=kmlEvent.featureData.snippet;if(dL.cy!==undefined&&dL.name!="?"){jZ();}kX(kmlEvent);},300);});if(dL.hJ>2){dL.dj=dL.iw[3];dL.cJ[3]=new google.maps.KmlLayer(dL.dj,dL.lz);dL.cJ[3].setMap(dL.map);google.maps.event.addListenerOnce(dL.cJ[3],'status_changed',function(){vZ=dL.cJ[3].getStatus();if(vZ=='OK'){dL.jH[3]=true;google.maps.event.addListener(dL.cJ[3],'click',function(kmlEvent){dL.dF=setTimeout(function(){dL.cy=kmlEvent.featureData.snippet;if(dL.cy!==undefined&&dL.name!="?"){jZ();}kX(kmlEvent);},300);});if(dL.hJ>3){dL.dj=dL.iw[4];dL.cJ[4]=new google.maps.KmlLayer(dL.dj,dL.lz);dL.cJ[4].setMap(dL.map);google.maps.event.addListenerOnce(dL.cJ[4],'status_changed',function(){ww=dL.cJ[4].getStatus();if(ww=='OK'){dL.jH[4]=true;google.maps.event.addListener(dL.cJ[4],'click',function(kmlEvent){dL.dF=setTimeout(function(){dL.cy=kmlEvent.featureData.snippet;if(dL.cy!==undefined&&dL.name!="?"){jZ();}kX(kmlEvent);},300);});}else{dL.msg="Problem displaying the data file
    "+"The data file is: "+dL.dj+"
    "+"Google sent this error message: "+aq;r(112);}});}}else{dL.msg="Problem displaying the data file
    "+"The data file is: "+dL.dj+"
    "+"Google sent this error message: "+aq;r(19280,null);}});}}else{dL.msg="Problem displaying the data file
    "+"The data file is: "+dL.dj+"
    "+"Google sent this error message: "+aq;r(111);}});}}else{dL.msg="Problem displaying the data file
    "+"The data file is: "+dL.dj+"
    "+"Google sent this error message: "+aq;r(19302,null);}});}}else{dL.msg="Problem displaying the data file
    "+"The data file is: "+dL.dj+"
    "+"Google sent this error message: "+aq;r(19313,null);}});}}else if(dL.bS[0]=="rest"){}else if(dL.bS[0]=="symbol"){if(dL.bS[2]!=""){dL.fr++;dL.kk[dL.fr]=dL.bS[2];aq=dL.bS[1];if(aq=="https://propertylinemaps.com/p/png/square/15x15x2_box_aqua.png"){dL.nf=new google.maps.MarkerImage(aq,new google.maps.Size(15,15),new google.maps.Point(0,0),new google.maps.Point(7,7));dL.jh[dL.fr]=dL.nf;}else{dL.jh[dL.fr]=aq;}}}else if(dL.bS[0]=="title"){}else if(dL.bS[0]=="line"){dL.gg=dL.bS[1];if(dL.gg=="on"){dL.lq="off";dL.av=dL.bS[3];dL.au=dL.bS[5];dL.linesymbol=dL.bS[7];dL.AV=dL.bS[9];dL.qY=dL.bS[11];dL.qZ=dL.bS[13];if(dL.AV=="ON"){dL.qY="M 0,-1 0,"+dL.qY;dL.qZ=""+dL.qZ+"px";dL.zh={path:dL.qY,strokeOpacity:1};aJ={strokeColor:dL.au,strokeOpacity:0,strokeWeight:dL.av,icons:[{icon:dL.zh,offset:'0',repeat:dL.qZ}]}}else{aJ={strokeColor:dL.au,strokeOpacity:1,strokeWeight:dL.av}}dL.gY++;dL.kW[dL.gY]=new google.maps.Polyline(aJ);dL.kW[dL.gY].setMap(dL.map);dL.line[dL.gY]=[];dL.line[dL.gY]=dL.kW[dL.gY].getPath();}}else if(dL.bS[0]=="circle"){dL.lq=dL.bS[1];if(dL.lq=="on"){dL.gg="off";dL.yP=dL.bS[3];dL.sf=dL.bS[5];Dp={strokeColor:dL.sf,strokeWeight:dL.CF}}}else if(dL.bS[0]=="label"){dL.mz=dL.bS[1];if(dL.mz=="on"){aq=dL.fa[i].indexOf("satellitecss");dL.wq=dL.fa[i].substring(13,aq-1);dL.wZ=dL.fa[i].substring(aq+13);}}else if(dL.bS[0]=="description"){dL.kZ=dL.bS[1];}}else{dL.hG=new google.maps.LatLng(dL.bS[0],dL.bS[1]);if((dL.gg=="off"&&dL.lq=="off"&&dL.bS[4]!="NOSYMBOL")||(dL.gg=="on"&&(dL.bS[4]!==undefined&&dL.bS[4]!=""&&dL.bS[4]!="NOSYMBOL"))||dL.linesymbol=="ON"){dL.lA++;if(dL.bS[4]==""||dL.bS[4]===undefined){if(dL.mo==""){dL.lX="";}else{dL.lX=dL.mo;}}else{if(dL.bS[4]==dL.qy){dL.lX=dL.mo;}else{if(dL.bS[4]=="KML ENDPOINT"){dL.qy=dL.bS[4];dL.mo=dL.wI;dL.lX=dL.wI;}else{for(j=0;j<=dL.fr;j++){if(dL.kk[j]==dL.bS[4]){dL.qy=dL.bS[4];dL.mo=dL.jh[j];dL.lX=dL.jh[j];}}}}}options={clickable:true,draggable:false,icon:dL.lX,map:dL.map,position:dL.hG,title:dL.bS[2]};dL.my[dL.lA]=new google.maps.Marker(options);dL.my[dL.lA].index=i;dL.my[dL.lA].description=dL.bS[3];dL.my[dL.lA].gg=dL.gg;if(dL.kZ=="on"||dL.kZ=="plm"||dL.kZ=="plm2"||(dL.bS[3]!=""&&dL.bS[3]!==undefined)){google.maps.event.addListener(dL.my[dL.lA],'click',function(){dL.ax=this;dL.dF=setTimeout(function(){bF(2);dL.hc=dL.ax.getPosition();dL.sU=dL.ax.getTitle();dL.kY=dL.ax.description;dL.Ac=dL.ax.gg;dL.Df=dL.ax.index;if((dL.kY!=""&&dL.kY!==undefined)){dL.content=dL.kY;}else if(dL.kZ=="on"){dL.content=""+dL.sU+"
    "+dL.hc.toUrlValue(6);}else{tS="Corner "+dL.sU+"
    ";if(dL.Ac=="off"){tS="";}dL.content=""+tS+"Datum WGS84
    "+"Approximate Latitude, Longitude
    "+dL.hc.toUrlValue(6)+"
    "+"This is not a survey.
    "+"Produced by PropertyLineMaps.com";}dL.content=""+"
    "+"
    "+"
    "+"
    "+"
    Close
    "+"
    "+"
    "+"
    "+dL.content+"
    ";dL.bx.setContent(dL.content);dL.bx.setPosition(dL.hc);dL.bx.open(dL.map);},300);});}}dL.nL=false;if((dL.bS[5]!=""||dL.bS[2]!="")&&dL.mz!="off"&&dL.bS[5]!="nolabel"){dL.es++;dL.cr[dL.es]=[];dL.cr[dL.es][0]=dL.hG;dL.cr[dL.es][1]=dL.wq;dL.cr[dL.es][2]=dL.wZ;if(dL.bS[5]!=""){dL.cr[dL.es][3]=dL.bS[5];}else{dL.cr[dL.es][3]=dL.bS[2];}if(dL.fF=="on"){oP(dL.es);}}if(dL.rk!==false&&dL.bS[2]==""&&dL.bS[3]==""&&dL.bS[4]=="NOSYMBOL"&&dL.bS[5]!=""){dL.nL=true;dL.ih++;dL.fe[dL.ih]=[];dL.fe[dL.ih][0]=dL.hG;dL.fe[dL.ih][1]=dL.wq;dL.fe[dL.ih][2]=dL.wZ;dL.fe[dL.ih][3]=dL.bS[5];oP(dL.ih);}if(dL.gg=="on"){dL.lq="off";dL.line[dL.gY].push(dL.hG);}else if(dL.lq=="on"){dL.gg="off";vs=parseInt(dL.bS[2]);options={center:dL.hG,clickable:false,draggable:false,fillOpacity:0,map:dL.map,radius:vs,strokeColor:dL.sf,strokeOpacity:1,strokeWeight:dL.yP};dL.mq++;dL.circle[dL.mq]=new google.maps.Circle(options);dL.circle[dL.mq].setMap(dL.map);dL.circle[dL.mq].description=dL.bS[3];if(dL.bS[3]!=""&&dL.bS[3]!==undefined){google.maps.event.addListener(dL.circle[dL.mq],'click',function(){dL.tV=this;dL.dF=setTimeout(function(){bF(2);dL.xN=dL.tV.getCenter();dL.rM=dL.tV.description;if((dL.rM!=""&&dL.rM!==undefined)){dL.content=""+"
    "+"
    "+"
    "+"
    "+"
    Close
    "+"
    "+"
    "+"
    "+dL.rM+"
    ";}dL.bx.setContent(dL.content);dL.bx.setPosition(dL.xN);dL.bx.open(dL.map);},300);});}}}}}}if(dL.hM==""&&dL.nJ==""){if(dL.ev!==false){dL.map.setZoom(dL.cH);}if(dL.du=="0,0"){dL.ar=dL.ug;dL.map.setCenter(dL.ar);dL.map.setZoom(dL.uk);}else{dL.map.setCenter(dL.ar);}hW();if(dL.dS=="done"){dL.ar=new google.maps.LatLng(dL.gv,dL.fQ);dL.map.setCenter(dL.ar);}hR("close");document.getElementById("dR").style.display="block";document.getElementById("dR").style.visibility="visible";if(dL.dS=="looking"){if(dL.at=="phone"){dL.msg=dL.mK;}else{dL.msg=dL.nc;}r(19684,null);}dL.lD="yes";if(dL.dS=="error"){bF(2);r(19691,null);}if(dL.map.getBounds()===undefined){google.maps.event.addListenerOnce(dL.map,"bounds_changed",function(){if(dL.fw!="on"){gc();}});}else{if(dL.fw!="on"){gc();}}}if(dL.wd!=""){dL.msg=dL.wd;r(19726,null);}if(dL.nV!=""){if(dL.nV=="ch"){dL.nf=new google.maps.MarkerImage(dL.ru,new google.maps.Size(33,33),new google.maps.Point(0,0),new google.maps.Point(16,16));}else{dL.nf=dL.ru;}dL.xA={clickable:true,draggable:false,icon:dL.nf,map:dL.map,position:dL.ar,title:dL.Bu};dL.Cc=new google.maps.Marker(dL.xA);}dL.zu=new google.maps.MarkerImage("https://www.propertylinemaps.com/p/png/center/center_25px_100opacity.png",new google.maps.Size(25,25),new google.maps.Point(0,0),new google.maps.Point(12,12));dL.Al=new google.maps.MarkerImage("https://propertylinemaps.com/p/png/center/center_41px.png",new google.maps.Size(41,41),new google.maps.Point(0,0),new google.maps.Point(20,20));if(dL.eo=="on"){ek();}if(dL.he!="icepeak"){if(dL.bV!="desktop"&&dL.H!="usng"&&dL.H!="mgrs"){dL.hE.innerHTML="Zoom level "+dL.map.getZoom();}}dL.og=false;google.maps.event.addListener(dL.map,"dblclick",function(ct){clearTimeout(dL.dF);dL.og=true;if(dL.ce=="sequence"){dL.debug_sequence="16867 dblclick fired
    "+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;r(19808,null);}dL.qw="dblclick";});google.maps.event.addListener(dL.map,"rightclick",function(ct){if(dL.ce=="sequence"){dL.sequence="16708 rightclick fired
    "+dL.sequence;dL.msg="Push down stack
    "+dL.sequence;r();}dL.center_changed_skip_listener_1=true;dL.center_changed_skip_listener_2=true;if(dL.iD==""){dL.iD=dL.map.getCenter();}bF(1);dL.ac=ct.latLng;dL.qX=dL.ac;dL.qa=dL.ac;tR();wi=dL.rd;dL.bx.setContent(wi);dL.bx.setPosition(ct.latLng);dL.bx.open(dL.map);google.maps.event.addListenerOnce(dL.map,"idle",function(){dL.center_changed_skip_listener_1=false;dL.center_changed_skip_listener_2=false;});});google.maps.event.addListener(dL.map,"dragstart",function(){dL.lp=true;if(dL.ce=="sequence"){dL.debug_sequence="16749 dragstart fired
    "+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;r(19867,null);}dL.wh=dL.map.getBounds();});google.maps.event.addListener(dL.map,"idle",function(){dL.debug_idle_ctr++;dL.center_changed_skip_listener_1=false;dL.center_changed_skip_listener_2=false;if(dL.ce=="sequence"){dL.debug_sequence="16772 idle fired. ___masu.debug_idle_ctr = "+dL.debug_idle_ctr+" ___window.innerHeight = "+window.innerHeight+" ___document.body.clientHeight = "+document.body.clientHeight+" ___masu.er = "+dL.er+"
    "+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;r(19893,null);}if(dL.ce=="grid"){dL.debug_sequence="16890 idle fired. ___masu.debug_idle_ctr = "+dL.debug_idle_ctr+" ___window.innerHeight = "+window.innerHeight+" ___document.body.clientHeight = "+document.body.clientHeight+" ___masu.er = "+dL.er+"
    "+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;r(19900,null);}if(dL.bV!="desktop"&&(window.innerHeight-dL.de>150||window.innerHeight"+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;r(19942,null);}dL.qA=true;dL.wh=dL.map.getBounds();if(dL.nd!=""){if(dL.bi=="t4"){if(dL.cH<=12){if(dL.nd==""){dL.msg='Please zoom in to see the high resolution "t4 CalTopo Hi-res" maps.';r(19964,null);}dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].clear();I("t1","false",-1,"zoom_changed");dL.jX=true;}}else if(dL.jX&&dL.cH>12){bF(2);dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].clear();I("t4","false",-1,"zoom_changed");}}if(dL.fA!=""||dL.fh!=""){if(dL.fB===false){if(dL.aD=="congress_all_states"&&dL.cH>dL.dV){dL.map.setZoom(dL.dV);if(dL.qz!="voting district attributes"){if(dL.kS===false){dL.msg=""+"In order to zoom in more please select a state.
    "+"1. Click the basemap button (next to the 'Menu' button).
    "+"2. Look under the 'Overlay' heading. Mobile users need to scroll down.
    "+"3. Select 'Congress_districts'.
    "+"4. Select a state.
    "+"
    "+"For more information please see the congress map tips.";r(20007,null);}else{dL.kS=false;}}if(dL.kr!==false){dL.kr=false;}}else{if(dL.kr!==false){dL.kr=false;}else{if(dL.cH<=dL.iQ){if(dL.fA=="gis"||dL.fh=="gis"){cL("kmz","zoom_changed");}}else{if(dL.fA=="kmz"||dL.fh=="kmz"){cL("gis","zoom_changed");}}}}}}if(dL.he!="icepeak"){if(dL.bV!="desktop"&&dL.H!="usng"&&dL.H!="mgrs"){dL.hE.innerHTML="Zoom level "+dL.cH;}}dL.qA=false;});lC("on","function initialize");google.maps.event.addListener(dL.map,"center_changed",function(){if(dL.center_changed_skip_listener_1!==false){dL.center_changed_skip_listener_1=false;}else if(dL.center_changed_skip_listener_2!==false){dL.center_changed_skip_listener_2=false;}else{if(dL.dQ>=3&&dL.og===false&&dL.lp===false){ir("center_changed 1");dL.fM="15358";if(dL.ly!==false){dL.qo=true;dL.fM="15366";dL.center_changed_skip_listener_1=true;dL.map.setCenter(dL.ar);if(dL.cl!=""){dL.fM="15370";cj("function nS",1);dL.fM="15376";}}}dL.fM="15387";dL.ar=dL.map.getCenter();if(dL.eo=="on"){dL.sj.setPosition(dL.ar);}if(!dL.lp!==false&&dL.lU!==false&&(dL.at=="desktop"||dL.at=="tablet")){dL.kl=dL.ar.lat().toFixed(6)+','+dL.ar.lng().toFixed(6);pH(dL.kl);}dL.qw="";cN="";if(dL.H=="utm"){cN="center";}dL.ac=dL.ar;eu(cN,"");c="Center ";if(dL.at=="phone"){c="";}dL.fO=""+c+dL.cX;dL.fM="15455";dL.hB="";if(dL.og!==false){dL.og=false;dL.eH="Cursor        ";}dL.fM="15465";if(dL.at=="desktop"||(dL.H!="usng"&&dL.H!="mgrs")){fq();}}});google.maps.event.addListener(dL.bx,'domready',function(){zF=dL.map.getCenter();if(dL.iD!=zF){if(dL.H=="utm"||dL.H=="usng"||dL.H=="mgrs"){cj('11 domready',1);}}});google.maps.event.addListener(dL.map,"mouseout",function(){dL.eH="Cursor        ";fq();});google.maps.event.addListener(dL.map,"mousemove",function(ct){cN="";if(dL.H=="utm"){cN="null";}dL.ac=ct.latLng;eu(cN,"");dL.eH="Cursor "+dL.cX;if(dL.at=="desktop"||(dL.H!="usng"&&dL.H!="mgrs")){fq();}});google.maps.event.addListenerOnce(dL.map,"mouseover",function(ct){cN="";if(dL.H=="utm"){cN="point";}dL.ac=ct.latLng;eu(cN,"");dL.eH="Cursor "+dL.cX;if(dL.at=="desktop"||(dL.H!="usng"&&dL.H!="mgrs")){fq();}});}if((dL.hM.search("USA_wildland_fire.txt")> -1)||(dL.hM.search("USA_wildland_fire_2.txt")> -1)||(dL.hM.search("wildland_fires_basic.txt")> -1)){dL.msg="Please update your link for the wildland fire map.
    "+"Some of the GIS overlay layers on the link you are using are no longer available.
    "+"
    "+"Please use version 3 of the fire map:
    "+"https://mappingsupport.com/p/gmap4.php?ll=42.383908,-116.391907&z=6&t=m,Fire_perimeter,MODIS_from_GeoMAC&q=https://propertylinemaps.com/p/public_land_map/USA/USA_wildland_fire_3.txt
    "+"
    "+"You can easily make your own custom map link.
    "+"1. Make the map look the way you want it to look.
    "+"2. Click Menu ==> Link to this map
    "+"
    "+"Have a question? Send Joseph an email";r(20135,null);}dL.dQ++;dL.oe=false;if(dL.startup_message!=""&&dL.startup_message!==undefined){dL.msg=dL.startup_message;r(20037,null);}};function jZ(){dL.iu.length=0;dL.iu=dL.cy.split(",");if(dL.iu[0]=="blue circle 1"){if(dL.vK!==undefined){dL.vK.setMap(null);dL.AK.setMap(null);}dL.vK=new google.maps.Marker({position:new google.maps.LatLng(dL.iu[1],dL.iu[2]),icon:dL.vo,draggable:false,map:dL.map});dL.AK=new google.maps.Marker({position:new google.maps.LatLng(dL.iu[3],dL.iu[4]),icon:dL.vo,draggable:false,map:dL.map});}};function lC(action,K){if(action=="off"){if(dL.nr!==false){dL.nr=false;google.maps.event.clearListeners(dL.map,'click');}}else{if(dL.eQ==0){}else{if(dL.nr===false){dL.nr=true;google.maps.event.addListener(dL.map,'click',function(ct){dL.dF=setTimeout(function(){bF(2);if(dL.fA!="kmz"&&dL.fh!="kmz"){if(dL.vQ!==false&&dL.qB===false){dL.msg="A single click on this map does not do anything. All of the GIS overlay layers that this map can display come from WMS servers. Gmap4 cannot presently display GIS attribute data for WMS layers. This feature might be added in the future.
    ";r(16.1);}else{if(jn){if(dL.eQ==0){}else{if(dL.lF==""&&dL.dq==""){}else{eR("open");if(dL.aD=="state_house"||dL.aD=="state_senate"){aq="https://mappingsupport.com/p/php_get_openstates_57.php?latlng="+ct.latLng.toUrlValue(6)+"&chamber="+dL.eV+"&state="+dL.dq+"&K=gmap4_3&at="+dL.at;cA.open("GET",aq,true);cA.send();}else{cN="";if(dL.H=="utm"){cN="point";}bY="";if(dL.H=="latlng-dm"||dL.H=="latlng-dms"){bY="latlng-d";}dL.ac=ct.latLng;eu(cN,bY);dL.cX=dL.cX.replace(/[  \s]+/g,"_");if(dL.fd[3]=="on"&&dL.rj=="Congress_districts"){dL.lF="https://congress";dL.oM=4;}dL.tO="https://mappingsupport.com/p/php_gis_attribute_html.php?device="+dL.at+"&ll="+ct.latLng.toUrlValue(6)+"&coo"+"rd_display="+dL.cX+"&z="+dL.map.getZoom()+"&rest="+dL.lF+"&layers="+dL.oM+"&count="+dL.tz+"&name="+dL.rj;cA.open("GET",dL.tO,true);cA.send();}}}}else{dL.msg="Your browser is not compatible with the process for obtaining GIS attribute data. Please try the current version of Firefox or Chrome.";r(20427,null);}}}},300);});}}}};function oP(ag){if(dL.nL){dL.fo=dL.hj+dL.fe[ag][1];dL.kz=false;if(dL.bi=='h'||dL.bi=='s'||dL.bi=='naip'){dL.kz=true;dL.fo+=dL.fe[ag][2];}dL.jS[ag]=new cR({map:dL.map});dL.jS[ag].set('position',dL.fe[ag][0]);dL.jS[ag].set('text',dL.fe[ag][3]);}else{dL.fo=dL.hj+dL.cr[ag][1];dL.gF=false;if(dL.bi=='h'||dL.bi=='s'||dL.bi=='naip'){dL.gF=true;dL.fo+=dL.cr[ag][2];}dL.eN[ag]=new cR({map:dL.map});dL.eN[ag].set('position',dL.cr[ag][0]);dL.eN[ag].set('text',dL.cr[ag][3]);}};function BP(){o=dL.map.getCenter();c='https://mytopo.com/searchgeo.cfm?lat='+o.lat().toFixed(6)+'&lon='+o.lng().toFixed(6)+'&partnerid=12313';document.getElementById("mytopo_print_map_id").href=c;return;};function hR(action){if(action=="close"){document.getElementById("wk").style.display="none";clearTimeout(dL.zl);}else if(action=="continue"){dL.fV++;if(dL.fV==22){dL.fV=1;}document.getElementById("oN").innerHTML=dL.cK[dL.fV];dL.zl=setTimeout("hR('continue')",75);}else{dL.fV=0;hR("continue");}};function eR(action){if(action=="close"){clearTimeout(dL.up);}else if(action=="continue"){dL.fV++;if(dL.fV==22){dL.fV=1;}dL.msg="Request sent to server
    "+dL.cK[dL.fV]+"
    ";r("progress",null);dL.up=setTimeout("eR('continue')",75);}else{dL.fV=0;eR("continue");}};function fi(fJ,cY){var result=Math.round(Math.round(fJ*Math.pow(10,cY+1))/Math.pow(10,1))/Math.pow(10,cY);result=result.toFixed(cY);return result;};function BY(){dL.msg=""+"
    Enter a town and state, address, place name or coordinates.
    "+"
    "+"
    "+"To quickly pan and zoom the map you can search on the name of a town and state abbreviation. You can also search on many place names. For example, to find Glacier National Park enter: glacier np.
    "+"
    "+"You can also search on latitude longitude (all 3 versions), UTM, USNG and MGRS coordinates.
    "+"
    "+"When searching on latitude longitude in the USA remember to use a minus sign with the longitude. If your search does not seem to work then delete every character that is not a digit, period or minus sign. For example to search using degrees and decimal minutes you could enter 37 44.670 -119 35.621
    "+"
    "+"Search: The map will center at this spot. If the search returned multiple results, the map will center at the first result.
    "+"Search + Mark: Same as above plus there will be a symbol at this spot.
    "+"List: A list of up to 10 results will be displayed. But if the search only returned one result then the map will center at that spot.
    "+"
    "+"
    "+dL.search_error_msg+"
    "+""+"
    "+"
    "+"
    Search
    "+"
    Search + Mark
    "+"
    List
    "+"
    Help
    "+"
    ";};function mU(){dL.cZ=true;bh(null);for(i=0;i
    "+"The search field is blank.
    "+"The search field is near the top of the screen and just to the left of the 'Go' button.
    ";}else{dL.msg="Sorry, but your search was not successful.

    "+"The search field is blank.
    ";}r(20581,null);}else{dL.dW=dL.fY;pW();if(dL.gj===false){if(dL.cU!==false){dL.wH=new google.maps.LatLng(dL.lat,dL.lng);tn={location:dL.wH}}else{tn={address:dL.fY}}dL.dz.geocode(tn,function(AR,status){dL.dw=AR;dL.aq="";switch(status){case google.maps.GeocoderStatus.OK:dL.aq="OK";break;case google.maps.GeocoderStatus.ZERO_RESULTS:dL.aq=""+"If you entered coordinates, check for typing mistakes.
    "+"
    "+"Gmap4 uses Google's 'Geocoding' service to process your search.
    "+"Google sent the following message to Gmap4:
    "+"  'Zero results'
    "+"Google did not provide any additional information.";break;case google.maps.GeocoderStatus.OVER_QUERY_LIMIT:dL.aq="Gmap4 uses Google's 'Geocoding' service to process your search.
    "+"Google allows 2,500 geocode requests per computer (IP address) per day.
    "+"Google believes your IP address has exceeded that limit.";break;case google.maps.GeocoderStatus.REQUEST_DENIED:dL.aq="Gmap4 uses Google's 'Geocoding' service to process your search.
    "+"Google sent the following message to Gmap4:
    "+"  'Request denied'
    "+"Google did not provide any additional information.";break;case google.maps.GeocoderStatus.INVALID_REQUEST:dL.aq="Gmap4 uses Google's 'Geocoding' service to process your search.
    "+"Google sent the following message to Gmap4:
    "+"  'Invalid request'
    "+"Google did not provide any additional information.";break;default:aq=null;}if(status!=google.maps.GeocoderStatus.OK){dL.cZ=false;dL.msg="Sorry, but your search was not successful.

    "+dL.aq;r(20644,null);}else{if(dL.cU!==false){dL.dw.unshift("");dL.dw[0]={};dL.dw[0].geometry={};aq=dL.fY.replace(/\s/g," ");dL.dw[0].formatted_address=aq;aq=dL.H;if(dL.ln=="mgrs"){aq=aq+" or usng";}dL.dw[0].geometry.location=dL.wH;if(typeof(dL.lat)=="string"){dL.lat=parseFloat(dL.lat);}if(typeof(dL.lng)=="string"){dL.lng=parseFloat(dL.lng);}dL.fg=dL.lat-.02;dL.eU=dL.lng-.02;dL.dU=dL.lat+.02;dL.ec=dL.lng+.02;dL.jV=new google.maps.LatLngBounds(new google.maps.LatLng(dL.fg,dL.eU),new google.maps.LatLng(dL.dU,dL.ec));dL.dw[0].geometry.viewport=dL.jV;}if(action==3&&dL.dw.length>1){dL.sK="";dL.msg="
    "+"Number of results: "+dL.dw.length+"
    "+"  Check all"+"    "+"  Uncheck all
    "+"
    "+""+"
    ";dL.msg+="";for(i=0;i"+""+""+"";}dL.msg+="
    "+"
    "+""+"  "+"
    "+"
    "+"
    "+dL.dw[i].formatted_address+"
    "+"
    ";r(20718,null);document.ho.tg.focus();}else{if(dL.cU!==false){if(dL.gQ== -1){if(dL.map.getZoom()<14){dL.map.setZoom(14);}}else{dL.map.setZoom(dL.gQ);}}else{if(dL.map.getZoom()<13){dL.map.fitBounds(dL.dw[0].geometry.viewport);}}if(dL.map.getMapTypeId()=='mytopo_id'||dL.map.getMapTypeId()=='matt_id'){nz();}dL.center_changed_skip_listener_1=false;dL.center_changed_skip_listener_2=false;dL.ar=dL.dw[0].geometry.location;dL.map.setCenter(dL.ar);if(dL.H=="utm"||dL.H=="usng"||dL.H=="mgrs"){cj("13 Search. List with one entry",1);}dL.CE=true;if((action==2)||(action==3&&dL.dw.length==1)){dL.kh[0]=new google.maps.Marker({clickable:true,draggable:false,map:dL.map,position:dL.dw[0].geometry.location,title:dL.dw[0].formatted_address});}if(dL.je!==false){dL.msg=dL.bD;r(20776,null);}dL.cZ=false;}}});}else{dL.msg=dL.bD;r(20790,null);}}}};function nz(){aq=dL.dw[0].formatted_address;c=aq.split(",");aq=c[c.length-1].replace(" ","");if(dL.map.getMapTypeId()=='mytopo_id'){if(aq!="USA"&&aq!="Canada"){I("t1","false",-1,"nz");}}else{if(aq!="USA"){I("t1","false",-1,"nz");}}};function pL(action){if(action==1){document.ho.wn.checked=false;for(i=0;i -1){aq=dL.dw[qc];dL.dw.length=0;dL.dw[0]=aq;}if(dL.dw.length==1){if(document.ho.kJ.checked||qc> -1){dL.kh[j]=new google.maps.Marker({clickable:true,draggable:false,map:dL.map,position:dL.dw[0].geometry.location,title:dL.dw[0].formatted_address});dL.cu=dL.dw[0].geometry.viewport;dL.hu=dL.dw[0].geometry.location;aq=dL.dw[0].formatted_address;c=aq.split(",");aq=c[c.length-1].replace(" ","");if(aq!="USA"){dL.sQ=true;}if(aq!="Canada"){dL.sl=true;}j++;}}else{for(i=0;iPlease check one or more of the items
    ";dL.msg=dL.msg.replace("Off";cB("function nI 1");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}else{dL.mG="on";dL.ar=dL.map.getCenter();if(dL.H=="utm"||dL.H=="usng"||dL.H=="mgrs"){dL.mn="big";dL.sp={clickable:false,icon:dL.Al,map:dL.map,position:dL.ar};}else{dL.mn="small";dL.sp={clickable:false,icon:dL.zu,map:dL.map,position:dL.ar,opacity:1.0};}dL.sj=new google.maps.Marker(dL.sp);dL.lf=" On";cB("function nI 2");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}};function gD(action){if(action==0){dL.fD.style.display="none";dL.jL.style.display="none";dL.fp.style.display="none";dL.eb.style.display="none";}else{dL.fD.style.display="block";dL.jL.style.display="block";dL.fp.style.display="block";dL.eb.style.display="block";}};function kN(){if(dL.lU!==false){dL.lU=false;dL.jI.innerHTML="";dL.mr=" Off";cB("function kN 1");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}else{dL.lU=true;dL.ar=dL.map.getCenter();dL.kl=dL.ar.lat().toFixed(6)+','+dL.ar.lng().toFixed(6);pH(dL.kl);dL.mr=" On";cB("function kN 2");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}};function gN(){if(dL.uC==1||dL.pQ==1||dL.zd==1||dL.Au==1||dL.tj==1){if(dL.hy.getMap()){dL.hy.setMap(null);dL.km=" Off";cB("function gN 1");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}else{dL.hy.set('preserveViewport',true);dL.hy.setMap(dL.map);dL.km=" On";cB("function gN 2");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}}else if(dL.of==1){if(dL.gY> -1){if(dL.kW[0].getMap()){for(i=0;i<=dL.gY;i++){dL.kW[i].setMap(null);}dL.km=" Off";cB("function gN 3");dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{for(i=0;i<=dL.gY;i++){dL.kW[i].setMap(dL.map);}dL.km=" On";cB("function gN 4");dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}}}else{if(dL.at=="phone"){dL.msg="The 'Data file On/Off' feature does not do anything for the map you are viewing."+"This feature only works when you are using Gmap4 to view a GPX/KML/KMZ/TPO file or a Google MyMap "+"file. When you are viewing those types of files, then this feature turns the display of those files on and off.";}else{dL.msg="The 'Data file On/Off' feature does not do anything for the map you are viewing."+"This feature only works when you are using Gmap4 to view a GPX/KML/KMZ/TPO file or a Google MyMap "+"file. When you are viewing those types of files, then this feature turns the display of those files "+"on and off. Note that this feature does not do anything when you are viewing delimited text files.";}r(21315,null);}};function ka(){if(dL.pQ==0){if(dL.fF=="off"){dL.fF="on";dL.nL=false;max=dL.cr.length;dL.mv=" On";cB("function ka 1");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}if(dL.eN.length==0){for(i=0;iOff";cB("function ka 2");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}}else{dL.msg="The map you are looking at does not make any use of the 'Labels' feature. "+"This feature does not yet work with KMZ files.";r(21399,null);}};function gG(action){if(dL.fw=="on"){dL.fw="off";qO(action);fN(dL.iW,21671);dL.mf=" Off";cB("function gG 1");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}else{dL.fw="on";fN(0,21691);tH();dL.mf=" On";cB("function gG 2");if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}};function iI(action){jT="";if(action==1){if(dL.jO!==false){dL.ob="off";jT="off";}else{dL.ob="on";aq=dL.bi;if(aq=="m"||aq=="s"||aq=="h"||aq=="t1"){jT="on";}else{dL.msg="The streetview feature can only be used with basemaps provided by Google. Those basemaps are: m streetmap, s aerial, h aerial and t1 terrain.";r(21483,null);}}}else{aq=dL.bi;if(aq=="m"||aq=="s"||aq=="h"||aq=="t1"){if(dL.jO===false&&dL.ob=="on"){jT="on";}}else{if(dL.jO!==false){jT="off";}}}if(jT=="off"){dL.jO=false;dL.map.setOptions({streetViewControl:false});dL.mk=" Off";cB("function iI 1");if(action==1){if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}}else if(jT=="on"){dL.jO=true;dL.map.setOptions({streetViewControl:true});dL.mk=" On";cB("function iI 2");if(action==1){if(dL.bV=="desktop"){dL.TOP_RIGHT_overlay_left_dropdown_div.innerHTML=dL.et;dL.TOP_RIGHT_basemap_dropdown_div.innerHTML=dL.fu}else{dL.dD.innerHTML=dL.fx;}}}};function on(){if(dL.oV==0){dL.iW=45;fN(45);}else{dL.iW=0;fN(0);}if(dL.H=="utm"||dL.H=="usng"||dL.H=="mgrs"){cj("15 Search - make map",1);}};function fN(action,qs){if(action==45){if(dL.fw=="off"){if(dL.H!="utm"&&dL.H!="usng"&&dL.H!="mgrs"){if(dL.eQ==0){dL.oV=45;dL.map.setOptions({tilt:45});dL.ld=" On";cB("function fN 1");}}}}else{dL.oV=0;dL.map.setOptions({tilt:0});dL.ld=" Off";cB("function fN 2");}};function jU(){if(dL.iA!==false){dL.msg="
    Please close the GIS sidebar before using the draw-and-save feature.";r(21855,null);}else{if(dL.qn===false){dL.fP="";dL.nG="";dL.nB="checked";dL.oq="";dL.msg="";if(dL.qu=="BIVOUAC.COM"||dL.oX=="bivouac"){hF(null,2);hF(null,4);}else{if(dL.at=="desktop"){sg(2);}else{if(dL.at=="phone"){dL.msg+="Pick one of these three choices
    "+"Then touch 'Continue'


    ";}dL.msg+=""+"Each click on the map makes a:
    "+"
    "+"  Waypoint and linepoint
    "+"Good choice for GPX files
    "+"'Linepoint' is another name for 'routepoint'
    "+"
    "+"  Linepoint
    "+"Good choice for map-in-a-link and delimited files
    "+"First make your line. Then rightclick symbols at key locations, select 'edit', check the waypoint box and add a meaningful name and comment
    "+"
    "+"  Waypoint
    "+"If you rightclick a symbol and select 'edit', then you can add a meaningful name and comment
    "+"
    "+"
    "+"
    Continue
    "+"
    ";}r(21705,null);}}}};function sg(vD){if(vD==1){dL.nG="checked";dL.nB="";dL.oq="";}else if(vD==2){dL.nG="";dL.nB="checked";dL.oq="";}else{dL.nG="";dL.nB="";dL.oq="checked";}dL.msg=""+"
    Each click on the map should make a:
    "+"
    "+"Waypoint and linepoint
    "+"Good choice for GPX files
    "+"'Linepoint' is another name for 'routepoint'
    "+"
    "+"Linepoint
    "+"Good choice for map-in-a-link and delimited files
    "+"First make your line. Then rightclick symbols at key locations, select 'edit', check the waypoint box and add a meaningful name and comment
    "+"
    "+"Waypoint
    "+"If you rightclick a symbol and select 'edit', then you can add a meaningful name and comment
    "+"
    "+"
    "+""+"
    ";};function hF(e,action){if(dL.qu!="BIVOUAC.COM"&&dL.oX!="bivouac"){if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}e.returnValue=false;sg(action);}dL.qn=true;dL.hh="no";switch(action){case 1:if(dL.at!="desktop"){document.getElementById("waypoint_linepoint_button_id").value=" I ";document.getElementById("waypoint_linepoint_button_id").style.background="#00ff00";document.getElementById("linepoint_button_id").value="O";document.getElementById("linepoint_button_id").style.background="#ff0000";document.getElementById("waypoint_button_id").value="O";document.getElementById("waypoint_button_id").style.background="#ff0000";}dL.fP="yes";dL.eS="yes";break;case 2:if(dL.at!="desktop"){document.getElementById("waypoint_linepoint_button_id").value="O";document.getElementById("waypoint_linepoint_button_id").style.background="#ff0000";document.getElementById("linepoint_button_id").value=" I ";document.getElementById("linepoint_button_id").style.background="#00ff00";document.getElementById("waypoint_button_id").value="O";document.getElementById("waypoint_button_id").style.background="#ff0000";}dL.fP="no";dL.eS="yes";break;case 3:if(dL.at!="desktop"){document.getElementById("waypoint_linepoint_button_id").value="O";document.getElementById("waypoint_linepoint_button_id").style.background="#ff0000";document.getElementById("linepoint_button_id").value="O";document.getElementById("linepoint_button_id").style.background="#ff0000";document.getElementById("waypoint_button_id").value=" I ";document.getElementById("waypoint_button_id").style.background="#00ff00";}dL.fP="yes";dL.eS="no";break;case 4:rT();if(dL.fP==""){dL.fP="no";dL.eS="yes";}bF();break;}};function rT(){dL.cP=0;dL.eG=0;dL.eq=0;if(dL.fP=="yes"){dL.jj=true;}else{dL.jj=false;}if(dL.eS=="yes"){dL.kH=true;}else{dL.kH=false;}if(dL.hh=="yes"){dL.iH=true;}else{dL.iH=false;}dL.iE=1;dL.hS="Gmap4 Route";dL.hd="Gmap4 Track";dL.eT="Pin, Red";if(dL.at!="phone"){dL.fy="size='30'";dL.rH="cols='35'";}else{dL.fy="size='18'";dL.rH="cols='18'";}dL.BO=false;dL.dO=[];dL.dO[0]=45;dL.dO[1]=32;dL.dO[2]=28;dL.dO[3]=18;dL.dO[4]=12;dL.dO[5]=6;dL.dO[6]=2;dL.dO[7]=1.5;dL.dO[8]=0.8;dL.dO[9]=0.4;dL.dO[10]=0.2;dL.dO[11]=0.1;dL.dO[12]=0.05;dL.dO[13]=0.02;dL.dO[14]=0.012;dL.dO[15]=0.006;dL.rc=new google.maps.MarkerImage("https://maps.gstatic.com/mapfiles/ms2/micons/red-dot.png");dL.pm=new google.maps.MarkerImage("https://sites.google.com/site/gmap4files/p/png/black_circle_red_hair.png",new google.maps.Size(31,31),new google.maps.Point(0,0),new google.maps.Point(16,16));dL.wS={coord:[16,16,15],type:'circle'};dL.aJ={strokeColor:'#FF0000',strokeOpacity:0.9,strokeWeight:4,zIndex:1};dL.lP=new google.maps.Polyline(dL.aJ);dL.lP.setMap(dL.map);dL.cQ=dL.lP.getPath();dL.aJ={strokeColor:'#000000',strokeOpacity:1.0,strokeWeight:2,zIndex:2};dL.np=new google.maps.Polyline(dL.aJ);dL.np.setMap(dL.map);dL.dB=dL.np.getPath();iU();google.maps.LatLng.prototype.distanceFrom=function(rE){dL.xf=6371000;dL.wV=this.lat();dL.xI=this.lng();dL.wv=rE.lat();dL.xF=rE.lng();dL.tD=(dL.wv-dL.wV)*Math.PI/180;dL.tP=(dL.xF-dL.xI)*Math.PI/180;dL.tv=Math.sin(dL.tD/2)*Math.sin(dL.tD/2)+Math.cos(dL.wV*Math.PI/180)*Math.cos(dL.wv*Math.PI/180)*Math.sin(dL.tP/2)*Math.sin(dL.tP/2);dL.Bf=2*Math.atan2(Math.sqrt(dL.tv),Math.sqrt(1-dL.tv));dL.BZ=dL.xf*dL.Bf;return dL.BZ;};google.maps.Polyline.prototype.inMeter=function(n){dL.ri=this.getPath(n);max=dL.ri.getLength();dL.te=0;for(i=0;i85){aq=85;}dL.position=new google.maps.LatLng(aq,dL.ft.lng());if(dL.cI=="first"){dL.cx=0;for(i=0;i85){aq=85;}dL.position=new google.maps.LatLng(aq,dL.ft.lng());if((dL.F[dL.ab].dv+"")!=""){dL.cx=dL.cQ.getLength();dL.eS="yes";}else{dL.eS="no";}if((dL.F[dL.ab].ck+"")!=""){dL.dc=dL.dB.getLength();dL.hh="yes";}else{dL.hh="no";}}else{if(dL.cI=="none"||dL.cI=="last"){dL.dc=dL.F[dL.ab].ck+1;dL.cx="";dL.hv=dL.dB.getAt(dL.dc);ja("track",dL.dc);}else if(dL.cc=="none"||dL.cc=="last"){dL.cx=dL.F[dL.ab].dv+1;dL.dc="";dL.hv=dL.cQ.getAt(dL.cx);ja("route",dL.cx);}else{dL.cx=dL.F[dL.ab].dv+1;dL.dc="";dL.hv=dL.cQ.getAt(dL.cx);ja("route",dL.cx);aq=dL.F[dL.ab].ck+1;dL.o=dL.dB.getAt(aq);if(dL.hv.equals(dL.o)){dL.dc=dL.F[dL.ab].ck+1;ja("track",dL.dc);}else{dL.dc="";}}dL.qg=(dL.ft.lat()+dL.hv.lat())/2;dL.pI=(dL.ft.lng()+dL.hv.lng())/2;dL.position=new google.maps.LatLng(dL.qg,dL.pI);}}}if(action=="map clicked"){if(dL.fP=="yes"){dL.icon=dL.rc;dL.jP=dL.iE;dL.iE++;}else{dL.icon=dL.pm;dL.jP="";}}else{aq=dL.F[dL.ab].getTitle();if(aq!=""){dL.icon=dL.rc;dL.icon="";dL.fP="yes";dL.jP=dL.iE;dL.iE++;dL.eT=dL.F[dL.ab].eT;}else{dL.icon=dL.pm;dL.fP="no";dL.jP="";}}dL.zk={cursor:"move",draggable:true,icon:dL.icon,map:dL.map,shape:dL.wS,position:dL.position,raiseOnDrag:false,title:""+dL.jP};dL.eO=dL.cP;dL.F.push(new google.maps.Marker(dL.zk));dL.cP++;if(action==1||action==2){dL.F[dL.eO].setMap(dL.map);}if(dL.jP!=""){dL.F[dL.eO].eT=dL.eT;}else{dL.F[dL.eO].eT="";}dL.F[dL.eO].gh="";dL.F[dL.eO].ke=dL.eO;dL.F[dL.eO].dv="";dL.F[dL.eO].ck="";if((action=="map clicked"&&(dL.eS=="yes"||dL.cI=="first"||dL.cI=="last"))||(""+dL.cx)!=""){dL.F[dL.eO].dv=dL.cx;if(action=="map clicked"){dL.cQ.push(dL.position);}else{dL.cQ.insertAt(dL.cx,dL.position);}dL.eG++;}if((action=="map clicked"&&(dL.hh=="yes"||dL.cc=="first"||dL.cc=="last"))||(""+dL.dc)!=""){dL.F[dL.eO].ck=dL.dc;if(action=="map clicked"){dL.dB.push(dL.position);}else{dL.dB.insertAt(dL.dc,dL.position);}dL.eq++;}if((dL.eS=="yes")||(dL.hh=="yes")){iU();}google.maps.event.addListener(dL.F[dL.eO],'click',function(){dL.ax=this;dL.dF=setTimeout(function(){bF(2);dL.hc=dL.ax.getPosition();dL.iG=dL.ax.getTitle();dL.cz=dL.ax.dv;dL.cT=dL.ax.ck;dL.yR=dL.ax.eT;dL.si="";if(dL.at=="phone"){ue="Waypoint name:
    GPS sym name:
    Route name:
    Track name:
    LatLng (WGS84):
    UTM (WGS84):";}else{ue="Waypoint name:
    GPS symbol name:
    Route name:
    Track name:
    Latitude, Longitude (WGS 84):
    UTM (WGS 84):";}if(dL.iG!=""){iX=""+dL.iG+"
    "+dL.yR+"
    ";}else{iX="----------none----------
    ----------none----------
    ";}if((dL.cz+"")!=""){iX+=dL.hS+"
    ";}else{iX+="----------none----------
    ";}if((dL.cT+"")!=""){iX+=dL.hd+"
    ";}else{iX+="----------none----------
    ";}dL.ac=dL.hc;lu(2);iX+=""+dL.jN+"
    ";LLtoUTM(dL.hc.lat(),dL.hc.lng(),dL.dk);if(dL.hc.lat()<0){dL.dk[1]=10000000+dL.dk[1];}iX+=UTMZone+"  "+dL.dk[0].toFixed(0)+","+dL.dk[1].toFixed(0);dL.si=""+"
    "+"
    "+""+"
    "+""+""+""+""+""+""+""+""+""+""+""+"
    "+ue+""+iX+"
    Comment:
    "+dL.ax.gh+"
    ";if(dL.at=="phone"){gD(0);google.maps.event.addListenerOnce(dL.bx,"closeclick",function(){gD(1);});}dL.bx.setContent(dL.si);dL.bx.setPosition(dL.hc);dL.bx.open(dL.map);},300);});google.maps.event.addListener(dL.F[dL.eO],'dragstart',function(){dL.bx.close();});if(dL.eS=="yes"||dL.hh=="yes"||action==1||action==2){google.maps.event.addListener(dL.F[dL.eO],'drag',function(){dL.ax=this;if((dL.ax.dv+"")!=""){dL.cx=dL.ax.dv;dL.qM=this.getPosition();dL.cQ.setAt(dL.cx,dL.qM)}if((dL.ax.ck+"")!=""){dL.dc=dL.ax.ck;dL.pE=this.getPosition();dL.dB.setAt(dL.dc,dL.pE)}});google.maps.event.addListener(dL.F[dL.eO],'dragend',function(){dL.cz=dL.ax.dv;dL.cT=dL.ax.ck;iU();});}google.maps.event.addListener(dL.F[dL.eO],"rightclick",function(eventRight){bF(2);if(eventRight.stopPropagation){eventRight.stopPropagation();}else{eventRight.cancelBubble=true;}eventRight.returnValue=false;dL.ax=this;sD();});};function sD(){dL.ft=dL.ax.getPosition();dL.iG=dL.ax.getTitle();dL.ab=dL.ax.ke;dL.cz=dL.ax.dv;dL.cT=dL.ax.ck;dL.yb=dL.ax.eT;dL.ym=dL.ax.gh;dL.aq="";if(dL.iG==""){dL.jj=false;dL.fE="";dL.aq+="Waypoint: no
    ";}else{dL.jj=true;dL.fE=" checked='checked' ";dL.aq+="Waypoint: "+dL.iG+"
    ";}if((dL.cz+"")==""){dL.kH=false;dL.fL="";dL.aq+="Routepoint: no
    ";}else{dL.kH=true;dL.fL=" checked='checked' ";dL.aq+="Routepoint: yes
    ";}if((dL.cT+"")==""){dL.iH=false;dL.gw="";dL.aq+="Trackpoint: no
    ";}else{dL.iH=true;dL.gw=" checked='checked' ";dL.aq+="Trackpoint: yes
    ";}dL.fR=""+"
    "+dL.aq+""+"Edit this point
    "+"Delete this point
    ";if(((dL.cz+"")!="")||((dL.cT+"")!="")){dL.fR+=""+"Insert point before
    "+"Insert point after
    ";}dL.fR+=""+"Pause drawing
    "+"Resume drawing
    "+"Delete following line points
    "+"Delete all drawing data
    "+"
    "+"GPX file display
    ";if(dL.at=="desktop"){dL.fR+=""+"GPX file download
    ";}dL.fR+=""+"Delimited file display
    ";if(dL.at=="desktop"){dL.fR+=""+"Delimited file download
    ";}dL.fR+=""+"
    "+"See all your data
    "+"Gmap4 link - No description
    "+"Gmap4 link - With description
    "+"Gmap4 link open - With description
    "+"
    "+"Use current center and zoom
    "+"Gmap4 link - No description
    "+"Gmap4 link - With description
    "+"Gmap4 link open - With description
    ";if(dL.oX=="bivouac"){aq="bivouac";dL.fR+=""+"
    "+"Bivouac display waypoint text
    ";}dL.fR+=""+"
    ";dL.bx.setContent(dL.fR);dL.bx.setPosition(dL.ax.getPosition());dL.bx.open(dL.map);};function iU(){dL.iR="";if(dL.cQ.getLength()!=0){aq=dL.lP.inMeter();dL.eA=Math.round((aq/1000)*10)/10;if(dL.eA>100){dL.eA=dL.eA.toFixed(0);}else{dL.eA=dL.eA.toFixed(1);}dL.fn=Math.round((aq/1609.344)*10)/10;if(dL.fn>100){dL.fn=dL.fn.toFixed(0);}else{dL.fn=dL.fn.toFixed(1);}dL.iR+="Route: "+dL.fn+" miles, "+dL.eA+" km
    ";}else{dL.iR+="Route: 0.0 miles, 0.0 km
    ";}if(dL.dB.getLength()!=0){aq=dL.np.inMeter();dL.eA=Math.round((aq/1000)*10)/10;if(dL.eA>100){dL.eA=dL.eA.toFixed(0);}else{dL.eA=dL.eA.toFixed(1);}dL.fn=Math.round((aq/1609.344)*10)/10;if(dL.fn>100){dL.fn=dL.fn.toFixed(0);}else{dL.fn=dL.fn.toFixed(1);}dL.iR+="Track: "+dL.fn+" miles, "+dL.eA+" km";}else{dL.iR+="Track: 0.0 miles, 0.0 km";}uS();};function sA(e,action){dL.bx.close();if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}e.returnValue=false;if(dL.at=="phone"){google.maps.event.clearListeners(dL.bx,"closeclick");gD(1);}if(action==1){for(i=0;idL.ab){dL.F[i].ke--;}if((dL.cz+"")!=""){if((dL.F[i].dv+"")!=""&&dL.F[i].dv>dL.cz){dL.F[i].dv--;}}if((dL.cT+"")!=""){if((dL.F[i].ck+"")!=""&&dL.F[i].ck>dL.cT){dL.F[i].ck--;}}}dL.F[dL.ab].setMap(null);if((dL.cz+"")!=""){dL.cQ.removeAt(dL.cz);dL.eG--;}if((dL.cT+"")!=""){dL.dB.removeAt(dL.cT);dL.eq--;}google.maps.event.clearInstanceListeners(dL.F[dL.ab]);dL.F.splice(dL.ab,1);dL.cP--;}else{dL.nb.length=0;if((dL.cz+"")==""){dL.cz= -1;}if((dL.cT+"")==""){dL.cT= -1;}if(dL.cz!= -1||dL.cT!= -1){max=dL.cP;for(i=0;idL.cz)){dL.F[i].dv="";dL.pS=true;dL.cQ.removeAt(dL.eG-1);dL.eG--;}if(dL.cT!= -1&&(dL.F[i].ck>dL.cT)){dL.F[i].ck="";dL.pS=true;dL.dB.removeAt(dL.eq-1);dL.eq--;}if(dL.pS&&(dL.F[i].dv+"")==""&&(dL.F[i].dv+"")==""){dL.F[i].dv="delete";for(j=0;jdL.ab){dL.nb[j]++;}}}}for(i=0;i LatLng"+dL.hL+" UTM  ";dL.ic=dL.iG;dL.iy=dL.hS;dL.iM=dL.hd;dL.nl="no change";dL.fU="no change";dL.gs="no change";dL.vX=dL.ym;dL.gf=dL.yb;dL.nx="";dL.hf="";dL.sV="";dL.rZ="";dL.oJ="";dL.or="";dL.od="";dL.oH="";iP();dL.bx.setContent(dL.cW);dL.bx.setPosition(dL.ft);dL.bx.open(dL.map);};function iP(){dL.ic=dL.ic+"";dL.ic=dL.ic.replace(/ /g," ");dL.gf=""+dL.gf;dL.gf=dL.gf.replace(/ /g," ");dL.iy=""+dL.iy;dL.iy=dL.iy.replace(/ /g," ");dL.iM=""+dL.iM;dL.iM=dL.iM.replace(/ /g," ");if(dL.at!="phone"){aq=" ";c="";}else{aq="
    ";c="";}dL.uG="Waypoint"+aq+"name: "+dL.oJ+c;dL.sr="GPS symbol"+aq+"name: "+dL.or+c;dL.uq="Route"+aq+"name: "+dL.od+c;dL.uf="Track name: "+dL.oH+c;dL.cW="
    ";dL.lK=0;if(dL.at!="phone"){aq="center";}else{aq="left";}dL.cW+=""+dL.nx;if(dL.nx==""){if(dL.fE!=""){dL.cW+=dL.uG+dL.sr;}if(dL.fL!=""){dL.cW+=dL.uq;}if(dL.gw!=""){dL.cW+=dL.uf;}}else{dL.cW+=dL.uG+dL.sr+dL.uq+dL.uf;}dL.cW+=dL.ij;dL.cW+=dL.hf+dL.sV+dL.rZ;if(dL.fE!=""||dL.fL!=""){dL.cW+="";}dL.cW+="
    "+" Waypoint    ";dL.lK++;dL.zC=dL.lK;dL.cW+=" Routepoint    ";dL.rO=0;if(dL.gw==" checked='checked' "||dL.dB.getLength()==0||(dL.dB.getLength()==1&&dL.gs=="dropped")){dL.lK++;dL.rO=dL.lK;if(dL.at!="phone"){dL.cW+=" Trackpoint";}else{dL.cW+="
    "+" Trackpoint";}}dL.cW+="
    Comment:
        
    ";};function oh(e,lK,wO){if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}e.returnValue=false;switch(wO){case 1:if(!dL.jj){dL.jj=true;dL.fE=" checked='checked' ";dL.nl="added";dL.ic=dL.iE;dL.iE++;if(dL.gf==""){dL.gf="Waypoint";}}else{dL.jj=false;dL.fE="";dL.nl="dropped";}break;case 2:if(!dL.kH){dL.kH=true;dL.fL=" checked='checked' ";dL.fU="added";}else{dL.kH=false;dL.fL="";dL.fU="dropped";}break;case 3:if(!dL.iH){dL.iH=true;dL.gw=" checked='checked' ";dL.gs="added";}else{dL.iH=false;dL.gw="";dL.gs="dropped";}break;}iP();dL.bx.setContent(dL.cW);dL.bx.setPosition(dL.ft);dL.bx.open(dL.map);};function eZ(){if(document.getElementsByName('radio_coord')[0].checked){if(dL.gO=="utm"){dL.dW=document.marker.coordinates.value;jf(1);if(dL.cU&&dL.bD==""){document.marker.coordinates.value=dL.ig;if(dL.hf!=""){dL.hf="";dL.ij=" LatLng"+dL.hL+" UTM  ";iP();dL.bx.setContent(dL.cW);}dL.gO="latlng";}else{aq=dL.dW.replace(/\s/g," ");dL.ij=" LatLng"+dL.hL+" UTM  ";dL.ed="class='iC'";dL.hf=""+dL.bD+"";iP();dL.bx.setContent(dL.cW);}}}else{if(dL.gO!="utm"){dL.dW=document.marker.coordinates.value;jf(2);if(dL.cU&&dL.bD==""){document.marker.coordinates.value=dL.ig;if(dL.hf!=""){dL.hf="";aq=dL.ig.replace(/\s/g," ");dL.ij=" LatLng"+dL.hL+" UTM  ";iP();dL.bx.setContent(dL.cW);}dL.gO="utm";}else{aq=dL.dW.replace(/\s/g," ");dL.ij=" LatLng"+dL.hL+" UTM  ";dL.ed="class='iC'";dL.hf=""+dL.bD+"";iP();dL.bx.setContent(dL.cW);}}}};function sF(action,e){if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}e.returnValue=false;if(action==2){if(dL.at!="phone"){dL.bx.close();}else{document.getElementById("non_google_msg_container").style.display="none";google.maps.event.clearListeners(dL.bx,"closeclick");gD(1);}}else{dL.ed="";dL.hV=false;dL.nx="";dL.oJ="";dL.or="";dL.od="";dL.oH="";dL.hf="";dL.sV="";dL.rZ="";if(!(dL.fE!=""||dL.fL!=""||dL.gw!="")){dL.hV=true;dL.ed="class='iC'";dL.nx="At least one box must be checked";}if(!(dL.hV)){if(dL.fE==""){dL.ic="";}else{if(md(document.marker.title.value)==""){dL.hV=true;dL.ed="class='iC'";dL.oJ="Waypoint name cannot be blank";}else{dL.ic=document.marker.title.value;}if(md(document.marker.kI.value)==""){dL.hV=true;dL.ed="class='iC'";dL.or="GPS symbol name cannot be blank";}else{dL.gf=document.marker.kI.value;dL.eT=document.marker.kI.value;}}if(dL.fL==""){dL.iy="";}else{if(md(document.marker.hS.value)==""){dL.hV=true;dL.ed="class='iC'";dL.od="Route name cannot be blank";}else{dL.iy=document.marker.hS.value;dL.hS=document.marker.hS.value;}}if(dL.gw==""){dL.iM="";}else{if(md(document.marker.hd.value)==""){dL.hV=true;dL.ed="class='iC'";dL.oH="Track name cannot be blank";dL.iM=dL.hd;}else{dL.iM=document.marker.hd.value;dL.hd=document.marker.hd.value;}}}dL.dW=md(document.marker.coordinates.value);if(document.getElementsByName('radio_coord')[0].checked){dL.us=" checked ";dL.ub="";jf(2);}else{dL.us="";dL.ub=" checked ";jf(1);}aq=dL.dW.replace(/\s/g," ");dL.ij=" LatLng"+dL.hL+" UTM  ";dL.hf="";if(dL.cU&&dL.bD==""){dL.zO=dL.lat;dL.yW=dL.lng;}else{dL.hV=true;dL.ed="class='iC'";dL.hf=""+dL.bD+"";}if(dL.fE!=""||dL.fL!=""){dL.vX=document.marker.comment.value;}if(dL.hV){iP();dL.bx.setContent(dL.cW);}else{if(dL.fE!=""){dL.F[dL.ab].setIcon(dL.rc);}else{dL.F[dL.ab].setIcon(dL.pm);}if(dL.fE!=""||dL.fL!=""){dL.F[dL.ab].gh=document.marker.comment.value;}if(dL.nl=="added"||(dL.fE!=""&&dL.nl=="no change")){dL.F[dL.ab].setTitle(document.marker.title.value);dL.F[dL.ab].eT=document.marker.kI.value;}else{dL.F[dL.ab].setTitle("");dL.F[dL.ab].eT="";}if(dL.fU=="added"){dL.F[dL.ab].dv=dL.eG;aq=dL.F[dL.ab].getPosition();dL.cQ.push(aq);dL.eG++;}else if(dL.fU=="dropped"){dL.cz=dL.F[dL.ab].dv;dL.F[dL.ab].dv="";dL.cQ.removeAt(dL.cz);dL.eG--;for(i=0;idL.cz){dL.F[i].dv--;}}}dL.cz="";}if(dL.gs=="added"){dL.F[dL.ab].ck=dL.eq;aq=dL.F[dL.ab].getPosition();dL.dB.push(aq);dL.eq++;}else if(dL.gs=="dropped"){dL.cT=dL.F[dL.ab].ck;dL.F[dL.ab].ck="";dL.dB.removeAt(dL.cT);dL.eq--;for(i=0;idL.cT){dL.F[i].ck--;}}}dL.cT="";}if(dL.fU=="added"||dL.fU=="dropped"||dL.gs=="added"||dL.gs=="dropped"){iU();}if((dL.fU=="dropped"||dL.gs=="dropped")&&(dL.F[dL.ab].dv+"")==""&&(dL.F[dL.ab].ck+"")==""){google.maps.event.clearListeners(dL.F[dL.ab],'drag');google.maps.event.clearListeners(dL.F[dL.ab],'dragend');}if((dL.fU=="added"&&dL.gs=="added")||(dL.fU=="added"&&(dL.F[dL.ab].ck+"")=="")||(dL.gs=="added"&&(dL.F[dL.ab].dv+"")=="")){google.maps.event.addListener(dL.F[dL.ab],'drag',function(){dL.ax=this;if((dL.ax.dv+"")!=""){dL.cx=dL.ax.dv;dL.qM=this.getPosition();dL.cQ.setAt(dL.cx,dL.qM)}if((dL.ax.ck+"")!=""){dL.dc=dL.ax.ck;dL.pE=this.getPosition();dL.dB.setAt(dL.dc,dL.pE)}});google.maps.event.addListener(dL.F[dL.ab],'dragend',function(){dL.cz=dL.ax.dv;dL.cT=dL.ax.ck;iU();});google.maps.event.trigger(dL.F[dL.ab],'dragend');}vW=dL.ry.replace(/\s+/g,"");wG=dL.dW.replace(/\s+/g,"");if(vW!=wG){dL.qd=new google.maps.LatLng(dL.zO,dL.yW);dL.F[dL.ab].setPosition(dL.qd);if(((dL.cz+"")!="")||((dL.cT+"")!="")){if((dL.cz+"")!=""){dL.cQ.setAt(dL.cz,dL.qd);}if((dL.cT+"")!=""){dL.dB.setAt(dL.cT,dL.qd);}iU();}}if(dL.ab==(dL.cP-1)){if(dL.fE!=""){dL.fP="yes";dL.eT=document.marker.kI.value;}else{dL.fP="no";}if(dL.fL!=""){dL.eS="yes";}else{dL.eS="no";}if(dL.gw!=""){dL.hh="yes";}else{dL.hh="no";}}if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}e.returnValue=false;if(dL.at!="phone"){dL.bx.close();}else{document.getElementById("non_google_msg_container").style.display="none";google.maps.event.clearListeners(dL.bx,"closeclick");gD(1);}}}};function rr(action){dL.msg="";for(i=0;i"){dL.msg+="    ";}else{aq=dL.dG[i].substr(0,4);if(aq==" "){dL.msg+="    ";}}dL.msg+=dL.dG[i].replace(/&/g,'&').replace(//g,'>').replace(/\&nbsp;/g," ")+"\n";}aq="GPX";if(action=="txt"){if(dL.xa){aq="Bivouac Waypoint Text";}else{aq="Gmap4 delimited text";}}dL.msg=""+""+aq+" file
    "+"
    "+""+"
    "+" ";r("document.getElementById",null);document.getElementById("text_on_screen").select();};function tc(action){if(jn){dL.oG=action+dL.oG;aq=dL.oG.replace(/ /g,"|_|");aq="string="+aq;cA.open("POST","https://mappingsupport.com/p/php_file_save.php",false);cA.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");cA.setRequestHeader("Connection","close");cA.send(aq);}else{dL.msg="Your browser is not compatible with the process for downloading a file. Please try the current version of Firefox or Chrome.";r(23590,null);}};function sP(e,action){if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}e.returnValue=false;dL.bx.close();if(action==2&&dL.at=="phone"){google.maps.event.clearListeners(dL.bx,"closeclick");gD(1);}dL.cP=dL.F.length;dL.eG=dL.cQ.getLength();dL.eq=dL.dB.getLength();if((dL.cP==0)&&(dL.eG==0)&&(dL.eq==0)){dL.msg="You must mark at least one waypoint or routpoint trackpoint before downloading a GPX file.";r(23622,null);}else{dL.sv=new Date();dL.wL=""+dL.sv.getFullYear();aq=dL.sv.getMonth()+1;dL.wL+="-"+aq+"-"+dL.sv.getDate()+"T";dL.hO=1.01;dL.hk=1.01;dL.hI=1.01;dL.dG.length=0;dL.dG[0]='<'+'?x'+'ml ver'+'sion="1.0" encoding="UTF-8"?'+'>';dL.dG[1]=' ';dL.cO=2;for(i=0;i';dL.cO++;dL.dG[dL.cO]=' '+dL.F[i].getTitle()+'';dL.cO++;dL.dG[dL.cO]=' '+c+'';dL.cO++;if(dL.F[i].eT!=""){dL.dG[dL.cO]=' '+dL.F[i].eT+'';dL.cO++;}dL.dG[dL.cO]='';dL.cO++;}}if(dL.eG!=0){dL.dG[dL.cO]="";dL.cO++;dL.dG[dL.cO]=""+dL.hS+"";dL.cO++;dL.dG[dL.cO]="1";dL.cO++;for(i=0;i';dL.cO++;dL.dG[dL.cO]='';dL.cO++;}dL.dG[dL.cO]="";dL.cO++;}if(dL.eq!=0){dL.dG[dL.cO]="";dL.cO++;dL.dG[dL.cO]=""+dL.hd+"";dL.cO++;dL.dG[dL.cO]="";dL.cO++;for(i=0;i';dL.cO++;dL.hI=dL.hI+.01;if(dL.hI==1.60){dL.hI=1.01;dL.hk=dL.hk+.01;if(dL.hk==1.60){dL.hk=1.01;dL.hO=dL.hO+.01;}}dL.hI=(dL.hI*100)+"";dL.hI=dL.hI.substr(dL.hI.length-2,2);dL.hk=(dL.hk*100)+"";dL.hk=dL.hk.substr(dL.hk.length-2,2);dL.hO=(dL.hO*100)+"";dL.hO=dL.hO.substr(dL.hO.length-2,2);dL.dG[dL.cO]=' ';dL.cO++;dL.dG[dL.cO]='';dL.cO++;}dL.dG[dL.cO]="";dL.cO++;dL.dG[dL.cO]="";dL.cO++;}dL.dG[dL.cO]="";dL.cO++;if(action==1){dL.oG=dL.dG.join("||");tc("gpx");}else{rr("gpx");}}};function eJ(e,action){if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}e.returnValue=false;dL.bx.close();if(dL.at=="phone"){google.maps.event.clearListeners(dL.bx,"closeclick");gD(1);}dL.aK.length=0;dL.mj.length=0;dL.cP=dL.F.length;dL.eG=dL.cQ.getLength();if((dL.cP==0)&&(dL.eG==0)){dL.msg="The action you requested will not work until you mark at least one waypoint or routepoint on the map.";r(23816,null);}else{dL.fC="";for(i=0;i');}if(dL.F[i].getTitle()!=""&&(""+dL.F[i].dv)==""&&(""+dL.F[i].ck)==""){dL.ac=dL.F[i].getPosition();lu(2);dL.fC+="||"+dL.jN;dL.fC+="^"+dL.F[i].getTitle();if(action==1||action==2||action==3||action==4||action==5||action==11||action==12||action==13){dL.fF='on';if(action==1||action==2||action==4||action==5||action==12||action==13){dL.fF='on';dL.fC+="^"+""+dL.F[i].getTitle()+"
    ";if(dL.F[i].gh!=""){dL.fC+=c;}else{dL.fC+=dL.jN;}}}}else{if(!(isNaN(dL.F[i].dv))){ag=dL.F[i].dv;dL.ac=dL.F[i].getPosition();lu(2);aq=dL.jN;if(action<6||action==11||action==12||action==13){dL.aK[ag]="||"+aq;if(dL.F[i].getTitle()==""){}else{dL.aK[ag]+="^"+dL.F[i].getTitle();if(dL.F[i].gh!=""){dL.aK[ag]+="^"+c+"^default";}else{dL.fF='on';if(action==1||action==2||action==3||action==11){dL.aK[ag]+="^^default";}else{dL.aK[ag]+="^"+""+dL.F[i].getTitle()+"
    "+aq+"^default";}}}}else{dL.mj[ag]=""+aq+"=";if(dL.F[i].gh!=""){dL.mj[ag]+=c;}else{dL.mj[ag]+="cp";}}}}}if(dL.eG!=0){if(action<6||action==11||action==12||action==13){dL.xa=false;if(action==4||action==5||action==12||action==13){dL.fC="label=on||line=on width=2 color=ff0000 linesymbol=off dash=off"+dL.aK.join("")+"||line=off"+dL.fC;}else{dL.fC="line=on width=2 color=ff0000 linesymbol=off dash=off"+dL.aK.join("")+"||line=off"+dL.fC;}}else{dL.xa=true;dL.fC=dL.mj.join("||");}}if(action==1||action==6){dL.oG=dL.fC;tc("txt");}else if(action==2||action==7){dL.dG.length=0;dL.dG=aK=dL.fC.split("||");rr("txt");}else if(action==3||action==4){dL.jE="Link to open the map and display your data";ha(3);}else if(action==11||action==12){dL.jE="Link to open the map and display your data";ha(4);}else if(action==5){ha(5);window.open(dL.bO,"","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");}else if(action==13){ha(6);window.open(dL.bO,"","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");}else if(action==8){if(dL.at=="phone"){google.maps.event.clearListeners(dL.bx,"closeclick");gD(1);}for(i=0;i=tE){dL.F[i].dv++;}}}else{for(i=0;i=tE){dL.F[i].ck++;}}}};function md(xz){return xz.replace(/^\s\s*/,'').replace(/\s\s*$/,'');};function tT(){dL.so=true;dL.BW="";dL.eP=dL.ks;dL.gis_sidebar_html="";dL.aF=0;dL.st="";dL.sY="";dL.jo=[];dL.fI=[];dL.jz=[];dL.jr=[];dL.gis_node_layer_number_ary=[];dL.lG=[];dL.ba=[];dL.co=[];dL.nv=[];dL.iZ=[];dL.rv=[];dL.fT=[];dL.vc=[];dL.gis_cache_number_ary=[];dL.gT=[];dL.cF=[];dL.ls=[];dL.gis_fused_cache_flag=[];dL.ts="";if(dL.eP>dL.lM){dL.ts=""+"
    "+"This map includes some GIS overlays that were defined in the Gmap4 link. Those overlays are independent of the GIS surfing feature you just started. You can toggle those overlays on/off and change their stacking order but you will not be able to delete them."+"
    ";}dL.Ag=""+"
    "+"Gmap4 is a public service that anyone is welcome to use. However, commercial use is prohibited.
    "+"
    "+"Do not use your 'back' button anywhere in Gmap4. Doing so will close the map!
    "+"
    "+"Each ArcGIS server has a table of contents that consists of a number of web pages that are hosted on the server. The sidebar displays (1) the link to one of those web pages and (2) the essential information that lets you navigate the table of contents on that server.
    "+"
    "+"The link for the top of the table of contents always ends in /rest/services. From there you can drill down to data that you can add to the map.
    "+"
    "+"Each line that starts with a checkbox identifies data that can be added to the map. Check a box to add that data to the map and uncheck the box to delete that data from the map.
    "+"
    "+"If you check a box and the data does not appear on the map then you may need to pan the map. An easy way to pan is to use Menu ==> Search.
    "+"
    "+"Also, GIS servers often only display data at certain zoom levels. Mobile devices display the zoom level in the upper right corner. To see the zoom level on a desktop/laptop, rightclick the map and then scroll to the bottom of the display that appears.
    "+"
    "+"Gmap4 has a number of built-in basemaps and overlays. All the GIS data that you add to the map is added as overlays. If you change the basemap to 'awb - All white basemap' then you will only see the overlay data on the screen.
    "+"
    "+"To see the current list of overlays click the basemap button (next to the 'Menu' button). Mobile users will need to scroll down. An overlay that is 'on' has a number in front. You can click the overlays to turn them on/off and change the stacking order. Turning an overlay off does not delete it from the map. You can click that overlay again to turn it back on.
    "+"
    "+"The highest numbered overlay is on top and therefore clickable. When you click the map on data from the 'top' overlay then you will see a display with all the attribute data the GIS server has for the thing that you clicked. Sometimes the attribute data includes a link that leads to more information.
    "+"
    "+"The most common types of data that can be hosted on an ArcGIS server are MapServer, ImageServer and FeatureServer data. As you use the sidebar to drill down on a table of contents you will only see entries for MapServer and ImageServer data. Support for FeatureServer data will be added in the future.
    "+"
    "+"To see the legend for MapServer data, note the layer number in the sidebar. Then click the server link at the top of the sidebar. When that page opens, click the 'Legend' link and look for that same layer number. Also, just above the 'Legend' link there is a heading called Service description. Sometimes there will be useful metadata under that heading.
    "+"
    "+"After you add some GIS data to the map you can save a Gmap4 link that will replicate the map on your screen. Make the map look on your screen the way you want it to look when it opens. Then click Menu ==> Link to this map. The link you see will replicate the map on your screen.
    ";dL.gis_manage_msg=""+"
    "+"
    Uncheck all
    "+"
    "+"
    Check all
    "+"
    "+"
    Display sidebar
    "+"
    "+"
    Delete checked layers
    "+"
    "+"
    Help
    "+"
    "+"
    "+"
    "+"
    ";dL.gis_manage_layers_help=""+"
    "+"If you have added any GIS layers to the map then a list of those layers is displayed below and this interface lets you do 2 things. First, you can select a layer and then display the sidebar data that you used to add that layer to the map. Second, you can select one or more layers and then delete that data from the map.
    "+"
    "+"Note that if all you want to to do is toggle overlays on/off but not delete them from the map, then close this interface and click the basemap button (next to the 'Menu' button). Then look under the 'Overlay' heading and click any layer that you want to toggle on/off without actually deleting that layer from the map.
    ";dL.gis_manage_error_1=""+"
    "+"You have not added any GIS layers to the map. This feature only works with GIS layers that you add to the map. If you added GIS layers to the map and then deleted all those same layers, then this feature does not do anything.";};function pK(){dL.xe=""+"
    Send request to GIS server
    "+"
    "+"
    Prior GIS server
    "+"
    "+"
    Test
    "+"
    "+"
    Help
    ";dL.msg=""+"
    "+"Surf GIS (Geographical Information System) data.
    "+"Enter any internet address that is part of the table of contents for an ArcGIS server or click 'Help'.
    "+dL.ts+"
    "+"
    "+"Gmap4 is a public service that anyone is welcome to use. However, commercial use is prohibited.
    "+"
    "+"If you need help finding ArcGIS servers then here is a list to get you started. The list includes over 600 federal, state, regional, county and city ArcGIS servers with open data.
    "+"
    "+"https://mappingsupport.com/p/surf_gis/list-federal-state-county-city-GIS-servers.pdf
    "+"
    "+"Click on any 'GIS' link. These links all end in /rest/services. You will see a webpage showing the 'top' of the table of contents for that server. Copy that link from your browser’s address bar and paste it into the input box you see below.
    "+"
    "+"The 'Test' button will attempt to display the 'top' of the GIS server's table of contents in a new web page. This is one way to verify that the server is online, the server's internet address has not changed and that the table of contents is publically available."+"
    "+"
    "+dL.hl+"
    "+""+"
    "+"
    "+dL.xe+"
    ";};function vh(){if(dL.so===false){tT();}dL.hl="";dL.bE="";if(dL.iA!==false){fX(2);}if(dL.bV=="desktop"){google.maps.event.trigger(dL.map,'mouseover');}else{dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].clear();dL.kF=false;if(dL.he!="icepeak"){dL.map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(dL.eb);}if(!(dL.dX)){dL.dX=true;dL.map.controls[google.maps.ControlPosition.RIGHT_TOP].push(dL.fp);}}pK();r(24908,null);document.getElementById("url_on_screen").select();};function qe(action){if(action==1){document.getElementById("vM").style.display="block";}else if(action==2||action==3){dL.dy=false;dL.hl="";dL.el="";dL.bU="";dL.Cu=false;dL.CI=false;dL.CN=false;dL.Ct=false;dL.gS=false;dL.ux="";dL.BT=dL.bE;dL.bE=document.getElementById('url_on_screen').value;dL.bE=dL.bE.trim();if(dL.bE.substr(-1)=="/"){dL.bE=dL.bE.substr(0,dL.bE.length-1);}if(dL.bE.slice(-7)=="/legend"){dL.bE=dL.bE.substr(0,dL.bE.length-7);}dL.jt=dL.bE.toUpperCase();if(jn===false){dL.dy=true;dL.hl=""+"
    You browser does not support an important feature called xmlhttprequest. Various Gmap4 features will not work. Here is a list of the browsers supported by the Google map API. Please use one of the listed browsers";}else{if(dL.bE==""){dL.dy=true;dL.hl="
    ***** Error: Input cannot be blank. Please enter the http or https address for a GIS server.";}else if(dL.jt.indexOf("/REST/SERVICES")== -1){dL.dy=true;dL.hl="
    ***** Error: At the present time the ability to display GIS data by entering a server address is limited to MapServer and ImageServer data that is hosted on ArcGIS servers. Therefore a valid server address must include '/rest/services'. A future upgrade will add the ability to display data from other types of GIS tile servers including WMS tiles, WMTS tiles and XYZ tiles.";}else if(dL.bE.indexOf("?")> -1){dL.dy=true;dL.hl="
    ***** Error: The GIS server address cannot include a question mark character. If the text in front of the question mark is a valid GIS server address, then delete the question mark and everything after it.";}else{dL.jo.length=0;dL.jo=dL.bE.split("/");dL.fI.length=0;dL.fI=dL.jt.split("/");jb=dL.fI.length;if(isNaN(dL.fI[jb-1])===false&&dL.fI[jb-2]=="MAPSERVER"){jb--;dL.fI.pop();dL.jt=dL.fI.join("/");dL.jo.pop();dL.bE=dL.jo.join("/");}dL.ba=dL.bE.split("rest/services");if(dL.ba[1]=="/"){dL.bU="";}else{dL.bU=dL.ba[1].slice(1);dL.rF=dL.bU.split("/");}if(dL.jt.substr(0,7)!="HTTP://"&&dL.jt.substr(0,8)!="HTTPS://"){dL.dy=true;dL.hl="***** Error: The address for a GIS server must start with http:// or https://";}else{pos=dL.jt.indexOf("/REST/SERVICES");dL.sC=dL.bE.substr(0,pos);dL.aF=0;max=dL.rv.length;while(dL.aF***** Error:
    At the present time Gmap4 cannot display featureserver data. However it can display both ArcGIS MapServer and ImageServer data.";}}}}if(dL.dy===false){if(action==3){window.open(dL.sC+"/rest/services","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");}else{if(dL.bU===undefined||dL.bU==""){dL.bU="top";dL.gis_sidebar_html=dL.fT[dL.aF][dL.bU];if(dL.gis_sidebar_html!==undefined){dL.gS=true;}}else{if(dL.fI[jb-1]=="IMAGESERVER"&&dL.rF.length>=2){dL.sc=dL.rF;dL.sc.pop();dL.sc.pop();dL.iS=dL.sc.join("/");if(dL.gT[dL.aF][dL.iS]=="services"){dL.gis_sidebar_html=dL.fT[dL.aF][dL.iS];if(dL.gis_sidebar_html!==undefined){dL.gS=true;dL.bU=dL.iS;}}}else{dL.gis_sidebar_html=dL.fT[dL.aF][dL.bU];if(dL.gis_sidebar_html!==undefined){dL.gS=true;}if(dL.gS===false){dL.iS=dL.bU+"/MapServer";if(dL.gT[dL.aF][dL.iS]=="mapserver"){dL.gis_sidebar_html=dL.fT[dL.aF][dL.iS];if(dL.gis_sidebar_html!==undefined){dL.gS=true;dL.bU=dL.iS;}}}}}if(dL.gS!==false){dL.gS=false;bF(2);fX(1);if(dL.cF[dL.aF][dL.bU]!==undefined){nC(2);}}else{eR("open");dL.pu="https://mappingsupport.com/p/php_surf_gis.php?arcgis_server_url="+dL.bE;cA.open("GET",dL.pu,true);cA.send();}}}else{dL.dy=false;dL.hl+="
    ";pK();r(15174,null);}}};function fX(action){dL.dy=false;if(action==1){dL.iA=true;dL.hu=dL.map.getCenter();dL.lS=dL.map.getZoom();document.getElementById('dR').style.float="right";document.getElementById('dR').style.width=""+dL.gis_map_width+"%";aq=100-dL.gis_map_width;document.getElementById('kT').style.width=""+aq+"%";google.maps.event.trigger(dL.map,'resize');dL.map.setCenter(dL.hu);if(dL.cl=="utm"||dL.cl=="usng"||dL.cl=="mgrs"){cj("display list of layers on gis server",1);}document.getElementById("pj").innerHTML=dL.gis_sidebar_html;document.getElementById('kT').style.display="block";document.getElementById("kT").focus();document.getElementById("kT").scrollTop=0;dL.st=dL.bE;dL.sY=dL.bU;if(dL.sG=="up 1"||dL.sG=="top"){dL.sG="none";dL.msg=""+"
    The GIS server link you entered does not point to a 'table of contents' page on the GIS server. Instead, the sidebar displays data from a higher 'table of contents' page. Try drilling down to find the data you want.";r(9009,null);}}else if(action==2){if(dL.iA!==false){dL.iA=false;bF(2);dL.hu=dL.map.getCenter();dL.lS=dL.map.getZoom();document.getElementById('kT').style.display="none";document.getElementById('dR').style.width="100%";google.maps.event.trigger(dL.map,'resize');dL.map.setCenter(dL.hu);dL.map.setZoom(dL.lS);if(dL.cl=="utm"||dL.cl=="usng"||dL.cl=="mgrs"){cj("directions open",1);}}}else if(action==3){if(dL.gis_sidebar_html!==undefined&&dL.gis_sidebar_html!=""){dL.bE=dL.st;dL.bU=dL.sY;bF(3);}else{dL.hl="
    ***** Error: The button to display the prior sidebar does not do anything until you have opened the sidebar at least once.
    ";pK();r(15174,null);}}};function iv(action,ag,name){dL.dy=false;if(action=="legend"){window.open(dL.bE+"/legend","_blank","fullscreen=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");}else{dL.zS=dL.bE;if(action=="help"){dL.msg=dL.Ag;r(25839,null);}else if(action=="top"||action=="up 1"){if(dL.bE.slice(-13)=="rest/services"||dL.bE.slice(-14)=="rest/services/"){dL.msg="
    Already at top of GIS server contents";r(25839,null);}else{if(action=="top"){dL.bE=dL.kV;dL.bU="top";}else{if(dL.bU.indexOf("/")== -1){dL.bE=dL.kV;dL.bU="top";}else{dL.aK.length=0;dL.aK=dL.bU.split("/");dL.aK.pop();dL.mN=dL.gT[dL.aF][dL.bU];if(dL.mN=="mapserver"||dL.mN=="fused cache"){dL.aK.pop();}if(dL.aK.length==0){dL.bU="top";dL.bE=dL.kV;}else{dL.bU=dL.aK.join("/");dL.bE=dL.kV+"/"+dL.bU;}}}iv(null,null,null);}}else{if(action=="folder"||action=="mapservice"){dL.bE+="/"+name;dL.bU+="/"+name;}dL.ba.length=0;dL.ba=dL.bE.split("/rest/services");if(dL.ba[1]==""||dL.ba[1]=="/"||dL.ba[1]===undefined){}else{dL.bU=dL.ba[1].slice(1);}dL.gS=false;dL.gis_sidebar_html=dL.fT[dL.aF][dL.bU];if(dL.gis_sidebar_html!==undefined){dL.gS=true;document.getElementById("pj").innerHTML=dL.gis_sidebar_html;if(dL.cF[dL.aF][dL.bU]!==undefined){nC(3);}}else{eR("open");dL.pu="https://mappingsupport.com/test_gmap4/php_surf_gis_20.php?arcgis_server_url="+dL.bE;cA.open("GET",dL.pu,true);cA.send();}}dL.st=dL.bE;dL.sY=dL.bU;}};function nC(K){dL.ba.length=0;dL.ba=dL.cF[dL.aF][dL.bU].split("^");max=dL.ba.length-1;if(max==1){if(dL.ba[0]!="_"){document.ea.eI.checked=true;}else{document.ea.eI.checked=false;}}else{for(i=0;iGmap4 has encountered a fatal runtime error.
    "+"
    "+"Please copy this message and email it to the Gmap4 developer via this contact page"+"
    "+"dL.aF = "+specialDebug1+"
    "+"dL.bU = "+specialDebug2+"
    "+"dL.cF[][] = "+specialDebug3+"
    ";display_messsage(25183,null);}else if(dL.cF[dL.aF][dL.bU].length==2){dL.lZ=true;dL.gL="";if(document.ea.eI.checked===undefined){dL.lc="delete";dL.gL=dL.cF[dL.aF][dL.bU].replace("^","");dL.cF[dL.aF][dL.bU]="_^";}else if(document.ea.eI.checked===false){dL.lc="delete";dL.gL=dL.cF[dL.aF][dL.bU].replace("^","");dL.cF[dL.aF][dL.bU]="_^";}else{dL.lc="add";dL.gis_sequential_layer_ctr++;dL.cF[dL.aF][dL.bU]=dL.gis_sequential_layer_ctr+"^";}}else{dL.co.length=0;dL.co=dL.cF[dL.aF][dL.bU].split("^");if(dL.ls[dL.aF][dL.bU]!==undefined){dL.fz=dL.ls[dL.aF][dL.bU].split("^");}if(document.ea.eI[dL.hg].checked===false){dL.rq=false;dL.lc="delete";dL.gL=dL.co[dL.hg];dL.co[dL.hg]="_";dL.rG="_";if(action=="mapserver"&&dL.hg>0){if(dL.fz[dL.hg]>1){k=dL.hg-1;while(k>=0&&dL.fz[k]!=dL.fz[dL.hg]-1){k--;}if(k<0){}else{if(document.ea.eI[k].checked!==false){dL.dy=true;dL.msg="
    Action not allowed. To delete a group of nested layers, please click the parent layer.";r(24831,null);document.ea.eI[dL.hg].checked=true;}else{}}}}}else{dL.rq=true;dL.lc="add";dL.gis_sequential_layer_ctr++;dL.co[dL.hg]=dL.gis_sequential_layer_ctr;dL.rG=dL.gis_sequential_layer_ctr;}}if(dL.dy===false){dL.sO="";dL.Cb=21;dL.BF=2;dL.BC="rest";if(action=="mapserver"||action=="fused cache"){dL.sO="export";dL.kf="true";dL.Bm=true;dL.rW="png";dL.su="";if(action=="fused cache"){if(dL.lZ!==false){}else{dL.jJ="";max=dL.co.length-1;for(i=0;i=dL.jz[j+1])){dL.el+=""+j+",";}j++;}dL.el=dL.el.substr(0,dL.el.length-1);dL.cF[dL.aF][dL.bU]=dL.co.join("^");}}}}if(dL.bE.substr(-10)!="/MapServer"){dL.bE+="/MapServer";}}else if(action=="imageserver"){dL.su="/"+dL.jm+"/ImageServer";dL.sO="exportImage";dL.kf="true";dL.Bm=true;dL.rW="png";dL.el=0;}if(dL.lZ===false){dL.cF[dL.aF][dL.bU]=dL.co.join("^");}if(dL.lc=="add"){dL.tk=""+dL.BC+"^^"+dL.kf+"^"+dL.rW+"^"+dL.jm+"^"+dL.bE+dL.su+"/"+dL.sO+"?bboxSR=4326&layers=show:"+dL.el+"&size=256,256&imageSR=3857&format="+dL.rW+"&transparent="+dL.kf+"&dpi=&f=image";f=dL.lM;while(f<=dL.jF&&dL.dT[f]!="_"){f++}if(f==36){dL.msg="
    You have already added 35 overlays to the map. That is the maximum allowed."+r(25776,null);}else{uW(f);dL.ks++;dL.map.mapTypes.set(dL.lJ[f],dL.bP[f]);I(dL.jm,dL.kf,f,"qG");if(dL.kf=="true"){if(dL.kn>dL.sR){dL.gk=true;dL.pv=Math.floor(dL.kn/2);}gr(9);}else{dL.TOP_RIGHT_basemap_dropdown_content+="
    "+dL.J[f]+"
    ";}dL.gis_url_for_text_file[f]=dL.bE+dL.su+"?name="+dL.J[f]+"&layers="+dL.el+"&transparent=true";}}else{ko(2);}}};function yF(){dL.co.length=0;dL.co=dL.cF[dL.aF][dL.bU].split("^");jq=dL.co.length-1;if(jq==1){if(dL.co[0]!="_"){document.ea.eI.checked=false;dL.gL=dL.cF[dL.aF][dL.bU].replace("^","");dL.cF[dL.aF][dL.bU]="_^";ko(3);}}else{for(j=0;j0){dL.dT[f]=dL.gis_sequential_layer_ctr;}dL.aK.length=0;dL.aK=dL.tk.split("^");dL.Q[f]=dL.aK[0];dL.ds[f]=dL.aK[1];dL.eh[f]=dL.aK[2];dL.bM[f]=dL.aK[3];dL.J[f]=dL.aK[4].replace(/\s+/g,"_");if(dL.oe!==false){dL.dT[f]=dL.J[f];}if(dL.J[f]!="not_for_menu"){if(dL.eh[f]=="true"){dL.kn++;dL.gis_current_added_layer_ctr++;}}dL.gis_sidebar_ix_ary[f]=""+dL.aF+"^"+dL.bU;dL.gis_overlay_add_ix_ary.push(f);menu_name_ix=dL.gis_overlay_add_ix_ary.length-1;dL.gis_overlay_delete_ix_ary[f]=menu_name_ix;dL.d[f]=dL.aK[5];if(dL.Q[f]=="rest"){if(dL.ba!==undefined){dL.ba.length=0;}dL.ba=dL.d[f].split("MapServer");dL.mH[f]=dL.ba[0]+"MapServer";yj=dL.d[f].split("layers=show:");yD=yj[1].split("&");dL.mp[f]=yD[0];}dL.lJ[f]=""+dL.J[f]+"_id";dL.fd[f]="off";dL.cV[f]=" -";switch(f){case 0:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yT(coord,zoom);return url;}});break;case 1:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=xm(coord,zoom);return url;}});break;case 2:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vB(coord,zoom);return url;}});break;case 3:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=xD(coord,zoom);return url;}});break;case 4:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yh(coord,zoom);return url;}});break;case 5:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yn(coord,zoom);return url;}});break;case 6:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=wp(coord,zoom);return url;}});break;case 7:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=xT(coord,zoom);return url;}});break;case 8:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yk(coord,zoom);return url;}});break;case 9:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=xO(coord,zoom);return url;}});break;case 10:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yq(coord,zoom);return url;}});break;case 11:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=xU(coord,zoom);return url;}});break;case 12:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vv(coord,zoom);return url;}});break;case 13:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vt(coord,zoom);return url;}});break;case 14:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=wP(coord,zoom);return url;}});break;case 15:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=xc(coord,zoom);return url;}});break;case 16:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=wf(coord,zoom);return url;}});break;case 17:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vl(coord,zoom);return url;}});break;case 18:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=wo(coord,zoom);return url;}});break;case 19:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vq(coord,zoom);return url;}});break;case 20:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vm(coord,zoom);return url;}});break;case 21:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vF(coord,zoom);return url;}});break;case 22:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vn(coord,zoom);return url;}});break;case 23:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=we(coord,zoom);return url;}});break;case 24:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=wQ(coord,zoom);return url;}});break;case 25:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vU(coord,zoom);return url;}});break;case 26:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=vJ(coord,zoom);return url;}});break;case 27:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yB(coord,zoom);return url;}});break;case 28:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yg(coord,zoom);return url;}});break;case 29:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yM(coord,zoom);return url;}});break;case 30:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yA(coord,zoom);return url;}});break;case 31:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=xE(coord,zoom);return url;}});break;case 32:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yt(coord,zoom);return url;}});break;case 33:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=xG(coord,zoom);return url;}});break;case 34:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yS(coord,zoom);return url;}});break;case 35:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yv(coord,zoom);return url;}});break;case 36:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yl(coord,zoom);return url;}});break;case 37:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=ya(coord,zoom);return url;}});break;case 38:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yr(coord,zoom);return url;}});break;case 39:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=yI(coord,zoom);return url;}});break;case 40:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=xV(coord,zoom);return url;}});break;case 41:dL.bP[f]=new google.maps.ImageMapType({alt:dL.J[f],isPng:dL.bM[f],maxZoom:21,minZoom:1,name:dL.J[f],tileSize:new google.maps.Size(256,256),getTileUrl:function(coord,zoom){url=DF(coord,zoom);return url;}});break;}if(dL.oe===false){}};function ko(K){slot_18_ix=dL.lM;while(slot_18_ix<=dL.jF&&dL.dT[slot_18_ix]!=dL.gL){slot_18_ix++;}if(slot_18_ix>dL.jF){}else{dL.dT[slot_18_ix]="_";menu_name_ix=dL.gis_overlay_delete_ix_ary[slot_18_ix];dL.jm=dL.J[menu_name_ix];dL.ks--;dL.gis_overlay_add_ix_ary.splice(menu_name_ix,1);dL.gis_overlay_delete_ix_ary.length=0;max=dL.gis_overlay_add_ix_ary.length;for(k=0;k"+"
    "+""+"
    ";"";}if(dL.gis_layers_manage_ctr==0){dL.msg=dL.gis_manage_msg+"
    "+dL.gis_manage_html+"
    ";}else{dL.msg=dL.gis_manage_msg+"

    This is a list of the GIS overlay layers that you have added to the map.

    "+dL.gis_manage_html+"
    ";}dL.msg+=""+""+"
    ";r(26124,null);if(dL.gis_layers_manage_ctr==0){document.getElementById("more_text_manage_gis_id").innerHTML=dL.gis_manage_error_1;document.getElementById("more_text_manage_gis_id").style.display="block";}else{if(dL.gis_layers_manage_ctr==1){document.gis_manage_form.gis_manage_layer.checked=false;}else{for(i=0;i0){dL.gis_layers_checked_ctr=0;if(dL.gis_layers_manage_ctr==1){if(document.gis_manage_form.gis_manage_layer.checked!==false){dL.gis_layers_checked_ctr=1;}}else{for(i=0;i"+"*** Error *** Please check only one box before clicking the sidebar button";document.getElementById("more_text_manage_gis_id").innerHTML=temp_error;document.getElementById("more_text_manage_gis_id").style.display="block";}else{dL.ba.length=0;dL.ba=dL.gis_sidebar_ix_ary[f].split("^");dL.gis_sidebar_html=dL.fT[dL.ba[0]][dL.ba[1]];bF(2);fX(1);nC(4);}}}else if(action==8){}else if(action==3||action==4){dL.gis_layers_manage_ctr=0;max_manage=dL.gis_overlay_add_ix_ary.length;for(i=dL.eP;i0){dL.gis_layers_checked_ctr=0;if(dL.gis_layers_manage_ctr==1){if(document.gis_manage_form.gis_manage_layer.checked!==false){dL.gis_layers_checked_ctr=1;}}else{for(i=0;i"+"*** Error *** Please check one or more boxes before clicking the delete button";document.getElementById("more_text_manage_gis_id").innerHTML=temp_error;document.getElementById("more_text_manage_gis_id").style.display="block";}else{for(jx=dL.eP;jx=jq){}else{if(dL.gT[dL.ba[0]][dL.ba[1]]=="fused cache"){for(i=0;i"+url+"");}return url;};function xD(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ll=new google.maps.Point(tile.x*256/B,(tile.y)*256/B);hQ=new google.maps.Point((tile.x+1)*256/B,(tile.y+1)*256/B);fK=eY.fromPointToLatLng(ll);fj=eY.fromPointToLatLng(hQ);bbox=fK.lng()+","+fK.lat()+","+fj.lng()+","+fj.lat();if(dL.oc=="on"){new google.maps.Marker({position:fK,map:dL.map,icon:'https://maps.google.com/mapfiles/kml/paddle/red-stars-lv.png'});new google.maps.Marker({position:fj,map:dL.map,icon:'https://maps.google.com/mapfiles/kml/paddle/red-stars-lv.png'});}url=dL.d[3]+dL.sy+"]&bbox="+bbox;if(dL.dE=='on'&&dL.bR[3]<2){dL.bR[3]++;alert("26257 (congress yellow) gis index = 3 ___masu.J[3] = "+dL.J[3]+" ___tile number = "+dL.bR[3]+" ___url =
    "+url+"
    ");}return url;};function yh(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ll=new google.maps.Point(tile.x*256/B,(tile.y)*256/B);hQ=new google.maps.Point((tile.x+1)*256/B,(tile.y+1)*256/B);fK=eY.fromPointToLatLng(ll);fj=eY.fromPointToLatLng(hQ);bbox=fK.lng()+","+fK.lat()+","+fj.lng()+","+fj.lat();if(dL.oc=="on"){new google.maps.Marker({position:fK,map:dL.map,icon:'https://maps.google.com/mapfiles/kml/paddle/red-stars-lv.png'});new google.maps.Marker({position:fj,map:dL.map,icon:'https://maps.google.com/mapfiles/kml/paddle/red-stars-lv.png'});}tY=dL.sB;if(dL.vV=="no"){tY="";}url=dL.d[4]+tY+"]"+"&bbox="+bbox;if(dL.dE=='on'&&dL.bR[4]<2){dL.bR[4]++;alert("26295 (congress red) gis index = 4 ___masu.J[4] = "+dL.J[4]+" ___tile number = "+dL.bR[4]+" ___url =
    "+url+"
    ");}return url;};function yn(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[5]=="rest"||dL.Q[5]=="wms"){if(dL.Q[5]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[5]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[5]+"&bbox="+bbox;}else if(dL.Q[5]=="wmts"){url=dL.d[5];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[5];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[5]<2){dL.bR[5]++;alert("26734 gis index = 5 ___masu.J[5] = "+dL.J[5]+" ___tile number = "+dL.bR[5]+" ___url =
    "+url+"
    ");}return url;};function wp(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[6]=="rest"||dL.Q[6]=="wms"){if(dL.Q[6]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[6]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[6]+"&bbox="+bbox;}else if(dL.Q[6]=="wmts"){url=dL.d[6];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[6];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[6]<2){dL.bR[6]++;alert("26363 gis index = 6 ___masu.J[6] = "+dL.J[6]+" ___tile number = "+dL.bR[6]+" ___url =
    "+url+"
    ");}return url;};function xT(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[7]=="rest"||dL.Q[7]=="wms"){if(dL.Q[7]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[7]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[7]+"&bbox="+bbox;}else if(dL.Q[7]=="wmts"){url=dL.d[7];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[7];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[7]<2){dL.bR[7]++;alert("26397 gis index = 7 ___masu.J[7 = "+dL.J[7]+" ___tile number = "+dL.bR[7]+" ___url =
    "+url+"
    ");}return url;};function yk(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[8]=="rest"||dL.Q[8]=="wms"){if(dL.Q[8]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[8]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[8]+"&bbox="+bbox;}else if(dL.Q[8]=="wmts"){url=dL.d[8];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[8];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[8]<2){dL.bR[8]++;alert("26431 gis index = 8 ___masu.J[8] = "+dL.J[8]+" ___tile number = "+dL.bR[8]+" ___url =
    "+url+"
    ");}return url;};function xO(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[9]=="rest"||dL.Q[9]=="wms"){if(dL.Q[9]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[9]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[9]+"&bbox="+bbox;}else if(dL.Q[9]=="wmts"){url=dL.d[9];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[9];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[9]<2){dL.bR[9]++;alert("26464 gis index = 9 ___masu.J[9] = "+dL.J[9]+" ___tile number = "+dL.bR[9]+" ___url =
    "+url+"
    ");}return url;};function yq(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[10]=="rest"||dL.Q[10]=="wms"){if(dL.Q[10]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[10]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[10]+"&bbox="+bbox;}else if(dL.Q[10]=="wmts"){url=dL.d[10];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[10];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[10]<2){dL.bR[10]++;alert("26498 gis index = 10 ___masu.J[10] = "+dL.J[10]+" ___tile number = "+dL.bR[10]+" ___url =
    "+url+"
    ");}return url;};function xU(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[11]=="rest"||dL.Q[11]=="wms"){if(dL.Q[11]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[11]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[11]+"&bbox="+bbox;}else if(dL.Q[11]=="wmts"){url=dL.d[11];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[11];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[11]<2){dL.bR[11]++;alert("26532 gis index = 11 ___masu.J[11] = "+dL.J[11]+" ___tile number = "+dL.bR[11]+" ___url =
    "+url+"
    ");}return url;};function vv(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[12]=="rest"||dL.Q[12]=="wms"){if(dL.Q[12]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[12]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[12]+"&bbox="+bbox;}else if(dL.Q[12]=="wmts"){url=dL.d[12];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[12];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[12]<2){dL.bR[12]++;alert("26566 gis index = 12 ___masu.J[12] = "+dL.J[12]+" ___tile number = "+dL.bR[12]+" ___url =
    "+url+"
    ");}return url;};function vt(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[13]=="rest"||dL.Q[13]=="wms"){if(dL.Q[13]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[13]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[13]+"&bbox="+bbox;}else if(dL.Q[13]=="wmts"){url=dL.d[13];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[13];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[13]<2){dL.bR[13]++;alert("26600 gis index = 13 ___masu.J[13] = "+dL.J[13]+" ___tile number = "+dL.bR[13]+" ___url =
    "+url+"
    ");}return url;};function wP(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[14]=="rest"||dL.Q[14]=="wms"){if(dL.Q[14]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[14]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[14]+"&bbox="+bbox;}else if(dL.Q[14]=="wmts"){url=dL.d[14];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[14];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[14]<2){dL.bR[14]++;alert("26634 gis index = 14 ___masu.J[14] = "+dL.J[14]+" ___tile number = "+dL.bR[14]+" ___url =
    "+url+"
    ");}return url;};function xc(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[15]=="rest"||dL.Q[15]=="wms"){if(dL.Q[15]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[15]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[15]+"&bbox="+bbox;}else if(dL.Q[15]=="wmts"){url=dL.d[15];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[15];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[15]<2){dL.bR[15]++;alert("26668 gis index = 15 ___masu.J[15] = "+dL.J[15]+" ___tile number = "+dL.bR[15]+" ___url =
    "+url+"
    ");}return url;};function wf(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[16]=="rest"||dL.Q[16]=="wms"){if(dL.Q[16]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[16]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[16]+"&bbox="+bbox;}else if(dL.Q[16]=="wmts"){url=dL.d[16];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[16];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[16]<2){dL.bR[16]++;alert("26702 gis index = 16 ___masu.J[16] = "+dL.J[16]+" ___tile number = "+dL.bR[16]+" ___url =
    "+url+"
    ");}return url;};function vl(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[17]=="rest"||dL.Q[17]=="wms"){if(dL.Q[17]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[17]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[17]+"&bbox="+bbox;}else if(dL.Q[17]=="wmts"){url=dL.d[17];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[17];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[17]<2){dL.bR[17]++;alert("26736 gis index = 17 ___masu.J[17] = "+dL.J[17]+" ___tile number = "+dL.bR[17]+" ___url =
    "+url+"
    ");}return url;};function wo(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[18]=="rest"||dL.Q[18]=="wms"){if(dL.Q[18]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[18]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[18]+"&bbox="+bbox;}else if(dL.Q[18]=="wmts"){url=dL.d[18];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[18];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[18]<2){dL.bR[18]++;alert("26770 gis index = 18 ___masu.J[18] = "+dL.J[18]+" ___tile number = "+dL.bR[18]+" ___url =
    "+url+"
    ");}return url;};function vq(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[19]=="rest"||dL.Q[19]=="wms"){if(dL.Q[19]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[19]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[19]+"&bbox="+bbox;}else if(dL.Q[19]=="wmts"){url=dL.d[19];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[19];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[19]<2){dL.bR[19]++;alert("26804 gis index = 19 ___masu.J[19] = "+dL.J[19]+" ___tile number = "+dL.bR[19]+" ___url =
    "+url+"
    ");}return url;};function vm(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[20]=="rest"||dL.Q[20]=="wms"){if(dL.Q[20]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[20]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[20]+"&bbox="+bbox;}else if(dL.Q[20]=="wmts"){url=dL.d[20];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[20];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}if(dL.dE=='on'&&dL.bR[20]<2){dL.bR[20]++;alert("26838 gis index = 20 ___masu.J[20] = "+dL.J[20]+" ___tile number = "+dL.bR[204]+" ___url =
    "+url+"
    ");}return url;};function vF(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[21]=="rest"||dL.Q[21]=="wms"){if(dL.Q[21]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[21]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[21]+"&bbox="+bbox;}else if(dL.Q[21]=="wmts"){url=dL.d[21];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[21];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function vn(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[22]=="rest"||dL.Q[22]=="wms"){if(dL.Q[22]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[22]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[22]+"&bbox="+bbox;}else if(dL.Q[22]=="wmts"){url=dL.d[22];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[22];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function we(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[23]=="rest"||dL.Q[23]=="wms"){if(dL.Q[23]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[23]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[23]+"&bbox="+bbox;}else if(dL.Q[23]=="wmts"){url=dL.d[23];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[23];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function wQ(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[24]=="rest"||dL.Q[24]=="wms"){if(dL.Q[24]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[24]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[24]+"&bbox="+bbox;}else if(dL.Q[24]=="wmts"){url=dL.d[24];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[24];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function vU(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[25]=="rest"||dL.Q[25]=="wms"){if(dL.Q[25]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[25]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[25]+"&bbox="+bbox;}else if(dL.Q[25]=="wmts"){url=dL.d[25];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[25];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function vJ(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[26]=="rest"||dL.Q[26]=="wms"){if(dL.Q[26]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[26]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[26]+"&bbox="+bbox;}else if(dL.Q[26]=="wmts"){url=dL.d[26];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[26];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yB(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[27]=="rest"||dL.Q[27]=="wms"){if(dL.Q[27]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[27]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[27]+"&bbox="+bbox;}else if(dL.Q[27]=="wmts"){url=dL.d[27];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[27];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yg(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[28]=="rest"||dL.Q[28]=="wms"){if(dL.Q[28]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[28]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[28]+"&bbox="+bbox;}else if(dL.Q[28]=="wmts"){url=dL.d[28];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[28];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yM(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[29]=="rest"||dL.Q[29]=="wms"){if(dL.Q[29]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[29]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[29]+"&bbox="+bbox;}else if(dL.Q[29]=="wmts"){url=dL.d[29];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[29];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yA(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[30]=="rest"||dL.Q[30]=="wms"){if(dL.Q[30]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[30]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[30]+"&bbox="+bbox;}else if(dL.Q[30]=="wmts"){url=dL.d[30];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[30];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function xE(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[31]=="rest"||dL.Q[31]=="wms"){if(dL.Q[31]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[31]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[31]+"&bbox="+bbox;}else if(dL.Q[31]=="wmts"){url=dL.d[31];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[31];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yt(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[32]=="rest"||dL.Q[32]=="wms"){if(dL.Q[32]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[32]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[32]+"&bbox="+bbox;}else if(dL.Q[32]=="wmts"){url=dL.d[32];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[32];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function xG(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[33]=="rest"||dL.Q[33]=="wms"){if(dL.Q[33]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[33]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[33]+"&bbox="+bbox;}else if(dL.Q[33]=="wmts"){url=dL.d[33];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[33];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yS(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[34]=="rest"||dL.Q[34]=="wms"){if(dL.Q[34]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[34]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[34]+"&bbox="+bbox;}else if(dL.Q[34]=="wmts"){url=dL.d[34];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[34];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yv(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[35]=="rest"||dL.Q[35]=="wms"){if(dL.Q[35]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[35]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[35]+"&bbox="+bbox;}else if(dL.Q[35]=="wmts"){url=dL.d[35];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[35];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yl(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[36]=="rest"||dL.Q[36]=="wms"){if(dL.Q[36]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[36]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[36]+"&bbox="+bbox;}else if(dL.Q[36]=="wmts"){url=dL.d[36];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[36];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function ya(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[37]=="rest"||dL.Q[37]=="wms"){if(dL.Q[37]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[37]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[37]+"&bbox="+bbox;}else if(dL.Q[37]=="wmts"){url=dL.d[37];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[37];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yr(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[38]=="rest"||dL.Q[38]=="wms"){if(dL.Q[38]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[38]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[38]+"&bbox="+bbox;}else if(dL.Q[38]=="wmts"){url=dL.d[38];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[38];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function yI(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[39]=="rest"||dL.Q[39]=="wms"){if(dL.Q[39]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[39]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[39]+"&bbox="+bbox;}else if(dL.Q[39]=="wmts"){url=dL.d[39];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[39];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function xV(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.Q[40]=="rest"||dL.Q[40]=="wms"){if(dL.Q[40]=="rest"){bbox=P.lng()+","+g.lat()+","+g.lng()+","+P.lat();}else if(dL.ds[40]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[40]+"&bbox="+bbox;}else if(dL.Q[40]=="wmts"){url=dL.d[40];url=url.replace('&{z}{y}{x}','&tilematrix='+zoom+'&tilerow='+tile.y+'&tilecol='+tile.x);}else{url=dL.d[40];url=url.replace('{z}{x}{y}',zoom+"/"+tile.x+"/"+tile.y)}return url;};function pP(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();if(dL.bi=="naip"){url="https://basemap.nationalmap.gov/ArcGIS/rest/services/USGSImageryOnly/MapServer/export?f=image&bbox="+bbox+"&dpi=200&imageSR=102113&bboxSR=4406&format=jpg&layers=show:0&transparent=true";}else if(dL.bi=="t5"){url="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en?REQUEST=GetMap&SERVICE=wms&VERSION=1.1.1&srs=epsg:4326&WIDTH=256&HEIGHT=256&FORMAT=image/jpeg&layers=WMS-Toporama&BBOX="+bbox;}else if(dL.bi=="bc"){url="https://maps.gov.bc.ca/arcserver/rest/services/Province/web_mercator_cache/MapServer/export?f=image&bbox="+bbox+"&dpi=200&imageSR=3857&bboxSR=4326&format=png24&layers=show:0&transparent=false";}return url;};function Bt(tile,zoom){eY=window.dL.map.getProjection();B=Math.pow(2,zoom);ul=new google.maps.Point(tile.x*256/B,(tile.y+1)*256/B);lr=new google.maps.Point((tile.x+1)*256/B,(tile.y)*256/B);P=eY.fromPointToLatLng(ul);g=eY.fromPointToLatLng(lr);if(dL.ds[dL.sq]=="1.1.1"){bbox=P.lng()+","+P.lat()+","+g.lng()+","+g.lat();}else{bbox=P.lat()+","+P.lng()+","+g.lat()+","+g.lng();}url=dL.d[dL.sq];return url;};function Du(coord,zoom){url="https://apps.fs.fed.us/ArcX/rest/services/EDW/EDW_State_01/MapServer/tile/"+zoom+"/"+coord.x+"/"+coord.y+".png";return url;};function Ab(en){dL.aK.length=0;en=""+en;if(en.length==12){dL.aK[0]=en.substr(0,2);dL.aK[1]="  ";dL.aK[2]=en.substr(2,2);dL.aK[3]="  ";dL.aK[4]=en.substr(4,4);dL.aK[5]="  ";dL.aK[6]=en.substr(8,4);}else{en=""+en;dL.aK[0]=en.substr(0,3);dL.aK[1]="  ";dL.aK[2]=en.substr(3,2);dL.aK[3]="  ";dL.aK[4]=en.substr(5,4);dL.aK[5]="  ";dL.aK[6]=en.substr(9,4);}dL.ow=dL.aK.join("");};function gc(){if(dL.ce=="grid"){dL.debug_sequence="21834 start func gc. ___masu.H = "+dL.H+"
    "+dL.debug_sequence;dL.msg="Push down stack
    "+dL.debug_sequence;r(27229,null);}if(dL.H=="off"){}else{cN="";if(dL.H=="utm"){cN="center";}dL.ac=dL.ar;eu(cN,"");c="Center ";if(dL.at=="phone"){c="";}dL.fO=""+c+dL.cX;if(dL.H=="utm"||dL.H=="usng"||dL.H=="mgrs"){fN(0,"coordinate");if(dL.H=="utm"){cj("UTM, called from func gc",1);}else{cj("usng/mgrs, called from func gc",1);}}}if(dL.at=="desktop"||(dL.H!="usng"&&dL.H!="mgrs")){fq();}dL.mJ=false;};function ye(){dL.ie=Math.round(512);dL.kj=Math.round(512);dL.ar=dL.map.getCenter();dL.sx=dL.map.getZoom();dL.un=new google.maps.MarkerImage("https://propertylinemaps.com/p/png/bombsite/red_circle_black_white_solid_hair.png",new google.maps.Size(31,31),new google.maps.Point(0,0),new google.maps.Point(16,16));dL.wS={coord:[16,16,15],type:'circle'};dL.hA=new google.maps.Marker({clickable:true,cursor:"move",draggable:true,icon:dL.un,map:dL.map,position:dL.ar,raiseOnDrag:false});google.maps.event.addListener(dL.hA,'dragstart',function(){bF(2);});google.maps.event.addListener(dL.hA,'drag',function(){dL.ax=this;wx=this.getPosition();pR(wx);});google.maps.event.addListener(dL.hA,'dragend',function(){dL.ax=this;wF=this.getPosition();pR(wF);});google.maps.event.addListener(dL.hA,'rightclick',function(){wc();});dL.rY=true;pR(dL.ar);wK();dL.rY=false;dL.Cy={strokeColor:"#FF0000",strokeOpacity:1,strokeWeight:2};dL.sM=new google.maps.Polyline(dL.Cy);dL.sM.setMap(dL.map);dL.dJ=[];dL.dJ=dL.sM.getPath();for(i=0;i<4;i++){dL.dJ.push(dL.aW[i]);dL.dm[i]=new google.maps.Marker({clickable:true,cursor:"move",draggable:true,icon:dL.un,map:dL.map,position:dL.aW[i],raiseOnDrag:false});dL.dm[i].ag=i;google.maps.event.addListener(dL.dm[i],'dragstart',function(){bF(2);});google.maps.event.addListener(dL.dm[i],'drag',function(){dL.ax=this;dL.bZ=dL.ax.getPosition();k=dL.ax.ag;switch(k){case 0:dL.aW[0]=dL.bZ;dL.aW[1]=new google.maps.LatLng(dL.bZ.lat(),dL.aW[1].lng());dL.aW[3]=new google.maps.LatLng(dL.aW[3].lat(),dL.bZ.lng());dL.dm[1].setPosition(dL.aW[1]);dL.dm[3].setPosition(dL.aW[3]);dL.dJ.setAt(0,dL.aW[0]);dL.dJ.setAt(1,dL.aW[1]);dL.dJ.setAt(3,dL.aW[3]);dL.dJ.setAt(4,dL.aW[0]);break;case 1:dL.aW[1]=dL.bZ;dL.aW[0]=new google.maps.LatLng(dL.bZ.lat(),dL.aW[0].lng());dL.aW[2]=new google.maps.LatLng(dL.aW[2].lat(),dL.bZ.lng());dL.dm[0].setPosition(dL.aW[0]);dL.dm[2].setPosition(dL.aW[2]);dL.dJ.setAt(1,dL.aW[1]);dL.dJ.setAt(0,dL.aW[0]);dL.dJ.setAt(2,dL.aW[2]);dL.dJ.setAt(4,dL.aW[0]);break;case 2:dL.aW[2]=dL.bZ;dL.aW[1]=new google.maps.LatLng(dL.aW[1].lat(),dL.bZ.lng());dL.aW[3]=new google.maps.LatLng(dL.bZ.lat(),dL.aW[3].lng());dL.dm[1].setPosition(dL.aW[1]);dL.dm[3].setPosition(dL.aW[3]);dL.dJ.setAt(2,dL.aW[2]);dL.dJ.setAt(1,dL.aW[1]);dL.dJ.setAt(3,dL.aW[3]);break;case 3:dL.aW[3]=dL.bZ;dL.aW[0]=new google.maps.LatLng(dL.aW[0].lat(),dL.bZ.lng());dL.aW[2]=new google.maps.LatLng(dL.bZ.lat(),dL.aW[2].lng());dL.dm[0].setPosition(dL.aW[0]);dL.dm[2].setPosition(dL.aW[2]);dL.dJ.setAt(3,dL.aW[3]);dL.dJ.setAt(0,dL.aW[0]);dL.dJ.setAt(2,dL.aW[2]);dL.dJ.setAt(4,dL.aW[0]);break;}});google.maps.event.addListener(dL.dm[i],'dragend',function(){dL.lat=(dL.aW[0].lat()+dL.aW[2].lat())/2;dL.lng=(dL.aW[0].lng()+dL.aW[2].lng())/2;dL.xC=new google.maps.LatLng(dL.lat,dL.lng);dL.hA.setPosition(dL.xC);});google.maps.event.addListener(dL.dm[i],'rightclick',function(){wc();});}dL.dJ.push(dL.aW[0]);dL.xL="To move the box, drag the symbol at the center of the box.";};function wK(){if(dL.rY===false){aq=dL.aW[0];bY=dL.sx;pw(aq,bY);o=dL.gu.x;c=dL.gu.y;aq=dL.aW[2];pw(aq,bY);dL.ie=Math.abs(o-dL.gu.x)+1;dL.kj=Math.abs(c-dL.gu.y)+1;}dL.xi=""+dL.ie+"w x "+dL.kj+"h";dL.xs=""+"
    "+"Current zoom level = "+dL.map.getZoom()+"
    "+"Download zoom level = "+dL.sx+"
    "+"Download size = "+dL.xi+"

    "+"Download zip file

    "+"Cancel and erase box

    "+"Help"+"
    ";};function pR(yU){pw(yU,dL.sx);dL.aW.length=0;dL.ga=Math.round(dL.gu.x-dL.ie/2);dL.hm=Math.round(dL.gu.y-dL.kj/2);op(dL.ga,dL.hm);dL.aW[0]=dL.bZ;dL.ga=dL.ga+dL.ie-1;dL.hm=dL.hm;op(dL.ga,dL.hm);dL.aW[1]=dL.bZ;dL.ga=dL.ga;dL.hm=dL.hm+dL.kj-1;op(dL.ga,dL.hm);dL.aW[2]=dL.bZ;dL.ga=dL.ga-dL.ie+1;dL.hm=dL.hm;op(dL.ga,dL.hm);dL.aW[3]=dL.bZ;if(dL.rY===false){for(i=0;i<4;i++){dL.dJ.setAt(i,dL.aW[i]);dL.dm[i].setPosition(dL.aW[i]);}dL.dJ.setAt(4,dL.aW[0]);}};function wc(){wK();dL.bx.setContent(dL.xs);dL.bx.setPosition(dL.hA.getPosition());dL.bx.open(dL.map);};function pY(e,action){if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}e.returnValue=false;if(action==1){if(jn){dL.vx="http://www.sccgov.org/arcgis/rest/services/imagery/SCC-2012NAIPAerials1/MapServer";dL.xQ=""+"1";dL.yu=""+dL.ie+","+dL.kj;dL.vA="false";dL.zc=""+dL.aW[0].lng()+","+dL.aW[0].lat()+","+dL.aW[2].lng()+","+dL.aW[2].lat();dL.uH="https://mappingsupport.com/test_gmap4/php_gis_image_download_001.php?url="+dL.vx+"&layers="+dL.xQ+"&size="+dL.yu+"&transparent="+dL.vA+"&bbox="+dL.zc;cA.open("GET",dL.uH,true);cA.send();}else{dL.msg="
    Your browser is not compatible with the process for downloading a file. Please try the current version of Firefox or Chrome.";r(27655,null);}}else if(action==2){bF(2);google.maps.event.clearInstanceListeners(dL.hA);dL.hA.setMap(null);dL.sM.setMap(null);for(i=0;i<4;i++){google.maps.event.clearInstanceListeners(dL.dm[i]);dL.dm[i].setMap(null);}}else{dL.msg=dL.xL;r(27674,null);}};function cR(ez){this.setValues(ez);dL.label_span=this.span_=document.createElement('span');dL.label_span.style.cssText=dL.fo;dL.label_div=this.div_=document.createElement('div');dL.label_div.appendChild(dL.label_span);dL.label_div.style.cssText='position: absolute; display: none';};function gz(ac,bG,bd){var bc=new Array(3);aq=ac.toUrlValue();aK=aq.split(",");lat=aK[0];lon=aK[1];lon=parseFloat(lon);lat=parseFloat(lat);if(bd=="null"){if(bG=="center"){aq=dL.map.getCenter();aq=aq.lng().toFixed(6);aq=parseFloat(aq);bd=Math.floor((aq+180.0)/6)+1;}else{bd=Math.floor((lon+180.0)/6)+1;}}bc[2]=bd;bd=rg(lL(lat),lL(lon),bd,bc);return(bc);};function gA(bI,bL,bH,aY){ad=new Array(2);var x,y,bd,aI;x=bI;y=bL;bd=bH;aI=aY;qp(x,y,bd,aI,ad);ad[0]=nM(ad[0]);ad[1]=nM(ad[1]);return(ad);};function lL(da){return(da/180.0*aQ)};function nM(aV){return(aV/aQ*180.0)};function qR(aw){var alpha,beta,U,aa,V,n;var result;n=(aE-aC)/(aE+aC);alpha=((aE+aC)/2.0)*(1.0+(Math.pow(n,2.0)/4.0)+(Math.pow(n,4.0)/64.0));beta=(-3.0*n/2.0)+(9.0*Math.pow(n,3.0)/16.0)+(-3.0*Math.pow(n,5.0)/32.0);U=(15.0*Math.pow(n,2.0)/16.0)+(-15.0*Math.pow(n,4.0)/32.0);aa=(-35.0*Math.pow(n,3.0)/48.0)+(105.0*Math.pow(n,5.0)/256.0);V=(315.0*Math.pow(n,4.0)/512.0);result=alpha*(aw+(beta*Math.sin(2.0*aw))+(U*Math.sin(4.0*aw))+(aa*Math.sin(6.0*aw))+(V*Math.sin(8.0*aw)));return result;};function pn(bd){var O;O=lL(-183.0+(bd*6.0));return O;};function pz(y){var be,G,beta_FootpointLatitude,am,nn,tI,n;var result;n=(aE-aC)/(aE+aC);G=((aE+aC)/2.0)*(1+(Math.pow(n,2.0)/4)+(Math.pow(n,4.0)/64));be=y/G;beta_FootpointLatitude=(3.0*n/2.0)+(-27.0*Math.pow(n,3.0)/32.0)+(269.0*Math.pow(n,5.0)/512.0);am=(21.0*Math.pow(n,2.0)/16.0)+(-55.0*Math.pow(n,4.0)/32.0);nn=(151.0*Math.pow(n,3.0)/96.0)+(-417.0*Math.pow(n,5.0)/128.0);tI=(1097.0*Math.pow(n,4.0)/512.0);result=be+(beta_FootpointLatitude*Math.sin(2.0*be))+(am*Math.sin(4.0*be))+(nn*Math.sin(6.0*be))+(tI*Math.sin(8.0*be));return result;};function qD(aw,ap,ah,bc){var N,aG,kA,t,t2,l;var al,ak,ao,an,aj,ai;var aX;kA=(Math.pow(aE,2.0)-Math.pow(aC,2.0))/Math.pow(aC,2.0);aG=kA*Math.pow(Math.cos(aw),2.0);N=Math.pow(aE,2.0)/(aC*Math.sqrt(1+aG));t=Math.tan(aw);t2=t*t;aX=(t2*t2*t2)-Math.pow(t,6.0);l=ap-ah;al=1.0-t2+aG;ak=5.0-t2+9*aG+4.0*(aG*aG);ao=5.0-18.0*t2+(t2*t2)+14.0*aG-58.0*t2*aG;an=61.0-58.0*t2+(t2*t2)+270.0*aG-330.0*t2*aG;aj=61.0-479.0*t2+179.0*(t2*t2)-(t2*t2*t2);ai=1385.0-3111.0*t2+543.0*(t2*t2)-(t2*t2*t2);bc[0]=N*Math.cos(aw)*l+(N/6.0*Math.pow(Math.cos(aw),3.0)*al*Math.pow(l,3.0))+(N/120.0*Math.pow(Math.cos(aw),5.0)*ao*Math.pow(l,5.0))+(N/5040.0*Math.pow(Math.cos(aw),7.0)*aj*Math.pow(l,7.0));bc[1]=qR(aw)+(t/2.0*N*Math.pow(Math.cos(aw),2.0)*Math.pow(l,2.0))+(t/24.0*N*Math.pow(Math.cos(aw),4.0)*ak*Math.pow(l,4.0))+(t/720.0*N*Math.pow(Math.cos(aw),6.0)*an*Math.pow(l,6.0))+(t/40320.0*N*Math.pow(Math.cos(aw),8.0)*ai*Math.pow(l,8.0));return;};function qr(x,y,ah,aT){var aO,aH,ay,aA,kA,aL,az,aM,L;var bv,bw,bC,bz,bo,bm,bt,bq;var bB,bA,bn,bl,bp,bu,bs;aO=pz(y);kA=(Math.pow(aE,2.0)-Math.pow(aC,2.0))/Math.pow(aC,2.0);L=Math.cos(aO);aA=kA*Math.pow(L,2.0);aH=Math.pow(aE,2.0)/(aC*Math.sqrt(1+aA));ay=aH;aL=Math.tan(aO);az=aL*aL;aM=az*az;bv=1.0/(ay*L);ay*=aH;bw=aL/(2.0*ay);ay*=aH;bC=1.0/(6.0*ay*L);ay*=aH;bz=aL/(24.0*ay);ay*=aH;bo=1.0/(120.0*ay*L);ay*=aH;bm=aL/(720.0*ay);ay*=aH;bt=1.0/(5040.0*ay*L);ay*=aH;bq=aL/(40320.0*ay);bB= -1.0-aA;bA= -1.0-2*az-aA;bn=5.0+3.0*az+6.0*aA-6.0*az*aA-3.0*(aA*aA)-9.0*az*(aA*aA);bl=5.0+28.0*az+24.0*aM+6.0*aA+8.0*az*aA;bp= -61.0-90.0*az-45.0*aM-107.0*aA+162.0*az*aA;bu= -61.0-662.0*az-1320.0*aM-720.0*(aM*az);bs=1385.0+3633.0*az+4095.0*aM+1575*(aM*az);aT[0]=aO+bw*bB*(x*x)+bz*bn*Math.pow(x,4.0)+bm*bp*Math.pow(x,6.0)+bq*bs*Math.pow(x,8.0);aT[1]=ah+bv*x+bC*bA*Math.pow(x,3.0)+bo*bl*Math.pow(x,5.0)+bt*bu*Math.pow(x,7.0);return;};function rg(lat,lon,bd,bc){qD(lat,lon,pn(bd),bc);bc[0]=bc[0]*bk+500000.0;bc[1]=bc[1]*bk;if(bc[1]<0.0)bc[1]=bc[1]+10000000.0;return bd;};function qp(x,y,bd,aI,ad){var O;x-=500000.0;x/=bk;if(aI)y-=10000000.0;y/=bk;O=pn(bd);qr(x,y,O,ad);return;};function ys(value,sm,opt_max){if(sm!=null)value=Math.max(value,sm);if(opt_max!=null)value=Math.min(value,opt_max);return value;};function yX(deg){return deg*(Math.PI/180);};function yL(aV){return aV/(Math.PI/180);};function cc_MercatorProjection(){this.pixelOrigin_=new google.maps.Point(dL.nt/2,dL.nt/2);this.pixelsPerLonDegree_=dL.nt/360;this.pixelsPerLonRadian_=dL.nt/(2*Math.PI);};cc_MercatorProjection.prototype.fromLatLngToPoint=function(latLng,zq){var me=this;dL.rR=zq||new google.maps.Point(0,0);dL.mZ=me.pixelOrigin_;dL.rR.x=dL.mZ.x+latLng.lng()*me.pixelsPerLonDegree_;dL.wD=ys(Math.sin(yX(latLng.lat())),-0.9999,0.9999);dL.rR.y=dL.mZ.y+0.5*Math.log((1+dL.wD)/(1-dL.wD))* -me.pixelsPerLonRadian_;return dL.rR;};cc_MercatorProjection.prototype.fromPointToLatLng=function(point){var me=this;dL.mZ=me.pixelOrigin_;dL.xr=(point.x-dL.mZ.x)/me.pixelsPerLonDegree_;dL.xp=(point.y-dL.mZ.y)/ -me.pixelsPerLonRadian_;dL.xW=yL(2*Math.atan(Math.exp(dL.xp))-Math.PI/2);return new google.maps.LatLng(dL.xW,dL.xr);};function pw(point,zoom){dL.pl=1<360||lon< -180||lat>84||lat< -80){console.log('28932 usng.js, getZoneNumber: invalid input. lat: '+lat.toFixed(4)+' lon: '+lon.toFixed(4)+" From USNG conversion code.");}var lonTemp=(lon+180)-parseInt((lon+180)/360)*360-180;var zoneNumber=parseInt((lonTemp+180)/6)+1;if(lat>=56.0&&lat<64.0&&lonTemp>=3.0&&lonTemp<12.0){zoneNumber=32;}if(lat>=72.0&&lat<84.0){if(lonTemp>=0.0&&lonTemp<9.0){zoneNumber=31;}else if(lonTemp>=9.0&&lonTemp<21.0){zoneNumber=33;}else if(lonTemp>=21.0&&lonTemp<33.0){zoneNumber=35;}else if(lonTemp>=33.0&&lonTemp<42.0){zoneNumber=37;}}return zoneNumber;};function LLtoUTM(lat,lon,utmcoords,bd){lat=parseFloat(lat);lon=parseFloat(lon);if(lat>84.0||lat< -80.0){return(UNDEFINED_STR);}if(lon>360||lon< -180||lat>90||lat< -90){console.log('usng.js, LLtoUTM, invalid input. lat: '+lat.toFixed(4)+' lon: '+lon.toFixed(4)+" From USNG conversion code.");}lonTemp=(lon+180)-parseInt((lon+180)/360)*360-180;latRad=lat*DEG_2_RAD;lonRad=lonTemp*DEG_2_RAD;if(!bd){zoneNumber=getZoneNumber(lat,lon);}else{zoneNumber=bd}lonOrigin=(zoneNumber-1)*6-180+3;lonOriginRad=lonOrigin*DEG_2_RAD;UTMZone=zoneNumber+""+UTMLetterDesignator(lat)+" ";N=EQUATORIAL_RADIUS/Math.sqrt(1-ECC_SQUARED*Math.sin(latRad)*Math.sin(latRad));T=Math.tan(latRad)*Math.tan(latRad);C=ECC_PRIME_SQUARED*Math.cos(latRad)*Math.cos(latRad);A=Math.cos(latRad)*(lonRad-lonOriginRad);M=EQUATORIAL_RADIUS*((1-ECC_SQUARED/4-3*(ECC_SQUARED*ECC_SQUARED)/64-5*(ECC_SQUARED*ECC_SQUARED*ECC_SQUARED)/256)*latRad-(3*ECC_SQUARED/8+3*ECC_SQUARED*ECC_SQUARED/32+45*ECC_SQUARED*ECC_SQUARED*ECC_SQUARED/1024)*Math.sin(2*latRad)+(15*ECC_SQUARED*ECC_SQUARED/256+45*ECC_SQUARED*ECC_SQUARED*ECC_SQUARED/1024)*Math.sin(4*latRad)-(35*ECC_SQUARED*ECC_SQUARED*ECC_SQUARED/3072)*Math.sin(6*latRad));UTMEasting=(k0*N*(A+(1-T+C)*(A*A*A)/6+(5-18*T+T*T+72*C-58*ECC_PRIME_SQUARED)*(A*A*A*A*A)/120)+EASTING_OFFSET);UTMNorthing=(k0*(M+N*Math.tan(latRad)*((A*A)/2+(5-T+9*C+4*C*C)*(A*A*A*A)/24+(61-58*T+T*T+600*C-330*ECC_PRIME_SQUARED)*(A*A*A*A*A*A)/720)));if(utmcoords===undefined){utmcoords=[];}utmcoords[0]=UTMEasting;utmcoords[1]=UTMNorthing;utmcoords[2]=zoneNumber;};function LLtoUSNG(){lat=dL.lat;lon=dL.lng;precision=4;if(lon< -180){lon+=360;}else if(lon>180){lon-=360;}lat=parseFloat(lat);lon=parseFloat(lon);var coords=[];LLtoUTM(lat,lon,coords);var UTMEasting=coords[0];var UTMNorthing=coords[1];if(lat<0){UTMNorthing+=NORTHING_OFFSET;}USNGLetters=findGridLetters(zoneNumber,UTMNorthing,UTMEasting);USNGNorthing=Math.round(UTMNorthing)%BLOCK_SIZE;USNGEasting=Math.round(UTMEasting)%BLOCK_SIZE;USNGNorthing=Math.floor(USNGNorthing/Math.pow(10,(5-precision)));USNGEasting=Math.floor(USNGEasting/Math.pow(10,(5-precision)));USNG=getZoneNumber(lat,lon)+UTMLetterDesignator(lat)+" "+USNGLetters+" ";for(i_ix=String(USNGEasting).length;i_ix=lat)&&(lat>=72))letterDesignator='X';else if((72>lat)&&(lat>=64))letterDesignator='W';else if((64>lat)&&(lat>=56))letterDesignator='V';else if((56>lat)&&(lat>=48))letterDesignator='U';else if((48>lat)&&(lat>=40))letterDesignator='T';else if((40>lat)&&(lat>=32))letterDesignator='S';else if((32>lat)&&(lat>=24))letterDesignator='R';else if((24>lat)&&(lat>=16))letterDesignator='Q';else if((16>lat)&&(lat>=8))letterDesignator='P';else if((8>lat)&&(lat>=0))letterDesignator='N';else if((0>lat)&&(lat>= -8))letterDesignator='M';else if((-8>lat)&&(lat>= -16))letterDesignator='L';else if((-16>lat)&&(lat>= -24))letterDesignator='K';else if((-24>lat)&&(lat>= -32))letterDesignator='J';else if((-32>lat)&&(lat>= -40))letterDesignator='H';else if((-40>lat)&&(lat>= -48))letterDesignator='G';else if((-48>lat)&&(lat>= -56))letterDesignator='F';else if((-56>lat)&&(lat>= -64))letterDesignator='E';else if((-64>lat)&&(lat>= -72))letterDesignator='D';else if((-72>lat)&&(lat>= -80))letterDesignator='C';else letterDesignator='Z';return letterDesignator;};function findSet(zoneNum){zoneNum=parseInt(zoneNum);zoneNum=zoneNum%6;switch(zoneNum){case 0:return 6;break;case 1:return 1;break;case 2:return 2;break;case 3:return 3;break;case 4:return 4;break;case 5:return 5;break;default:return-1;break;}};function findGridLetters(zoneNum,northing,easting){zoneNum=parseInt(zoneNum);northing=parseFloat(northing);easting=parseFloat(easting);row=1;oY=Math.round(northing);while(oY>=BLOCK_SIZE){oY=oY-BLOCK_SIZE;row++;}row=row%GRIDSQUARE_SET_ROW_SIZE;col=0;rs=Math.round(easting);while(rs>=BLOCK_SIZE){rs=rs-BLOCK_SIZE;col++;}col=col%GRIDSQUARE_SET_COL_SIZE;return lettersHelper(findSet(zoneNum),row,col);};function lettersHelper(set,row,col){if(row==0){row=GRIDSQUARE_SET_ROW_SIZE-1;}else{row--;}if(col==0){col=GRIDSQUARE_SET_COL_SIZE-1;}else{col--;}switch(set){case 1:l1="ABCDEFGH";l2="ABCDEFGHJKLMNPQRSTUV";return l1.charAt(col)+l2.charAt(row);break;case 2:l1="JKLMNPQR";l2="FGHJKLMNPQRSTUVABCDE";return l1.charAt(col)+l2.charAt(row);break;case 3:l1="STUVWXYZ";l2="ABCDEFGHJKLMNPQRSTUV";return l1.charAt(col)+l2.charAt(row);break;case 4:l1="ABCDEFGH";l2="FGHJKLMNPQRSTUVABCDE";return l1.charAt(col)+l2.charAt(row);break;case 5:l1="JKLMNPQR";l2="ABCDEFGHJKLMNPQRSTUV";return l1.charAt(col)+l2.charAt(row);break;case 6:l1="STUVWXYZ";l2="FGHJKLMNPQRSTUVABCDE";return l1.charAt(col)+l2.charAt(row);break;}};function UTMtoLL(UTMNorthing,UTMEasting,UTMZoneNumber,ret){var xUTM=parseFloat(UTMEasting)-EASTING_OFFSET;var yUTM=parseFloat(UTMNorthing);var zoneNumber=parseInt(UTMZoneNumber);var lonOrigin=(zoneNumber-1)*6-180+3;var M=yUTM/k0;var mu=M/(EQUATORIAL_RADIUS*(1-ECC_SQUARED/4-3*ECC_SQUARED*ECC_SQUARED/64-5*ECC_SQUARED*ECC_SQUARED*ECC_SQUARED/256));var phi1Rad=mu+(3*E1/2-27*E1*E1*E1/32)*Math.sin(2*mu)+(21*E1*E1/16-55*E1*E1*E1*E1/32)*Math.sin(4*mu)+(151*E1*E1*E1/96)*Math.sin(6*mu);var phi1=phi1Rad*RAD_2_DEG;var N1=EQUATORIAL_RADIUS/Math.sqrt(1-ECC_SQUARED*Math.sin(phi1Rad)*Math.sin(phi1Rad));var T1=Math.tan(phi1Rad)*Math.tan(phi1Rad);var C1=ECC_PRIME_SQUARED*Math.cos(phi1Rad)*Math.cos(phi1Rad);var R1=EQUATORIAL_RADIUS*(1-ECC_SQUARED)/Math.pow(1-ECC_SQUARED*Math.sin(phi1Rad)*Math.sin(phi1Rad),1.5);var D=xUTM/(N1*k0);var lat=phi1Rad-(N1*Math.tan(phi1Rad)/R1)*(D*D/2-(5+3*T1+10*C1-4*C1*C1-9*ECC_PRIME_SQUARED)*D*D*D*D/24+(61+90*T1+298*C1+45*T1*T1-252*ECC_PRIME_SQUARED-3*C1*C1)*D*D*D*D*D*D/720);lat=lat*RAD_2_DEG;var lon=(D-(1+2*T1+C1)*D*D*D/6+(5-2*C1+28*T1-3*C1*C1+8*ECC_PRIME_SQUARED+24*T1*T1)*D*D*D*D*D/120)/Math.cos(phi1Rad);lon=lonOrigin+lon*RAD_2_DEG;ret.lat=lat;ret.lon=lon;dL.lat=lat;dL.lng=lon;return;};function USNGtoUTM(bd,let,sq1,sq2,east,north,ret){var zoneBase=[1.1,2.0,2.9,3.8,4.7,5.6,6.5,7.3,8.2,9.1,0,0.8,1.7,2.6,3.5,4.4,5.3,6.2,7.0,7.9];var segBase=[0,2,2,2,4,4,6,6,8,8,0,0,0,2,2,4,4,6,6,6];var eSqrs=USNGSqEast.indexOf(sq1);var appxEast=1+eSqrs%8;var letNorth="CDEFGHJKLMNPQRSTUVWX".indexOf(let);if(bd%2)var nSqrs="ABCDEFGHJKLMNPQRSTUV".indexOf(sq2);else var nSqrs="FGHJKLMNPQRSTUVABCDE".indexOf(sq2);var zoneStart=zoneBase[letNorth];var appxNorth=Number(segBase[letNorth])+nSqrs/10;if(appxNorth15){return 0;}strregexp=new RegExp("^[0-9]{2}[CDEFGHJKLMNPQRSTUVWX]$");if(usngStr.match(strregexp)){console.log("Input appears to be a UTM bd...more precision is required to display a correct result. From USNG conversion code.");return 0;}strregexp=new RegExp("^[0-9]{2}[CDEFGHJKLMNPQRSTUVWX][ABCDEFGHJKLMNPQRSTUVWXYZ][ABCDEFGHJKLMNPQRSTUV]([0-9][0-9]){0,5}$");if(!usngStr.match(strregexp)){return 0;}if(usngStr.length<7){console.log(usngStr+" Appears to be a USNG string, but this application requires precision of at least 10,000 meters. From USNG conversion code.");return 0;}return usngStr;};function LLtoMGRS(lat,lon,precision){var uy="";var ow=LLtoUSNG(lat,lon,precision);var regexp=/ /g;uy=ow.replace(regexp,"");return(uy);};function LLtoUSNG_nad27(lat,lon,precision){var usngstr;EQUATORIAL_RADIUS=6378206.4;ECC_SQUARED=0.006768658;usngstr=LLtoUSNG(lat,lon,precision);EQUATORIAL_RADIUS=6378137.0;ECC_SQUARED=0.006694380023;return usngstr+" (NAD27)";}
    Map is loading