CINXE.COM

TopoSvalbard - Norsk Polarinstitutt

<!DOCTYPE html><html><head> <script src="https://www.googletagmanager.com/gtag/js?id=G-DL58MSK59L"></script> <script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);} gtag('js',new Date());gtag('config','G-DL58MSK59L');</script><meta name=google-site-verification content=n_q9vULiP6nEgTlqAeR_QVIa8lAov6lc4WybByVuhwY/><meta name=robots content=noimageindex><meta name=description content="Interaktivt kart over Svalbard fra Norsk Polarinstitutt / Interactive map of Svalbard by the Norwegian Polar Institute"><meta name=keywords content="kart, map, Svalbard"><link rel=canonical href="https://toposvalbard.npolar.no/"/><meta http-equiv=Content-Type content="text/html; charset=utf-8"><link rel="SHORTCUT ICON" href=favicon.png><meta name=viewport content="initial-scale=1, maximum-scale=1, user-scalable=no"><title>TopoSvalbard - Norsk Polarinstitutt</title> <script type="text/javascript">var urlsearch=window.location.search;if(urlsearch.indexOf("version=full")>0){} else{if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){var tsminiurl=document.URL;tsminiurl=tsminiurl.replace("toposvalbard.npolar.no/","toposvalbard.npolar.no/tsmini.html");tsminiurl=tsminiurl.replace("toposvalbard.npolar.no/index.html","toposvalbard.npolar.no/tsmini.html");window.location.href=tsminiurl;} if(urlsearch.indexOf("version=mini")>0){window.location.href="tsmini.html"};}</script><link rel=stylesheet href=esri.css><style>html,body{overflow:none;height:100%;width:100%;margin:0;padding:0;font-family:verdana,arial,helvetica,sans-serif;font-size:11px;color:#434A4C}body{background-color:#E6E6E6;overflow:hidden}.infowindow .sprite{background-image:url('infowindow.png') !important}.infowindow .window{position:absolute;color:#434A4C;font-family:Verdana,arial,helvetica,sans-serif;font-size:11px}.infowindow .window .top .right .user .titlebar .title{font-weight:normal;color:#042A6C}.infowindow .window .top .right .user .content{font-size:11px}#map{margin:0px;z-index:11;width:100%;height:100%}#cursorlength{position:absolute;top:10px;left:10px;display:none;color:white;background-color:#960000;z-index:12;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;border-radius:5px}#cursorshow{position:absolute;top:10px;left:10px;width:30px;height:30px;display:none;background-color:#FF00FF;z-index:12;border-radius:15px}#photoposterphotodirback{position:absolute;left:54px;top:435px;z-index:98;color:#000000;font-family:Verdana,arial,helvetica,sans-serif;font-size:12px;background-color:#000000;opacity:.40;filter:Alpha(opacity=40)}#coordformatsbackgr{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none}#coordformattext3SAR{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none}#coordformatclose{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none}#showhide{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;height:20px;position:fixed;top:2px;width:20px;left:2px;z-index:50}#showhideomap{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;height:20px;position:fixed;top:2px;width:20px;right:2px;z-index:50;display:none}#panel{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;width:1px;position:fixed;height:1px;left:1px;top:1px;z-index:40}#logo{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:fixed;top:22px;left:22px;z-index:50}#zoomtoclick{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;height:50px;position:fixed;top:11px;width:192px;left:214px;z-index:35}#sarmenu{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;position:fixed;top:372px;left:6px;z-index:35}#photopoint{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:block;margin:0px;padding:0px;height:19px;position:fixed;top:71px;width:19px;left:173px;z-index:90}#namepoint{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:block;margin:0px;padding:0px;height:19px;position:fixed;top:49px;width:19px;left:173px;z-index:90}#maptype{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;position:fixed;top:11px;left:147px;z-index:51}#maptypelist{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;height:166px;position:fixed;top:37px;width:149px;left:20px;z-index:90}#maptypelist_map_showback{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:11px;left:215px;z-index:40;display:none}#maptypelist_map_menupin{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:0px;left:153px;z-index:93}#maptypelist_mapx{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:0px;left:4px;z-index:93}#maptypelist_aerialx3d{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:0px;left:79px;z-index:94;display:none}#maptypelist_aerialx{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:0px;left:79px;z-index:93}#maptypelist_map_topographic{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:64px;left:10px;z-index:93}#maptypelist_map_nautical{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:85px;left:10px;z-index:94}#nauticalenc{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:86px;left:124px;z-index:95;display:none}#maptypelist_map_terrain{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:106px;left:10px;z-index:94}#maptypelist_map_terrainsl{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:107px;left:100px;z-index:95}#maptypelist_map_terrainhs{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:107px;left:123px;z-index:95}#maptypelist_3d{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:127px;left:10px;z-index:94}#maptypelist_3dexp{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:148px;left:10px;z-index:94}#maptypelist_map_names{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:175px;left:10px;z-index:94}#maptypelist_map_terraincnt{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:196px;left:10px;z-index:94}#maptypelist_map_graticules{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:217px;left:10px;z-index:94}#maptypelist_map_index{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:238px;left:10px;z-index:94}#maptypelist_map_dimmed{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:259px;left:10px;z-index:94}#maptypelist_aerial_showback{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:11px;left:215px;z-index:40;display:none}#maptypelist_aerial_menupin{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:0px;left:153px;z-index:93}#maptypelist_aerial_aerial{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:64px;left:10px;z-index:93}#maptypelist_aerial_aerialsat{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:85px;left:10px;z-index:94}#maptypelist_aerial_sat{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:106px;left:10px;z-index:94}#maptypelist_aerial_satw{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:127px;left:10px;z-index:94}#maptypelist_aerial_ortho36{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:148px;left:10px;z-index:94}#maptypelist_aerial_old{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:175px;left:10px;z-index:95}#maptypelist_aerial_names{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:196px;left:10px;z-index:94}#maptypelist_aerial_graticules{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:217px;left:10px;z-index:94}#maptypelist_aerial_index{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:238px;left:10px;z-index:94}#maptypelist_aerial_dimmed{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;position:absolute;top:259px;left:10px;z-index:94}#maptypelist_map{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;height:58px;position:absolute;top:9px;width:107px;left:6px;z-index:91}#cursorshowb{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;height:17px;position:fixed;top:20px;width:17px;left:21px;z-index:50}#mapexportdiv{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:block;margin:0px;padding:0px;position:fixed;top:19px;left:83px;z-index:50}#language{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;height:17px;position:fixed;top:19px;width:17px;left:105px;z-index:50}#aboutpopup{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;height:17px;position:fixed;top:19px;width:17px;left:127px;z-index:50}#measureresults{margin:0px;padding:0px;height:16px;position:fixed;top:237px;left:43px;width:130px;color:#434A4C;z-index:50}#measureunit{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:1px;height:17px;position:fixed;top:235px;width:17px;left:19px;z-index:50}#coordlistplot{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;color:#7B888C;margin:0px;padding:0px;height:21px;position:fixed;width:29px;left:165px;top:168px;z-index:50}#eraser{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:1px;height:21px;position:fixed;top:194px;width:29px;left:164px;z-index:50}#measure{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:1px;height:21px;position:fixed;top:231px;width:29px;left:164px;z-index:50}#textdiv{color:#7B888C;margin:0px;padding:0px;height:16px;position:fixed;width:126px;top:257px;left:20px;z-index:50}#mapurltitle{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;color:#434A4C;margin:0px;padding:0px;position:absolute;top:11px;left:14px;z-index:50;display:none}#mapurldiv{color:#434A4C;margin:0px;padding:0px;height:16px;position:absolute;width:170px;top:10px;left:15px;z-index:50}#mapprinttitle{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;color:#434A4C;margin:0px;padding:0px;position:absolute;top:52px;left:14px;z-index:50;display:none}#mapprintnotes{color:#434A4C;margin:0px;padding:0px;position:absolute;top:68px;left:14px;z-index:50;display:none}#mapprint{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;padding:0px;position:absolute;top:69px;left:155px;z-index:50;display:none}#mapexportclose{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;padding:0px;position:absolute;top:6px;left:167px;z-index:50;display:none}#iframemaptitle{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;color:#434A4C;margin:0px;padding:0px;position:absolute;top:96px;left:14px;z-index:50;display:none}#iframemapbutton{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;padding:0px;position:absolute;top:95px;left:155px;z-index:50;display:none}#mapprintframeright{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;position:absolute;top:0px;left:650px;z-index:60;cursor:not-allowed}#mapprintframebottom{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;position:absolute;top:650px;left:0px;z-index:60;cursor:not-allowed}#mapprintout{display:none;position:absolute;top:0px;left:0px;height:77px;z-index:60}#mapprintlogo{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:5px;left:5px;color:#000000;display:none}#mapexportnote{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:0px;left:92px;display:none}#mapprintnotestop{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:32px;left:92px;width:550px;color:#000000;font-size:14px;font-weight:bold;display:none}#mapscaledexport{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:52px;left:92px;cursor:default;display:none}#zoomin{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:107px;left:170px;z-index:50}#zoomout{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:127px;left:170px;z-index:50}#textmarker{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;color:#7B888C;margin:0px;padding:0px;height:21px;position:fixed;width:29px;left:165px;top:255px;z-index:50}#pn{color:#7B888C;margin:0px;padding:0px;height:16px;position:fixed;width:126px;top:212px;left:20px;z-index:60}#pnjump{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:fixed;margin:0px;padding:0px;height:22px;width:23px;right:376px;top:23px;z-index:99}#zoomnorthdiv{color:#7B888C;margin:0px;padding:0px;height:14px;position:fixed;width:62px;top:281px;left:20px;z-index:50}#zoomeastdiv{color:#7B888C;margin:0px;padding:0px;height:14px;position:fixed;width:62px;top:281px;left:95px;z-index:50}#zoom{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;height:21px;position:fixed;top:279px;width:29px;left:165px;z-index:50}#showcoord{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;font-size:10px;margin:0px;padding:0px;height:25px;position:fixed;top:303px;width:180px;left:22px;cursor:default;z-index:50}#dynposu33{color:#646D70}#dynposw84{color:#646D70}#utmformat{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;color:#6D8FC4;text-decoration:underline;margin:0px;padding:0px;position:fixed;top:301px;left:22px;width:140px;height:14px;cursor:pointer;z-index:52;display:none}#dgformat{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;color:#6D8FC4;text-decoration:underline;margin:0px;padding:0px;position:fixed;top:315px;left:22px;width:140px;height:12px;cursor:pointer;z-index:51;display:none}#tooltips{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;font-size:11px;margin:0px;padding:0px;height:27px;position:fixed;top:302px;width:140px;left:22px;cursor:default;z-index:40}#captcoord{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;margin:0px;padding:0px;height:21px;position:fixed;top:305px;width:29px;left:165px;z-index:51}#scale3dnb{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;position:absolute;bottom:3px;cursor:default;z-index:75}#scale3dnote{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;position:absolute;bottom:21px;cursor:default;z-index:95}#mapscaled{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;height:16px;position:absolute;bottom:2px;cursor:default;z-index:74}#terms{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;cursor:default;position:absolute;bottom:2px;right:159px;width:74px;height:16px;z-index:95}#accuracy{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;cursor:default;position:absolute;bottom:2px;right:243px;width:270px;height:16px;z-index:95}#copyright{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;cursor:default;position:absolute;bottom:2px;right:133px;width:16px;height:16px;z-index:95}#npolardiv{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;cursor:default;position:absolute;bottom:2px;right:7px;width:128px;height:16px;z-index:95}#transplengthrightborder{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;position:absolute;background-color:#808080;bottom:18px;right:0px;width:513px;height:1px;z-index:70}#transplengthright{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;position:absolute;background-color:#F2F2F2;bottom:0px;right:0px;width:514px;height:18px;z-index:70}#transprightedge{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;position:absolute;bottom:-1px;right:513px;width:20px;height:20px;z-index:70}#poster{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:3px;left:220px;display:none;z-index:95}#photoposter{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:3px;left:219px;width:820px;height:470px;display:none;z-index:95}#aboutposter{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:3px;left:215px;width:459px;height:329px;display:none;z-index:95}#coordlistposter{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:3px;left:215px;height:329px;display:none;z-index:95}#outsideposter{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;background-color:#000000;opacity:.70;filter:Alpha(opacity=70);z-index:75;region:center;margin:0px;left:0px;top:0px;width:100%;height:100%;display:none}#gull1{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;left:-100px;top:15px;width:12px;height:5px;z-index:40}#gull2{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;left:-100px;top:15px;width:12px;height:5px;z-index:40}#gull3{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;left:-100px;top:15px;width:12px;height:5px;z-index:40}#aerialthumbback{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;opacity:.60;filter:Alpha(opacity=60)}#i3dexpid{position:absolute;width:100%;height:100%;border:1px solid}#bordercontainer{design:headline}a img{border:0}#iframemaptitle{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;color:#434A4C;margin:0px;padding:0px;position:absolute;top:96px;left:14px;z-index:50;display:none}#iframemapbutton{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;padding:0px;position:absolute;top:95px;left:155px;z-index:50;display:none}#mapprintframeright{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;position:absolute;top:0px;left:650px;z-index:60;cursor:not-allowed;display:none}#mapprintframebottom{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;display:none;margin:0px;padding:0px;position:absolute;top:650px;left:0px;z-index:60;cursor:not-allowed;display:none}#iframemapdiv{position:absolute;left:248px;top:11px;z-index:60;display:block}#iframemapdivback{position:absolute;left:202px;top:1px;z-index:20;display:block;cursor:not-allowed}#iframecompose{position:absolute;top:18px;left:21px;margin:0px;z-index:81}#iframecomposer{position:absolute;display:none;top:42px;left:21px;margin:0px;z-index:99}#iframecenter{position:absolute;display:none;top:159px;left:489px;margin:0px;z-index:98}#iframetitlediv{position:absolute;color:#7B888C;margin:0px;width:133px;top:7px;left:8px;z-index:85}#iframeinfodiv{position:absolute;color:#7B888C;margin:0px;top:30px;left:8px;z-index:85}#iframemarkertext{position:absolute;top:89px;left:7px;margin:0px;z-index:85}#iframemarkerline{position:absolute;top:89px;left:29px;margin:0px;z-index:85}#iframemarkeryellow{position:absolute;top:89px;left:125px;margin:0px;z-index:85}#iframemarkergreen{position:absolute;top:89px;left:102px;margin:0px;z-index:85}#iframemarkerblue{position:absolute;top:89px;left:56px;margin:0px;z-index:85}#iframemarkerred{position:absolute;top:89px;left:79px;margin:0px;z-index:85}#iframeiframediv{display:none;position:absolute;color:#7B888C;margin:0px;top:16px;left:17px;z-index:100}#iframeeraser{position:absolute;display:block;top:18px;left:177px;margin:0px;z-index:82}#iframemapmatch{position:absolute;display:block;top:18px;left:201px;margin:0px;z-index:82}#iframeimapmatch{position:absolute;display:block;top:18px;left:225px;margin:0px;z-index:82}#iframeimapget{position:absolute;display:block;top:18px;left:262px;margin:0px;z-index:82}#iframeagree{position:absolute;display:none;top:29px;left:269px;margin:0px;z-index:99}#iframeagree_cancel{position:absolute;top:254px;left:305px;margin:0px;z-index:99}#iframeagree_accept{position:absolute;top:254px;left:385px;margin:0px;z-index:99}#iframeagree_close{position:absolute;top:254px;left:385px;margin:0px;z-index:98}#iframecomposerhide{position:absolute;display:block;top:18px;left:448px;margin:0px;z-index:82}#iframecomposershow{position:absolute;display:none;top:29px;left:696px;margin:0px;z-index:82}#iframecomposerclose{position:absolute;display:block;top:18px;left:472px;margin:0px;z-index:82}#iframemap{position:absolute;top:13px;left:16px;margin:0px;z-index:11;width:480px;height:300px;region:center}#iframenavcontrols{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:223px;left:459px;z-index:90}#iframebackground{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:299px;left:16px;height:14px;width:125px;z-index:88}#iframenplogo{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;top:240px;left:20px;z-index:90}#iframelogo{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;position:absolute;width:97px;height:57px;top:256px;left:359px;z-index:90}</style> <script>var dojoConfig={parseOnLoad:true,async:true,packages:[{"name":"utils","location":"https://toposvalbard.npolar.no"}]};</script> <script src=proj4.js type="text/javascript"></script> <script src=init.js></script> <script type="text/javascript">if(window.top==window.self){var wrapperv="1";document.onkeydown=function(evt){var keyCode=evt?(evt.which?evt.which:evt.keyCode):event.keyCode;if(keyCode==13&&wrapperv=="1"){return false;} else{return true;}} var getcentercoord;var scrtomapcoord;var cxpos;var cypos;var coordformattitlelang="Feil koordinatformat eller <br> utenfor kartet.";var eastwest=1;var puXi;var xdeg;var xmin;var xsec;var ydeg;var ymin;var ysec;var roundup=0;var dyndd;var dyndm;var dyndms;var pw84scxw;var x60sc;var y60sc;var pw84scxwe;var pw84sc;var pw84scx;var pw84scy;var utmX;var dynutm;var dynutmx;var dynutmy;var dynutmzone;var dynutmbelt;var utm0="[Ingen UTM-sone]";var cursorshow=0;var urlsar;var urlsarpoint;var sarlist;var sar=0;var sarpl="";var layeropacity=1;var firstclick=0;var lengthadd=0;var lengthpos=0;var utmformattip="UTM-sone 33/dynamisk";var utmformat="dyn";var dgformattip="Endre gradtallformat";var dgformat="dm";var detectedbrowser;var orthoonly=0;var infohide=0;var dataplotted=0;var poigraphicid=0;var poigraphic;var poipl;var map3dnstart=0;var map3destart=0;var map3dsstart=0;var map3dwstart=0;var cl_linestart=0;var cl_value;var cl_markerSymbol;var fontl;var symboll;var ptl;var i;var textSymboll;var pttl;var labelPointGraphicl;var l_lang;var pl;var north;var zoomeastform;var east;var zdd;var pt;var symbol;var textSymbol;var ptt;var labelPointGraphic;var zoomnorthform;var markerSymbolharvest;var plharvest;var harvest_fontl;var harvest_textSymboll;var harvest_pttl;var harvest_labelPointGraphicl;var markergraphicharvest;var markergraphic;var markerSymbol;var mobile=0;var isIE11;var urllink=document.URL;var urllat="0";var urllng="0";var urlzoom="5";var uposx;var uposy;var npweb=0;var upos;var photojsload=0;var aerialjsload=0;var myVar;var mapexport=0;var mapurltitle="Kopier kartlenke";var mapprinttitledefault="Tittel";var map3dn;var map3de;var map3ds;var map3dw;var whitemap;var topographicLayer;var nauticalLayer;var terrainhsLayer;var terrainslLayer;var terraincntLayer;var terraintype="sl";var terraincnt=0;var settleLayer;var orthoLayer;var ortho36Layer;var landsatLayer;var landsatwLayer;var landsatw=0;var ortho36=0;var aerialnamesLayer;var mapmaportho="map";var startup3dexp=0;var x;var y;var x3d;var y3d;var prevmap="map3dn";var activemap="map";var activemaptoggle;var zoomlevel=0;var firstload=0;var infoWindowContent;var sizen=0;var coordoff=0;var activegraphic;var saractivegraphic;var xpos;var ypos;var coordgetx0;var coordgety0;var coordgetx1;var coordgety1;var coordgetx;var coordgety;var measuremode="distance";var measurewhat=0;var pPoint=0;var factor;var aerialimage;var pnjumplink;var pnlang="&lang=nn";var maptype_tips="";var maptype="map";var newmaptype="topographic";var newaerialtype="aerialsat";var menupin=0;var mapexport_tips="Kartlenke / Utskrift";var photopoint_tips="Vis/skjul landskaps-bilder";var namepoint_tips="Vis/skjul stedsnavn-informasjon";var toggle_tips="- eller høyreklikk i kartet";var toggletip_startup=0;var coordlistplot_tips="Plott dataliste /<br>GPX-fil fra GPS ...";var geoname_autocomplete_tips="Skriv og velg fra listen";var language_tips="Switch to English";var aboutpopup_tips="Om / Tegnforkl. / Hjelp";var cursorshow_tips="Øk musepeker-synligheten";var measureresults_tips="Måleresultat";var measureunit_tips="Velg måleenhet (km/mi/nm)";var kinpan=0;var measure_tips="Mål avstand/tegn linje";var eraser_tips="Slett forrige plott"+"<br>"+"(høyreklikk: slett alt)";var textmarkerinput_tips="Test/blå";var textmarker_tips="Plasser tekst/markør i kartet";var northinput_tips="33X1234567/ dd.ddddd"+"<br>"+"dd mm.m/ dd mm ss.s";var eastinput_tips="33X123456/ dd.ddddd"+"<br>"+"dd mm.m/ dd mm ss.s";var zoom_tips="Zoom til koordinater";var captcoord_tips="Klikk et punkt i kartet for koordinater";var tiptimer;var tiptimerison="null";var aerialname=0;var aerialnames=0;var graticules=0;var mapsheetindex=0;var mapnames=0;var coordok="0";var clerror="";var cl_lineerr="";var clerrortext="Følgende datalinjer er med feil feltseparator, uten koordinater, eller har koordinater utenfor kartboksen: ";var omap=0;var omape=0;var symbolcolortest;var c=0;var t;var timer_is_on=0;var w84='+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs ';var u26='+proj=utm +zone=26 +ellps=GRS80 +units=m +no_defs ';var u27='+proj=utm +zone=27 +ellps=GRS80 +units=m +no_defs ';var u28='+proj=utm +zone=28 +ellps=GRS80 +units=m +no_defs ';var u29='+proj=utm +zone=29 +ellps=GRS80 +units=m +no_defs ';var u30='+proj=utm +zone=30 +ellps=GRS80 +units=m +no_defs ';var u31='+proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs ';var u33='+proj=utm +zone=33 +ellps=GRS80 +units=m +no_defs ';var u35='+proj=utm +zone=35 +ellps=GRS80 +units=m +no_defs ';var u37='+proj=utm +zone=37 +ellps=GRS80 +units=m +no_defs ';var u38='+proj=utm +zone=38 +ellps=GRS80 +units=m +no_defs ';var u39='+proj=utm +zone=39 +ellps=GRS80 +units=m +no_defs ';var u40='+proj=utm +zone=40 +ellps=GRS80 +units=m +no_defs ';var u32='+proj=utm +zone=32 +ellps=GRS80 +units=m +no_defs ';var u34='+proj=utm +zone=34 +ellps=GRS80 +units=m +no_defs ';var u36='+proj=utm +zone=36 +ellps=GRS80 +units=m +no_defs ';var cl_plotline;var attriben;var attribvp;var vp_g="Sett fra bakken";var vp_b="Sett fra sjøen";var vp_h="Sett fra lufta";var gullnum;var gullgo;var gullrandom;var gullleft;var gulltop;var pppdl="Utsikt mot ";var dataformat="Desimalgr.";var separator=";";var language="no";var abouttab="toposvalbard";var abouttoolspage="1";var direast="Ø";var dirwest="V";var koordlang="Koordinater";var mapscalesep;var measuretextkm;var measuretextmi;var measuretextnm;var measureunit="kmnm";var measureline="0";var measurearea="0";var kinetic="1";var posterchoice;var accuracyboard="accuracyboard_no2.png";var termsboard="termsboard_no.png";var map;var tb;var graphicz;var harvest_graphicz;var harvest_id="";var graphicidharvesta=0;var graphic={};var graphicid=0;var graphicharvest={};var graphicidharvest=0;var coordharvestsystem="33";var font;var zfont;var zinfo="Høyde";var modus=0;var desgr="Desimalgr.";var cl_graphic=0;var cl_line;var cl_lines;var cl_linepart_label;var updated=1;var cl_colnums=4;var cl_colstep;var cl_colpart;var cl_colnum_label=0;var cl_colnum_east=3;var cl_colnum_north=4;var cl_colnum_label_text;var cl_colnum_north_text;var cl_colnum_east_text;var cl_textarea_default="001;TestData 1;14.32363;78.42461\n002;TestData 2;14.46536;78.62667\n003;TestData 3;15.80932;78.58664\n004;TestData 4;17.12238;78.31044";var gpx_textarea_default_no="[Kopier og lim inn innholdet fra en GPX-fil (som kan åpnes i en teksteditor, f.eks. Notepad), og velg ønskede element-typer for plotting. For lange track-segmenter, vil forenkle-funksjonen øke opptegningsytelsen. Ytelsen varierer betydelig mellom ulike nettlesere. Merk: GPX-filer uten linjeskift etter elementene, er per nå ikke støttet. Prøv å legge inn et linjeskift etter hvert >-tegn.]";var gpx_textarea_default_en="[Paste the content of a GPX file (which can be opened in a text editor, e.g. Notepad), and select the desired element types to plot. For long track segments, the simplify option will increase drawing performance. The performance varies significantly between different web browsers. Note: GPX files without linebreaks after elements, are currently not supported. Try inserting a linebreak after each > sign.]";var S;var U;var pR={};var pZ=0;var pS;var pP;var pU;var pCam=0;var xpPlane=0;var pName=0;var pCamPoint=0;var pNamePoint=0;var zooomext2=0;var p;var activeLayer;var sarActiveLayer;var xaerialLayer;var coordharvestLayer;var pnLayer;var graphicLayer;var zgraphicLayer;var sarGraphicLayer;var sarGraphicLabelLayer;var SARf;var sarCircleLayer;var poigraphicLayer;var error3d;var datatype="datalist";var gpxfile;var waypointshow=1;var nameshow=1;var trackshow=1;var tracksimp=0;var measureoff=1;var pninfoboxshow=0;var coordharvest=0;var aerialboxshow=0;var ct;var type3d="ortho";var iframetextinput;var iframemarkertextSymbol;var iframeupos;var iframeuposx;var iframeuposy;var iframelong10minus;var iframemarker="";var iframemarkerpointactive=0;var iframemarkerlineactive=0;var iframemarkertextactive=0;var iframetextinputtext;var iframeinfoinput;var iframeinfoinputtext;var iframeextent=0;var iframemarkerSymbol;var iframeplpos;var iframemarkergraphic;var iframemap;var iframetb;var iframegraphic={};var iframegraphicid=0;var IFurllink=document.URL;var IFurllat="0";var IFurllng="0";var IFurlzoom="0";var IFurlpoi="0";var IFurlloi;var IFurlpart;var IFurlpoilat;var IFurlpoilong;var IFurlloilat;var IFurlloilong;var IFgraphicLayer;var IFpoigraphicid=1;var IFpoigraphic;var IFpolylineJson;var IFpolyline;var IFpolylineSymbol;var IFupos;var IFuposx;var IFuposy;var IFtszoom;var IFmaptype_tips="";var IFurlpoiinfo;var IFpoiSymbol;var IFloiattr;var IFlois;var IFloiplot;var IFloiupos;var IFloiuposx;var IFloiuposy;var IFx0;var IFy0;var IFpoiupos;var IFpoiuposx;var IFpoiuposy;var IFpoipl;var IFinfo;var IFpl;var IFlois2;var IFloiplot2;var IFurlpart2;var IFpois;var IFpoiplot;var IFurltoi="0";var IFurltoilat;var IFurltoilong;var IFtoigraphicid=1;var IFtoigraphic;var IFurltoiinfo;var IFurlloiinfo;var IFtoiSymbol;var IFtoiupos;var IFtoiuposx;var IFtoiuposy;var IFtoipl;var IFtois;var IFtoiplot;var IFurlpoititle;var IFurltoititle;var IFurlloititle;var IFfont;require(["esri/map","esri/layers/ArcGISTiledMapServiceLayer","esri/layers/WMTSLayer","esri/layers/WMTSLayerInfo","esri/geometry/Extent","esri/layers/TileInfo","esri/layers/ArcGISDynamicMapServiceLayer","esri/tasks/GeometryService","esri/toolbars/draw","esri/geometry/Point","esri/SpatialReference","esri/symbols/PictureMarkerSymbol","esri/symbols/SimpleLineSymbol","esri/symbols/Font","esri/layers/GraphicsLayer","esri/dijit/OverviewMap","esri/dijit/InfoWindow","utils/kineticPanning","dojo/parser","dijit/layout/BorderContainer","dijit/layout/ContentPane","dojo/io/script","dojo/domReady!"],function(Map,Tiled,WMTSLayer,WMTSLayerInfo,Extent,TileInfo,ArcGISDynamicMapServiceLayer,GeometryService,Draw,Point,SpatialReference,PictureMarkerSymbol,SimpleLineSymbol,Font,GraphicsLayer,OverviewMap,InfoWindow,kineticPanning){var infoWindow=new esri.dijit.InfoWindow({},dojo.create("div"));infoWindow.startup();if((document.URL).indexOf("lat=")>0){map=new Map("map",{fadeOnZoom:false,logo:false,slider:false,infoWindow:infoWindow,autoResize:false,showAttribution:false,force3DTransforms:true,navigationMode:"css-transforms"});} else{var initExtent=new esri.geometry.Extent({"xmin":510000,"ymin":8650000,"xmax":510001,"ymax":8780000,"spatialReference":{"wkid":25833}});map=new Map("map",{extent:initExtent,fadeOnZoom:false,logo:false,slider:false,infoWindow:infoWindow,autoResize:false,showAttribution:false});} topographicLayer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TopoSvalbard_Basiskart/MapServer");map.addLayer(topographicLayer);var urlsearch=window.location.search;if(urlsearch.indexOf("kinetic=0")>0){kinetic="0";} if(kinetic=="1"){var panning=new kineticPanning(map);} document.getElementById("coordharvestformta").value="Ctrl + museklikk i kart for å høste koordinater";settleLayer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata/FKB_Svalbard_WMTS_25833/MapServer");map.addLayer(settleLayer);settleLayer.setScaleRange(10000,0);var tileInfo=new TileInfo({"dpi":96,"format":"image/png","compressionQuality":0,"spatialReference":new SpatialReference({"wkid":25833}),"rows":255.874,"cols":255.874,"origin":{"x":-2500000,"y":9045984},"lods":[{"level":"EPSG:25833:4","resolution":1354,"scale":5120000},{"level":"EPSG:25833:5","resolution":677,"scale":2560000},{"level":"EPSG:25833:6","resolution":338.5,"scale":1280000},{"level":"EPSG:25833:7","resolution":169.25,"scale":640000},{"level":"EPSG:25833:8","resolution":84.625,"scale":320000},{"level":"EPSG:25833:9","resolution":42.3125,"scale":160000},{"level":"EPSG:25833:10","resolution":21.15625,"scale":80000},{"level":"EPSG:25833:11","resolution":10.578125,"scale":40000},{"level":"EPSG:25833:12","resolution":5.2890625,"scale":20000},{"level":"EPSG:25833:13","resolution":2.64453125,"scale":10000},{"level":"EPSG:25833:14","resolution":1.322265625,"scale":5000},{"level":"EPSG:25833:15","resolution":0.6611328125,"scale":2500},{"level":"EPSG:25833:16","resolution":0.33056640625,"scale":1250},{"level":"EPSG:25833:17","resolution":0.165283203125,"scale":625}]});var tileExtent=new Extent(369976,8221306,878235,9010719,new SpatialReference({wkid:25833}));var layerInfo=new WMTSLayerInfo({tileInfo:tileInfo,fullExtent:tileExtent,identifier:"sjokartraster",tileMatrixSet:"EPSG:25833",format:"png",style:"_null"});var resourceInfo={version:"1.0.0",layerInfos:[layerInfo]};var options={serviceMode:"KVP",resourceInfo:resourceInfo,layerInfo:layerInfo};nauticalLayer=new WMTSLayer("https://opencache.statkart.no/gatekeeper/gk/gk.open_wmts",options);map.addLayer(nauticalLayer);nauticalLayer.hide();terrainhsLayer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TerrengFjellskygge_Svalbard_WMTS_25833/MapServer");map.addLayer(terrainhsLayer);terrainhsLayer.hide();terrainslLayer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TerrengHelning_Svalbard_WMTS_25833/MapServer");map.addLayer(terrainslLayer);terrainslLayer.hide();landsatLayer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata/NP_Satellitt_Svalbard_WMTS_25833/MapServer");map.addLayer(landsatLayer);landsatLayer.hide();landsatwLayer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_Satellitt_Svalbard_Vinter_WMTS_25833/MapServer");map.addLayer(landsatwLayer);landsatwLayer.hide();orthoLayer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata/NP_Ortofoto_Svalbard_WMTS_25833/MapServer");map.addLayer(orthoLayer);orthoLayer.hide();ortho36Layer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_Ortofoto_Svalbard_1936_WMTS_25833/MapServer");map.addLayer(ortho36Layer);ortho36Layer.hide();terraincntLayer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TerrengKurvePunkt_Svalbard_WMTS_25833/MapServer");map.addLayer(terraincntLayer);indexLayer=new GraphicsLayer();map.addLayer(indexLayer);indexLayer.show();indexLayer.add(new esri.Graphic(new esri.geometry.Polyline({"paths":[[[500000,8695570],[505192,8695580],[510384,8695611],[515576,8695662],[520768,8695733],[525959,8695825],[531150,8695938],[536340,8696070],[541530,8696223],[546720,8696397],[556419,8696776]],[[500000,8699290],[505177,8699300],[510355,8699331],[515532,8699382],[520709,8699453],[525886,8699545],[531062,8699657],[536238,8699789],[541413,8699942],[546588,8700115],[556260,8700493]],[[628886,8276240],[630646,8252126],[624525,8251690],[618503,8251282],[610572,8250775],[609083,8274905],[615025,8275283],[620966,8275680],[628886,8276240]],[[779894,8545117],[786811,8508533],[781222,8507487],[775543,8506447],[769861,8505428],[764175,8504430],[758744,8503498],[753052,8502541],[747356,8501607],[741656,8500693],[735090,8499668],[729422,8536454],[734819,8537296],[740381,8538185],[745940,8539095],[751243,8539983],[756796,8540933],[762093,8541860],[767386,8542805],[772929,8543816],[779894,8545117]],[[508789,8546799],[514313,8546843],[519837,8546906],[525361,8546991],[531387,8547107]],[[531387,8547107],[536910,8547235],[542433,8547383],[547955,8547552],[558579,8547936]],[[558579,8547936],[561084,8484748],[555502,8484537],[550006,8484349],[544248,8484173],[538751,8484026],[532991,8483892],[527493,8483784],[521733,8483692],[516235,8483624],[509165,8483566],[508789,8546799]],[[650421,8554455],[655917,8555028],[661411,8555622],[666903,8556237],[672393,8556872],[677880,8557527],[683366,8558203],[688848,8558900],[694329,8559617],[699806,8560355],[708598,8561583]],[[650421,8554455],[654209,8517441],[659758,8518019],[665135,8518598],[670510,8519197],[675882,8519815],[681508,8520483],[686877,8521140],[692498,8521850],[698117,8522580],[703734,8523331],[713853,8524738],[708598,8561583]],[[469404,8584297],[468613,8547107],[474053,8547001],[479577,8546914],[485101,8546848],[490625,8546803],[496150,8546778],[501674,8546774],[508789,8546799]],[[469404,8584297],[474789,8584192],[480173,8584108],[485558,8584044],[490943,8584000],[496328,8583976],[501713,8583972],[507099,8583989],[512484,8584025],[517869,8584082],[523253,8584159],[530596,8584297]],[[531387,8547107],[530596,8584297]],[[530596,8584297],[535980,8584421],[541363,8584566],[546746,8584731],[552128,8584917],[557510,8585122],[562890,8585347],[568270,8585593],[573649,8585859],[579027,8586145],[589699,8586772]],[[558579,8547936],[564099,8548165],[569618,8548415],[575136,8548686],[580653,8548977],[586169,8549290],[592018,8549643],[589699,8586772]],[[650421,8554455],[646627,8591469]],[[646627,8591469],[651985,8592029],[657341,8592608],[662694,8593208],[668045,8593828],[673394,8594468],[683114,8595682]],[[703336,8598426],[698001,8597674],[692663,8596942],[683114,8595682]],[[703336,8598426],[708598,8561583]],[[469404,8584297],[470197,8621487]],[[470197,8621487],[475441,8621386],[480687,8621303],[486170,8621238],[491416,8621196],[496900,8621173],[502146,8621172],[507630,8621191],[512876,8621229],[518360,8621290],[523843,8621373],[529803,8621487]],[[530596,8584297],[529803,8621487]],[[529803,8621487],[535048,8621609],[540530,8621757],[546012,8621927],[551255,8622109],[556497,8622312],[561738,8622533],[567217,8622786],[572456,8623048],[577933,8623343],[587376,8623902]],[[589699,8586772],[587376,8623902]],[[619085,8626250],[622251,8589179],[627780,8589662],[633144,8590151],[638506,8590660],[646627,8591469]],[[619085,8626250],[624312,8626706],[629774,8627204],[635235,8627724],[640694,8628265],[645913,8628803],[651368,8629386],[656583,8629964],[661797,8630562],[667008,8631178],[672217,8631815],[678370,8632593]],[[683114,8595682],[678370,8632593]],[[737345,8641460],[732170,8640579],[726757,8639678],[721576,8638837],[716392,8638015],[710969,8637176],[705779,8636394],[700350,8635597],[694918,8634821],[689484,8634067],[684046,8633334],[678370,8632593]],[[737345,8641460],[743660,8604775],[738187,8603844],[732871,8602961],[727551,8602098],[722229,8601254],[716904,8600431],[711576,8599628],[703336,8598426]],[[470197,8621487],[466223,8621578],[467122,8658767]],[[467122,8658767],[472459,8658649],[477565,8658555],[482903,8658477],[488241,8658420],[493579,8658385],[500000,8658370]],[[500000,8658370],[505106,8658379],[510444,8658410],[515782,8658461],[521120,8658534],[529010,8658679]],[[529803,8621487],[529010,8658679]],[[529010,8658679],[534115,8658798],[539219,8658935],[544323,8659092],[549427,8659268],[558008,8659608]],[[558008,8659608],[563341,8659846],[568441,8660093],[573773,8660373],[578871,8660659],[585050,8661033]],[[585050,8661033],[587376,8623902]],[[585050,8661033],[590377,8661377],[595704,8661742],[601028,8662129],[606120,8662518],[615915,8663320]],[[619085,8626250],[615915,8663320]],[[615915,8663320],[621233,8663786],[626550,8664272],[631635,8664757],[636717,8665262],[641797,8665785],[647107,8666352],[652414,8666940],[657488,8667523],[662791,8668152],[667861,8668773],[673620,8669502]],[[678370,8632593],[673620,8669502]],[[673620,8669502],[678685,8670164],[683747,8670845],[688807,8671545],[694095,8672297],[699150,8673036],[704431,8673829],[709481,8674607],[714756,8675440],[719800,8676257],[724840,8677093],[731022,8678144]],[[731022,8678144],[738647,8679482],[745180,8642833],[737345,8641460]],[[442786,8678192],[441992,8659608],[447172,8659396],[452275,8659208],[457378,8659038],[467122,8658767]],[[443581,8696776],[442786,8678192]],[[443581,8696776],[448769,8696564],[453957,8696373],[459147,8696202],[464337,8696052],[469527,8695922],[474718,8695812],[479910,8695723],[485101,8695654],[490293,8695606],[500000,8695570]],[[500000,8658370],[500000,8695570]],[[556419,8696776],[558008,8659608]],[[556419,8696776],[561607,8697008],[566793,8697260],[571978,8697533],[577162,8697826],[582345,8698140],[587527,8698474],[592707,8698828],[597887,8699203],[603064,8699598],[612740,8700391]],[[615915,8663320],[612740,8700391]],[[612740,8700391],[617913,8700845],[623085,8701318],[628254,8701813],[633422,8702327],[638587,8702862],[643751,8703417],[648913,8703993],[654072,8704588],[659229,8705204],[668864,8706411]],[[673620,8669502],[668864,8706411]],[[668864,8706411],[674014,8707085],[679161,8707780],[684306,8708494],[689448,8709230],[694587,8709985],[699723,8710760],[704857,8711556],[709987,8712372],[715114,8713208],[724691,8714826],[731022,8678144]],[[500000,8695570],[500000,8699290]],[[556419,8696776],[556260,8700493]],[[442786,8678192],[437526,8678427],[432267,8678683],[427009,8678959],[421751,8679256],[416495,8679574],[411241,8679912],[405987,8680272],[397082,8680928],[401372,8736571]],[[401372,8736571],[406404,8736193],[411657,8735819],[416911,8735467],[422166,8735137],[427422,8734828],[432461,8734552],[437500,8734296],[445171,8733945]],[[445171,8733945],[443581,8696776]],[[445171,8733945],[450432,8733730],[455474,8733545],[460737,8733373],[465780,8733228],[470825,8733104],[475869,8732999],[481134,8732911],[486399,8732844],[491664,8732799],[500000,8732772]],[[500000,8699290],[500000,8732772]],[[500000,8732772],[505265,8732783],[510311,8732813],[515576,8732866],[520621,8732938],[525885,8733033],[530930,8733145],[535974,8733277],[541237,8733435],[546280,8733607],[554829,8733945]],[[556260,8700493],[554829,8733945]],[[554829,8733945],[560089,8734181],[565348,8734438],[570387,8734706],[575425,8734992],[580462,8735299],[585716,8735641],[590751,8735988],[596002,8736372],[601253,8736777],[609562,8737462]],[[612740,8700391],[609562,8737462]],[[609562,8737462],[614808,8737923],[620052,8738405],[625075,8738888],[630097,8739390],[635117,8739912],[640134,8740454],[645150,8741016],[650381,8741623],[655610,8742252],[664102,8743319]],[[668864,8706411],[664102,8743319]],[[776372,8768643],[779598,8754101],[774485,8752978],[769513,8751907],[764536,8750855],[759555,8749823],[754570,8748810],[749582,8747817],[744590,8746844],[739594,8745890],[734449,8744930],[727687,8781537],[732753,8782484],[737815,8783452],[742874,8784441],[747718,8785408],[752558,8786395],[757604,8787444],[762437,8788470],[771530,8790454]],[[776372,8768643],[771530,8790454]],[[393620,8774534],[390438,8737462],[395613,8737029],[401372,8736571]],[[393620,8774534],[398503,8774124],[403599,8773717],[408698,8773331],[413797,8772966],[418686,8772636],[423788,8772312],[428892,8772009],[433997,8771727],[438890,8771477],[446763,8771114]],[[445171,8733945],[446763,8771114]],[[446763,8771114],[451871,8770906],[456980,8770719],[461877,8770559],[466987,8770412],[472098,8770287],[476996,8770187],[482108,8770103],[487220,8770040],[492119,8769999],[500000,8769974]],[[500000,8732772],[500000,8769974]],[[500000,8769974],[505112,8769985],[510011,8770014],[514910,8770063],[520022,8770135],[524921,8770224],[529819,8770332],[534929,8770465],[539826,8770612],[544936,8770786],[553237,8771114]],[[554829,8733945],[553237,8771114]],[[553237,8771114],[558344,8771344],[563451,8771594],[568556,8771866],[573660,8772158],[578763,8772471],[583865,8772806],[588753,8773146],[593852,8773521],[598737,8773901],[606380,8774534]],[[609562,8737462],[606380,8774534]],[[606380,8774534],[611261,8774962],[616353,8775430],[621443,8775919],[626318,8776408],[631404,8776938],[636488,8777489],[641569,8778061],[646648,8778653],[651725,8779267],[659335,8780227]],[[664102,8743319],[659335,8780227]],[[393620,8774534],[396805,8811605]],[[396805,8811605],[401748,8811190],[406692,8810796],[411638,8810422],[416585,8810068],[421533,8809735],[426483,8809422],[431433,8809130],[436385,8808858],[441339,8808606],[448357,8808285]],[[446763,8771114],[448357,8808285]],[[448357,8808285],[453312,8808082],[458268,8807900],[463225,8807739],[468182,8807597],[473140,8807477],[478098,8807376],[483057,8807296],[488015,8807237],[492975,8807198],[500000,8807177]],[[500000,8769974],[500000,8807177]],[[500000,8807177],[504959,8807187],[509918,8807218],[514877,8807269],[519836,8807340],[524794,8807432],[529752,8807545],[534710,8807677],[539667,8807830],[544623,8808004],[551643,8808285]],[[553237,8771114],[551643,8808285]],[[551643,8808285],[556597,8808507],[561551,8808751],[566503,8809014],[571455,8809298],[576405,8809602],[581354,8809927],[586301,8810272],[591248,8810638],[596192,8811024],[603195,8811605]],[[606380,8774534],[603195,8811605]],[[603195,8811605],[608135,8812040],[613074,8812496],[618011,8812971],[622947,8813467],[627880,8813984],[632811,8814520],[637740,8815077],[642667,8815655],[647591,8816252],[654563,8817134]],[[659335,8780227],[654563,8817134]],[[654563,8817134],[659481,8817780],[664397,8818447],[669310,8819134],[674220,8819842],[679128,8820569],[684032,8821317],[688934,8822085],[693832,8822874],[698727,8823682],[705657,8824862]],[[659335,8780227],[664406,8780892],[669473,8781579],[674327,8782257],[679389,8782984],[684449,8783733],[689294,8784470],[694348,8785259],[699187,8786035],[704024,8786830],[712009,8788185],[705657,8824862]],[[396805,8811605],[399995,8848677]],[[399995,8848677],[404784,8848274],[409575,8847892],[414568,8847514],[419362,8847172],[424357,8846837],[429354,8846523],[434352,8846230],[439151,8845970],[444151,8845719],[449953,8845455]],[[448357,8808285],[449953,8845455]],[[449953,8845455],[454755,8845259],[459758,8845076],[464761,8844914],[469766,8844773],[474771,8844654],[479776,8844556],[484581,8844483],[489387,8844429],[494393,8844395],[500000,8844381]],[[500000,8807177],[500000,8844381]],[[500000,8844381],[504806,8844391],[509612,8844421],[514418,8844470],[519423,8844543],[524429,8844637],[529233,8844748],[534238,8844884],[539242,8845041],[544245,8845221],[550047,8845455]],[[551643,8808285],[550047,8845455]],[[550047,8845455],[555049,8845681],[559849,8845918],[564648,8846174],[569646,8846463],[574643,8846772],[579439,8847090],[584434,8847442],[589227,8847799],[594218,8848193],[600006,8848677]],[[603195,8811605],[600006,8848677]],[[600006,8848677],[604993,8849117],[609979,8849578],[614763,8850041],[619545,8850524],[624326,8851027],[629303,8851571],[634080,8852114],[638854,8852677],[643824,8853284],[649785,8854040]],[[654563,8817134],[649785,8854040]],[[649785,8854040],[654552,8854668],[659514,8855342],[664473,8856038],[669231,8856725],[673987,8857433],[678937,8858191],[683884,8858970],[688828,8859770],[693769,8860592],[699298,8861537]],[[705657,8824862],[699298,8861537]],[[699298,8861537],[704034,8862369],[708767,8863220],[713496,8864091],[718221,8864981],[722943,8865891],[727858,8866859],[732573,8867809],[737283,8868778],[741990,8869766],[748455,8871157]],[[705657,8824862],[710544,8825719],[715428,8826597],[720308,8827494],[725185,8828412],[730057,8829350],[734927,8830307],[739792,8831285],[744653,8832283],[749511,8833302],[756385,8834778],[748455,8871157]],[[399995,8848677],[403187,8885749],[407952,8885348],[412784,8884963],[417617,8884599],[422258,8884268],[427094,8883945],[431738,8883653],[436576,8883371],[441416,8883108],[446257,8882867],[451550,8882627]],[[451550,8882627],[449953,8845455]],[[548450,8882627],[550047,8845455]],[[548450,8882627],[553292,8882846],[558132,8883085],[562972,8883345],[567617,8883615],[572454,8883916],[577290,8884237],[582125,8884580],[586765,8884928],[591597,8885311],[596813,8885749]],[[600006,8848677],[596813,8885749]],[[596813,8885749],[601448,8886158],[606082,8886586],[610906,8887052],[615536,8887519],[620164,8888006],[624983,8888532],[629799,8889080],[634420,8889625],[639040,8890189],[645003,8890946]],[[649785,8854040],[645003,8890946]],[[645003,8890946],[649809,8891580],[654613,8892234],[659221,8892882],[663827,8893548],[668622,8894263],[673414,8894998],[678012,8895723],[682798,8896499],[687581,8897295],[692933,8898211]],[[699298,8861537],[692933,8898211]],[[692933,8898211],[697518,8899017],[702099,8899842],[706867,8900721],[711442,8901585],[716012,8902467],[720580,8903368],[725143,8904288],[729893,8905267],[734638,8906266],[740517,8907533]],[[748455,8871157],[740517,8907533]],[[548050,8891920],[548450,8882627]],[[548050,8891920],[546851,8919799]],[[546851,8919799],[551533,8920011],[556213,8920242],[560893,8920494],[565572,8920766],[570250,8921058],[574926,8921371],[579601,8921703],[584275,8922056],[588947,8922428],[593617,8922821]],[[596813,8885749],[593617,8922821]],[[593617,8922821],[598286,8923234],[602953,8923666],[607618,8924119],[612282,8924592],[616943,8925086],[621602,8925599],[626259,8926132],[630913,8926685],[635566,8927258],[640216,8927852]],[[645003,8890946],[640216,8927852]],[[640216,8927852],[644863,8928465],[649508,8929098],[654150,8929752],[658789,8930425],[663425,8931118],[668059,8931832],[672689,8932565],[677317,8933318],[681941,8934091],[686562,8934884]],[[692933,8898211],[686562,8934884]],[[686562,8934884],[691179,8935697],[695793,8936530],[700404,8937382],[705011,8938255],[709614,8939147],[714214,8940059],[718809,8940991],[723401,8941943],[727988,8942915],[732572,8943906]],[[740517,8907533],[732572,8943906]],[[546851,8919799],[545250,8956972],[549892,8957182],[554413,8957407],[558933,8957651],[563633,8957925],[568151,8958209],[572848,8958524],[577543,8958861],[582057,8959205],[590418,8959893]],[[593617,8922821],[590418,8959893]],[[590418,8959893],[594928,8960292],[599615,8960728],[604121,8961166],[608625,8961625],[613307,8962122],[617806,8962619],[622304,8963136],[626799,8963673],[635424,8964757]],[[640216,8927852],[635424,8964757]],[[635424,8964757],[639912,8965350],[644577,8965987],[649060,8966619],[653720,8967297],[658377,8967996],[663030,8968716],[667502,8969428],[671970,8970159],[680184,8971555]],[[686562,8934884],[680184,8971555]],[[680184,8971555],[684644,8972341],[689278,8973178],[693909,8974037],[698536,8974916],[702981,8975781],[707600,8976701],[712215,8977641],[716826,8978603],[724619,8980277],[732572,8943906]],[[590418,8959893],[587216,8996966],[591682,8997361],[596204,8997782],[600723,8998224],[605241,8998686],[609757,8999167],[614270,8999670],[618782,9000192],[623291,9000735],[630627,9001661],[635424,8964757]],[[451550,8882627],[451790,8888203],[456608,8888006],[461428,8887830],[466248,8887674],[471068,8887540],[475890,8887426],[480711,8887332],[485533,8887260],[490355,8887208],[495178,8887177],[500000,8887167]],[[548050,8891920],[543248,8891724],[538444,8891548],[533640,8891393],[528836,8891259],[524031,8891145],[519225,8891052],[514419,8890980],[509613,8890928],[504806,8890897],[500000,8890887],[500000,8887167]],[[500000,8887167],[500000,8844381]],[[771530,8790454],[768301,8804994],[773202,8806093],[777961,8807180],[782716,8808287],[787674,8809461],[792420,8810606],[797368,8811820],[802311,8813055],[807249,8814311],[812182,8815586],[816904,8816828],[824970,8818995],[834751,8783050],[829824,8781720],[824750,8780374],[819672,8779048],[814588,8777743],[809499,8776459],[804405,8775196],[799518,8774006],[794415,8772784],[789519,8771633],[784619,8770501],[776372,8768643]],[[732572,8943906],[737151,8944917],[741726,8945948],[746297,8946999],[750863,8948069],[755425,8949159],[759982,8950269],[764535,8951398],[769082,8952547],[773625,8953716],[778163,8954904],[787669,8918896],[783039,8917684],[778340,8916477],[773637,8915289],[769117,8914168],[764404,8913021],[759875,8911938],[755342,8910874],[750615,8909786],[745884,8908718],[740517,8907533]],[[819366,8966660],[823849,8968045],[828326,8969450],[832798,8970875],[837263,8972318],[841722,8973781],[850029,8976564],[862001,8941276],[857462,8939748],[852856,8938219],[848243,8936709],[843808,8935279],[839183,8933809],[834551,8932359],[829914,8930929],[825456,8929575],[820807,8928184],[816153,8926813],[811492,8925462],[806390,8924009],[796263,8959852],[800835,8961155],[805342,8962461],[809843,8963786],[814338,8965131],[819366,8966660]]]}),new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([130,60,250]),1.5)));var indexid=["4261318865863A4","4237368828737A5","4213448791613A6","4189548754494A7","4215738707636A8 Prins Karls Forland","4970588640242B10","5000008602975B11","5000008565779B12","4754238866553B4","4745648826573B5","4737668789382B6","4729698752198B7","4721738715009B8","4713788677820B9","5578398641509C10","5593988604345C11","5609558567185C12","5342248515062C13","5245378868409C4","5254368826573C5","5262348789382C6","5270318752198C7","5277878716872C8","5285828679682C9","5690728940108D2","6198078263740D20","5714728902982D3","5738698865863D4","5762648828737D5","5786568791613D6","5810458754494D7","5834328717370D8","5858168680247D9","6109848981044E1","6468288648125E10","6507878611132E11","6793918576974E12","6839698540056E13","6149848944051E2","6189798907063E3","6229718870072E4","6269588833080E5","6309418796086E6","6349208759099E7","6388948722107E8","6428638685117E9","7093518656331F10","7107418618818F11","6606918949970F2","6662768913174F3","6718558876387F4","6774298839593F5","6829978802798F6","6996638692412F9","7579048522637G14","7061118957844G2","7132788921322G3","7220568885143G4","7279448846437G5","7534298767949G7","7599058931480H3","8013318794078H7","8290258950559J3"];var indexidLength=indexid.length;for(var i=0;i<indexidLength;i++){indexLayer.add(new esri.Graphic(new esri.geometry.Point((indexid[i].substr(0,6)),(indexid[i].substr(6,7))),new esri.symbol.TextSymbol((indexid[i].substr(13,3)),new Font("12pt",Font.STYLE_NORMAL,Font.VARIANT_NORMAL,Font.WEIGHT_BOLD,Font.FAMILY="verdana, arial, helvetica, sans-serif"),new dojo.Color([130,60,250])).setAlign(esri.symbol.TextSymbol.ALIGN_CENTER).setVerticalAlignment("middle").setHaloSize(2).setHaloColor(new dojo.Color([255,230,255]))));} indexLayer.hide();graticulesLayer=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TopoSvalbard_Gradnett/MapServer");map.addLayer(graticulesLayer);graticulesLayer.hide();terraincntLayer.hide();aerialnamesLayer=new ArcGISDynamicMapServiceLayer("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TopoSvalbard_Stedsnavn/MapServer");map.addLayer(aerialnamesLayer);aerialnamesLayer.hide();var lods=[{"level":3,"scale":10240000,"resolution":2709.33875201084},{"level":4,"scale":5120000,"resolution":1354.66937600542},{"level":5,"scale":2560000,"resolution":677.334688002709},{"level":6,"scale":1280000,"resolution":338.667344001355},{"level":7,"scale":640000,"resolution":169.333672000677},{"level":8,"scale":320000,"resolution":84.6668360003387},{"level":9,"scale":160000,"resolution":42.3334180001693},{"level":10,"scale":80000,"resolution":21.1667090000847},{"level":11,"scale":40000,"resolution":10.5833545000423},{"level":12,"scale":20000,"resolution":5.29167725002117}];iframemap=new esri.Map("iframemap",{fadeOnZoom:false,logo:false,slider:false,lods:lods});var iframeLayer=new esri.layers.ArcGISTiledMapServiceLayer("https://geodata.npolar.no/arcgis/rest/services/Basisdata/NP_Basiskart_Svalbard_WMTS_25833/MapServer");iframemap.addLayer(iframeLayer);iframetb=new esri.toolbars.Draw(iframemap,{showTooltips:false});dojo.connect(iframetb,"onDrawEnd",function(geometry){var attrib={"iftitle":iframetextinputtext,"ifinfo":iframeinfoinputtext};iframegraphicid++;graphic[iframegraphicid]=iframegraphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),2),attrib));iframetb.deactivate();iframemap.setMapCursor("default");iframemarkerlineactive=0;var linecoords=dojo.toJson(geometry.paths).toString();linecoords=linecoords.replace(/\[/g,'');linecoords=linecoords.replace(/\]/g,'');var linecoordspairs=(linecoords.match(/,/g)||[]).length;var linecoordsround=0;var linecoordlat;var linecoordlong;var loiarray="";var loipart;while(linecoordsround<((linecoordspairs/2))){linecoordsround++;linecoordlong=parseInt(linecoords.slice(0,6),10);linecoords=linecoords.slice(linecoords.indexOf(",")+1);linecoordlat=parseInt(linecoords.slice(0,7),10);linecoords=linecoords.slice(linecoords.indexOf(",")+1);linecoordpos=proj4(u33,w84,[linecoordlong,linecoordlat]).toString();var linecoordposx=parseFloat(linecoordpos.slice(0,(linecoordpos.indexOf(","))));var linecoordposy=parseFloat(linecoordpos.slice(linecoordpos.indexOf(",")+1));iframelong10minus="";if((linecoordposx.toFixed(4)).length==6){iframelong10minus="0";} loipart=linecoordposy.toFixed(4)+","+iframelong10minus+linecoordposx.toFixed(4)+",";loiarray=loiarray+loipart;} loiarray=loiarray.slice(0,-1);document.iframeiframeform.iframeiframe_textareatext.value=(document.iframeiframeform.iframeiframe_textareatext.value).replace("\"><\/iframe>","");document.iframeiframeform.iframeiframe_textareatext.value=document.iframeiframeform.iframeiframe_textareatext.value+"loi="+loiarray+",%27"+escape(iframetextinputtext)+"%27,%27"+escape(iframeinfoinputtext)+"%27;\"><\/iframe>";});map3dn=new esri.Map("map3dn",{fadeOnZoom:false,logo:false,slider:false,autoResize:false,showAttribution:false});var basemap3dn=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TopoSvalbard_Basiskart_3D_N/MapServer");map3dn.addLayer(basemap3dn);map3de=new esri.Map("map3de",{fadeOnZoom:false,logo:false,slider:false,autoResize:false,showAttribution:false});var basemap3de=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TopoSvalbard_Basiskart_3D_E/MapServer");map3de.addLayer(basemap3de);map3ds=new esri.Map("map3ds",{fadeOnZoom:false,logo:false,slider:false,autoResize:false,showAttribution:false});var basemap3ds=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TopoSvalbard_Basiskart_3D_S/MapServer");map3ds.addLayer(basemap3ds);map3dw=new esri.Map("map3dw",{fadeOnZoom:false,logo:false,slider:false,autoResize:false,showAttribution:false});var basemap3dw=new Tiled("https://geodata.npolar.no/arcgis/rest/services/Basisdata_Intern/NP_TopoSvalbard_Basiskart_3D_W/MapServer");map3dw.addLayer(basemap3dw);if(kinetic=="1"){var panning3dn=new kineticPanning(map3dn);var panning3de=new kineticPanning(map3de);var panning3ds=new kineticPanning(map3ds);var panning3dw=new kineticPanning(map3dw);} p=new GraphicsLayer();map.addLayer(p);p.hide();dojo.connect(p,"onMouseDown",extradown);dojo.connect(p,"onClick",photopointf);dojo.connect(p,"onMouseOver",pPoint1f);dojo.connect(p,"onMouseOut",pPoint0f);xaerialLayer=new GraphicsLayer();map.addLayer(xaerialLayer);dojo.connect(xaerialLayer,"onMouseDown",extradown);dojo.connect(xaerialLayer,"onMouseOver",pPoint1f);dojo.connect(xaerialLayer,"onClick",xaerialpointf);dojo.connect(xaerialLayer,"onMouseOut",pPoint0f);pnLayer=new GraphicsLayer();map.addLayer(pnLayer);pnLayer.hide();dojo.connect(pnLayer,"onMouseDown",extradown);dojo.connect(pnLayer,"onClick",pnpointf);dojo.connect(pnLayer,"onMouseOver",pPoint1f);dojo.connect(pnLayer,"onMouseOut",pPoint0f);poigraphicLayer=new esri.layers.GraphicsLayer();map.addLayer(poigraphicLayer);poigraphicLayer.show();graphicLayer=new GraphicsLayer();map.addLayer(graphicLayer);graphicLayer.show();dojo.connect(graphicLayer,"onClick",graphicpointf);sarCircleLayer=new GraphicsLayer();map.addLayer(sarCircleLayer);sarCircleLayer.hide();sarCircleFont=new Font("10pt",Font.STYLE_NORMAL,Font.VARIANT_NORMAL,Font.WEIGHT_BOLD,Font.FAMILY="verdana, arial, helvetica, sans-serif");sarGraphicLabelLayer=new GraphicsLayer();map.addLayer(sarGraphicLabelLayer);sarGraphicLabelLayer.hide();sarGraphicFont=new Font("10pt",Font.STYLE_NORMAL,Font.VARIANT_NORMAL,Font.WEIGHT_BOLD,Font.FAMILY="verdana, arial, helvetica, sans-serif");sarGraphicLayer=new GraphicsLayer();map.addLayer(sarGraphicLayer);sarGraphicLayer.hide();dojo.connect(sarGraphicLayer,"onClick",sarpointf);zgraphicLayer=new GraphicsLayer();map.addLayer(zgraphicLayer);zgraphicLayer.show();coordharvestLayer=new GraphicsLayer();map.addLayer(coordharvestLayer);activeLayer=new GraphicsLayer();map.addLayer(activeLayer);sarActiveLayer=new GraphicsLayer();map.addLayer(sarActiveLayer);dojo.connect(sarActiveLayer,"onClick",saractivelayerclearf);geometryService=new GeometryService("https://geodata.npolar.no/arcgis/rest/services/Utilities/Geometry/GeometryServer");dojo.connect(map,"onKeyUp",keyboardf);dojo.connect(map,"onPan",hideposterconnect);dojo.connect(map,"onMouseOut",mouseout);dojo.connect(map,"onClick",addPoint);dojo.connect(map,"onMouseDown",coordgetdown);dojo.connect(map,"onMouseUp",coordgetup);dojo.connect(map.infoWindow._hide,"onclick",function(){document.getElementById('map').oncontextmenu=function(){mapmaporthof();return false;};});dojo.connect(map,"onLoad",function(){if(urlsearch.indexOf("version=npweb")>0){map.disableScrollWheelZoom();} if(urlsearch.indexOf("menu=1")>0){menupin=1;if(mapmaportho=="ortho"){document.getElementById("maptypelist_aerial_showback").style.display="block";} else{document.getElementById("maptypelist_map_showback").style.display="block";} document.getElementById("maptypelist_map_menupin").getElementsByTagName("img")[0].src="menupindown.png";document.getElementById("maptypelist_aerial_menupin").getElementsByTagName("img")[0].src="menupindown.png";document.getElementById("tsnews").style.top="80px";document.getElementById("zoomtoclick").style.left="404px";}}) dojo.connect(map,"onMouseWheel",hideposter);tb=new Draw(map,{showTooltips:false});map.infoWindow.resize(250,135);init();map.infoWindow.setFixedAnchor(esri.dijit.InfoWindow.ANCHOR_UPPERRIGHT);font=new Font("14pt",Font.STYLE_NORMAL,Font.VARIANT_NORMAL,Font.WEIGHT_NORMAL,Font.FAMILY="verdana, arial, helvetica, sans-serif");zfont=new Font("10pt",Font.STYLE_NORMAL,Font.VARIANT_NORMAL,Font.WEIGHT_NORMAL,Font.FAMILY="verdana, arial, helvetica, sans-serif");omapf();error3d=new GraphicsLayer();map3dn.addLayer(error3d);var error3dsymbol=new PictureMarkerSymbol("error3d.png",10,10);pl=new esri.geometry.Point(200.484,198.460);var error3dgraphic=new esri.Graphic(pl,error3dsymbol);error3d.add(error3dgraphic);error3d.hide();document.getElementById("northinput").addEventListener("keyup",function(event){if(event.keyCode===13){tb.deactivate();backgrounddefaultf();zoomto();}});document.getElementById("eastinput").addEventListener("keyup",function(event){if(event.keyCode===13){tb.deactivate();backgrounddefaultf();zoomto();}});iframemap.infoWindow.resize(150,90);dojo.connect(iframemap,"onClick",iframeaddPoint);dojo.connect(iframemap,"onExtentChange",iframemapscalef);dojo.connect(iframemap,"onPan",iframecentershow);dojo.connect(iframemap,"onPanEnd",iframecenterhide);iframegraphicLayer=new esri.layers.GraphicsLayer();iframemap.addLayer(iframegraphicLayer);iframegraphicLayer.show();dojo.connect(iframegraphicLayer,"onMouseOver",iframegraphiccursorf);dojo.connect(iframegraphicLayer,"onMouseOut",iframegraphiccursordefaultf);dojo.connect(iframegraphicLayer,"onClick",iframegraphicpointf);document.getElementById("iframemapdiv").style.display="none";document.getElementById("iframemapdivback").style.display="none";document.getElementById("iframeeraser").getElementsByTagName("img")[0].src="iframe_eraser.png";document.getElementById("iframemapmatch").getElementsByTagName("img")[0].src="iframe_mapmatch.png";document.getElementById("iframeimapmatch").getElementsByTagName("img")[0].src="iframe_imapmatch.png";document.getElementById("iframecomposerhide").getElementsByTagName("img")[0].src="iframe_composerhide.png";document.getElementById("iframecomposerclose").getElementsByTagName("img")[0].src="iframe_composerclose.png";document.getElementById("iframebackground").getElementsByTagName("img")[0].src="iframe_footer.png";document.getElementById("iframenplogo").getElementsByTagName("img")[0].src="iframe_nplogopreview.png";document.getElementById("iframelogo").getElementsByTagName("img")[0].src="iframe_logopreview.png";document.getElementById("iframenavcontrols").getElementsByTagName("img")[0].src="iframe_navcontrols.png";document.iframetitleform.iframetitletext.value="";document.iframeinfoform.iframeinfo_textareatext.value="";document.iframeiframeform.iframeiframe_textareatext.value="";IFfont=new esri.symbol.Font(esri.symbol.Font.SIZE="14pt",esri.symbol.Font.STYLE_NORMAL,esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_NORMAL,esri.symbol.Font.FAMILY="verdana, arial, helvetica, sans-serif");IFpolylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),2);if(urllat>0&&urllong>0&&urllink.indexOf("title=")>0){poigraphicid=1;markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markerurlpin.png","width":12,"height":15,"yoffset":8});iframemarkergraphic=new esri.Graphic({"geometry":{"x":uposx,"y":uposy}});iframemarkergraphic.setSymbol(markerSymbol);graphic[poigraphicid]=poigraphicLayer.add(iframemarkergraphic);poigraphicid=2;urltitle=decodeURI(urllink.slice(urllink.indexOf("title=")+6,urllink.length));var urlTextSymbol=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+urltitle,font,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START).setVerticalAlignment("bottom");var urllabelPointGraphic=new esri.Graphic({"geometry":{"x":uposx,"y":uposy}});urllabelPointGraphic.setSymbol(urlTextSymbol);graphic[poigraphicid]=poigraphicLayer.add(urllabelPointGraphic);} IFinit1();IFinit2();});function mdown(e){map.disableScrollWheelZoom();if(e.which==1){leftdown=1;}else{leftdown=0;}} function mup(){map.enableScrollWheelZoom();} function IFinit1(){IFgraphicLayer=new esri.layers.GraphicsLayer();map.addLayer(IFgraphicLayer);IFgraphicLayer.show();dojo.connect(IFgraphicLayer,"onClick",IFpoigraphicpointf);dojo.connect(IFgraphicLayer,"onMouseOver",IFpoigraphicpointcursorf);dojo.connect(IFgraphicLayer,"onMouseOut",IFpoigraphicpointcursoroutf);} function IFpoigraphicpointcursorf(){map.setMapCursor("pointer");} function IFpoigraphicpointcursoroutf(){map.setMapCursor("default");} function IFpoigraphicpointf(evt){infohide++;map.infoWindow.setTitle((evt.graphic.attributes.Title).replace(/¤¤/g,'\''));IFinfo=evt.graphic.attributes.Info;if(IFinfo.slice(0,1)=="\'"){IFinfo=IFinfo.slice(1);} if(IFinfo.slice(-1)==";"){IFinfo=IFinfo.slice(0,-1);} if(IFinfo.slice(-1)=="\'"){IFinfo=IFinfo.slice(0,-1);} map.infoWindow.setContent(IFinfo.replace(/¤¤/g,'\''));map.infoWindow.show(evt.screenPoint,map.getInfoWindowAnchor(evt.screenPoint));IFpl=new esri.geometry.Point(evt.mapPoint.x,evt.mapPoint.y,new esri.SpatialReference({wkid:25833}));} function IFinit2(){if(IFurllink.indexOf("lat=")>0){IFurlpart=IFurllink.slice(IFurllink.indexOf("lat=")+4,IFurllink.length);IFurllat=IFurlpart.slice(0,7);IFurllat=IFurllat.replace(",",".");} if(IFurllink.indexOf("long=")>0){IFurlpart=IFurllink.slice(IFurllink.indexOf("long=")+5,IFurllink.length);IFurllong=IFurlpart.slice(0,7);IFurllong=IFurllong.replace(",",".");} if(IFurllink.indexOf("zoom=")>0){IFurlpart=IFurllink.slice(IFurllink.indexOf("zoom=")+5,IFurllink.length);IFurlzoom=IFurlpart.slice(0,1);IFtszoom=parseInt(IFurlzoom);if(IFurlzoom==0){IFtszoom=0;}} if(IFurllink.indexOf("loi=")>0){IFlois2=(IFurllink.match(/loi/g)||[]).length;IFloiplot2=0;IFurlpart=IFurllink.slice(IFurllink.indexOf("loi=")+4,IFurllink.length);IFurlpart2=IFurlpart;while(IFloiplot2<IFlois2){IFloiplot2=IFloiplot2+1;IFurlpart=IFurlpart2.slice(0,IFurlpart2.indexOf(";"));IFurlpart=IFurlpart.slice(0,IFurlpart.indexOf("%27")-1);IFlois=(IFurlpart.match(/,/g)||[]).length;IFlois=(IFlois+1)/2;IFloiplot=1;IFurlloilat=IFurlpart.slice(0,7);IFurlloilong=IFurlpart.slice(8,15);IFloiupos=proj4(w84,u33,[IFurlloilong,IFurlloilat]).toString();IFloiuposx=Math.round(parseFloat(IFloiupos.slice(0,(IFloiupos.indexOf(",")))));IFloiuposy=Math.round(parseFloat(IFloiupos.slice(IFloiupos.indexOf(",")+1)));IFurlpart=IFurlpart.slice(16,IFurlpart.length);IFurlloititle=IFurlpart2.slice(IFurlpart2.indexOf("%27")+3);IFurlloiinfo=IFurlloititle.slice(IFurlloititle.indexOf("%27")+7);IFurlloiinfo=unescape(IFurlloiinfo.slice(0,IFurlloiinfo.indexOf("%27")));IFurlloititle=IFurlloititle.slice(0,IFurlloititle.indexOf("%27"));IFurlloititle=unescape(IFurlloititle);IFloiattr={Title:IFurlloititle,Info:IFurlloiinfo};IFx0=IFloiuposx;IFy0=IFloiuposy;while(IFloiplot<IFlois){IFloiplot=IFloiplot+1;IFurlloilat=IFurlpart.slice(0,7);IFurlloilong=IFurlpart.slice(8,15);IFloiupos=proj4(w84,u33,[IFurlloilong,IFurlloilat]).toString();IFloiuposx=Math.round(parseFloat(IFloiupos.slice(0,(IFloiupos.indexOf(",")))));IFloiuposy=Math.round(parseFloat(IFloiupos.slice(IFloiupos.indexOf(",")+1)));IFurlpart=IFurlpart.slice(16,IFurlpart.length);IFpolylineJson={"paths":[[[IFx0,IFy0],[IFloiuposx,IFloiuposy]]]};IFpolyline=new esri.geometry.Polyline(IFpolylineJson,new esri.SpatialReference({wkid:25833}));IFpolyline[IFpoigraphicid]=IFgraphicLayer.add(new esri.Graphic(IFpolyline,IFpolylineSymbol,IFloiattr));IFx0=IFloiuposx;IFy0=IFloiuposy;} IFurlpart2=IFurlpart2.slice(IFurlpart2.indexOf("loi=")+4,IFurlpart2.length);}} if(IFurllink.indexOf("poi=")>0){IFurlpoi=1;IFpois=(IFurllink.match(/poi/g)||[]).length;IFpoiplot=0;IFurlpart=IFurllink.slice(IFurllink.indexOf("poi=")+4,IFurllink.length);while(IFpoiplot<IFpois){IFpoiplot=IFpoiplot+1;IFurlpoilat=IFurlpart.slice(0,7);IFurlpoilat=IFurlpoilat.replace(",",".");IFurlpoilong=IFurlpart.slice(8,15);IFurlpoilong=IFurlpoilong.replace(",",".");IFurlpoicolor=IFurlpart.slice(16,17);IFurlpoititle=IFurlpart.slice(21);IFurlpoiinfo=IFurlpoititle.slice(IFurlpoititle.indexOf("%27")+7);IFurlpoiinfo=unescape(IFurlpoiinfo.slice(0,IFurlpoiinfo.indexOf("%27")));IFurlpoititle=unescape(IFurlpoititle.slice(0,IFurlpoititle.indexOf("%27")));if(IFurlpoicolor=="r"){IFpoiSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} if(IFurlpoicolor=="g"){IFpoiSymbol=new esri.symbol.PictureMarkerSymbol("markergreen.png",20,19);} if(IFurlpoicolor=="b"){IFpoiSymbol=new esri.symbol.PictureMarkerSymbol("markerblue.png",20,19);} if(IFurlpoicolor=="y"){IFpoiSymbol=new esri.symbol.PictureMarkerSymbol("markeryellow.png",20,19);} IFpoiupos=proj4(w84,u33,[IFurlpoilong,IFurlpoilat]).toString();IFpoiuposx=Math.round(parseFloat(IFpoiupos.slice(0,(IFpoiupos.indexOf(",")))));IFpoiuposy=Math.round(parseFloat(IFpoiupos.slice(IFpoiupos.indexOf(",")+1)));IFpoipl={"geometry":{"x":IFpoiuposx,"y":IFpoiuposy},"attributes":{"Title":IFurlpoititle,"Info":IFurlpoiinfo}};IFpoigraphic=new esri.Graphic(IFpoipl);IFpoigraphic.setSymbol(IFpoiSymbol);IFpoigraphic[IFpoigraphicid]=IFgraphicLayer.add(IFpoigraphic);IFurlpart=IFurlpart.slice(IFurlpart.indexOf("poi=")+4,IFurlpart.length);}} if(IFurllink.indexOf("toi=")>0){IFurltoi=1;IFtois=(IFurllink.match(/toi/g)||[]).length;IFtoiplot=0;IFurlpart=IFurllink.slice(IFurllink.indexOf("toi=")+4,IFurllink.length);while(IFtoiplot<IFtois){IFtoiplot=IFtoiplot+1;IFurltoilat=IFurlpart.slice(0,7);IFurltoilat=IFurltoilat.replace(",",".");IFurltoilong=IFurlpart.slice(8,15);IFurltoilong=IFurltoilong.replace(",",".");IFurltoititle=IFurlpart.slice(19);IFurltoiinfo=IFurltoititle.slice(IFurltoititle.indexOf("%27")+7);IFurltoiinfo=unescape(IFurltoiinfo.slice(0,IFurltoiinfo.indexOf("%27")));IFurltoititle=unescape(IFurltoititle.slice(0,IFurltoititle.indexOf("%27")));IFtoiSymbol=new esri.symbol.TextSymbol(IFurltoititle.replace(/¤¤/g,'\''),IFfont,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_MIDDLE);IFtoiupos=proj4(w84,u33,[IFurltoilong,IFurltoilat]).toString();IFtoiuposx=Math.round(parseFloat(IFtoiupos.slice(0,(IFtoiupos.indexOf(",")))));IFtoiuposy=Math.round(parseFloat(IFtoiupos.slice(IFtoiupos.indexOf(",")+1)));IFtoipl={"geometry":{"x":IFtoiuposx,"y":IFtoiuposy},"attributes":{"Title":IFurltoititle.replace(/¤¤/g,'\''),"Info":IFurltoiinfo.replace(/¤¤/g,'\'')}};IFtoigraphic=new esri.Graphic(IFtoipl);IFtoigraphic.setSymbol(IFtoiSymbol);IFtoigraphic[IFtoigraphicid]=IFgraphicLayer.add(IFtoigraphic);IFurlpart=IFurlpart.slice(IFurlpart.indexOf("toi=")+4,IFurlpart.length);}} if(IFurllat>0&&IFurllong>0){IFupos=proj4(w84,u33,[IFurllong,IFurllat]).toString();IFuposx=Math.round(parseFloat(IFupos.slice(0,(IFupos.indexOf(",")))));IFuposy=Math.round(parseFloat(IFupos.slice(IFupos.indexOf(",")+1)));if(IFurlpoi==1){} if(IFurllink.indexOf("iframe.html")>0){map.centerAndZoom(new esri.geometry.Point(IFuposx,IFuposy,new esri.SpatialReference({wkid:25833})),IFtszoom);}}} function init(){document.getElementById("bordertop").style.width=document.documentElement.offsetWidth+"px";document.getElementById("borderbottom").style.width=document.documentElement.offsetWidth+"px";document.getElementById("borderleft").style.height=document.documentElement.offsetHeight+"px";document.getElementById("borderright").style.height=document.documentElement.offsetHeight+"px";if(measureunit=="kmnm"){measureunit="kmnm";dojo.byId("distance").innerHTML="0.00 km / 0.00 nm";} if(measureunit=="km"){measureunit="km";dojo.byId("distance").innerHTML="0.00 km";} if(measureunit=="mi"){measureunit="mi";dojo.byId("distance").innerHTML="0.00 mi";} if(measureunit=="nm"){measureunit="nm";dojo.byId("distance").innerHTML="0.00 nm";} document.getElementById("tooltips").innerHTML="";if(navigator.userAgent.search("Firefox")>0){detectedbrowser="firefox";document.getElementById("pninfoformta").style.top="6px";document.getElementById("pninfoformta").style.width="218px";document.getElementById("pninfoformta").style.height="140px";} if(navigator.userAgent.search("Chrome")>0){document.getElementById("pninfoformta").style.top="7px";document.getElementById("pninfoformta").style.width="214px";document.getElementById("pninfoformta").style.height="136px";document.getElementById("geoname_autocomplete").style.width="136px";document.getElementById("pn").style.top="210px";} if(navigator.userAgent.search("Safari")>0){document.getElementById("geoname_autocomplete").style.width="136px";document.getElementById("pn").style.top="210px";} if(navigator.userAgent.search("MSIE")>0){document.getElementById("geoname_autocomplete").style.width="136px";document.getElementById("textmarkerinput").style.width="136px";document.getElementById("northinput").style.width="65px";document.getElementById("eastinput").style.width="64px";document.getElementById("zoomnorthdiv").style.left="91px";document.getElementById("textdiv").style.top="259px";document.getElementById("zoomnorthdiv").style.top="283px";document.getElementById("zoomeastdiv").style.top="283px";} if(navigator.userAgent.search("Opera")>-1){document.getElementById("geoname_autocomplete").style.width="136px";document.getElementById("textmarkerinput").style.width="136px";document.getElementById("northinput").style.width="67px";document.getElementById("eastinput").style.width="59px";document.getElementById("zoomeastdiv").style.left="97px";document.getElementById("textdiv").style.top="259px";document.getElementById("zoomnorthdiv").style.top="283px";document.getElementById("zoomeastdiv").style.top="283px";} dojo.byId("dynposu33").innerHTML="";dojo.byId("dynposw84").innerHTML="";document.getElementById("dynposw84sar").style.display="none";document.getElementById("panel").style.display="block";document.getElementById("showhide").style.display="block";document.getElementById("transprightedge").style.display="block";document.getElementById("transplengthrightborder").style.display="block";document.getElementById("transplengthright").style.display="block";document.getElementById("zoomout").style.display="block";document.getElementById("zoomin").style.display="block";document.getElementById("mapscaled").style.display="block";document.getElementById("cl_textarea").value=cl_textarea_default;document.getElementById("coordlistposter").style.display="none";document.getElementById("about_previous_button").style.display="none";document.getElementById("about_next_button").style.display="none";document.getElementById("photoposter").style.display="none";document.getElementById("poster").style.display="none";document.getElementById("language").getElementsByTagName("img")[0].src="language_en.png";esri.config.defaults.map.zoomDuration=250;map.setMapCursor("default");dojo.connect(geometryService,"onLengthsComplete",outputDistance);dojo.connect(geometryService,"onAreasAndLengthsComplete",outputAreaLength);dojo.connect(tb,"onDrawEnd",function(geometry){measureoff=1;graphicid++;cl_graphic=0;if(measuremode=="distance"){if(language=="no"){if(document.getElementById("textmarkerinput").value.toLowerCase()=="rød"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,0,0]),3)));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="blå"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,255]),3)));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="gul"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,255,0]),3)));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="grønn"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,200,0]),3)));} else{graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),3)));}} if(language=="en"){if(document.getElementById("textmarkerinput").value.toLowerCase()=="red"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,0,0]),3)));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="blue"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,255]),3)));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="yellow"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,255,0]),3)));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="green"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,200,0]),3)));} else{graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),3)));}}} else{var areasAndLengthParams=new esri.tasks.AreasAndLengthsParameters();areasAndLengthParams.lengthUnit=esri.tasks.GeometryService.UNIT_METERS;areasAndLengthParams.areaUnit=esri.tasks.GeometryService.UNIT_SQUARE_METERS;areasAndLengthParams.polygons=[geometry];geometryService.areasAndLengths(areasAndLengthParams);if(language=="no"){if(document.getElementById("textmarkerinput").value.toLowerCase()=="rød"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,0,0]),2),new dojo.Color([255,0,0,0.15]))));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="blå"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,255]),2),new dojo.Color([0,0,255,0.15]))));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="gul"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,255,0]),2),new dojo.Color([255,255,0,0.15]))));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="grønn"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,200,0]),2),new dojo.Color([0,200,0,0.15]))));} else{graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),2),new dojo.Color([0,0,0,0.15]))));}} if(language=="en"){if(document.getElementById("textmarkerinput").value.toLowerCase()=="red"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,0,0]),2),new dojo.Color([255,0,0,0.15]))));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="blue"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,255]),2),new dojo.Color([0,0,255,0.15]))));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="yellow"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,255,0]),2),new dojo.Color([255,255,0,0.15]))));} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="green"){graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,200,0]),2),new dojo.Color([0,200,0,0.15]))));} else{graphic[graphicid]=graphicLayer.add(new esri.Graphic(geometry,new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),2),new dojo.Color([0,0,0,0.15]))));}}} measurewhat=0;tb.deactivate();modus=0;map.setMapCursor("default");outputDistance();});ctimedCount();doTimer();gullf();dojo.connect(map,"onMouseMove",showCoordinates);dojo.connect(map,"onMouseDrag",hidecursoratpan);dojo.connect(map,"onMouseUp",showcursorafterpan);dojo.connect(map,"onExtentChange",mapscalef);dojo.connect(map3dn,"onUpdateEnd",map3dnstartf);dojo.connect(map3de,"onUpdateEnd",map3destartf);dojo.connect(map3ds,"onUpdateEnd",map3dsstartf);dojo.connect(map3dw,"onUpdateEnd",map3dwstartf);dojo.connect(map3dn,"onExtentChange",mapscalef);dojo.connect(map3de,"onExtentChange",mapscalef);dojo.connect(map3ds,"onExtentChange",mapscalef);dojo.connect(map3dw,"onExtentChange",mapscalef);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){l_lang=navigator.browserLanguage;} else{l_lang=navigator.language;} if(l_lang=="nb"||l_lang=="nn"||l_lang=="no"||l_lang=="nb-NO"||l_lang=="nn_NO"){language="en";} var urlsearch=window.location.search;if(urlsearch.indexOf("lang=en")>0){language="no";} if(urlsearch.indexOf("lang=no")>0||urlsearch.indexOf("lang=nb")>0){language="en";} if(language=="no"){if(urlsearch.indexOf("dt=l")>0){document.getElementById("plotlinetext").innerHTML="Linjer (L)";} if(urlsearch.indexOf("dt=pl")>0){document.getElementById("plotlinetext").innerHTML="P/L ";} if(urlsearch.indexOf("dt=pt")>0){document.getElementById("plotlinetext").innerHTML="Punkter (P)";}} else if(language=="en"){if(urlsearch.indexOf("dt=l")>0){document.getElementById("plotlinetext").innerHTML="Lines (L)";} if(urlsearch.indexOf("dt=pl")>0){document.getElementById("plotlinetext").innerHTML="P/L";} if(urlsearch.indexOf("dt=pt")>0){document.getElementById("plotlinetext").innerHTML="Points (P)";}} if(urlsearch.indexOf("marker=green")>0){document.textinputform.textinputtext.value="grønn";} if(urlsearch.indexOf("marker=blue")>0){document.textinputform.textinputtext.value="blå";} if(urlsearch.indexOf("marker=yellow")>0){document.textinputform.textinputtext.value="gul";} if(urlsearch.indexOf("marker=greenpin")>0){document.textinputform.textinputtext.value="grønn nål";} if(urlsearch.indexOf("marker=bluepin")>0){document.textinputform.textinputtext.value="blå nål";} if(urlsearch.indexOf("marker=yellowpin")>0){document.textinputform.textinputtext.value="gul nål";} if(urlsearch.indexOf("marker=pin")>0){document.textinputform.textinputtext.value="nål";} if(urlsearch.indexOf("marker=mini")>0){document.textinputform.textinputtext.value="mini";} if(urlsearch.indexOf("munit=km")>0){measureunit="km";dojo.byId("distance").innerHTML="0.00 km";} if(urlsearch.indexOf("munit=mi")>0){measureunit="mi";dojo.byId("distance").innerHTML="0.00 mi";} if(urlsearch.indexOf("munit=nm")>0){measureunit="nm";dojo.byId("distance").innerHTML="0.00 nm";} if(urlsearch.indexOf("df=dd")>0){dataformat="decdg";} if(urlsearch.indexOf("df=u33")>0){dataformat="UTM33X";} if(urlsearch.indexOf("df=u35")>0){dataformat="UTM35X";} if(urlsearch.indexOf("ds=tab")>0){separator="[TAB]";} if(urlsearch.indexOf("ds=space")>0){separator="[SPACE]";} if(urlsearch.indexOf("ds=comma")>0){separator=",";} if(urlsearch.indexOf("ds=scol")>0){separator=";";} document.getElementById('separatortext').innerHTML=separator;var dlpart;if(urlsearch.indexOf("dl=")>0){dlpart=urlsearch.slice(urlsearch.indexOf("dl=")+3,urlsearch.length);cl_colnum_label=dlpart.slice(0,1);document.getElementById('labeltext').innerHTML=cl_colnum_label;} if(urlsearch.indexOf("de=")>0){dlpart=urlsearch.slice(urlsearch.indexOf("de=")+3,urlsearch.length);cl_colnum_east=dlpart.slice(0,1);document.getElementById('easttext').innerHTML=cl_colnum_east;} if(urlsearch.indexOf("dn=")>0){dlpart=urlsearch.slice(urlsearch.indexOf("dn=")+3,urlsearch.length);cl_colnum_north=dlpart.slice(0,1);document.getElementById('northtext').innerHTML=cl_colnum_north;} languagef();document.getElementById("accuracy").style.display="block";document.getElementById("copyright").style.display="block";document.getElementById("npolardiv").style.display="block";document.getElementById("terms").style.display="block";document.getElementById("maptype").style.display="block";document.getElementById("mapexporturlinput").value="https://toposvalbard.npolar.no";if(urlsearch.indexOf("version=npweb")>0){npweb=1;document.getElementById("panel").style.display="none";document.getElementById("maptype").style.display="none";document.getElementById("omapback").style.display="none";document.getElementById("ovWin").style.display="none";document.getElementById("showhide").style.display="none";document.getElementById("showhideomap").style.display="none";} if(npweb==0){document.getElementById("tsnews").style.display="none";} document.getElementById("map3dn").style.display="none";document.getElementById("map3de").style.display="none";document.getElementById("map3ds").style.display="none";document.getElementById("map3dw").style.display="none";map3dn.setLevel(0);map3de.setLevel(0);map3dw.setLevel(0);map3ds.setLevel(0);if(urllink.indexOf("sarfuel=")>0){urlsar=urllink.slice(urllink.indexOf("sarfuel="),urllink.length);var urlsarpoints=(urlsar.match(new RegExp("sarfuel=","g"))||[]).length;var urlsarlist="";for(var i=0;i<urlsarpoints;i++){if(urlsar.indexOf("&")>0){urlsarpoint=urlsar.slice(8,urlsar.indexOf("&"));} else{urlsarpoint=urlsar.slice(8);} urlsarpoint=urlsarpoint.replace(/,/g,';');urlsarlist=urlsarlist+"\n"+urlsarpoint;urlsar=urlsar.slice(urlsar.indexOf("&")+1,urlsar.length);} document.getElementById("sartext").innerHTML="SAR-fuel (URL)";sarlist=urlsarlist;sartoolsf();} if(urllink.indexOf("lat=")>0){urlpart=urllink.slice(urllink.indexOf("lat=")+4,urllink.length);urllat=urlpart.slice(0,8);urllat=urllat.replace(",",".");} if(urllink.indexOf("long=")>0){urlpart=urllink.slice(urllink.indexOf("long=")+5,urllink.length);urllong=urlpart.slice(0,8);urllong=urllong.replace(",",".");} if(urllink.indexOf("zoom=")>0){urlpart=urllink.slice(urllink.indexOf("zoom=")+5,urllink.length);if(urlpart.slice(1,2)=="&"){urlzoom=urlpart.slice(0,1);} else{urlzoom=urlpart.slice(0,2);}} if(urllink.indexOf("layer=map")>0){mapmaportho="ortho";mapmaporthof();} if(urllink.indexOf("layer=aerial")>0){mapmaportho="map";mapmaporthof();} if(urllat>0&&urllong>0){upos=proj4(w84,u33,[urllong,urllat]).toString();uposx=Math.round(parseFloat(upos.slice(0,(upos.indexOf(",")))));uposy=Math.round(parseFloat(upos.slice(upos.indexOf(",")+1)));map.centerAndZoom(new esri.geometry.Point(uposx,uposy,new esri.SpatialReference({wkid:25833})),urlzoom);} document.getElementById("bordertop").style.display="block";document.getElementById("borderbottom").style.display="block";document.getElementById("borderleft").style.display="block";document.getElementById("borderright").style.display="block";document.getElementById("whitemap").style.display="none";if(aerialjsload==0){dojo.addOnLoad(function(){var deferred=dojo.io.script.get({url:"xaerial.js"});deferred.then(function(){xaerialf();},function(){});});aerialjsload=1;}} function mouseout(){coordoff=1;dojo.byId("dynposu33").innerHTML="";dojo.byId("dynposw84").innerHTML="";document.getElementById("dynposw84sar").style.display="none";document.getElementById("cursorshow").style.top="-30px";} function hideposterconnect(){infohide=0;if(pPoint==0){p.hide();coordharvestLayer.hide();pnLayer.hide();graphicLayer.hide();sarCircleLayer.hide();sarGraphicLayer.hide();sarGraphicLabelLayer.hide();sarActiveLayer.hide();zgraphicLayer.hide();poigraphicLayer.hide();xaerialLayer.hide();aerialnamesLayer.hide();terraincntLayer.hide();graticulesLayer.hide();indexLayer.hide();activeLayer.remove(activegraphic);document.getElementById("aerialbox").style.display="none";document.getElementById("aerialthumb0").style.display="none";document.getElementById("aerialthumb").getElementsByTagName("img")[0].src="0.png";document.getElementById("pninfobox").style.display="none";}} function infohidef(){document.getElementById("tsnews").style.display="none";infohide++;} function graphicpointf(evt){infohide++;map.infoWindow.resize(230,114);map.infoWindow.setTitle("Data");try{map.infoWindow.setContent(evt.graphic.attributes.Data);map.infoWindow.show(evt.screenPoint,map.getInfoWindowAnchor(evt.screenPoint));document.getElementById('map').oncontextmenu=function(){return true;};} catch(err){}} function pnpointf(evt){hideposter();pninfoboxshow=1;document.getElementById("pninfobox").style.display="block";document.getElementById("pnjump").style.display="block";document.getElementById("aerialthumb").style.display="none";document.getElementById("aerialthumb0").style.display="none";document.getElementById("aerialthumbback").style.display="none";pnjumplink=evt.graphic.attributes.pnlink;document.getElementById("pninfoformta").value=evt.graphic.attributes.pninfo;document.getElementById("pninfoformta").scrollTop=0;activeLayer.remove(activegraphic);var activeSymbol=new esri.symbol.PictureMarkerSymbol("active.png",39,38);var aapl=new esri.geometry.Point(evt.mapPoint.x,evt.mapPoint.y);activegraphic=new esri.Graphic(aapl,activeSymbol);activeLayer.add(activegraphic);} function aerialpointf(evt){if(evt.graphic.attributes.F!=""){hideposter();aerialboxshow=1;pninfoboxshow=0;document.getElementById("pnjump").style.display="none";aerialimage=evt.graphic.attributes.F+".jpg";document.getElementById("aerialthumb").getElementsByTagName("img")[0].src="at/"+evt.graphic.attributes.F+".png";document.getElementById("aerialthumb0").style.display="block";document.getElementById("aerialbox").style.width=document.getElementById("aerialthumb0").getElementsByTagName("img")[0].offsetWidth+5+"px";document.getElementById("aerialbox").style.height=document.getElementById("aerialthumb0").getElementsByTagName("img")[0].offsetHeight+5+"px";activeLayer.remove(activegraphic);var activeSymbol=new esri.symbol.PictureMarkerSymbol("active.png",39,38);var aapl=new esri.geometry.Point(evt.mapPoint.x,evt.mapPoint.y);activegraphic=new esri.Graphic(aapl,activeSymbol);activeLayer.add(activegraphic);document.getElementById("aerialbox").style.display="block";document.getElementById("aerialthumb").style.display="block";if(language=="no"){document.getElementById("aerialbox").title="Klikk for stor versjon.\n(Åpnes i nytt vindu)";} else{document.getElementById("aerialbox").title="Click for large version.\n(Opens in new window)";}}} function xaerialpointf(evt){if(evt.graphic.attributes.F!=""){hideposter();aerialboxshow=1;pninfoboxshow=0;document.getElementById("pnjump").style.display="none";aerialimage=evt.graphic.attributes.F+".jpg";document.getElementById("aerialthumb").getElementsByTagName("img")[0].src="xat/"+evt.graphic.attributes.F+".jpg";document.getElementById("aerialthumb0").style.display="block";document.getElementById("aerialbox").style.width=document.getElementById("aerialthumb0").getElementsByTagName("img")[0].offsetWidth+5+"px";document.getElementById("aerialbox").style.height=document.getElementById("aerialthumb0").getElementsByTagName("img")[0].offsetHeight+5+"px";activeLayer.remove(activegraphic);var activeSymbol=new esri.symbol.PictureMarkerSymbol("active.png",39,38);var aapl=new esri.geometry.Point(evt.mapPoint.x,evt.mapPoint.y);activegraphic=new esri.Graphic(aapl,activeSymbol);activeLayer.add(activegraphic);document.getElementById("aerialbox").style.display="block";document.getElementById("aerialthumb").style.display="block";if(language=="no"){document.getElementById("aerialbox").title="Klikk for stor versjon.\n(Åpnes i nytt vindu)";} else{document.getElementById("aerialbox").title="Click for large version.\n(Opens in new window)";}}} function extradown(){zooomext2=-1;} function pPoint1f(evt){if(!evt.graphic.attributes.F){return;} if(evt.graphic.attributes.F.slice(0,1)=="S"){document.getElementById("aerialthumb0").getElementsByTagName("img")[0].src="xat/"+evt.graphic.attributes.F+".jpg";} else{document.getElementById("aerialthumb0").getElementsByTagName("img")[0].src="at/"+evt.graphic.attributes.F+".png";} pPoint=1;} function pPoint0f(){pPoint=0;} function saractivelayerclearf(){if(modus==0){sarpl.x="";sarCircleLayer.clear();sarActiveLayer.clear();}} function sarpointf(evt){if(modus==0){sarCircleLayer.clear();sarActiveLayer.clear();var polylineJson;var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),2);var sar180=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,255,0]),3);var sar400=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,0,0]),2);if(sarpl.x!=parseInt(evt.graphic.geometry.x)){sarpl=new esri.geometry.Point(parseInt(evt.graphic.geometry.x),parseInt(evt.graphic.geometry.y));var circleRadius;var circleDensity=0;var circleAngle=45*0.0174532925;var circlePx;var circlePy;var circlePx0;var circlePy0;var myStringArray=["50","100","150","180","200","250","300","350","400","450"];var arrayLength=myStringArray.length;for(var i=0;i<arrayLength;i++){circleRadius=1852*myStringArray[i];circlePx0=sarpl.x+circleRadius*Math.cos(0);circlePy0=sarpl.y+circleRadius*Math.sin(0);while(circleDensity<361){circlePx=sarpl.x+circleRadius*Math.cos(circleDensity*0.0174532925);circlePy=sarpl.y+circleRadius*Math.sin(circleDensity*0.0174532925);if(myStringArray[i]=="180"){sarCircleLayer.add(new esri.Graphic(new esri.geometry.Polyline({"paths":[[[circlePx0,circlePy0],[circlePx,circlePy]]]}),sar180));} else if(myStringArray[i]=="400"){sarCircleLayer.add(new esri.Graphic(new esri.geometry.Polyline({"paths":[[[circlePx0,circlePy0],[circlePx,circlePy]]]}),sar400));} else{sarCircleLayer.add(new esri.Graphic(new esri.geometry.Polyline({"paths":[[[circlePx0,circlePy0],[circlePx,circlePy]]]}),polylineSymbol));} circleDensity=circleDensity+5;circlePx0=circlePx;circlePy0=circlePy;} circleDensity=0;while(circleDensity<361){circlePx=sarpl.x+circleRadius*Math.cos(circleDensity*0.0174532925);circlePy=sarpl.y+circleRadius*Math.sin(circleDensity*0.0174532925);if(circleDensity==0||circleDensity==90||circleDensity==180||circleDensity==270||circleDensity==45||circleDensity==135||circleDensity==225||circleDensity==315){if(myStringArray[i]=="50"||myStringArray[i]=="450"){sarCircleLayer.add(new esri.Graphic(new esri.geometry.Point(circlePx,circlePy),new esri.symbol.TextSymbol("\u00A0"+myStringArray[i]+" nm",sarCircleFont,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_CENTER).setHaloSize(2).setHaloColor(new dojo.Color([230,230,230])).setVerticalAlignment("middle")));} else if(myStringArray[i]=="180"){sarCircleLayer.add(new esri.Graphic(new esri.geometry.Point(circlePx,circlePy),new esri.symbol.TextSymbol("\u00A0"+myStringArray[i],sarCircleFont,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_CENTER).setHaloSize(2).setHaloColor(new dojo.Color([255,255,204])).setVerticalAlignment("middle")));} else if(myStringArray[i]=="400"){sarCircleLayer.add(new esri.Graphic(new esri.geometry.Point(circlePx,circlePy),new esri.symbol.TextSymbol("\u00A0"+myStringArray[i],sarCircleFont,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_CENTER).setHaloSize(2).setHaloColor(new dojo.Color([255,216,216])).setVerticalAlignment("middle")));} else{sarCircleLayer.add(new esri.Graphic(new esri.geometry.Point(circlePx,circlePy),new esri.symbol.TextSymbol("\u00A0"+myStringArray[i],sarCircleFont,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_CENTER).setHaloSize(2).setHaloColor(new dojo.Color([230,230,230])).setVerticalAlignment("middle")));}} circleDensity=circleDensity+5;circlePx0=circlePx;circlePy0=circlePy;} circleDensity=0;} sarActiveLayer.remove(saractivegraphic);var activeSymbol=new esri.symbol.PictureMarkerSymbol("saractive.png",35,22);var aapl=new esri.geometry.Point(parseInt(evt.graphic.geometry.x),parseInt(evt.graphic.geometry.y));saractivegraphic=new esri.Graphic(aapl,activeSymbol);sarActiveLayer.add(saractivegraphic);} else{sarpl.x="";sarCircleLayer.clear();sarActiveLayer.clear();}}} function photopointf(evt){hideposter();if(evt.graphic.attributes.pF!=""){zooomext2=-1;document.getElementById("outsideposter").style.display="block";document.getElementById("photoposter").style.display="block";document.getElementById("photoposter").getElementsByTagName("img")[0].src="photobackground.png";document.getElementById("photoposterphoto").style.display="block";document.getElementById("photoposter").style.left=(document.documentElement.offsetWidth/2)-405+"px";document.getElementById("photoposter").style.top=(document.documentElement.offsetHeight/2)-230+"px";document.getElementById("photoposterphoto").getElementsByTagName("img")[0].src="p/"+evt.graphic.attributes.pF+".jpg";attriben=evt.graphic.attributes.pF;attriben=attriben.slice(5,length.attriben);attribvp=evt.graphic.attributes.pS;attribdt=evt.graphic.attributes.pT;document.getElementById("photodate").getElementsByTagName("img")[0].src="month"+attribdt+".png";if(language=="no"){attribdt=attribdt.replace("01","januar");attribdt=attribdt.replace("02","februar");attribdt=attribdt.replace("03","mars");attribdt=attribdt.replace("04","april");attribdt=attribdt.replace("05","mai");attribdt=attribdt.replace("06","juni");attribdt=attribdt.replace("07","juli");attribdt=attribdt.replace("08","august");attribdt=attribdt.replace("09","september");attribdt=attribdt.replace("10","oktober");attribdt=attribdt.replace("11","november");attribdt=attribdt.replace("12","desember");if(attribdt!="00"){document.getElementById("photodate").getElementsByTagName("img")[0].title="Fotografert i "+attribdt;} else{document.getElementById("photodate").getElementsByTagName("img")[0].title="";}} if(language=="en"){attribdt=attribdt.replace("01","January");attribdt=attribdt.replace("02","February");attribdt=attribdt.replace("03","March");attribdt=attribdt.replace("04","April");attribdt=attribdt.replace("05","May");attribdt=attribdt.replace("06","June");attribdt=attribdt.replace("07","July");attribdt=attribdt.replace("08","August");attribdt=attribdt.replace("09","September");attribdt=attribdt.replace("10","October");attribdt=attribdt.replace("11","November");attribdt=attribdt.replace("12","December");if(attribdt!="00"){document.getElementById("photodate").getElementsByTagName("img")[0].title="Photograph taken in "+attribdt;} else{document.getElementById("photodate").getElementsByTagName("img")[0].title="";}} if(attribvp=="B"){document.getElementById("photoviewpoint").getElementsByTagName("img")[0].src="viewpoint_boat.png";document.getElementById("photoviewpoint").getElementsByTagName("img")[0].title=vp_b;} if(attribvp=="S"){document.getElementById("photoviewpoint").getElementsByTagName("img")[0].src="viewpoint_ground.png";document.getElementById("photoviewpoint").getElementsByTagName("img")[0].title=vp_g;} if(attribvp=="H"){document.getElementById("photoviewpoint").getElementsByTagName("img")[0].src="viewpoint_heli.png";document.getElementById("photoviewpoint").getElementsByTagName("img")[0].title=vp_h;} if(attribvp=="0"){document.getElementById("photoviewpoint").getElementsByTagName("img")[0].src="viewpoint_0.png";document.getElementById("photoviewpoint").getElementsByTagName("img")[0].title="";} if(language=="no"){pppdl="";if(evt.graphic.attributes.pD=="N0"){pppdl=". Utsikt mot nord";} if(evt.graphic.attributes.pD=="NE"){pppdl=". Utsikt mot nordøst";} if(evt.graphic.attributes.pD=="E0"){pppdl=". Utsikt mot øst";} if(evt.graphic.attributes.pD=="SE"){pppdl=". Utsikt mot sørøst";} if(evt.graphic.attributes.pD=="S0"){pppdl=". Utsikt mot sør";} if(evt.graphic.attributes.pD=="SW"){pppdl=". Utsikt mot sørvest";} if(evt.graphic.attributes.pD=="W0"){pppdl=". Utsikt mot vest";} if(evt.graphic.attributes.pD=="NW"){pppdl=". Utsikt mot nordvest";} attriben=attriben.replace(" (1)","");attriben=attriben.replace(" (2)","");attriben=attriben.replace(" (3)","");attriben=attriben.replace(" (4)","");document.getElementById("photoposterphotodir").innerHTML="\u00A0"+attriben+"\u00A0";document.getElementById("photoposterphotodirback").innerHTML="\u00A0"+attriben+"\u00A0";} if(language=="en"){pppdl="";if(evt.graphic.attributes.pD=="N0"){pppdl=". Facing north";} if(evt.graphic.attributes.pD=="NE"){pppdl=". Facing northeast";} if(evt.graphic.attributes.pD=="E0"){pppdl=". Facing east";} if(evt.graphic.attributes.pD=="SE"){pppdl=". Facing southeast";} if(evt.graphic.attributes.pD=="S0"){pppdl=". Facing south";} if(evt.graphic.attributes.pD=="SW"){pppdl=". Facing southwest";} if(evt.graphic.attributes.pD=="W0"){pppdl=". Facing west";} if(evt.graphic.attributes.pD=="NW"){pppdl=". Facing northwest";} attriben=attriben+" ";attriben=attriben.replace(" bak "," back ");attriben=attriben.replace(" del av "," part of ");attriben=attriben.replace(" detalj "," detail ");attriben=attriben.replace(" foran "," front ");attriben=attriben.replace(" høyre "," right ");attriben=attriben.replace(" mellom "," between ");attriben=attriben.replace(" og "," and ");attriben=attriben.replace(" sett fra "," seen from ");attriben=attriben.replace(" til "," to ");attriben=attriben.replace(" utsikt fra "," view from ");attriben=attriben.replace(" ved "," near ");attriben=attriben.replace(" venstre "," left ");attriben=attriben.replace(" lufthavn "," Airport ");attriben=attriben.replace(" bak,"," back,");attriben=attriben.replace(" del av,"," part of,");attriben=attriben.replace(" detalj,"," detail,");attriben=attriben.replace(" foran,"," front,");attriben=attriben.replace(" høyre,"," right,");attriben=attriben.replace(" mellom,"," between,");attriben=attriben.replace(" sett fra,"," seen from,");attriben=attriben.replace(" utsikt fra,"," view from,");attriben=attriben.replace(" ved,"," near,");attriben=attriben.replace(" venstre,"," left,");attriben=attriben.slice(0,attriben.length-1);document.getElementById("photoposterphotodir").innerHTML="\u00A0"+attriben+"\u00A0";document.getElementById("photoposterphotodirback").innerHTML="\u00A0"+attriben+"\u00A0";}}} function photoposterphotodirbacksolid(){document.getElementById("photoposterphotodirback").style.backgroundColor="#606060";} function photoposterphotodirbacktransparent(){document.getElementById("photoposterphotodirback").style.backgroundColor="transparent";} function outputDistance(result){measureline=lengthpos;measuretextkm=measureline;measuretextmi=measureline;measuretextnm=measureline;distancef();} function distancef(){if(measureline>=100000){measuretextkm=(measureline/1000).toFixed(0)+" km";} if(measureline>=10000&&measureline<100000){measuretextkm=(measureline/1000).toFixed(1)+" km";} if(measureline>=1000&&measureline<10000){measuretextkm=(measureline/1000).toFixed(2)+" km";} if(measureline<1000){measuretextkm=(measureline*1).toFixed(0)+" m";} if(measureline==0){measuretextkm="0.00 km";} if(measureline>=160900){measuretextmi=(measureline/1609).toFixed(0)+" mi";} if(measureline>=16090&&measureline<160900){measuretextmi=(measureline/1609.344).toFixed(1)+" mi";} if(measureline>=1609.344&&measureline<16090){measuretextmi=(measureline/1609.344).toFixed(2)+" mi";} if(measureline<1609.344){measuretextmi=(measureline*1.0936).toFixed(0)+" yd";} if(measureline==0){measuretextmi="0.00 mi";} if(measureline>=185200){measuretextnm=(measureline/1852).toFixed(0)+" nm";} if(measureline>=18520&&measureline<185200){measuretextnm=(measureline/1852).toFixed(1)+" nm";} if(measureline>=1852&&measureline<18520){measuretextnm=(measureline/1852).toFixed(2)+" nm";} if(measureline>=185&&measureline<1852){measuretextnm=(measureline/1852).toFixed(3)+" nm";} if(measureline<185){measuretextnm=(measureline*1).toFixed(0)+" m";} if(measureline==0){measuretextnm="0.00 nm";} if(measureunit=="kmnm"){dojo.byId("distance").innerHTML=measuretextkm.replace(",",".")+" / "+measuretextnm.replace(",",".");} else if(measureunit=="km"){dojo.byId("distance").innerHTML=measuretextkm.replace(",",".");} else if(measureunit=="mi"){dojo.byId("distance").innerHTML=measuretextmi.replace(",",".");} else if(measureunit=="nm"){dojo.byId("distance").innerHTML=measuretextnm.replace(",",".");} firstclick=0;document.getElementById("cursorlength").style.left="10px";document.getElementById("cursorlength").style.top="10px";dojo.byId("cursorlength").innerHTML="";document.getElementById("cursorlength").style.display="none";lengthadd=0;} function outputAreaLength(result){measurearea=result.areas[0].toFixed(0);measurearea=measurearea.replace(" ","");measureline=measureline.replace(" ","");measurearea=measurearea.replace(",","");measurearea=measurearea.replace(".","");measurearea=measurearea.replace(",","");measurearea=measurearea.replace(".","");areaf();} function areaf(){if(measureunit=="km"||measureunit=="kmnm"){if(measurearea>=100000000){measuretext=(measurearea/1000000).toFixed(0)+" km2";} if(measurearea>=10000000&&measurearea<100000000){measuretext=(measurearea/1000000).toFixed(1)+" km2";} if(measurearea>=1000000&&measurearea<10000000){measuretext=(measurearea/1000000).toFixed(2)+" km2";} if(measurearea>=10000&&measurearea<1000000){measuretext=(measurearea/10000).toFixed(2)+" ha";} if(measurearea>=1000&&measurearea<10000){measuretext=(measurearea/1000).toFixed(2)+" daa";} if(measurearea<1000){measuretext=(Math.round(measurearea*0.1)/0.1)+" m2";} if(measurearea==0){measuretext="0.00 km2";} dojo.byId("distance").innerHTML=measuretext.replace(",",".");} if(measureunit=="mi"){if(measurearea>=259000000){measuretext=(measurearea/2590000).toFixed(0)+" mi2";} if(measurearea>=25900000&&measurearea<259000000){measuretext=(measurearea/2590000).toFixed(1)+" mi2";} if(measurearea>=2590000&&measurearea<25900000){measuretext=(measurearea/2590000).toFixed(2)+" mi2";} if(measurearea>=4047&&measurearea<2590000){measuretext=(measurearea/4047).toFixed(2)+" ac";} if(measurearea<4047){measuretext=(Math.round((measurearea/0.8361)*0.1)/0.1)+" yd2";} if(measurearea==0){measuretext="0.00 mi2";} dojo.byId("distance").innerHTML=measuretext.replace(",",".");} if(measureunit=="nm"){dojo.byId("distance").innerHTML="(nm)";}} function languagef(){if(language=="no"){language="en";coordformattitlelang="Wrong coordinate formatting <br> or outside map extent.";utm0="[No UTM zone]";utmformattip="UTM zone 33/dynamic";dgformattip="Change degree format";direast="E";dirwest="W";koordlang="Coordinates";accuracyboard="accuracyboard_en2.png";termsboard="termsboard_en.png";desgr="Decimal dg.";vp_g="Seen from ground";vp_b="Seen from sea";vp_h="Seen from air";pppdl=" seen from ";pnlang="&lang=en";mapprinttitledefault="Title";zinfo="Elevation" if(document.getElementById("coordharvestformta").value=="Ctrl + museklikk i kart for å høste koordinater"){document.getElementById("coordharvestformta").value="Ctrl + left click in map to harvest coordinates";} document.getElementById("customisetoposvalbard").getElementsByTagName("img")[0].src="customise_en.png";document.getElementById("datastatus").style.left="31px";document.getElementById("datastatus").style.top="264px";if(document.textinputform.textinputtext.value=="rød"){document.textinputform.textinputtext.value="red";} if(document.textinputform.textinputtext.value=="grønn"){document.textinputform.textinputtext.value="green";} if(document.textinputform.textinputtext.value=="blå"){document.textinputform.textinputtext.value="blue";} if(document.textinputform.textinputtext.value=="gul"){document.textinputform.textinputtext.value="yellow";} if(document.textinputform.textinputtext.value=="rød nål"){document.textinputform.textinputtext.value="red pin";} if(document.textinputform.textinputtext.value=="grønn nål"){document.textinputform.textinputtext.value="green pin";} if(document.textinputform.textinputtext.value=="blå nål"){document.textinputform.textinputtext.value="blue pin";} if(document.textinputform.textinputtext.value=="gul nål"){document.textinputform.textinputtext.value="yellow pin";} if(document.textinputform.textinputtext.value=="nål"){document.textinputform.textinputtext.value="pin";} document.getElementById("mapurltitle").innerHTML="Link to this map";document.getElementById("mapprinttitle").innerHTML="Print. (Some instability)";document.getElementById("owgnote").getElementsByTagName("img")[0].src="owgnote_en.png";document.getElementById("landsatnote").getElementsByTagName("img")[0].src="sentinelnote_en.png";document.getElementById("sentinelnote").getElementsByTagName("img")[0].src="sentinelnote_en.png";document.getElementById("settlenote").getElementsByTagName("img")[0].src="settlenote_en.png";document.getElementById("nauticalnote").getElementsByTagName("img")[0].src="nauticalnote_en0.png";document.getElementById("nauticalnmalink").getElementsByTagName("img")[0].src="nmalink_en.png";document.getElementById("ortho36link").getElementsByTagName("img")[0].src="ortho36link_en.png";document.getElementById("terrainnmalink").getElementsByTagName("img")[0].src="nmalink_en.png";document.getElementById("terrainnote").getElementsByTagName("img")[0].src="terrainnote_en1.png";document.getElementById("ortho36note").getElementsByTagName("img")[0].src="ortho36note_en.png";if(coordharvestsystem=="84"){document.getElementById("coordharvestsys").innerHTML="Decimal dg.";} document.getElementById("iframemaptitle").innerHTML="Compose an IFrame ...";document.getElementById("tsnews").getElementsByTagName("img")[0].src="tsnews_en20231025.png";document.getElementById("zoomtoclick").getElementsByTagName("img")[0].src="zoomtoclick_en.png";document.getElementById("zoomtoclick").style.width="177px";document.getElementById("pnjump").getElementsByTagName("img")[0].title="Further place name info. (Opens in new window)";document.getElementById("aerialbox").title="";document.getElementById("showhide").getElementsByTagName("img")[0].title="Show/hide board";document.getElementById("geoname_autocomplete").value="Zoom to place name";if(document.getElementById("textmarkerinput").value=="Tekst/markør"){document.getElementById("textmarkerinput").value="Text input/marker";} if(document.getElementById("northinput").value=="Nord/B.gr."){document.getElementById("northinput").value="North/Lat.";} if(document.getElementById("eastinput").value=="Øst/L.gr."){document.getElementById("eastinput").value="East/Long.";} gpx_textarea_default=gpx_textarea_default_en;document.getElementById("tracksimptext").innerHTML="Simplified";if(datatype=="datalist"){document.getElementById("tableinfo").innerHTML="Data list";} document.getElementById("dataformattitle").innerHTML="Data format:";document.getElementById("separatortitle").innerHTML="Delimiter:";document.getElementById("labeltitle").innerHTML="Label field:";document.getElementById("northtitle").innerHTML="North field:";document.getElementById("easttitle").innerHTML="East field:";document.getElementById("plotlinetitle").innerHTML="Plot as:";if(document.getElementById("plotlinetext").innerHTML=="Punkter (P)"){document.getElementById("plotlinetext").innerHTML="Points (P)";} if(document.getElementById("plotlinetext").innerHTML=="Linjer (L)"){document.getElementById("plotlinetext").innerHTML="Lines (L)";} if(document.getElementById("plotlinetext").innerHTML=="P/L "){document.getElementById("plotlinetext").innerHTML="P/L";} document.getElementById("npolar").href="https://www.npolar.no/en";document.getElementById("npolardiv").getElementsByTagName("img")[0].src="npolar_en.png";document.getElementById("npolardiv").title="Norwegian Polar Institute, home page";document.getElementById("nauticalenc").title="External ENC map site";if(dataformat=="Desimalgr."){dataformat=desgr;} document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src="plot_points_en.png";if(wrapperv=="1"&&datatype=="GPX"){document.getElementById("cl_textarea").value=gpx_textarea_default;} if(wrapperv=="1"&&datatype=="datalist"){document.getElementById("cl_textarea").value=cl_textarea_default;} document.getElementById("about_page").getElementsByTagName("img")[0].src=(document.getElementById("about_page").getElementsByTagName("img")[0].src).replace("_no","_en");document.getElementById("poster").getElementsByTagName("img")[0].src=(document.getElementById("poster").getElementsByTagName("img")[0].src).replace("_no","_en");document.getElementById("showhideomap").getElementsByTagName("img")[0].title="Show/hide overview map";document.getElementById("language").getElementsByTagName("img")[0].src="language_no.png";document.getElementById("logo").getElementsByTagName("img")[0].src="logo_en.png";document.getElementById("terms").getElementsByTagName("img")[0].src="terms_en.png";document.getElementById("accuracy").getElementsByTagName("img")[0].src="accuracy_en.png";document.getElementById("terms").style.right="213px";document.getElementById("accuracy").style.right="320px";document.getElementById("copyright").style.right="173px";document.getElementById("npolardiv").style.right="47px";document.getElementById("transplengthrightborder").style.width=591+17+sizen+"px";document.getElementById("transplengthright").style.width=591+17+sizen+"px";document.getElementById("transprightedge").style.right=591+16+sizen+"px";document.getElementById("scale3dnb").style.right=591+14+"px";document.getElementById("scale3dnote").style.right=457+"px";document.getElementById("mapscaled").style.right=591+10+"px";document.getElementById("maptype").getElementsByTagName("img")[0].src="maptype_en.png";document.getElementById("scale3dnote").getElementsByTagName("img")[0].src="scale3dnote_en.png";document.getElementById("m3dexpposter").getElementsByTagName("img")[0].src="3dexpposter_en.png";document.getElementById("maptypelist_3d").getElementsByTagName("img")[0].src="show3dsimple_unchecked_en.png";document.getElementById("maptypelist_3dexp").getElementsByTagName("img")[0].src="show3ddynamic_unchecked_en.png";if(menupin==1){document.getElementById("zoomtoclick").style.left="404px";} document.getElementById("ortho36link").getElementsByTagName("img")[0].title="Dataset entry at the Norwegian Polar Data Centre";document.getElementById("nauticalnmalink").getElementsByTagName("img")[0].title="Norwegian Mapping Authority website";document.getElementById("terrainnmalink").getElementsByTagName("img")[0].title="Norwegian Mapping Authority website";document.getElementById("maptypelist_map_terrainhs").getElementsByTagName("img")[0].title="Hillshade";document.getElementById("maptypelist_map_terrainsl").getElementsByTagName("img")[0].title="Slope";coordlistplot_tips="Plot data list /<br>GPX file from GPS ...";mapexport_tips="Link to<br>current<br>map extent";photopoint_tips="Show/hide landscape photos";namepoint_tips="Show/hide place name info";toggle_tips="- or right-click in map";geoname_autocomplete_tips="Type and choose from list";language_tips="Bytt til norsk";aboutpopup_tips="About / Legend / Help";cursorshow_tips="Enhance cursor visibility";measureresults_tips="Measurement results";measureunit_tips="Choose measurement unit (km/mi/nm)";measure_tips="Measure dist./draw line";eraser_tips="Erase previous graphic"+"<br>"+"(Right-click: erase all)";textmarkerinput_tips="Test/blue";textmarker_tips="Place text/marker in the map";zoom_tips="Zoom to coordinates";captcoord_tips="Click in map for coords. (Right-click: harvest)";if(map.infoWindow.isShowing){infoWindowContent=infoWindowContent.replace("°Ø","°E");infoWindowContent=infoWindowContent.replace("°V","°W");infoWindowContent=infoWindowContent.replace('\''+"Ø",'\''+"E");infoWindowContent=infoWindowContent.replace('&quot;'+"Ø",'&quot;'+"E");infoWindowContent=infoWindowContent.replace('\''+"V",'\''+"W");infoWindowContent=infoWindowContent.replace('&quot;'+"V",'&quot;'+"W");infoWindowContent=infoWindowContent.replace("Høyde","Elevation");map.infoWindow.setContent(infoWindowContent);map.infoWindow.setTitle(koordlang);} document.getElementById("coordformattitle").innerHTML=(document.getElementById("coordformattitle").innerHTML).replace("Feil koordinatformat eller <br> utenfor kartet.","Wrong coordinate formatting <br> or outside map extent.");document.getElementById("coordformattitle").innerHTML=(document.getElementById("coordformattitle").innerHTML).replace("Ø","E");document.getElementById("coordformattext2").innerHTML=(document.getElementById("coordformattext2").innerHTML).replace("Ø","E");document.getElementById("coordformattext3").innerHTML=(document.getElementById("coordformattext3").innerHTML).replace("Ø","E");document.getElementById("coordformattext4").innerHTML=(document.getElementById("coordformattext4").innerHTML).replace("Ø","E");document.getElementById("coordformattext5").innerHTML=(document.getElementById("coordformattext5").innerHTML).replace("Høyde","Elevation");if(document.getElementById("m3dexp").style.display=="block"){document.getElementById("transplengthright").style.width="592px";document.getElementById("transplengthrightborder").style.width="592px";document.getElementById("transprightedge").style.right="591px";document.getElementById("mapscaled").style.display="none";} document.getElementById("iframecompose").getElementsByTagName("img")[0].src="iframe_composebutton_en.png";document.getElementById("iframeimapget").getElementsByTagName("img")[0].src="iframe_get_en.png";document.getElementById("iframeagree_close").getElementsByTagName("img")[0].src="iframe_close_en.png";document.getElementById("iframeagree_accept").getElementsByTagName("img")[0].src="iframe_accept_en.png";document.getElementById("iframeagree_cancel").getElementsByTagName("img")[0].src="iframe_cancel_en.png";document.iframetitleform.iframetitletext.title="Title";document.getElementById("iframemaptitle").innerHTML="Compose an IFrame ...";document.getElementById("iframeagree").getElementsByTagName("img")[0].src="iframe_iframeagree_"+language+".png";} else if(language=="en"){language="no";coordformattitlelang="Feil koordinatformat eller <br> utenfor kartet.";utm0="[Ingen UTM-sone]";utmformattip="UTM-sone 33/dynamisk";dgformattip="Endre gradtallformat";direast="Ø";dirwest="V";koordlang="Koordinater";accuracyboard="accuracyboard_no2.png";termsboard="termsboard_no.png";desgr="Desimalgr.";vp_g="Sett fra bakken";vp_b="Sett fra sjøen";vp_h="Sett fra lufta";pppdl="Utsikt mot ";pnlang="&lang=nn";mapprinttitledefault="Tittel";zinfo="Høyde";if(document.getElementById("coordharvestformta").value=="Ctrl + left click in map to harvest coordinates"){document.getElementById("coordharvestformta").value="Ctrl + museklikk i kart for å høste koordinater";} document.getElementById("customisetoposvalbard").getElementsByTagName("img")[0].src="customise_no.png";document.getElementById("datastatus").style.left="382px";document.getElementById("datastatus").style.top="248px";if(document.textinputform.textinputtext.value=="red"){document.textinputform.textinputtext.value="rød";} if(document.textinputform.textinputtext.value=="green"){document.textinputform.textinputtext.value="grønn";} if(document.textinputform.textinputtext.value=="blue"){document.textinputform.textinputtext.value="blå";} if(document.textinputform.textinputtext.value=="yellow"){document.textinputform.textinputtext.value="gul";} if(document.textinputform.textinputtext.value=="red pin"){document.textinputform.textinputtext.value="rød nål";} if(document.textinputform.textinputtext.value=="green pin"){document.textinputform.textinputtext.value="grønn nål";} if(document.textinputform.textinputtext.value=="blue pin"){document.textinputform.textinputtext.value="blå nål";} if(document.textinputform.textinputtext.value=="yellow pin"){document.textinputform.textinputtext.value="gul nål";} if(document.textinputform.textinputtext.value=="pin"){document.textinputform.textinputtext.value="nål";} document.getElementById("mapurltitle").innerHTML="Lenke til dette kartet";document.getElementById("mapprinttitle").innerHTML="Skriv ut. (Noe ustabilitet)";document.getElementById("owgnote").getElementsByTagName("img")[0].src="owgnote_no.png";document.getElementById("landsatnote").getElementsByTagName("img")[0].src="sentinelnote_no.png";document.getElementById("sentinelnote").getElementsByTagName("img")[0].src="sentinelnote_no.png";document.getElementById("settlenote").getElementsByTagName("img")[0].src="settlenote_no.png";document.getElementById("nauticalnote").getElementsByTagName("img")[0].src="nauticalnote_no0.png";document.getElementById("nauticalnmalink").getElementsByTagName("img")[0].src="nmalink_no.png";document.getElementById("ortho36link").getElementsByTagName("img")[0].src="ortho36link_no.png";document.getElementById("terrainnmalink").getElementsByTagName("img")[0].src="nmalink_no.png";document.getElementById("terrainnote").getElementsByTagName("img")[0].src="terrainnote_no1.png";document.getElementById("ortho36note").getElementsByTagName("img")[0].src="ortho36note_no.png";if(coordharvestsystem=="84"){document.getElementById("coordharvestsys").innerHTML="Desimalgr.";} document.getElementById("zoomtoclick").getElementsByTagName("img")[0].src="zoomtoclick_no.png";document.getElementById("zoomtoclick").style.width="192px";document.getElementById("pnjump").getElementsByTagName("img")[0].title="Mer navneinformasjon. (Åpnes i nytt vindu)";document.getElementById("aerialbox").title="";if(document.getElementById("textmarkerinput").value=="Text input/marker"){document.getElementById("textmarkerinput").value="Tekst/markør";} if(document.getElementById("northinput").value=="North/Lat."){document.getElementById("northinput").value="Nord/B.gr.";} if(document.getElementById("eastinput").value=="East/Long."){document.getElementById("eastinput").value="Øst/L.gr.";} document.getElementById("geoname_autocomplete").value="Zoom til stedsnavn";gpx_textarea_default=gpx_textarea_default_no;document.getElementById("tracksimptext").innerHTML="Forenklet";if(datatype=="datalist"){document.getElementById("tableinfo").innerHTML="Dataliste";} document.getElementById("dataformattitle").innerHTML="Dataformat:";document.getElementById("separatortitle").innerHTML="Skilletegn:";document.getElementById("labeltitle").innerHTML="Etikett-felt:";document.getElementById("northtitle").innerHTML="Nord-felt:";document.getElementById("easttitle").innerHTML="Øst-felt:";document.getElementById("plotlinetitle").innerHTML="Plott som:";if(document.getElementById("plotlinetext").innerHTML=="Points (P)"){document.getElementById("plotlinetext").innerHTML="Punkter (P)";} if(document.getElementById("plotlinetext").innerHTML=="Lines (L)"){document.getElementById("plotlinetext").innerHTML="Linjer (L)";} if(document.getElementById("plotlinetext").innerHTML=="P/L"){document.getElementById("plotlinetext").innerHTML="P/L ";} document.getElementById("npolar").href="https://www.npolar.no";document.getElementById("npolardiv").getElementsByTagName("img")[0].src="npolar_no.png";document.getElementById("npolardiv").title="Norsk Polarinstitutts forside";document.getElementById("nauticalenc").title="Ekstern ENC-kartside";document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src="plot_points_no.png";if(dataformat=="Decimal dg."){dataformat=desgr;} if(wrapperv=="1"&&datatype=="GPX"){document.getElementById("cl_textarea").value=gpx_textarea_default;} if(wrapperv=="1"&&datatype=="datalist"){document.getElementById("cl_textarea").value=cl_textarea_default;} document.getElementById("about_page").getElementsByTagName("img")[0].src=(document.getElementById("about_page").getElementsByTagName("img")[0].src).replace("_en","_no");document.getElementById("poster").getElementsByTagName("img")[0].src=(document.getElementById("poster").getElementsByTagName("img")[0].src).replace("_en","_no");document.getElementById("language").getElementsByTagName("img")[0].src="language_en.png";document.getElementById("logo").getElementsByTagName("img")[0].src="logo_no.png";document.getElementById("showhideomap").getElementsByTagName("img")[0].title="Skjul/vis oversiktskart";document.getElementById("terms").getElementsByTagName("img")[0].src="terms_no.png";document.getElementById("accuracy").getElementsByTagName("img")[0].src="accuracy_no.png";document.getElementById("npolardiv").getElementsByTagName("img")[0].src="npolar_no.png";document.getElementById("npolardiv").style.right="7px";document.getElementById("terms").style.right="159px";document.getElementById("accuracy").style.right="243px";document.getElementById("copyright").style.right="133px";document.getElementById("transplengthrightborder").style.width=514+17+sizen+"px";document.getElementById("transplengthright").style.width=514+17+sizen+"px";document.getElementById("transprightedge").style.right=514+16+sizen+"px";document.getElementById("scale3dnb").style.right=514+14+"px";document.getElementById("scale3dnote").style.right=380+"px";document.getElementById("mapscaled").style.right=514+10+"px";document.getElementById("maptype").getElementsByTagName("img")[0].src="maptype_no.png";document.getElementById("scale3dnote").getElementsByTagName("img")[0].src="scale3dnote_no.png";document.getElementById("m3dexpposter").getElementsByTagName("img")[0].src="3dexpposter_no.png";document.getElementById("maptypelist_3d").getElementsByTagName("img")[0].src="show3dsimple_unchecked_no.png";document.getElementById("maptypelist_3dexp").getElementsByTagName("img")[0].src="show3ddynamic_unchecked_no.png";document.getElementById("iframemaptitle").innerHTML="Komponer en IFrame ...";document.getElementById("tsnews").getElementsByTagName("img")[0].src="tsnews_no20231025.png";if(menupin==1){document.getElementById("zoomtoclick").style.left="404px";} document.getElementById("ortho36link").getElementsByTagName("img")[0].title="Datasettoppføring i NPs datakatalog";document.getElementById("nauticalnmalink").getElementsByTagName("img")[0].title="Kartverkets nettside";document.getElementById("terrainnmalink").getElementsByTagName("img")[0].title="Kartverkets nettside";document.getElementById("maptypelist_map_terrainhs").getElementsByTagName("img")[0].title="Fjellskygge";document.getElementById("maptypelist_map_terrainsl").getElementsByTagName("img")[0].title="Helning";coordlistplot_tips="Plott dataliste /<br>GPX-fil fra GPS ...";mapexport_tips="Kartlenke";mapexport_tips="Lenke til<br>gjeldende<br>kartutsnitt";photopoint_tips="Vis/skjul landskaps-bilder";namepoint_tips="Vis/skjul stedsnavn-informasjon";toggle_tips="- eller høyreklikk i kartet";geoname_autocomplete_tips="Skriv og velg fra listen";language_tips="Switch to English";document.getElementById("showhide").getElementsByTagName("img")[0].title="Skjul/vis plakat";aboutpopup_tips="Om / Tegnforkl. / Hjelp";cursorshow_tips="Øk musepeker-synligheten";measureresults_tips="Måleresultat";measureunit_tips="Velg måleenhet (km/mi/nm)";measure_tips="Mål avstand/tegn linje";eraser_tips="Slett forrige plott"+"<br>"+"(Høyreklikk: slett alt)";textmarkerinput_tips="Test/blå";textmarker_tips="Plasser tekst/markør i kartet";zoom_tips="Zoom til koordinater";captcoord_tips="Klikk i kart for koord. (Høyreklikk: høsting)";if(map.infoWindow.isShowing){infoWindowContent=infoWindowContent.replace("°E","°Ø");infoWindowContent=infoWindowContent.replace("°W","°V");infoWindowContent=infoWindowContent.replace('\''+"E",'\''+"Ø");infoWindowContent=infoWindowContent.replace('&quot;'+"E",'&quot;'+"Ø");infoWindowContent=infoWindowContent.replace('\''+"W",'\''+"V");infoWindowContent=infoWindowContent.replace('&quot;'+"W",'&quot;'+"V");infoWindowContent=infoWindowContent.replace("Elevation","Høyde");map.infoWindow.setContent(infoWindowContent);map.infoWindow.setTitle(koordlang);} document.getElementById("coordformattitle").innerHTML=(document.getElementById("coordformattitle").innerHTML).replace("Wrong coordinate formatting <br> or outside map extent.","Feil koordinatformat eller <br> utenfor kartet.");document.getElementById("coordformattitle").innerHTML=(document.getElementById("coordformattitle").innerHTML).replace("E","Ø");document.getElementById("coordformattext2").innerHTML=(document.getElementById("coordformattext2").innerHTML).replace("E","Ø");document.getElementById("coordformattext3").innerHTML=(document.getElementById("coordformattext3").innerHTML).replace("E","Ø");document.getElementById("coordformattext4").innerHTML=(document.getElementById("coordformattext4").innerHTML).replace("E","Ø");document.getElementById("coordformattext5").innerHTML=(document.getElementById("coordformattext5").innerHTML).replace("Elevation","Høyde");if(document.getElementById("m3dexp").style.display=="block"){document.getElementById("transplengthright").style.width="515px";document.getElementById("transplengthrightborder").style.width="515px";document.getElementById("transprightedge").style.right="514px";document.getElementById("mapscaled").style.display="none";} document.getElementById("iframemaptitle").innerHTML="Komponer en IFrame ...";document.getElementById("iframecompose").getElementsByTagName("img")[0].src="iframe_composebutton_no.png";document.getElementById("iframeimapget").getElementsByTagName("img")[0].src="iframe_get_no.png";document.getElementById("iframeagree_close").getElementsByTagName("img")[0].src="iframe_close_no.png";document.getElementById("iframeagree_accept").getElementsByTagName("img")[0].src="iframe_accept_no.png";document.getElementById("iframeagree_cancel").getElementsByTagName("img")[0].src="iframe_cancel_no.png";document.getElementById("iframeagree").getElementsByTagName("img")[0].src="iframe_iframeagree_"+language+".png";document.iframetitleform.iframetitletext.title="Tittel";} if(mapmaportho=="map"&&newmaptype=="terrain"){if(mapnames==1){document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_"+language+".png";} else{document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_unchecked_"+language+".png";} if(terraincnt==1){document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_"+language+".png";} else{document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_unchecked_"+language+".png";}} else{if(mapnames==1){document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_disabled_"+language+".png";} else{document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_unchecked_disabled_"+language+".png";} if(terraincnt==1){document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_disabled_"+language+".png";} else{document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_unchecked_disabled_"+language+".png";}} if(xpPlane==1){document.getElementById("maptypelist_aerial_old").getElementsByTagName("img")[0].src="showold_"+language+".png";} else{document.getElementById("maptypelist_aerial_old").getElementsByTagName("img")[0].src="showold_unchecked_"+language+".png";} if(aerialnames==1){document.getElementById("maptypelist_aerial_names").getElementsByTagName("img")[0].src="shownames_"+language+".png";} else{document.getElementById("maptypelist_aerial_names").getElementsByTagName("img")[0].src="shownames_unchecked_"+language+".png";} if(graticules==1){document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_"+language+".png";} else{document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_"+language+".png";} if(layeropacity==1){document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_"+language+".png";} else{document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_"+language+".png";} if(mapsheetindex==1){document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_"+language+".png";} else{document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_unchecked_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_unchecked_"+language+".png";} document.getElementById("maptypelist_map_topographic").getElementsByTagName("img")[0].src="showtopographic_unchecked_"+language+".png";document.getElementById("maptypelist_map_nautical").getElementsByTagName("img")[0].src="shownautical_unchecked_"+language+".png";document.getElementById("maptypelist_map_terrain").getElementsByTagName("img")[0].src="showterrain_unchecked_"+language+".png";if(newmaptype=="topographic"){document.getElementById("maptypelist_map_topographic").getElementsByTagName("img")[0].src="showtopographic_"+language+".png"};if(newmaptype=="nautical"){document.getElementById("maptypelist_map_nautical").getElementsByTagName("img")[0].src="shownautical_"+language+".png"};if(newmaptype=="terrain"){document.getElementById("maptypelist_map_terrain").getElementsByTagName("img")[0].src="showterrain_"+language+".png"};document.getElementById("maptypelist_aerial_aerial").getElementsByTagName("img")[0].src="showaerial_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_sat").getElementsByTagName("img")[0].src="showsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_aerialsat").getElementsByTagName("img")[0].src="showaerialsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_satw").getElementsByTagName("img")[0].src="showsatw_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_ortho36").getElementsByTagName("img")[0].src="showortho36_unchecked_"+language+".png";if(newaerialtype=="aerial"){document.getElementById("maptypelist_aerial_aerial").getElementsByTagName("img")[0].src="showaerial_"+language+".png"};if(newaerialtype=="sat"){document.getElementById("maptypelist_aerial_sat").getElementsByTagName("img")[0].src="showsat_"+language+".png"};if(newaerialtype=="aerialsat"){document.getElementById("maptypelist_aerial_aerialsat").getElementsByTagName("img")[0].src="showaerialsat_"+language+".png"};if(newaerialtype=="satw"){document.getElementById("maptypelist_aerial_satw").getElementsByTagName("img")[0].src="showsatw_"+language+".png"};if(newaerialtype=="ortho36"){document.getElementById("maptypelist_aerial_ortho36").getElementsByTagName("img")[0].src="showortho36_"+language+".png"};} function iframemapf(){mapexportf();document.getElementById("iframemapdiv").getElementsByTagName("img")[0].src="iframe_posterback.png";document.getElementById("iframemapdivback").getElementsByTagName("img")[0].src="iframe_posterbackback.png";document.getElementById("mapexportdiv").style.display="none";document.getElementById("iframemapdiv").style.display="block";document.getElementById("iframemapdivback").style.display="block";if(document.iframeiframeform.iframeiframe_textareatext.value==""){document.iframeiframeform.iframeiframe_textareatext.value="<iframe scrolling='no' frameborder='0' width='480px' height='300px' src=\"https://toposvalbard.npolar.no/iframe.html?lat=78.0000,long=15.0000,zoom=0;\"><\/iframe>";iframemapscalef();} if(iframeextent==0){iframemap.centerAndZoom(new esri.geometry.Point(((map.extent.xmin+map.extent.xmax)/2),((map.extent.ymin+map.extent.ymax)/2),new esri.SpatialReference({wkid:25833})),(map.getLevel()+1));}} function iframecomposef(){document.getElementById("iframeagree").getElementsByTagName("img")[0].src="iframe_iframeagree_"+language+".png";document.getElementById("iframecomposer").style.display="block";} function iframegraphiccursorf(event){if(iframemarkerpointactive==0&&iframemarkerlineactive==0&&iframemarkertextactive==0){iframemap.setMapCursor("pointer");}} function iframegraphiccursordefaultf(event){if(iframemarkerpointactive==0&&iframemarkerlineactive==0&&iframemarkertextactive==0){iframemap.setMapCursor("default");}} function iframegraphicpointf(event){iframemap.infoWindow.setTitle((event.graphic.attributes.iftitle).replace(/¤¤/g,'\''));iframemap.infoWindow.setContent((event.graphic.attributes.ifinfo).replace(/¤¤/g,'\''));iframemap.infoWindow.show(event.screenPoint,iframemap.getInfoWindowAnchor(event.screenPoint));} function iframeaddPoint(event){hideiframecomposerf();var iframemarkerpoint;if(iframemarker=="r"){iframemarkerpoint="markerred.png";} if(iframemarker=="g"){iframemarkerpoint="markergreen.png";} if(iframemarker=="b"){iframemarkerpoint="markerblue.png";} if(iframemarker=="y"){iframemarkerpoint="markeryellow.png";} iframetextinput=document.iframetitleform;iframetextinputtext=iframetextinput.iframetitletext.value;iframeinfoinput=document.iframetitleform;iframeinfoinputtext=iframeinfoform.iframeinfo_textareatext.value;iframeinfoinputtext=iframeinfoinputtext.replace(/\'/g,'¤¤');iframetextinputtext=iframetextinputtext.replace(/\'/g,'¤¤');if(iframemarkerpointactive==1){iframemarkerSymbol=new esri.symbol.PictureMarkerSymbol(iframemarkerpoint,20,19);iframemarkergraphic=new esri.Graphic({"geometry":{"x":event.mapPoint.x,"y":event.mapPoint.y},"attributes":{"iftitle":iframetextinputtext,"ifinfo":iframeinfoinputtext}});iframemarkergraphic.setSymbol(iframemarkerSymbol);iframegraphicid++;graphic[iframegraphicid]=iframegraphicLayer.add(iframemarkergraphic);iframemap.setMapCursor("default");iframemarkerpointactive=0;iframeupos=proj4(u33,w84,[event.mapPoint.x,event.mapPoint.y]).toString();iframeuposx=parseFloat(iframeupos.slice(0,(iframeupos.indexOf(","))));iframeuposy=parseFloat(iframeupos.slice(iframeupos.indexOf(",")+1));document.iframeiframeform.iframeiframe_textareatext.value=(document.iframeiframeform.iframeiframe_textareatext.value).replace("\"><\/iframe>","");iframelong10minus="";if((iframeuposx.toFixed(4)).length==6){iframelong10minus="0";} document.iframeiframeform.iframeiframe_textareatext.value=document.iframeiframeform.iframeiframe_textareatext.value+"poi="+iframeuposy.toFixed(4)+","+iframelong10minus+iframeuposx.toFixed(4)+","+iframemarker+",%27"+escape(iframetextinputtext)+"%27,%27"+escape(iframeinfoinputtext)+"%27;\"><\/iframe>";} if(iframemarkertextactive==1&&document.iframetitleform.iframetitletext.value!=""){iframetextinput;iframemarkertextSymbol=new esri.symbol.TextSymbol(iframetextinputtext.replace(/¤¤/g,'\''),IFfont,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_MIDDLE);iframegraphicid++;iframemarkergraphic=new esri.Graphic({"geometry":{"x":event.mapPoint.x,"y":event.mapPoint.y},"attributes":{"iftitle":iframetextinputtext,"ifinfo":iframeinfoinputtext}});iframemarkergraphic.setSymbol(iframemarkertextSymbol);graphic[iframegraphicid]=iframegraphicLayer.add(iframemarkergraphic);iframemap.setMapCursor("default");iframemarkertextactive=0;iframeupos=proj4(u33,w84,[event.mapPoint.x,event.mapPoint.y]).toString();iframeuposx=parseFloat(iframeupos.slice(0,(iframeupos.indexOf(","))));iframeuposy=parseFloat(iframeupos.slice(iframeupos.indexOf(",")+1));iframelong10minus="";if((iframeuposx.toFixed(4)).length==6){iframelong10minus="0";} document.iframeiframeform.iframeiframe_textareatext.value=(document.iframeiframeform.iframeiframe_textareatext.value).replace("\"><\/iframe>","");document.iframeiframeform.iframeiframe_textareatext.value=document.iframeiframeform.iframeiframe_textareatext.value+"toi="+iframeuposy.toFixed(4)+","+iframelong10minus+iframeuposx.toFixed(4)+",%27"+escape(iframetextinputtext)+"%27,%27"+escape(iframeinfoinputtext)+"%27;\"><\/iframe>";}} function iframemarkerdeactivatef(){iframemarkerpointactive=0;iframemarkerlineactive=0;iframemarkertextactive=0;iframetb.deactivate();hideiframecomposerf();} function iframemarkerredf(){iframemarkerdeactivatef();iframemarker="r";iframemarkerpointactive=1;iframemap.setMapCursor("url(marker.cur), auto");} function iframemarkergreenf(){iframemarkerdeactivatef();iframemarker="g";iframemarkerpointactive=1;iframemap.setMapCursor("url(marker.cur), auto");} function iframemarkerbluef(){iframemarkerdeactivatef();iframemarker="b";iframemarkerpointactive=1;iframemap.setMapCursor("url(marker.cur), auto");} function iframemarkeryellowf(){iframemarkerdeactivatef();iframemarker="y";iframemarkerpointactive=1;iframemap.setMapCursor("url(marker.cur), auto");} function iframemarkerlinef(){iframemarkerdeactivatef();iframemarkerlineactive=1;iframemap.setMapCursor("url(measure.cur), auto");} function iframemarkertextf(){iframemarkerdeactivatef();iframemarkertextactive=1;iframemap.setMapCursor("url(text.cur), auto");} function hideiframecomposerf(){document.getElementById("iframecomposer").style.display="none";} function iframecentershow(){document.getElementById("iframecenter").style.display="block";} function iframecenterhide(){document.getElementById("iframecenter").style.display="none";} function iframecomposerhidef(){document.getElementById("iframemapdiv").style.display="none";document.getElementById("iframemapdivback").style.display="none";document.getElementById("iframecomposershow").style.display="block";if(document.getElementById("iframeagree").style.display=="block"){iframeagreehide();}} function iframecomposershowf(){document.getElementById("iframecomposershow").style.display="none";document.getElementById("iframemapdiv").style.display="block";document.getElementById("iframemapdivback").style.display="block";} function iframehidef(){iframeextent=1;document.getElementById("iframemapdiv").style.display="none";document.getElementById("iframemapdivback").style.display="none";document.getElementById("mapexportdiv").style.display="block";iframeagreehide();} function iframegraphicidremove(geometry){iframemap.infoWindow.hide();if(iframegraphicid>0){iframegraphicLayer.remove(graphic[iframegraphicid]);iframegraphicid--;document.iframeiframeform.iframeiframe_textareatext.value=(document.iframeiframeform.iframeiframe_textareatext.value).replace("\"><\/iframe>","");document.iframeiframeform.iframeiframe_textareatext.value=(document.iframeiframeform.iframeiframe_textareatext.value).slice(0,(document.iframeiframeform.iframeiframe_textareatext.value).lastIndexOf("=")-3);document.iframeiframeform.iframeiframe_textareatext.value=document.iframeiframeform.iframeiframe_textareatext.value+"\"><\/iframe>";} else{iframegraphicid=0;iframegraphicLayer.clear();}} function iframemapmatchf(){iframemap.centerAndZoom(new esri.geometry.Point(((map.extent.xmin+map.extent.xmax)/2),((map.extent.ymin+map.extent.ymax)/2),new esri.SpatialReference({wkid:25833})),(map.getLevel()+1));} function iframeimapmatchf(){map.centerAndZoom(new esri.geometry.Point(((iframemap.extent.xmin+iframemap.extent.xmax)/2),((iframemap.extent.ymin+iframemap.extent.ymax)/2),new esri.SpatialReference({wkid:25833})),(iframemap.getLevel()-1));} function iframeagreeshow(){document.getElementById("iframeagree").style.display="block";document.getElementById("iframeagree").getElementsByTagName("img")[0].src="iframe_iframeagree_"+language+".png";} function iframeimapgetf(){document.getElementById("iframeagree").getElementsByTagName("img")[0].src="iframe_iframeagreetmp.png";document.getElementById("iframeiframediv").style.display="block";document.iframeiframeform.iframeiframe_textareatext.select();document.getElementById("iframeagree_close").style.display="block";document.getElementById("iframeagree_accept").style.display="none";document.getElementById("iframeagree_cancel").style.display="none";} function iframeagreehide(){document.getElementById("iframeagree").getElementsByTagName("img")[0].src="iframe_iframeagree_"+language+".png";document.getElementById("iframeagree").style.display="none";document.getElementById("iframeiframediv").style.display="none";document.getElementById("iframeagree_close").style.display="none";document.getElementById("iframeagree_accept").style.display="block";document.getElementById("iframeagree_cancel").style.display="block";} function iframemapscalef(event){if(iframemap.getLevel()==0){if(iframemap.extent.xmin+((iframemap.extent.xmax-iframemap.extent.xmin)/2)<369980||iframemap.extent.xmin+((iframemap.extent.xmax-iframemap.extent.xmin)/2)>878230||iframemap.extent.ymin+((iframemap.extent.ymax-iframemap.extent.ymin)/2)>9010710||iframemap.extent.ymin+((iframemap.extent.ymax-iframemap.extent.ymin)/2)<8221300){iframemap.centerAndZoom(new esri.geometry.Point(624105,8616005),new esri.SpatialReference({wkid:25833}),0);}} iframeupos=proj4(u33,w84,[((iframemap.extent.xmin+iframemap.extent.xmax)/2),((iframemap.extent.ymin+iframemap.extent.ymax)/2)]).toString();iframeuposx=parseFloat(iframeupos.slice(0,(iframeupos.indexOf(","))));iframeuposy=parseFloat(iframeupos.slice(iframeupos.indexOf(",")+1));iframelong10minus="";if((iframeuposx.toFixed(4)).length==6){iframelong10minus="0";} var ifextentvalue=document.iframeiframeform.iframeiframe_textareatext.value;if(ifextentvalue.indexOf("lat=")>0){ifextentvalue=ifextentvalue.slice(ifextentvalue.indexOf("lat="));var ifextentvaluelat=ifextentvalue.slice(4,11);document.iframeiframeform.iframeiframe_textareatext.value=(document.iframeiframeform.iframeiframe_textareatext.value).replace(ifextentvaluelat,(iframeuposy.toFixed(4)));} if(ifextentvalue.indexOf("long=")>0){ifextentvalue=ifextentvalue.slice(ifextentvalue.indexOf("long="));var ifextentvaluelong=ifextentvalue.slice(5,12);document.iframeiframeform.iframeiframe_textareatext.value=(document.iframeiframeform.iframeiframe_textareatext.value).replace(ifextentvaluelong,(iframelong10minus+iframeuposx.toFixed(4)));} if(ifextentvalue.indexOf("zoom=")>0){ifextentvalue=ifextentvalue.slice(ifextentvalue.indexOf("zoom="));var ifextentvaluezoom=ifextentvalue.slice(0,6);document.iframeiframeform.iframeiframe_textareatext.value=(document.iframeiframeform.iframeiframe_textareatext.value).replace(ifextentvaluezoom,("zoom="+(iframemap.getLevel())));}} function iframeandmapstop(){map.disableKeyboardNavigation();iframemap.disableKeyboardNavigation();} function iframeandmapstart(){map.enableKeyboardNavigation();iframemap.enableKeyboardNavigation();} function gullf(){if(kinpan==0){document.getElementById("gull1").style.left="-50px";document.getElementById("gull2").style.left="-50px";gullgo=0;gullnum=(Math.floor(Math.random()*3));while(gullgo<gullnum){gullgo++;gullrandom=Math.floor(Math.random()*4)+1;document.getElementById("gull"+gullgo).getElementsByTagName("img")[0].src="gull"+gullrandom+".png";gullleft=Math.floor(Math.random()*67)+95;gulltop=Math.floor(Math.random()*40)+15;document.getElementById("gull"+gullgo).style.left=gullleft+"px";document.getElementById("gull"+gullgo).style.top=gulltop+"px";}}} function ctimedCount(){pw84sc=proj4(u33,w84,[xpos,ypos]).toString();pw84scx=parseFloat(pw84sc.slice(0,(pw84sc.indexOf(","))));pw84scy=parseFloat(pw84sc.slice(pw84sc.indexOf(",")+1));if(coordoff==0&&pw84scx>-30&&pw84scx<60&&pw84scy>66&&pw84scy<89){if(pw84scy>66&&pw84scy<72){dynutmbelt="W";} if(pw84scy>72&&pw84scy<84){dynutmbelt="X";} if(pw84scx>=-30&&pw84scx<-24){dynutmzone="26";dynutm=proj4(u33,u26,[xpos,ypos]).toString();} if(pw84scx>=-24&&pw84scx<-18){dynutmzone="27";dynutm=proj4(u33,u27,[xpos,ypos]).toString();} if(pw84scx>=-18&&pw84scx<-12){dynutmzone="28";dynutm=proj4(u33,u28,[xpos,ypos]).toString();} if(pw84scx>=-12&&pw84scx<-6){dynutmzone="29";dynutm=proj4(u33,u29,[xpos,ypos]).toString();} if(pw84scx>=-6&&pw84scx<0){dynutmzone="30";dynutm=proj4(u33,u30,[xpos,ypos]).toString();} if(pw84scx>=42&&pw84scx<48){dynutmzone="38";dynutm=proj4(u33,u38,[xpos,ypos]).toString();} if(pw84scx>=48&&pw84scx<54){dynutmzone="39";dynutm=proj4(u33,u39,[xpos,ypos]).toString();} if(pw84scx>=54&&pw84scx<60){dynutmzone="40";dynutm=proj4(u33,u40,[xpos,ypos]).toString();} if(dynutmbelt=="X"){if(pw84scx>=0&&pw84scx<9){dynutmzone="31";dynutm=proj4(u33,u31,[xpos,ypos]).toString();} if(pw84scx>=9&&pw84scx<21){dynutmzone="33";dynutm=proj4(u33,u33,[xpos,ypos]).toString();} if(pw84scx>=21&&pw84scx<33){dynutmzone="35";dynutm=proj4(u33,u35,[xpos,ypos]).toString();} if(pw84scx>=33&&pw84scx<42){dynutmzone="37";dynutm=proj4(u33,u37,[xpos,ypos]).toString();}} if(dynutmbelt=="W"){if(pw84scx>=0&&pw84scx<6){dynutmzone="31";dynutm=proj4(u33,u31,[xpos,ypos]).toString();} if(pw84scx>=6&&pw84scx<12){dynutmzone="32";dynutm=proj4(u33,u32,[xpos,ypos]).toString();} if(pw84scx>=12&&pw84scx<18){dynutmzone="33";dynutm=proj4(u33,u33,[xpos,ypos]).toString();} if(pw84scx>=18&&pw84scx<24){dynutmzone="34";dynutm=proj4(u33,u34,[xpos,ypos]).toString();} if(pw84scx>=24&&pw84scx<30){dynutmzone="35";dynutm=proj4(u33,u35,[xpos,ypos]).toString();} if(pw84scx>=30&&pw84scx<36){dynutmzone="36";dynutm=proj4(u33,u36,[xpos,ypos]).toString();} if(pw84scx>=36&&pw84scx<42){dynutmzone="37";dynutm=proj4(u33,u37,[xpos,ypos]).toString();}} if(pw84scy>=84){dojo.byId("dynposu33").innerHTML=utm0;} else{dynutmx=parseFloat(dynutm.slice(0,(dynutm.indexOf(","))));dynutmy=parseFloat(dynutm.slice(dynutm.indexOf(",")+1));dojo.byId("dynposu33").innerHTML=dynutmzone+dynutmbelt+" E"+Math.round(dynutmx)+" N"+Math.round(dynutmy);} if(pw84scx>=0){pw84scxwe=1;} else{pw84scxwe=-1;pw84scx=pw84scx*-1;} xdeg=parseInt(pw84scx);xmin=((pw84scx*60).toFixed(3)-xdeg*60).toFixed(3);if(xmin==60){xdeg++;xmin="0.000";} ydeg=parseInt(pw84scy);ymin=((pw84scy*60).toFixed(3)-ydeg*60).toFixed(3);if(ymin==60){ydeg++;ymin="0.000";} if(xdeg<10){xdeg="0"+xdeg;} if(xmin<10){xmin="0"+xmin;} if(ymin<10){ymin="0"+ymin;} dyndm=ydeg+"°"+ymin+"'N "+xdeg+"°"+xmin+"'";ydeg=parseInt(pw84scy);ymin=parseInt((pw84scy-ydeg)*60);ysec=((pw84scy*3600).toFixed(1)-((ydeg*60)+ymin)*60).toFixed(1);if(ymin==59&&ysec==60){ydeg++;ymin=0;ysec="0.0";} if(ymin<59&&ysec==60){ymin++;ysec="0.0";} xdeg=parseInt(pw84scx);xmin=parseInt((pw84scx-xdeg)*60);xsec=((pw84scx*3600).toFixed(1)-((xdeg*60)+xmin)*60).toFixed(1);if(xmin==59&&xsec==60){xdeg++;xmin=0;xsec="0.0";} if(xmin<59&&xsec==60){xmin++;xsec="0.0";} if(ymin<10){ymin="0"+ymin;} if(ysec<10){ysec="0"+ysec;} if(xdeg<10){dyndd=(Math.round(pw84scy*100000)/100000).toFixed(5)+"°N 0"+(Math.round(pw84scx*100000)/100000).toFixed(5)+"°";xdeg="0"+xdeg;} else{dyndd=(Math.round(pw84scy*100000)/100000).toFixed(5)+"°N "+(Math.round(pw84scx*100000)/100000).toFixed(5)+"°";} if(xmin<10){xmin="0"+xmin;} if(xsec<10){xsec="0"+xsec;} dyndms=ydeg+"°"+ymin+"'"+ysec+'&quot;N '+xdeg+"°"+xmin+"'"+xsec+'&quot;';if(pw84scxwe==1){dyndm=dyndm+direast;dyndd=dyndd+direast;dyndms=dyndms+direast;} else{dyndm=dyndm+dirwest;dyndd=dyndd+dirwest;dyndms=dyndms+dirwest;} dojo.byId("dynposw84").innerHTML=dyndd+"<br>"+dyndm+"<font color=\"#D0758E\">"+"&nbsp;&nbspSAR</font><br>"+dyndms;} else{dojo.byId("dynposu33").innerHTML="";dojo.byId("dynposw84").innerHTML="";document.getElementById("dynposw84sar").style.display="none";} ct=setTimeout("ctimedCount()",100);} function coordget(event){if(firstclick==1&&measurewhat==1){if(dojo.byId("cursorlength").innerHTML!=""){lengthadd=lengthpos;} if(navigator.userAgent.search("Edge")>0){} else if(navigator.userAgent.search("Trident")>0){} else if(navigator.userAgent.search("MSIE")>0){} else{map.setMapCursor("url(measuremore.cur), auto");} document.getElementById("cursorlength").style.display="block";coordgetx=xpos;coordgety=ypos;}} function coordgetdown(event){map.disableScrollWheelZoom();if(event.which==1){leftdown=1;} else{leftdown=0;} document.getElementById("tsnews").style.display="none";document.getElementById("mapexportposter").style.display="none";infohide++;if(firstclick==1){coordgetx0=event.mapPoint.x;coordgety0=event.mapPoint.y;} getcentercoord=map.extent.getCenter();} function coordgetup(event){map.enableScrollWheelZoom();if(firstclick==1){try{coordgetx1=event.mapPoint.x;coordgety1=event.mapPoint.y;} catch(err){} if(coordgetx1==coordgetx0&&coordgety1==coordgety0){coordget();}}} function cursorshowf(){if(cursorshow==0){document.getElementById("cursorshow").style.display="block";cursorshow=1;} else{document.getElementById("cursorshow").style.display="none";cursorshow=0;}} function coordgetpan(event){if(document.getElementById("cursorlength").style.display=="block"){document.getElementById("cursorlength").style.left=event.clientX+25+"px";document.getElementById("cursorlength").style.top=event.clientY+25+"px";} if(cursorshow==1){document.getElementById("cursorshow").style.left=event.clientX+"px";document.getElementById("cursorshow").style.top=event.clientY+15+"px";}} function hidecursoratpan(event){document.getElementById("cursorshow").style.display="none";} function showcursorafterpan(event){if(cursorshow==1){document.getElementById("cursorshow").style.left=event.clientX+"px";document.getElementById("cursorshow").style.top=event.clientY+15+"px";document.getElementById("cursorshow").style.display="block";}} function showCoordinates(event){if(cursorshow==1){document.getElementById("cursorshow").style.left=event.clientX+"px";document.getElementById("cursorshow").style.top=event.clientY+15+"px";} coordoff=0;xpos=event.mapPoint.x;ypos=event.mapPoint.y;if(document.getElementById("cursorlength").style.display=="block"){document.getElementById("cursorlength").style.left=event.clientX+25+"px";document.getElementById("cursorlength").style.top=event.clientY+25+"px";if(coordgetx!=""){lengthpos=lengthadd+parseFloat(Math.sqrt(((coordgetx-xpos)*(coordgetx-xpos))+((coordgety-ypos)*(coordgety-ypos))));var cursorlengthtext;var cursorlengthtextkm;var cursorlengthtextnm;if(measureunit=="km"){if(lengthpos>=100000){cursorlengthtext=(lengthpos/1000).toFixed(0)+" km";} if(lengthpos>=10000&&lengthpos<100000){cursorlengthtext=(lengthpos/1000).toFixed(1)+" km";} if(lengthpos>=1000&&lengthpos<10000){cursorlengthtext=(lengthpos/1000).toFixed(2)+" km";} if(lengthpos<1000){cursorlengthtext=lengthpos.toFixed(0)+" m";} if(lengthpos==0){cursorlengthtext="0.00 km";}} else if(measureunit=="mi"){if(lengthpos>=160900){cursorlengthtext=(lengthpos/1609).toFixed(0)+" mi";} if(lengthpos>=16090&&lengthpos<160900){cursorlengthtext=(lengthpos/1609.344).toFixed(1)+" mi";} if(lengthpos>=1609.344&&lengthpos<16090){cursorlengthtext=(lengthpos/1609.344).toFixed(2)+" mi";} if(lengthpos<1609.344){cursorlengthtext=(lengthpos*1.0936).toFixed(0)+" yd";} if(lengthpos==0){cursorlengthtext="0.00 mi";}} else if(measureunit=="nm"){if(lengthpos>=185200){cursorlengthtext=(lengthpos/1852).toFixed(0)+" nm";} if(lengthpos>=18520&&lengthpos<185200){cursorlengthtext=(lengthpos/1852).toFixed(1)+" nm";} if(lengthpos>=1852&&lengthpos<18520){cursorlengthtext=(lengthpos/1852).toFixed(2)+" nm";} if(lengthpos>=185&&lengthpos<1852){cursorlengthtext=(lengthpos/1852).toFixed(3)+" nm";} if(lengthpos<185){cursorlengthtext=lengthpos.toFixed(0)+" m";} if(lengthpos==0){cursorlengthtext="0.00 nm";}} else if(measureunit=="kmnm"){if(lengthpos>=100000){cursorlengthtextkm=(lengthpos/1000).toFixed(0)+" km";} if(lengthpos>=10000&&lengthpos<100000){cursorlengthtextkm=(lengthpos/1000).toFixed(1)+" km";} if(lengthpos>=1000&&lengthpos<10000){cursorlengthtextkm=(lengthpos/1000).toFixed(2)+" km";} if(lengthpos<1000){cursorlengthtextkm=lengthpos.toFixed(0)+" m";} if(lengthpos==0){cursorlengthtextkm="0.00 km";} if(lengthpos>=185200){cursorlengthtextnm=(lengthpos/1852).toFixed(0)+" nm";} if(lengthpos>=18520&&lengthpos<185200){cursorlengthtextnm=(lengthpos/1852).toFixed(1)+" nm";} if(lengthpos>=1852&&lengthpos<18520){cursorlengthtextnm=(lengthpos/1852).toFixed(2)+" nm";} if(lengthpos>=185&&lengthpos<1852){cursorlengthtextnm=(lengthpos/1852).toFixed(3)+" nm";} if(lengthpos<185){cursorlengthtextnm=lengthpos.toFixed(0)+" m";} if(lengthpos==0){cursorlengthtextnm="0.00 nm";} cursorlengthtext=cursorlengthtextkm+" / "+cursorlengthtextnm;} dojo.byId("cursorlength").innerHTML=cursorlengthtext;} else{dojo.byId("cursorlength").innerHTML="0";}}} function accuracyf(){hideposter();posterchoice="accuracy";document.getElementById("poster").getElementsByTagName("img")[0].src=accuracyboard;document.getElementById("poster").style.left=(document.documentElement.offsetWidth/2)-233+"px";document.getElementById("poster").style.top=(document.documentElement.offsetHeight/2)-111+"px";document.getElementById("poster").style.display="block";document.getElementById("outsideposter").style.display="block";document.getElementById("aboutposter").style.display="none";} function termsf(){hideposter();posterchoice="terms";document.getElementById("poster").getElementsByTagName("img")[0].src=termsboard;document.getElementById("poster").style.left=(document.documentElement.offsetWidth/2)-233+"px";document.getElementById("poster").style.top=(document.documentElement.offsetHeight/2)-169+"px";document.getElementById("poster").style.display="block";document.getElementById("outsideposter").style.display="block";document.getElementById("aboutposter").style.display="none";} function hideposter(){document.getElementById("photoposterphoto").getElementsByTagName("img")[0].src="";document.getElementById("photoposterphotodir").innerHTML="";document.getElementById("pninfobox").style.display="none";document.getElementById("aerialbox").style.display="none";document.getElementById("aerialthumb").getElementsByTagName("img")[0].src="0.png";document.getElementById("coordlistposter").style.display="none";document.getElementById("poster").style.display="none";document.getElementById("outsideposter").style.display="none";document.getElementById("aboutposter").style.display="none";document.getElementById("photoposter").style.display="none";activeLayer.remove(activegraphic);} function zoomin(){if(activemap=="map"){map.setLevel((map.getLevel())+1);} if(activemap=="map3dn"){map3dn.setLevel((map3dn.getLevel())+1);} if(activemap=="map3de"){map3de.setLevel((map3de.getLevel())+1);} if(activemap=="map3ds"){map3ds.setLevel((map3ds.getLevel())+1);} if(activemap=="map3dw"){map3dw.setLevel((map3dw.getLevel())+1);}} function zoomout(){if(activemap=="map"){map.setLevel((map.getLevel())-1);} if(activemap=="map3dn"){map3dn.setLevel((map3dn.getLevel())-1);} if(activemap=="map3de"){map3de.setLevel((map3de.getLevel())-1);} if(activemap=="map3ds"){map3ds.setLevel((map3ds.getLevel())-1);} if(activemap=="map3dw"){map3dw.setLevel((map3dw.getLevel())-1);}} function measureunitf(event){if(document.getElementById("m3dexp").style.display=="none"){if(measureunit=="kmnm"){measureunit="km";} else if(measureunit=="km"){measureunit="mi";} else if(measureunit=="mi"){measureunit="nm";} else if(measureunit=="nm"){measureunit="kmnm";} if(measuremode=="distance"){distancef();} if(measuremode=="area"){areaf();} mapscalef();}} function mapscalef(event){if(map.getLevel()>=0){if(map.getLevel()==0&&document.getElementById("omapback").style.display=="block"){document.getElementById("svalbardworld").style.display="block";} else{document.getElementById("svalbardworld").style.display="none";} if(newaerialtype=="aerialsat"){if(map.getLevel()>6){if(mapmaportho=="ortho"){orthoLayer.show();}} else{orthoLayer.hide();}} if((aerialnames==1&&mapmaportho=="ortho")||(mapmaportho=="map"&&newmaptype=="terrain"&&mapnames==1)){if(kinpan==0){aerialnamesLayer.show();}} else{aerialnamesLayer.hide();} if(mapmaportho=="map"&&newmaptype=="terrain"){if(terraincnt==1){if(kinpan==0){terraincntLayer.show();}} else{terraincntLayer.hide();}} document.getElementById("bordertop").style.width=document.documentElement.offsetWidth+"px";document.getElementById("borderbottom").style.width=document.documentElement.offsetWidth+"px";document.getElementById("borderleft").style.height=document.documentElement.offsetHeight+"px";document.getElementById("borderright").style.height=document.documentElement.offsetHeight+"px";if(document.getElementById("coordlistposter").style.display=="block"){document.getElementById("coordlistposter").style.left=(document.documentElement.offsetWidth/2)-269+"px";document.getElementById("coordlistposter").style.top=(document.documentElement.offsetHeight/2)-214+"px";} if(document.getElementById("poster").style.display=="block"){document.getElementById("poster").style.left=(document.documentElement.offsetWidth/2)-230+"px";document.getElementById("poster").style.top=(document.documentElement.offsetHeight/2)-165+"px";} if(document.getElementById("aboutposter").style.display=="block"){document.getElementById("aboutposter").style.left=(document.documentElement.offsetWidth/2)-269+"px";document.getElementById("aboutposter").style.top=(document.documentElement.offsetHeight/2)-214+"px";} if(document.getElementById("photoposter").style.display=="block"){document.getElementById("photoposter").style.left=(document.documentElement.offsetWidth/2)-405+"px";document.getElementById("photoposter").style.top=(document.documentElement.offsetHeight/2)-230+"px";} if(document.getElementById("m3dexp").style.display=="block"){document.getElementById("m3dexp").style.width=document.documentElement.offsetWidth+"px";document.getElementById("m3dexp").style.height=document.documentElement.offsetHeight+"px";} gullf();if(activemap=="map"){if(map.extent.xmin+((map.extent.xmax-map.extent.xmin)/2)<-1442073||map.extent.xmin+((map.extent.xmax-map.extent.xmin)/2)>2442073||map.extent.ymin+((map.extent.ymax-map.extent.ymin)/2)>9969013||map.extent.ymin+((map.extent.ymax-map.extent.ymin)/2)<7269910){map.centerAt(new esri.geometry.Point(getcentercoord.x,getcentercoord.y,new esri.SpatialReference({wkid:25833})));} document.getElementById("zoomtoclick").style.display="none";if(pName==1&&map.getLevel()<6){document.getElementById("zoomtoclick").style.display="block";} if(pCam==1&&map.getLevel()<6){document.getElementById("zoomtoclick").style.display="block";} if(xpPlane==1&&map.getLevel()<4&&mapmaportho=="ortho"){document.getElementById("zoomtoclick").style.display="block";} if(xpPlane==1&&map.getLevel()>=4&&mapmaportho=="ortho"){if(kinpan==0){xaerialLayer.show();}} else{xaerialLayer.hide();} if(pCam==1&&map.getLevel()>=6){if(kinpan==0){p.show();}} else{p.hide();} if(graticules==1&&kinpan==0){graticulesLayer.show();} if(mapsheetindex==1&&kinpan==0){indexLayer.show();} if(document.getElementById("coordharvestbox").style.display=="block"){if(kinpan==0){coordharvestLayer.show();}} if(pName==1&&map.getLevel()>=6&&map.getLevel()<12){if(kinpan==0){pnLayer.show();} if(kinpan==0){if(aerialname==0){pndotsf();};}} else{pnLayer.hide();} if(kinpan==0){graphicLayer.show();zgraphicLayer.show();poigraphicLayer.show();if(sar==1){sarActiveLayer.show();sarGraphicLayer.show();sarGraphicLabelLayer.show();sarCircleLayer.show();if(map.getLevel()>=3){sarGraphicLabelLayer.setOpacity(1);} else{sarGraphicLabelLayer.setOpacity(0.33);}}} aerialname=0;document.getElementById("pninfobox").style.display="none";document.getElementById("aerialbox").style.display="none";document.getElementById("aerialthumb").getElementsByTagName("img")[0].src="0.png";activeLayer.remove(activegraphic);if(omape==2&&omap==0){omapf();} zooomext2=0;mapscalesep=Math.round(esri.geometry.getScale(map));omape++;} else{if(activemap=="map3dn"){if(map3dn.getLevel()>=5){error3d.show();}else{error3d.hide();} mapscalesep=map3dn.getLevel();} if(activemap=="map3de"){mapscalesep=map3de.getLevel();} if(activemap=="map3ds"){mapscalesep=map3ds.getLevel();} if(activemap=="map3dw"){mapscalesep=map3dw.getLevel();} if(mapscalesep==0){mapscalesep=5120000;} else if(mapscalesep==1){mapscalesep=2560000;} else if(mapscalesep==2){mapscalesep=1280000;} else if(mapscalesep==3){mapscalesep=640000;} else if(mapscalesep==4){mapscalesep=320000;} else if(mapscalesep==5){mapscalesep=160000;} else if(mapscalesep==6){mapscalesep=80000;} else if(mapscalesep==7){mapscalesep=40000;} else if(mapscalesep==8){mapscalesep=20000;}} sizen=51;if(measureunit=="km"||measureunit=="kmnm"){if(mapscalesep==5120000){sizen=80;} else if(mapscalesep==2560000){sizen=95;} else if(mapscalesep==1280000){sizen=95;} else if(mapscalesep==640000){sizen=124;} else if(mapscalesep==320000){sizen=124;} else if(mapscalesep==160000){sizen=100;} else if(mapscalesep==80000){sizen=100;} else if(mapscalesep==40000){sizen=100;} else if(mapscalesep==20000){sizen=100;} else if(mapscalesep==10000){sizen=100;} else if(mapscalesep==5000){sizen=82;} else if(mapscalesep==2500){sizen=82;} else if(mapscalesep==1250){sizen=82;} else if(mapscalesep==625){sizen=66;} else if(mapscalesep==312){sizen=67;} document.getElementById("mapscaled").getElementsByTagName("img")[0].src="km"+mapscalesep+".png";} else if(measureunit=="mi"){if(mapscalesep=="5120000"){sizen=77;} else if(mapscalesep==2560000){sizen=101;} else if(mapscalesep==1280000){sizen=101;} else if(mapscalesep==640000){sizen=101;} else if(mapscalesep==320000){sizen=101;} else if(mapscalesep==160000){sizen=80;} else if(mapscalesep==80000){sizen=80;} else if(mapscalesep==40000){sizen=92;} else if(mapscalesep==20000){sizen=92;} else if(mapscalesep==10000){sizen=92;} else if(mapscalesep==5000){sizen=75;} else if(mapscalesep==2500){sizen=75;} else if(mapscalesep==1250){sizen=75;} else if(mapscalesep==625){sizen=61;} else if(mapscalesep==312){sizen=61;} document.getElementById("mapscaled").getElementsByTagName("img")[0].src="mi"+mapscalesep+".png";} else if(measureunit=="nm"){if(mapscalesep==5120000){sizen=88;} else if(mapscalesep==2560000){sizen=115;} else if(mapscalesep==1280000){sizen=115;} else if(mapscalesep==640000){sizen=115;} else if(mapscalesep==320000){sizen=93;} else if(mapscalesep==160000){sizen=93;} else if(mapscalesep==80000){sizen=93;} else if(mapscalesep==40000){sizen=93;} else if(mapscalesep==20000){sizen=94;} else if(mapscalesep==10000){sizen=76;} else if(mapscalesep==5000){sizen=82;} else if(mapscalesep==2500){sizen=82;} else if(mapscalesep==1250){sizen=82;} else if(mapscalesep==625){sizen=66;} else if(mapscalesep==312){sizen=67;} document.getElementById("mapscaled").getElementsByTagName("img")[0].src="nm"+mapscalesep+".png";} if(language=="no"&&document.getElementById("m3dexp").style.display=="none"){document.getElementById("transplengthrightborder").style.width=514+17+sizen+"px";document.getElementById("transplengthright").style.width=514+17+sizen+"px";document.getElementById("transprightedge").style.right=514+16+sizen+"px";} if(language=="en"&&document.getElementById("m3dexp").style.display=="none"){document.getElementById("transplengthrightborder").style.width=591+17+sizen+"px";document.getElementById("transplengthright").style.width=591+17+sizen+"px";document.getElementById("transprightedge").style.right=591+16+sizen+"px";} document.getElementById("mapscaledexport").getElementsByTagName("img")[0].src=document.getElementById("mapscaled").getElementsByTagName("img")[0].src;if(map.getLevel()>8){if(document.getElementById("ovWin").style.display!="none"){document.getElementById("zoomedinmarker").style.display="block";}} else{document.getElementById("zoomedinmarker").style.display="none";} if(mapmaportho=="map"){if(map.getLevel()>8){if(map.extent.xmax<532000&&map.extent.xmin>504000&&map.extent.ymin>8672000&&map.extent.ymax<8696000){if(newmaptype=="topographic"){document.getElementById("settlenote").style.display="block";}} else{document.getElementById("settlenote").style.display="none";}} else{document.getElementById("settlenote").style.display="none";} if(map.getLevel()>11){if((map.extent.xmax<532000&&map.extent.xmin>504000&&map.extent.ymin>8672000&&map.extent.ymax<8696000)||(map.extent.xmax<440000&&map.extent.xmin>427000&&map.extent.ymin>8757000&&map.extent.ymax<8769000)||(map.extent.xmax<486000&&map.extent.xmin>478000&&map.extent.ymin>8660000&&map.extent.ymax<8672000)){if(newmaptype=="terrain"){map.setLevel(11);}} else{if(map.getLevel()>11&&dataplotted==0){if(newmaptype=="nautical"&&(map.extent.xmax>433550&&map.extent.xmin<434670&&map.extent.ymax>8763460&&map.extent.ymin<8764270)){;} else if(newmaptype=="nautical"&&(map.extent.xmax>618560&&map.extent.xmin<619470&&map.extent.ymax>8272070&&map.extent.ymin<8272990)){;} else{map.setLevel(11);}}}}} if(mapmaportho=="ortho"&&(newaerialtype=="sat"||newaerialtype=="satw"||newaerialtype=="ortho36")){if(map.getLevel()>8){document.getElementById("settlenote").style.display="none";} if(map.getLevel()>11){if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);}}} zgraphicLayer.clear();}} function hidetips(){if(language=="no"){document.getElementById("tooltips").innerHTML="";} else{document.getElementById("tooltips").innerHTML="";}} function tipstopcount(){document.getElementById("tooltips").innerHTML="";clearTimeout(tiptimer);tiptimerison="null";document.getElementById("tooltips").style.top="302px";document.getElementById("tooltips").style.left="22px";document.getElementById("tooltips").style.width="140px";document.getElementById("tooltips").style.height="27px";} function tiptimedcount(){if(tiptimerison==maptype_tips){showmaptypef();} if(tiptimerison==mapexport_tips){document.getElementById("tooltips").innerHTML=mapexport_tips;} if(tiptimerison==photopoint_tips){document.getElementById("tooltips").innerHTML=photopoint_tips;} if(tiptimerison==namepoint_tips){document.getElementById("tooltips").innerHTML=namepoint_tips;} if(tiptimerison==toggle_tips){document.getElementById("tooltips").innerHTML=toggle_tips;} if(tiptimerison==coordlistplot_tips){document.getElementById("tooltips").innerHTML=coordlistplot_tips;} if(tiptimerison==geoname_autocomplete_tips){document.getElementById("tooltips").innerHTML=geoname_autocomplete_tips;} if(tiptimerison==language_tips){document.getElementById("tooltips").innerHTML=language_tips;} if(tiptimerison==aboutpopup_tips){document.getElementById("tooltips").innerHTML=aboutpopup_tips;} if(tiptimerison==cursorshow_tips){document.getElementById("tooltips").innerHTML=cursorshow_tips;} if(tiptimerison==measureresults_tips){document.getElementById("tooltips").innerHTML=measureresults_tips;} if(tiptimerison==measureunit_tips){document.getElementById("tooltips").innerHTML=measureunit_tips;} if(tiptimerison==measure_tips){document.getElementById("tooltips").innerHTML=measure_tips;} if(tiptimerison==eraser_tips){document.getElementById("tooltips").innerHTML=eraser_tips;} if(tiptimerison==textmarkerinput_tips){document.getElementById("tooltips").innerHTML=textmarkerinput_tips;} if(tiptimerison==textmarker_tips){document.getElementById("tooltips").innerHTML=textmarker_tips;} if(tiptimerison==northinput_tips){document.getElementById("tooltips").innerHTML=northinput_tips;} if(tiptimerison==eastinput_tips){document.getElementById("tooltips").innerHTML=eastinput_tips;} if(tiptimerison==zoom_tips){document.getElementById("tooltips").innerHTML=zoom_tips;} if(tiptimerison==captcoord_tips){document.getElementById("tooltips").innerHTML=captcoord_tips;}} function maptype_tipsf(){tiptimerison=maptype_tips;tiptimer=setTimeout("tiptimedcount()",50);} function mapexport_tipsf(){document.getElementById("tooltips").style.top="43px";document.getElementById("tooltips").style.left="100px";document.getElementById("tooltips").style.width="70px";document.getElementById("tooltips").style.height="50px";tiptimerison=mapexport_tips;tiptimer=setTimeout("tiptimedcount()",300);} function photopoint_tipsf(){if(photojsload==0){dojo.addOnLoad(function(){var deferred=dojo.io.script.get({url:"photos20240913.js"});deferred.then(function(){photof();},function(){});});photojsload=1;} document.getElementById("tooltips").style.top="43px";document.getElementById("tooltips").style.left="100px";document.getElementById("tooltips").style.width="70px";document.getElementById("tooltips").style.height="50px";tiptimerison=photopoint_tips;tiptimer=setTimeout("tiptimedcount()",300);} function namepoint_tipsf(){document.getElementById("tooltips").style.top="43px";document.getElementById("tooltips").style.left="100px";document.getElementById("tooltips").style.width="70px";document.getElementById("tooltips").style.height="50px";tiptimerison=namepoint_tips;tiptimer=setTimeout("tiptimedcount()",300);} function toggle_tipsf(){if(toggletip_startup==0){document.getElementById("tooltips").style.top="43px";document.getElementById("tooltips").style.left="100px";document.getElementById("tooltips").style.width="70px";document.getElementById("tooltips").style.height="50px";tiptimerison=toggle_tips;tiptimer=setTimeout("tiptimedcount()",10);}} function coordlistplot_tipsf(){tiptimerison=coordlistplot_tips;tiptimer=setTimeout("tiptimedcount()",300);} function geoname_autocomplete_tipsf(){tiptimerison=geoname_autocomplete_tips;tiptimer=setTimeout("tiptimedcount()",300);} function language_tipsf(){document.getElementById("tooltips").style.top="43px";document.getElementById("tooltips").style.left="100px";document.getElementById("tooltips").style.width="70px";document.getElementById("tooltips").style.height="50px";tiptimerison=language_tips;tiptimer=setTimeout("tiptimedcount()",300);} function aboutpopup_tipsf(){document.getElementById("tooltips").style.top="43px";document.getElementById("tooltips").style.left="100px";document.getElementById("tooltips").style.width="70px";document.getElementById("tooltips").style.height="50px";tiptimerison=aboutpopup_tips;tiptimer=setTimeout("tiptimedcount()",300);} function cursorshow_tipsf(){document.getElementById("tooltips").style.top="43px";document.getElementById("tooltips").style.left="100px";document.getElementById("tooltips").style.width="70px";document.getElementById("tooltips").style.height="50px";tiptimerison=cursorshow_tips;tiptimer=setTimeout("tiptimedcount()",300);} function measureresults_tipsf(){tiptimerison=measureresults_tips;tiptimer=setTimeout("tiptimedcount()",300);} function measureunit_tipsf(){tiptimerison=measureunit_tips;tiptimer=setTimeout("tiptimedcount()",300);} function measure_tipsf(){tiptimerison=measure_tips;tiptimer=setTimeout("tiptimedcount()",300);} function eraser_tipsf(){tiptimerison=eraser_tips;tiptimer=setTimeout("tiptimedcount()",300);} function textmarkerinput_tipsf(){tiptimerison=textmarkerinput_tips;tiptimer=setTimeout("tiptimedcount()",300);} function textmarker_tipsf(){tiptimerison=textmarker_tips;tiptimer=setTimeout("tiptimedcount()",300);} function northinput_tipsf(){tiptimerison=northinput_tips;tiptimer=setTimeout("tiptimedcount()",300);} function eastinput_tipsf(){tiptimerison=eastinput_tips;tiptimer=setTimeout("tiptimedcount()",300);} function zoom_tipsf(){tiptimerison=zoom_tips;tiptimer=setTimeout("tiptimedcount()",300);} function captcoord_tipsf(){tiptimerison=captcoord_tips;tiptimer=setTimeout("tiptimedcount()",300);} function coordnull(){coordoff=1;dojo.byId("dynposu33").innerHTML="";dojo.byId("dynposw84").innerHTML="";document.getElementById("dynposw84sar").style.display="none";} function utmformatf(){document.getElementById("utmformat").innerHTML=utmformattip;if(utmformat=="u33"){utmformat="dyn";} else{utmformat="u33";} document.getElementById("utmformat").innerHTML="";} function utmformatoverf(){document.getElementById("utmformat").innerHTML=utmformattip;} function utmformatoutf(){document.getElementById("utmformat").innerHTML="";} function dgformatf(){document.getElementById("dgformat").innerHTML=dgformattip;if(dgformat=="dd"){dgformat="dm";} else if(dgformat=="dm"){dgformat="dms";} else if(dgformat=="dms"){dgformat="dd";} document.getElementById("dgformat").innerHTML="";} function dgformatoverf(){document.getElementById("dgformat").innerHTML=dgformattip;} function dgformatoutf(){document.getElementById("dgformat").innerHTML="";} function showmaptypelistf(){if(mapmaportho=="ortho"){document.getElementById("maptypelist_aerial_showback").style.display="block";} if(mapmaportho=="map"){document.getElementById("maptypelist_map_showback").style.display="block";} clearTimeout(myVar);} function showmaptypef(){document.getElementById("tsnews").style.display="none";if(mapmaportho=="ortho"){document.getElementById("maptypelist_aerial_showback").style.display="block";} if(mapmaportho=="map"){document.getElementById("maptypelist_map_showback").style.display="block";} clearTimeout(myVar);} function hidemaptypef(){clearTimeout(myVar);myVar=setTimeout(function(){if(menupin==0){document.getElementById("maptypelist_aerial_showback").style.display="none";document.getElementById("maptypelist_map_showback").style.display="none";} clearTimeout(myVar);},750);} function aboutbuttons(){document.getElementById("customisetoposvalbard").style.display="none";document.getElementById("datastatus").style.display="none";document.getElementById("about_pagenum").style.display="none";document.getElementById("about_toposvalbard_button").getElementsByTagName("img")[0].src="about_toposvalbard_button.png";document.getElementById("about_tools_button").getElementsByTagName("img")[0].src="about_tools_"+language+"_button.png";document.getElementById("about_legend_button").getElementsByTagName("img")[0].src="about_legend_"+language+"_button.png";} function aboutprevious(){if(abouttab=="tools"){if(abouttoolspage>>1){abouttoolspage--;} else{abouttoolspage=10;} document.getElementById("about_page").getElementsByTagName("img")[0].src="0.png";document.getElementById("about_page").getElementsByTagName("img")[0].src="about_tools_p_"+abouttoolspage+"_"+language+".png";document.getElementById("about_pagenum").innerHTML=abouttoolspage+"/10";}} function aboutnext(){if(abouttab=="tools"){if(abouttoolspage<10){abouttoolspage++;} else{abouttoolspage=1;} document.getElementById("about_page").getElementsByTagName("img")[0].src="0.png";document.getElementById("about_page").getElementsByTagName("img")[0].src="about_tools_p_"+abouttoolspage+"_"+language+".png";document.getElementById("about_pagenum").innerHTML=abouttoolspage+"/10";}} function aboutf(){if(document.getElementById("about_page").getElementsByTagName("img")[0].src=="0.png"){document.getElementById("about_page").getElementsByTagName("img")[0].src="about_toposvalbard_"+language+".png";} document.getElementById("aboutposter").getElementsByTagName("img")[0].src="aboutposter_back.png";document.getElementById("aboutposter").style.display="block";document.getElementById("outsideposter").style.display="block";document.getElementById("aboutposter").style.left=(document.documentElement.offsetWidth/2)-269+"px";document.getElementById("aboutposter").style.top=(document.documentElement.offsetHeight/2)-214+"px";document.getElementById("about_toposvalbard_button").getElementsByTagName("img")[0].src="about_toposvalbard_button.png";document.getElementById("about_legend_button").getElementsByTagName("img")[0].src="about_legend_"+language+"_button.png";document.getElementById("about_tools_button").getElementsByTagName("img")[0].src="about_tools_"+language+"_button.png";document.getElementById("about_legend_button").getElementsByTagName("img")[0].onmousedown="about_legend_"+language+"_button_down.png";document.getElementById("about_tools_button").getElementsByTagName("img")[0].onmousedown="about_tools_"+language+"_button_down.png";if(abouttab=="toposvalbard"){document.getElementById("about_toposvalbard_button").getElementsByTagName("img")[0].src="about_toposvalbard_button_down.png";document.getElementById("about_page").getElementsByTagName("img")[0].src="about_toposvalbard_"+language+".png";if(firstload==0){i=0;imageObjAbout=new Image();imagesAbout=new Array();imagesAbout[0]="about_legend_en.png";imagesAbout[1]="about_legend_en_button_down.png";imagesAbout[2]="about_legend_no.png";imagesAbout[3]="about_legend_no_button_down.png";imagesAbout[13]="about_next_button.png";imagesAbout[14]="about_next_button_down.png";imagesAbout[15]="about_previous_button.png";imagesAbout[16]="about_previous_button_down.png";imagesAbout[17]="about_tools_en_button_down.png";imagesAbout[18]="about_tools_no_button_down.png";imagesAbout[19]="about_tools_p_1_en.png";imagesAbout[20]="about_tools_p_1_no.png";imagesAbout[21]="about_tools_p_2_en.png";imagesAbout[22]="about_tools_p_2_no.png";imagesAbout[23]="about_tools_p_3_en.png";imagesAbout[24]="about_tools_p_3_no.png";imagesAbout[25]="about_tools_p_4_en.png";imagesAbout[26]="about_tools_p_4_no.png";imagesAbout[27]="about_tools_p_5_en.png";imagesAbout[28]="about_tools_p_5_no.png";imagesAbout[29]="about_tools_p_6_en.png";imagesAbout[30]="about_tools_p_6_no.png";imagesAbout[31]="about_toposvalbard_button.png";for(i=0;i<=31;i++){imageObjAbout.src=imagesAbout[i];} firstload=1;}} if(abouttab=="legend"){document.getElementById("about_legend_button").getElementsByTagName("img")[0].src="about_legend_"+language+"_button_down.png";document.getElementById("about_page").getElementsByTagName("img")[0].src="about_legend_"+language+".png";} if(abouttab=="tools"){document.getElementById("about_tools_button").getElementsByTagName("img")[0].src="about_tools_"+language+"_button_down.png";document.getElementById("about_page").getElementsByTagName("img")[0].src="about_tools_p_"+abouttoolspage+"_"+language+".png";}} function aboutlegendf(){aboutbuttons();abouttab="legend";document.getElementById("about_previous_button").style.display="none";document.getElementById("about_next_button").style.display="none";document.getElementById("about_legend_button").getElementsByTagName("img")[0].src="about_legend_"+language+"_button_down.png";document.getElementById("about_page").getElementsByTagName("img")[0].src="about_legend_"+language+".png";} function customisetoposvalbardf(){abouttoolspage=10;abouttoolsf();} function datastatusf(){window.open("https://public.data.npolar.no/kartdata/S100_Produksjonsblokker_Kartdata_og_ortofoto.png");} function abouttoposvalbardf(){aboutbuttons();abouttab="toposvalbard";document.getElementById("customisetoposvalbard").style.display="block";document.getElementById("datastatus").style.display="block";document.getElementById("about_previous_button").style.display="none";document.getElementById("about_next_button").style.display="none";document.getElementById("about_toposvalbard_button").getElementsByTagName("img")[0].src="about_toposvalbard_button_down.png";document.getElementById("about_page").getElementsByTagName("img")[0].src="about_toposvalbard_"+language+".png";} function abouttoolsf(){aboutbuttons();abouttab="tools";document.getElementById("about_previous_button").style.display="block";document.getElementById("about_next_button").style.display="block";document.getElementById("about_pagenum").style.display="block";document.getElementById("about_pagenum").innerHTML=abouttoolspage+"/10";document.getElementById("about_tools_button").getElementsByTagName("img")[0].src="about_tools_"+language+"_button_down.png";document.getElementById("about_page").getElementsByTagName("img")[0].src="about_tools_p_"+abouttoolspage+"_"+language+".png";} function languagetipupdatef(){document.getElementById("tooltips").innerHTML=language_tips;} function sartoolsf(){sarActiveLayer.clear();sarGraphicLayer.clear();sarGraphicLabelLayer.clear();document.getElementById("sarmenu").style.display="block";panelsrelocatef();sarf=sarlist.split("\n");var sarstring;var sarlocation;var sarstringpart;var sareast;var sarnorth;var sarcomment;for(i in sarf){sarstring=sarf[i];sarnorth=sarstring.slice(0,sarstring.indexOf(";"));sarstringpart=sarstring.slice(sarstring.indexOf(";")+1);sareast=sarstringpart.slice(0,sarstringpart.indexOf(";"));sarlocation=sarstringpart.slice(sarstringpart.indexOf(";")+1);pS=new esri.symbol.PictureMarkerSymbol("sarfuel.png",15,22);sarnorth=parseFloat(sarnorth.replace(",","."));sareast=parseFloat(sareast.replace(",","."));var sarcoordpair=proj4(w84,u33,[sareast,sarnorth]).toString();sareast=Math.round(parseFloat(sarcoordpair.slice(0,(sarcoordpair.indexOf(",")))));sarnorth=Math.round(parseFloat(sarcoordpair.slice(sarcoordpair.indexOf(",")+1)));pP={"geometry":{"x":sareast,"y":sarnorth},"attributes":{"pT":sarcomment}};pU=new esri.Graphic(pP);pU.setSymbol(pS);sarGraphicLayer.add(pU);sarGraphicLabelLayer.add(new esri.Graphic(new esri.geometry.Point(sareast,sarnorth),new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+sarlocation,sarGraphicFont,new dojo.Color([218,21,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START).setHaloSize(2).setHaloColor(new dojo.Color([255,255,255])).setVerticalAlignment("middle")));};sarf=[];if(urlsar!=""&&document.getElementById("sartext").innerHTML!="sarfuel.txt"){document.getElementById("sartoggle").style.left="134px";document.getElementById("sarclose").style.display="none";sar=0;} else{sar=1;document.getElementById("sartoggle").style.left="146px";document.getElementById("sarclose").style.display="block";sarActiveLayer.show();sarGraphicLayer.show();sarGraphicLabelLayer.show();if(map.getLevel()>=3){sarGraphicLabelLayer.setOpacity(1);} else{sarGraphicLabelLayer.setOpacity(0.33);} sarCircleLayer.show();}} function sarclosef(){sar=0;sarActiveLayer.clear();sarGraphicLayer.clear();sarGraphicLabelLayer.clear();sarCircleLayer.clear();sarActiveLayer.hide();sarGraphicLayer.hide();sarGraphicLabelLayer.hide();sarCircleLayer.hide();document.getElementById("sarmenu").style.display="none";panelsrelocatef();} function sartogglef(){if(sar==0){sarActiveLayer.show();sarGraphicLayer.show();sarGraphicLabelLayer.show();if(map.getLevel()>=3){sarGraphicLabelLayer.setOpacity(1);} else{sarGraphicLabelLayer.setOpacity(0.33);} sarCircleLayer.show();sar=1;document.getElementById("sartoggle").style.left="146px";} else{sarActiveLayer.hide();sarGraphicLayer.hide();sarGraphicLabelLayer.hide();sarCircleLayer.hide();sar=0;document.getElementById("sartoggle").style.left="134px";}} function mapexportf(){document.getElementById("mapexportposter").style.display="block";urllat=(map.extent.ymax+map.extent.ymin)/2;urllong=(map.extent.xmax+map.extent.xmin)/2;var pmapexp=proj4(u33,w84,[urllong,urllat]).toString();var pmapexpx=parseFloat(pmapexp.slice(0,(pmapexp.indexOf(","))));var pmapexpy=parseFloat(pmapexp.slice(pmapexp.indexOf(",")+1));if(mapmaportho=="ortho"){urllayer="aerial"} else{urllayer="map"} document.getElementById("mapexporturlinput").value="https://toposvalbard.npolar.no/?lat="+pmapexpy.toFixed(5)+"&long="+pmapexpx.toFixed(5)+"&zoom="+map.getLevel()+"&layer="+urllayer;} function mapexportclosef(){document.getElementById("mapexportposter").style.display="none";} function mapexporturlf(){urllat=(map.extent.ymax+map.extent.ymin)/2;urllong=(map.extent.xmax+map.extent.xmin)/2;var pmapexp=proj4(u33,w84,[urllong,urllat]).toString();var pmapexpx=parseFloat(pmapexp.slice(0,(pmapexp.indexOf(","))));var pmapexpy=parseFloat(pmapexp.slice(pmapexp.indexOf(",")+1));if(mapmaportho=="ortho"){urllayer="aerial"} else{urllayer="map"} document.getElementById("mapexporturlinput").value="https://toposvalbard.npolar.no/?lat="+pmapexpy.toFixed(5)+"&long="+pmapexpx.toFixed(5)+"&zoom="+map.getLevel()+"&layer="+urllayer;document.getElementById('mapexporturlinput').select();} function mapprintnotesupdate(){document.getElementById("mapprintnotestop").innerHTML=document.mapprintnotesform.mapprintnotestext.value;} function mapprintblank(){if(document.mapprintnotesform.mapprintnotestext.value=="Tittel"||document.mapprintnotesform.mapprintnotestext.value=="Title"){document.mapprintnotesform.mapprintnotestext.select();}} function mapprintf(){document.getElementById("mapprintframeright").style.display="none";document.getElementById("mapprintframebottom").style.display="none";document.getElementById("map").style.border="0px";document.getElementById("bordercontainer").style.height="650px";document.getElementById("bordercontainer").style.width="650px";document.getElementById("map").style.height="650px";document.getElementById("map").style.width="650px";document.getElementById("map").style.left="0px";document.getElementById("map").style.top="0px";if(document.mapprintnotesform.mapprintnotestext.value=="Tittel"||document.mapprintnotesform.mapprintnotestext.value=="Title"){document.mapprintnotesform.mapprintnotestext.value="";document.getElementById("mapprintnotestop").innerHTML="";} document.getElementById("mapprintnotestop").innerHTML=document.mapprintnotesform.mapprintnotestext.value;document.getElementById("mapexportposter").style.display="none";map.resize();window.print();mapexportf();} function showhideomap(){if(document.getElementById("ovWin").style.display=="none"){document.getElementById("ovWin").style.display="block";document.getElementById("omapback").style.display="block";if(map.getLevel()>8){document.getElementById("zoomedinmarker").style.display="block";} if(map.getLevel()==0){document.getElementById("svalbardworld").style.display="block";}} else{document.getElementById("ovWin").style.display="none";document.getElementById("omapback").style.display="none";document.getElementById("zoomedinmarker").style.display="none";document.getElementById("svalbardworld").style.display="none";}} function omapf(event){if(omap==0&&npweb==0){var overviewMapDijit=new esri.dijit.OverviewMap({NLS_drag:"",map:map,expandFactor:2100,color:"#FF0000",opacity:0.25,height:138,width:138,visible:true},dojo.byId("overviewDiv"));overviewMapDijit.startup();omap=1;document.getElementById("ovWin").style.top="20px";document.getElementById("omapback").style.display="block";document.getElementById("showhideomap").style.display="block";}} function mapsizef(){if(navigator.appName=="Microsoft Internet Explorer"){if(activemap=="map"){document.getElementById("map").style.width=document.body.offsetWidth+"px";document.getElementById("map").style.height=document.body.offsetHeight+"px";map.resize();} if(activemap=="map3dn"){document.getElementById("map3dn").style.width=document.body.offsetWidth+"px";document.getElementById("map3dn").style.height=document.body.offsetHeight+"px";map3dn.resize();} if(activemap=="map3de"){document.getElementById("map3de").style.width=document.body.offsetWidth+"px";document.getElementById("map3de").style.height=document.body.offsetHeight+"px";map3de.resize();} if(activemap=="map3ds"){document.getElementById("map3ds").style.width=document.body.offsetWidth+"px";document.getElementById("map3ds").style.height=document.body.offsetHeight+"px";map3ds.resize();} if(activemap=="map3dw"){document.getElementById("map3dw").style.width=document.body.offsetWidth+"px";document.getElementById("map3dw").style.height=document.body.offsetHeight+"px";map3dw.resize();}} else{if(activemap=="map"){document.getElementById("map").style.width=window.innerWidth+"px";document.getElementById("map").style.height=window.innerHeight+"px";map.resize();} if(activemap=="map3dn"){document.getElementById("map3dn").style.width=window.innerWidth+"px";document.getElementById("map3dn").style.height=window.innerHeight+"px";map3dn.resize();} if(activemap=="map3de"){document.getElementById("map3de").style.width=window.innerWidth+"px";document.getElementById("map3de").style.height=window.innerHeight+"px";map3de.resize();} if(activemap=="map3ds"){document.getElementById("map3ds").style.width=window.innerWidth+"px";document.getElementById("map3ds").style.height=window.innerHeight+"px";map3ds.resize();} if(activemap=="map3dw"){document.getElementById("map3dw").style.width=window.innerWidth+"px";document.getElementById("map3dw").style.height=window.innerHeight+"px";map3dw.resize();}}} function showhide(){if(document.getElementById("panel").style.display=="none"){document.getElementById("panel").style.display="block";document.getElementById("panel").style.display="block";document.getElementById("maptype").style.display="block";} else{document.getElementById("panel").style.display="none";document.getElementById("maptype").style.display="none";}} function change3ddir(event){zone3d="null";if(navigator.appName=="Microsoft Internet Explorer"){if(event.clientX>(document.body.offsetWidth/3)&&event.clientX<((document.body.offsetWidth/3)*2)&&event.clientY<(document.body.offsetHeight/3)){zone3d="top";} if(event.clientX>((document.body.offsetWidth/3)*2)&&event.clientY>(document.body.offsetHeight/3)&&event.clientY<((document.body.offsetHeight/3)*2)){zone3d="right";} if(event.clientX<(document.body.offsetWidth/3)&&event.clientY>(document.body.offsetHeight/3)&&event.clientY<((document.body.offsetHeight/3)*2)){zone3d="left";}} else{if(event.clientX>(window.innerWidth/3)&&event.clientX<((window.innerWidth/3)*2)&&event.clientY<(window.innerHeight/3)){zone3d="top";} if(event.clientX>((window.innerWidth/3)*2)&&event.clientY>(window.innerHeight/3)&&event.clientY<((window.innerHeight/3)*2)){zone3d="right";} if(event.clientX<(window.innerWidth/3)&&event.clientY>(window.innerHeight/3)&&event.clientY<((window.innerHeight/3)*2)){zone3d="left";}} if(zone3d=="top"){if(activemap=="map3dn"){map3dsf();} else if(activemap=="map3de"){map3dwf();} else if(activemap=="map3ds"){map3dnf();} else if(activemap=="map3dw"){map3def();}} if(zone3d=="right"){if(activemap=="map3dn"){map3dwf();} else if(activemap=="map3de"){map3dnf();} else if(activemap=="map3ds"){map3def();} else if(activemap=="map3dw"){map3dsf();}} if(zone3d=="left"){if(activemap=="map3dn"){map3def();} else if(activemap=="map3de"){map3dsf();} else if(activemap=="map3ds"){map3dwf();} else if(activemap=="map3dw"){map3dnf();}}} function scale3dnotedownf(){document.getElementById("scale3dnote").style.display="block";} function scale3dnoteupf(){document.getElementById("scale3dnote").style.display="none";} function coordgetcancel(){firstclick=0;document.getElementById("cursorlength").style.left="10px";document.getElementById("cursorlength").style.top="10px";dojo.byId("cursorlength").innerHTML="";document.getElementById("cursorlength").style.display="none";lengthadd=0;measureoff=1;measurewhat=0;tb.deactivate();modus=0;} function keyboardf(event){if(document.activeElement.tagName=="BODY"||document.activeElement.tagName=="svg"){map.enableKeyboardNavigation();var keypressed=event.key;if(keypressed=="x"||keypressed=="X"){if(layeropacity==1){layeropacity=0.33;topographicLayer.setOpacity(layeropacity);nauticalLayer.setOpacity(layeropacity);terrainhsLayer.setOpacity(layeropacity);terrainslLayer.setOpacity(layeropacity);terraincntLayer.setOpacity(layeropacity);settleLayer.setOpacity(layeropacity);orthoLayer.setOpacity(layeropacity);ortho36Layer.setOpacity(layeropacity);if(newaerialtype!=="aerial"){landsatLayer.setOpacity(layeropacity);}else{landsatLayer.setOpacity(0);} landsatwLayer.setOpacity(layeropacity);document.body.style.backgroundColor="#E6E6E6";document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_"+language+".png";} else{layeropacity=1;topographicLayer.setOpacity(layeropacity);nauticalLayer.setOpacity(layeropacity);terrainhsLayer.setOpacity(layeropacity);terrainslLayer.setOpacity(layeropacity);terraincntLayer.setOpacity(layeropacity);settleLayer.setOpacity(layeropacity);orthoLayer.setOpacity(layeropacity);ortho36Layer.setOpacity(layeropacity);if(newaerialtype!=="aerial"){landsatLayer.setOpacity(layeropacity);}else{landsatLayer.setOpacity(0.2);} landsatwLayer.setOpacity(layeropacity);if(mapmaportho=="ortho"){document.body.style.backgroundColor="#778a98";} document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_"+language+".png";}} if(keypressed=="b"||keypressed=="i"||keypressed=="B"||keypressed=="I"){photopoint_tipsf();hideposter();photoClickf();} if(keypressed=="g"||keypressed=="G"){graticulesClickf();} if(keypressed=="m"||keypressed=="M"){showmaptypef();maptype_menupin();if(menupin==0){document.getElementById("maptypelist_aerial_showback").style.display="none";document.getElementById("maptypelist_map_showback").style.display="none";}} if(keypressed=="n"||keypressed=="N"){hideposter();nameClickf();} if(keypressed=="1"){mapmaportho="ortho";maptype_u33();maptype_u33topographic();hidemaptypef();} if(keypressed=="2"){mapmaportho="ortho";maptype_u33();maptype_u33nautical();hidemaptypef();} if(keypressed=="3"){mapmaportho="ortho";maptype_u33();maptype_u33terrainsl();hidemaptypef();} if(keypressed=="4"){mapmaportho="ortho";maptype_u33();maptype_u33terrainhs();hidemaptypef();} if(keypressed=="5"){mapmaportho="map";maptype_u33();maptype_u33aerial();hidemaptypef();} if(keypressed=="6"){mapmaportho="map";maptype_u33();maptype_u33aerialsat();hidemaptypef();} if(keypressed=="7"){mapmaportho="map";maptype_u33();maptype_u33sat();hidemaptypef();} if(keypressed=="8"){mapmaportho="map";maptype_u33();maptype_u33satw();hidemaptypef();} if(keypressed=="9"){mapmaportho="map";maptype_u33();maptype_u33ortho36();hidemaptypef();}} else{map.disableKeyboardNavigation();}} function mapmaporthof(){if(layeropacity==1){topographicLayer.setOpacity(layeropacity);nauticalLayer.setOpacity(layeropacity);terrainhsLayer.setOpacity(layeropacity);terrainslLayer.setOpacity(layeropacity);terraincntLayer.setOpacity(layeropacity);settleLayer.setOpacity(layeropacity);orthoLayer.setOpacity(layeropacity);ortho36Layer.setOpacity(layeropacity);if(newaerialtype!=="aerial"){landsatLayer.setOpacity(layeropacity);}else{landsatLayer.setOpacity(0.2);} landsatwLayer.setOpacity(layeropacity);if(mapmaportho=="ortho"){document.body.style.backgroundColor="#E6E6E6";} else if(newmaptype!=="3dsimple"&&newmaptype!=="3ddynamic"){document.body.style.backgroundColor="#778a98";}} else{topographicLayer.setOpacity(layeropacity);nauticalLayer.setOpacity(layeropacity);terrainhsLayer.setOpacity(layeropacity);terrainslLayer.setOpacity(layeropacity);terraincntLayer.setOpacity(layeropacity);settleLayer.setOpacity(layeropacity);orthoLayer.setOpacity(layeropacity);ortho36Layer.setOpacity(layeropacity);if(newaerialtype!=="aerial"){landsatLayer.setOpacity(layeropacity);}else{landsatLayer.setOpacity(0);} landsatwLayer.setOpacity(layeropacity);document.body.style.backgroundColor="#E6E6E6";} map.setMapCursor("default");toggletip_startup=1;coordgetcancel();xaerialLayer.hide();activeLayer.remove(activegraphic);document.getElementById("aerialbox").style.display="none";document.getElementById("aerialthumb0").style.display="none";document.getElementById("aerialthumb").getElementsByTagName("img")[0].src="0.png";document.getElementById("tsnews").style.display="none";document.getElementById("zoomtoclick").style.display="none";if(pName==1&&map.getLevel()<6){document.getElementById("zoomtoclick").style.display="block";} if(pCam==1&&map.getLevel()<6){document.getElementById("zoomtoclick").style.display="block";} if(xpPlane==1&&map.getLevel()<4&&mapmaportho=="map"){document.getElementById("zoomtoclick").style.display="block";} if(maptype=="map"){if(mapmaportho=="map"){topographicLayer.hide();settleLayer.hide();nauticalLayer.hide();terrainhsLayer.hide();terrainslLayer.hide();terraincntLayer.hide();document.getElementById("settlenote").style.display="none";document.getElementById("nauticalnote").style.display="none";document.getElementById("nauticalnmalink").style.display="none";document.getElementById("terrainnmalink").style.display="none";document.getElementById("nauticalenc").style.display="none";document.getElementById("terrainnote").style.display="none";document.getElementById("ortho36note").style.display="none";document.getElementById("ortho36link").style.display="none";mapmaportho="ortho";if(aerialnames==1){aerialnamesLayer.show();} else{aerialnamesLayer.hide();} if(newaerialtype=="aerial"){orthoLayer.show();if(layeropacity==1){landsatLayer.setOpacity(0.2);} else{landsatLayer.setOpacity(0);}} if(newaerialtype=="sat"){landsatLayer.setOpacity(layeropacity);landsatLayer.show();document.getElementById("landsatnote").style.display="block";if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);}} if(newaerialtype=="aerialsat"){if(map.getLevel()>6){orthoLayer.show();} landsatLayer.setOpacity(layeropacity);landsatLayer.show();document.getElementById("landsatnote").style.display="block";} if(newaerialtype=="satw"){landsatwLayer.show();document.getElementById("sentinelnote").style.display="block";if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);}} if(newaerialtype=="ortho36"){ortho36Layer.show();document.getElementById("ortho36note").style.display="block";document.getElementById("ortho36link").style.display="block";if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);}} if(menupin==1){document.getElementById("maptypelist_aerial_showback").style.display="block";} document.getElementById("maptypelist_map_showback").style.display="none";if(xpPlane==1&&map.getLevel()>=4){xaerialLayer.show();}} else{orthoLayer.hide();ortho36Layer.hide();landsatLayer.hide();landsatwLayer.hide();xaerialLayer.hide();if(mapnames==1&&newmaptype=="terrain"){aerialnamesLayer.show();} else{aerialnamesLayer.hide();} if(terraincnt==1&&newmaptype=="terrain"){terraincntLayer.show();} else{terraincntLayer.hide();} document.getElementById("maptypelist_aerial_showback").style.display="none";if(menupin==1){document.getElementById("maptypelist_map_showback").style.display="none";} document.getElementById("landsatnote").style.display="none";document.getElementById("sentinelnote").style.display="none";document.getElementById("ortho36note").style.display="none";document.getElementById("ortho36link").style.display="none";if(newmaptype=="topographic"){topographicLayer.setOpacity(layeropacity);topographicLayer.show();settleLayer.show();document.getElementById("maptypelist_map_topographic").getElementsByTagName("img")[0].src="showtopographic_"+language+".png";} if(newmaptype=="nautical"){nauticalLayer.show();document.getElementById("nauticalnote").style.display="block";document.getElementById("nauticalnmalink").style.display="block";document.getElementById("nauticalenc").style.display="block";document.getElementById("maptypelist_map_nautical").getElementsByTagName("img")[0].src="shownautical_"+language+".png";} if(newmaptype=="terrain"){if(terraintype=="sl"){terrainslLayer.show();terrainhsLayer.hide();} else{terrainhsLayer.show();terrainslLayer.hide();} document.getElementById("terrainnote").style.display="block";document.getElementById("terrainnmalink").style.display="block";document.getElementById("maptypelist_map_terrain").getElementsByTagName("img")[0].src="showterrain_"+language+".png";if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);}} if(menupin==1){document.getElementById("maptypelist_map_showback").style.display="block";} if(map.getLevel()>8){if(map.extent.xmax<530000&&map.extent.xmin>506000&&map.extent.ymin>8674400&&map.extent.ymax<8694000){if(newmaptype=="topographic"){document.getElementById("settlenote").style.display="block";}} else{if(map.getLevel()>11&&dataplotted==0){document.getElementById("settlenote").style.display="none";}}} if(map.getLevel()>9){if((map.extent.xmax<532000&&map.extent.xmin>504000&&map.extent.ymin>8672000&&map.extent.ymax<8696000)||(map.extent.xmax<440000&&map.extent.xmin>427000&&map.extent.ymin>8757000&&map.extent.ymax<8769000)||(map.extent.xmax<486000&&map.extent.xmin>478000&&map.extent.ymin>8660000&&map.extent.ymax<8672000)){} else{if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);}}} mapmaportho="map";}}} function maptype_3d(){document.getElementById("cursorshowb").style.display="none";document.getElementById("mapexportposter").style.display="none";newmaptype="3dsimple";maptype_map_reset();document.getElementById("sarmenu").style.display="none";document.getElementById("maptypelist_aerialx3d").style.display="block";document.getElementById("maptypelist_3d").getElementsByTagName("img")[0].src="show3dsimple_"+language+".png";if(graticules==0){document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_disabled_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_disabled_"+language+".png";} else{document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_disabled_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_disabled_"+language+".png";} if(layeropacity==1){document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_disabled_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_disabled_"+language+".png";} else{document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_disabled_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_disabled_"+language+".png";} if(mapsheetindex==0){document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_unchecked_disabled_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_unchecked_disabled_"+language+".png";} else{document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_disabled_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_disabled_"+language+".png";} document.getElementById("maptypelist_aerial_showback").style.display="none";if(detectedbrowser!="firefox"){startup3dexp=0;document.getElementById("i3dexpid").src="blank.html";} maptype="3dsimple";clearTimeout(myVar);document.getElementById("m3dposter").style.display="block";document.getElementById("m3dposter").getElementsByTagName("img")[0].src="3dposter.png";if(document.getElementById("btnu33").style.display=="none"){hideposter();document.getElementById("zoomin").style.display="block";document.getElementById("zoomout").style.display="block";document.getElementById("m3dposter").style.display="block";document.getElementById("btnu33").style.display="block";document.getElementById("btn3dn").style.display="block";document.getElementById("btn3de").style.display="block";document.getElementById("btn3ds").style.display="block";document.getElementById("btn3dw").style.display="block";document.getElementById("help3d").style.display="block";document.getElementById("showhideomap").style.display="none";document.getElementById("scale3dnb").style.display="block";if(prevmap=="map3dn"){map3dnf();} if(prevmap=="map3de"){map3def();} if(prevmap=="map3ds"){map3dsf();} if(prevmap=="map3dw"){map3dwf();} if(navigator.appName=="Microsoft Internet Explorer"){mapsizef();}} document.getElementById("zoomtoclick").style.display="none";document.getElementById("m3dexp").style.display="none";document.getElementById("m3dexpposter").style.display="none";document.getElementById("mapscaled").style.display="block";mapscalef();document.getElementById("mapexportdiv").style.display="none";document.getElementById("owgnote").style.display="none";document.getElementById("landsatnote").style.display="none";document.getElementById("sentinelnote").style.display="none";document.getElementById("settlenote").style.display="none";document.getElementById("ortho36note").style.display="none";document.getElementById("ortho36link").style.display="none";} function map3dnstartf(){map3dnstart++;if(map3dnstart==2){map3dn.centerAndZoom(new esri.geometry.Point(x3d,y3d),zoomlevel);}} function map3destartf(){map3destart++;if(map3destart==2){map3de.centerAndZoom(new esri.geometry.Point(x3d,y3d),zoomlevel);}} function map3dsstartf(){map3dsstart++;if(map3dsstart==2){map3ds.centerAndZoom(new esri.geometry.Point(x3d,y3d),zoomlevel);}} function map3dwstartf(){map3dwstart++;if(map3dwstart==2){map3dw.centerAndZoom(new esri.geometry.Point(x3d,y3d),zoomlevel);}} function maptype_map_reset(){if(sar==1&&maptype!="3dsimple"&&maptype!="3ddynamic"){document.getElementById("sarmenu").style.display="block";} if(graticules==0){document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_"+language+".png";} else{document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_"+language+".png";} if(layeropacity==1){document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_"+language+".png";} else{document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_"+language+".png";} if(mapsheetindex==0){document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_unchecked_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_unchecked_"+language+".png";} else{document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_"+language+".png";} document.getElementById("zoomin").style.display="block";document.getElementById("zoomout").style.display="block";if(mapnames==1){document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_disabled_"+language+".png";} else{document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_unchecked_disabled_"+language+".png";} if(terraincnt==1){document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_disabled_"+language+".png";} else{document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_unchecked_disabled_"+language+".png";} document.getElementById("nauticalnote").style.display="none";document.getElementById("nauticalnmalink").style.display="none";document.getElementById("terrainnmalink").style.display="none";document.getElementById("nauticalenc").style.display="none";document.getElementById("terrainnote").style.display="none";document.getElementById("ortho36note").style.display="none";document.getElementById("ortho36link").style.display="none";document.getElementById("maptypelist_map_topographic").getElementsByTagName("img")[0].src="showtopographic_unchecked_"+language+".png";document.getElementById("maptypelist_map_nautical").getElementsByTagName("img")[0].src="shownautical_unchecked_"+language+".png";document.getElementById("maptypelist_map_terrain").getElementsByTagName("img")[0].src="showterrain_unchecked_"+language+".png";document.getElementById("maptypelist_3d").getElementsByTagName("img")[0].src="show3dsimple_unchecked_"+language+".png";document.getElementById("maptypelist_3dexp").getElementsByTagName("img")[0].src="show3ddynamic_unchecked_"+language+".png";aerialnamesLayer.hide();activeLayer.remove(activegraphic);topographicLayer.hide();nauticalLayer.hide();terrainhsLayer.hide();terrainslLayer.hide();terraincntLayer.hide();settleLayer.hide();if((aerialnames==0||mapnames==0)&&newmaptype!="terrain"){aerialnamesLayer.hide();} if(newmaptype!="3dsimple"&&newmaptype!="3ddynamic"){document.getElementById("maptypelist_aerialx3d").style.display="none";} document.getElementById("maptypelist_aerialx3d").style.display="none";} function maptype_aerial_reset(){document.getElementById("nauticalnote").style.display="none";document.getElementById("nauticalnmalink").style.display="none";document.getElementById("terrainnmalink").style.display="none";document.getElementById("nauticalenc").style.display="none";document.getElementById("terrainnote").style.display="none";document.getElementById("ortho36note").style.display="none";document.getElementById("ortho36link").style.display="none";document.getElementById("maptypelist_aerial_aerial").getElementsByTagName("img")[0].src="showaerial_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_sat").getElementsByTagName("img")[0].src="showsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_aerialsat").getElementsByTagName("img")[0].src="showaerialsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_satw").getElementsByTagName("img")[0].src="showsatw_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_ortho36").getElementsByTagName("img")[0].src="showortho36_unchecked_"+language+".png";document.getElementById("landsatnote").style.display="none";document.getElementById("sentinelnote").style.display="none";document.getElementById("aerialbox").style.display="none";document.getElementById("aerialthumb0").style.display="none";activeLayer.remove(activegraphic);landsatLayer.hide();landsatwLayer.hide();orthoLayer.hide();ortho36Layer.hide();if(aerialnames==0){aerialnamesLayer.hide();}} function maptype_menupin(){if(menupin==0){menupin=1;document.getElementById("maptypelist_map_menupin").getElementsByTagName("img")[0].src="menupindown.png";document.getElementById("maptypelist_aerial_menupin").getElementsByTagName("img")[0].src="menupindown.png";document.getElementById("zoomtoclick").style.left="404px";} else{menupin=0;document.getElementById("maptypelist_map_menupin").getElementsByTagName("img")[0].src="menupin.png";document.getElementById("maptypelist_aerial_menupin").getElementsByTagName("img")[0].src="menupin.png";document.getElementById("zoomtoclick").style.left="214px";}} function maptype_u33topographic(){if(maptype=="3dsimple"||maptype=="3ddynamic"){maptype_u33();} maptype_map_reset();if(map.getLevel()>8&&(map.extent.xmax<532000&&map.extent.xmin>504000&&map.extent.ymin>8672000&&map.extent.ymax<8696000)){document.getElementById("settlenote").style.display="block";} newmaptype="topographic";topographicLayer.setOpacity(layeropacity);topographicLayer.show();settleLayer.show();document.getElementById("maptypelist_map_topographic").getElementsByTagName("img")[0].src="showtopographic_"+language+".png";} function maptype_u33nautical(){if(maptype=="3dsimple"||maptype=="3ddynamic"){maptype_u33();} maptype_map_reset();document.getElementById("settlenote").style.display="none";newmaptype="nautical";nauticalLayer.show();document.getElementById("maptypelist_map_nautical").getElementsByTagName("img")[0].src="shownautical_"+language+".png";document.getElementById("nauticalnote").style.display="block";document.getElementById("nauticalnmalink").style.display="block";document.getElementById("nauticalenc").style.display="block";} function maptype_u33terrainhs(){if(maptype=="3dsimple"||maptype=="3ddynamic"){maptype_u33();} terraintype="hs";document.getElementById("maptypelist_map_terrainhs").getElementsByTagName("img")[0].src="showterrain_hs.png";document.getElementById("maptypelist_map_terrainsl").getElementsByTagName("img")[0].src="showterrain_sl_disabled.png";maptype_u33terrain();} function maptype_u33terrainsl(){if(maptype=="3dsimple"||maptype=="3ddynamic"){maptype_u33();} terraintype="sl";document.getElementById("maptypelist_map_terrainsl").getElementsByTagName("img")[0].src="showterrain_sl.png";document.getElementById("maptypelist_map_terrainhs").getElementsByTagName("img")[0].src="showterrain_hs_disabled.png";maptype_u33terrain();} function maptype_u33terrain(){if(maptype=="3dsimple"||maptype=="3ddynamic"){maptype_u33();} maptype_map_reset();if(mapnames==1){document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_"+language+".png";} else{document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_unchecked_"+language+".png";} if(terraincnt==1){document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_"+language+".png";} else{document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_unchecked_"+language+".png";} newmaptype="terrain";if(terraintype=="sl"){terrainslLayer.show();terrainhsLayer.hide();} else{terrainhsLayer.show();terrainslLayer.hide();} if(terraincnt==1&&(mapmaportho=="map"&&newmaptype=="terrain")){terraincntLayer.show();} else{terraincntLayer.hide();} document.getElementById("terrainnote").style.display="block";document.getElementById("terrainnmalink").style.display="block";document.getElementById("maptypelist_map_terrain").getElementsByTagName("img")[0].src="showterrain_"+language+".png";if(mapnames==1){aerialnamesLayer.show();} if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);} document.getElementById("terrainnote").style.display="block";document.getElementById("terrainnmalink").style.display="block";} function nauticalencf(){window.open("http://norgeskart.no/#!?project=norgeskart&layers=1011&zoom="+(parseInt(map.getLevel())+4)+"&lat="+(Math.round((map.extent.ymin+map.extent.ymax)/2))+"&lon="+(Math.round((map.extent.xmin+map.extent.xmax)/2)),"_blank");} function nmawebsite(){if(language=="no"){window.open("https://www.kartverket.no/","_blank");} else{window.open("https://www.kartverket.no/en/","_blank");}} function ortho36website(){window.open("https://data.npolar.no/dataset/f6afca5c-6c95-4345-9e52-cfe2f24c7078","_blank");} function maptype_u33aerial(){maptype_aerial_reset();newaerialtype="aerial";document.getElementById("maptypelist_aerial_aerial").getElementsByTagName("img")[0].src="showaerial_"+language+".png";document.getElementById("maptypelist_aerial_sat").getElementsByTagName("img")[0].src="showsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_aerialsat").getElementsByTagName("img")[0].src="showaerialsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_satw").getElementsByTagName("img")[0].src="showsatw_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_ortho36").getElementsByTagName("img")[0].src="showortho36_unchecked_"+language+".png";document.getElementById("landsatnote").style.display="none";document.getElementById("sentinelnote").style.display="none";document.getElementById("ortho36note").style.display="none";document.getElementById("ortho36link").style.display="none";orthoLayer.show();} function maptype_u33sat(){maptype_aerial_reset();newaerialtype="sat";document.getElementById("maptypelist_aerial_aerial").getElementsByTagName("img")[0].src="showaerial_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_sat").getElementsByTagName("img")[0].src="showsat_"+language+".png";document.getElementById("maptypelist_aerial_aerialsat").getElementsByTagName("img")[0].src="showaerialsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_satw").getElementsByTagName("img")[0].src="showsatw_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_ortho36").getElementsByTagName("img")[0].src="showortho36_unchecked_"+language+".png";document.getElementById("landsatnote").style.display="block";landsatLayer.setOpacity(layeropacity);landsatLayer.show();if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);}} function maptype_u33aerialsat(){maptype_aerial_reset();newaerialtype="aerialsat";document.getElementById("maptypelist_aerial_aerial").getElementsByTagName("img")[0].src="showaerial_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_sat").getElementsByTagName("img")[0].src="showsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_aerialsat").getElementsByTagName("img")[0].src="showaerialsat_"+language+".png";document.getElementById("maptypelist_aerial_satw").getElementsByTagName("img")[0].src="showsatw_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_ortho36").getElementsByTagName("img")[0].src="showortho36_unchecked_"+language+".png";document.getElementById("landsatnote").style.display="block";landsatLayer.setOpacity(layeropacity);if(map.getLevel()>=7){orthoLayer.show();} landsatLayer.show();} function maptype_u33satw(){maptype_aerial_reset();newaerialtype="satw";document.getElementById("maptypelist_aerial_aerial").getElementsByTagName("img")[0].src="showaerial_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_sat").getElementsByTagName("img")[0].src="showsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_aerialsat").getElementsByTagName("img")[0].src="showaerialsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_satw").getElementsByTagName("img")[0].src="showsatw_"+language+".png";document.getElementById("maptypelist_aerial_ortho36").getElementsByTagName("img")[0].src="showortho36_unchecked_"+language+".png";document.getElementById("sentinelnote").style.display="block";landsatwLayer.show();if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);}} function maptype_u33ortho36(){maptype_aerial_reset();newaerialtype="ortho36";document.getElementById("ortho36note").style.display="block";document.getElementById("ortho36link").style.display="block";document.getElementById("maptypelist_aerial_aerial").getElementsByTagName("img")[0].src="showaerial_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_sat").getElementsByTagName("img")[0].src="showsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_aerialsat").getElementsByTagName("img")[0].src="showaerialsat_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_satw").getElementsByTagName("img")[0].src="showsatw_unchecked_"+language+".png";document.getElementById("maptypelist_aerial_ortho36").getElementsByTagName("img")[0].src="showortho36_"+language+".png";ortho36Layer.show();if(map.getLevel()>11&&dataplotted==0){map.setLevel(11);}} function maptype_u33(){document.getElementById("cursorshowb").style.display="block";if(mapmaportho=="ortho"){document.getElementById("maptypelist_aerial_showback").style.display="block";} if(mapmaportho=="map"){document.getElementById("maptypelist_map_showback").style.display="block";} document.getElementById("coordlistplot").style.display="block";if(detectedbrowser!="firefox"){startup3dexp=0;document.getElementById("i3dexpid").src="blank.html";} clearTimeout(myVar);mapmaporthof();maptype="map";if(document.getElementById("btnu33").style.display=="block"){prevmap=activemap;activemap="map";xy3duf();hideposter3df();topographicLayer.show();document.getElementById("map").style.display="block";map.centerAndZoom(new esri.geometry.Point(x,y,new esri.SpatialReference({wkid:25833})),zoomlevel);document.getElementById("m3dposter").style.display="none";document.getElementById("btnu33").style.display="none";document.getElementById("btn3dn").style.display="none";document.getElementById("btn3de").style.display="none";document.getElementById("btn3ds").style.display="none";document.getElementById("btn3dw").style.display="none";document.getElementById("help3d").style.display="none";document.getElementById("showhideomap").style.display="block";document.getElementById("coordlistplot").style.display="block";document.getElementById("namepoint").style.display="block";document.getElementById("photopoint").style.display="block";document.getElementById("scale3dnb").style.display="none";} mapsizef();document.getElementById("owgnote").style.display="none";if(landsatLayer.visible==true){document.getElementById("landsatnote").style.display="block";} document.getElementById("m3dexp").style.display="none";document.getElementById("m3dexpposter").style.display="none";document.getElementById("namepoint").style.display="block";document.getElementById("photopoint").style.display="block";if(pName==1&&map.getLevel()<6){document.getElementById("zoomtoclick").style.display="block";} if(pCam==1&&map.getLevel()<6){document.getElementById("zoomtoclick").style.display="block";} if(xpPlane==1&&map.getLevel()<4){document.getElementById("zoomtoclick").style.display="block";} document.getElementById("mapscaled").style.display="block";mapscalef();document.getElementById("mapexportdiv").style.display="block";if(mapmaportho=="map"){document.getElementById("maptypelist_map_showback").style.display="block";} if(mapmaportho=="ortho"){document.getElementById("maptypelist_aerial_showback").style.display="block";}} function maptype_3dexp(){document.getElementById("cursorshowb").style.display="none";document.getElementById("mapexportposter").style.display="none";newmaptype="3ddynamic";maptype_map_reset();document.getElementById("sarmenu").style.display="none";if(graticules==0){document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_disabled_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_disabled_"+language+".png";} else{document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_disabled_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_disabled_"+language+".png";} if(layeropacity==1){document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_disabled_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_disabled_"+language+".png";} else{document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_disabled_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_disabled_"+language+".png";} if(mapsheetindex==0){document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_unchecked_disabled_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_unchecked_disabled_"+language+".png";} else{document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_disabled_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_disabled_"+language+".png";} document.getElementById("maptypelist_aerialx3d").style.display="block";document.getElementById("maptypelist_3dexp").getElementsByTagName("img")[0].src="show3ddynamic_"+language+".png";document.getElementById("coordlistplot").style.display="none";document.getElementById("landsatnote").style.display="none";document.getElementById("settlenote").style.display="none";document.getElementById("zoomin").style.display="none";document.getElementById("zoomout").style.display="none";document.getElementById("coordformatbox").style.display="none";document.getElementById("coordharvestbox").style.display="none";coordharvestLayer.hide();maptype="3ddynamic";clearTimeout(myVar);document.getElementById("mapexportdiv").style.display="none";document.getElementById("m3dexp").style.display="block";hideposter();if(startup3dexp==0){document.getElementById("i3dexpid").src="https://toposvalbard.npolar.no/ts3dexperiment/index.html";startup3dexp=1;} if(language=="no"){document.getElementById("transplengthright").style.width="515px";document.getElementById("transplengthrightborder").style.width="515px";document.getElementById("transprightedge").style.right="514px";document.getElementById("mapscaled").style.display="none";} else{document.getElementById("transplengthright").style.width="592px";document.getElementById("transplengthrightborder").style.width="592px";document.getElementById("transprightedge").style.right="591px";document.getElementById("mapscaled").style.display="none";} document.getElementById("m3dexp").style.width=document.documentElement.offsetWidth+"px";document.getElementById("m3dexp").style.height=document.documentElement.offsetHeight+"px";document.getElementById("m3dexpposter").getElementsByTagName("img")[0].src="3dexpposter_"+language+".png";document.getElementById("m3dexpposter").style.display="block";document.getElementById("m3dposter").style.display="none";document.getElementById("scale3dnb").style.display="none";document.getElementById("zoomtoclick").style.display="none";document.getElementById("namepoint").style.display="none";document.getElementById("photopoint").style.display="none";document.getElementById("owgnote").style.display="block";} function hideposter3df(){document.getElementById("coordlistplot").style.display="none";document.getElementById("namepoint").style.display="none";document.getElementById("photopoint").style.display="none";document.getElementById("map").style.display="none";document.getElementById("map3dn").style.display="none";document.getElementById("map3de").style.display="none";document.getElementById("map3ds").style.display="none";document.getElementById("map3dw").style.display="none";document.getElementById("btn3dn").getElementsByTagName("img")[0].src="view_north.png";document.getElementById("btn3de").getElementsByTagName("img")[0].src="view_east.png";document.getElementById("btn3ds").getElementsByTagName("img")[0].src="view_south.png";document.getElementById("btn3dw").getElementsByTagName("img")[0].src="view_west.png";document.getElementById("coordformatbox").style.display="none";document.getElementById("coordharvestbox").style.display="none";coordharvestLayer.hide();} function xy3duf(){if(prevmap=="map"){x=map.extent.xmin+((map.extent.xmax-map.extent.xmin)/2);y=map.extent.ymin+((map.extent.ymax-map.extent.ymin)/2);zoomlevel=map.getLevel();} else if(prevmap=="map3dn"){x3d=map3dn.extent.xmin+(map3dn.extent.xmax-map3dn.extent.xmin)/2;y3d=map3dn.extent.ymax+(map3dn.extent.ymin-map3dn.extent.ymax)/2;x=624074+(x3d-233.98)*(1/0.0009836232);y=8616028+(y3d-138.48)*(1/0.0003365392);zoomlevel=map3dn.getLevel();} else if(prevmap=="map3de"){x3d=map3de.extent.xmin+(map3de.extent.xmax-map3de.extent.xmin)/2;y3d=map3de.extent.ymax+(map3de.extent.ymin-map3de.extent.ymax)/2;x=-1*(-624074+(y3d-90.30)*(1/-0.0003364627));y=8616028+(x3d-372.24)*(1/-0.000984088);zoomlevel=map3de.getLevel();} else if(prevmap=="map3ds"){x3d=map3ds.extent.xmin+(map3ds.extent.xmax-map3ds.extent.xmin)/2;y3d=map3ds.extent.ymax+(map3ds.extent.ymin-map3ds.extent.ymax)/2;x=-1*(-624074+(x3d-233.90)*(1/0.0009836833));y=-1*(-8616028+(y3d-137.56)*(1/0.000336601));zoomlevel=map3ds.getLevel();} else if(prevmap=="map3dw"){x3d=map3dw.extent.xmin+(map3dw.extent.xmax-map3dw.extent.xmin)/2;y3d=map3dw.extent.ymax+(map3dw.extent.ymin-map3dw.extent.ymax)/2;x=624074+(y3d-90.28)*(1/-0.0003364332);y=-1*(-8616028+(x3d-380.72)*(1/-0.000984088));zoomlevel=map3dw.getLevel();} if(activemap=="map3dn"){x3d=((x-624074)*0.0009836232)+233.98;y3d=((y-8616028)*0.0003365392)+138.48;if(map3dnstart>2){map3dn.centerAndZoom(new esri.geometry.Point(x3d,y3d),zoomlevel);}} if(activemap=="map3de"){x3d=((y-8616028)*-0.000984088)+372.24;y3d=(((-1*x)+624074)*-0.0003364627)+90.30;if(map3destart>2){map3de.centerAndZoom(new esri.geometry.Point(x3d,y3d),zoomlevel);}} if(activemap=="map3ds"){x3d=(((-1*x)+624074)*0.0009836833)+233.90;y3d=(((-1*y)+8616028)*0.000336601)+137.56;if(map3dsstart>2){map3ds.centerAndZoom(new esri.geometry.Point(x3d,y3d),zoomlevel);}} if(activemap=="map3dw"){x3d=(((-1*y)+8616028)*-0.000984088)+380.72;y3d=((x-624074)*-0.0003364332)+90.28;if(map3dwstart>2){map3dw.centerAndZoom(new esri.geometry.Point(x3d,y3d),zoomlevel);}}} function help3ddownf(){document.getElementById("help3dposter").getElementsByTagName("img")[0].src="help3d_"+language+".png";document.getElementById("help3dposter").style.display="block";} function help3dupf(){document.getElementById("help3dposter").style.display="none";} function mapdownf(){if(activemap!="map"){hideposter3df();document.getElementById("map").style.display="block";activemaptoggle=activemap;prevmap=activemap;activemap="map";xy3duf();map.centerAndZoom(new esri.geometry.Point(x,y,new esri.SpatialReference({wkid:25833})),zoomlevel);document.getElementById("showhideomap").style.display="block";document.getElementById("scale3dnb").style.display="none";topographicLayer.show();}} function mapupf(){if(activemap=="map"){prevmap=activemap;activemap=activemaptoggle;if(activemap=="map3dn"){document.getElementById("map3dn").style.display="block";document.getElementById("btn3dn").getElementsByTagName("img")[0].src="view_north_active.png";map3dn.setLevel(map3dn.getLevel());} if(activemap=="map3de"){document.getElementById("map3de").style.display="block";document.getElementById("btn3de").getElementsByTagName("img")[0].src="view_east_active.png";map3de.setLevel(map3de.getLevel());} if(activemap=="map3ds"){document.getElementById("map3ds").style.display="block";document.getElementById("btn3ds").getElementsByTagName("img")[0].src="view_south_active.png";map3ds.setLevel(map3ds.getLevel());} if(activemap=="map3dw"){document.getElementById("map3dw").style.display="block";document.getElementById("btn3dw").getElementsByTagName("img")[0].src="view_west_active.png";map3dw.setLevel(map3dw.getLevel());} document.getElementById("map").style.display="none";document.getElementById("showhideomap").style.display="none";document.getElementById("scale3dnb").style.display="block";document.getElementById("btnu33").getElementsByTagName("img")[0].src="view_map.png";} if(map.getLevel()<6&&pName==1){document.getElementById("zoomtoclick").style.display="none";} if(map.getLevel()<6&&pCam==1){document.getElementById("zoomtoclick").style.display="none";}} function map3dnf(){hideposter3df();document.getElementById("btn3dn").getElementsByTagName("img")[0].src="view_north_active.png";document.getElementById("map3dn").style.display="block";prevmap=activemap;activemap="map3dn";mapsizef();xy3duf();} function map3def(){hideposter3df();document.getElementById("btn3de").getElementsByTagName("img")[0].src="view_east_active.png";document.getElementById("map3de").style.display="block";prevmap=activemap;activemap="map3de";mapsizef();xy3duf();} function map3dsf(){hideposter3df();document.getElementById("btn3ds").getElementsByTagName("img")[0].src="view_south_active.png";document.getElementById("map3ds").style.display="block";prevmap=activemap;activemap="map3ds";mapsizef();xy3duf();} function map3dwf(){hideposter3df();document.getElementById("btn3dw").getElementsByTagName("img")[0].src="view_west_active.png";document.getElementById("map3dw").style.display="block";prevmap=activemap;activemap="map3dw";mapsizef();xy3duf();} function photoClickf(){if(pCam==0){document.getElementById("photopoint").getElementsByTagName("img")[0].src="cam_down.png";pCam=1;if(map.getLevel()>=6){p.show();}} else{document.getElementById("photopoint").getElementsByTagName("img")[0].src="cam.png";p.hide();document.getElementById("zoomtoclick").style.display="none";pCam=0;} mapscalef();} function xaerialClickf(){if(xpPlane==0){document.getElementById("maptypelist_aerial_old").getElementsByTagName("img")[0].src="showold_"+language+".png";xpPlane=1;} else{document.getElementById("maptypelist_aerial_old").getElementsByTagName("img")[0].src="showold_unchecked_"+language+".png";xpPlane=0;} aerialname=1;mapscalef();} function aerialnamesClickf(){if(aerialnames==0){document.getElementById("maptypelist_aerial_names").getElementsByTagName("img")[0].src="shownames_"+language+".png";aerialnames=1;if(mapmaportho=="ortho"){aerialnamesLayer.show();} else{aerialnamesLayer.hide();}} else{document.getElementById("maptypelist_aerial_names").getElementsByTagName("img")[0].src="shownames_unchecked_"+language+".png";aerialnames=0;aerialnamesLayer.hide();} mapscalef();} function graticulesClickf(){if(newmaptype!=="3dsimple"&&newmaptype!=="3ddynamic"){if(graticules==0){document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_"+language+".png";graticules=1;graticulesLayer.show();} else{document.getElementById("maptypelist_aerial_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_"+language+".png";document.getElementById("maptypelist_map_graticules").getElementsByTagName("img")[0].src="showgraticules_unchecked_"+language+".png";graticules=0;graticulesLayer.hide();} mapscalef();}} function dimmedClickf(){if(newmaptype!=="3dsimple"&&newmaptype!=="3ddynamic"){if(layeropacity==1){layeropacity=0.33;topographicLayer.setOpacity(layeropacity);nauticalLayer.setOpacity(layeropacity);terrainhsLayer.setOpacity(layeropacity);terrainslLayer.setOpacity(layeropacity);terraincntLayer.setOpacity(layeropacity);settleLayer.setOpacity(layeropacity);orthoLayer.setOpacity(layeropacity);ortho36Layer.setOpacity(layeropacity);if(newaerialtype!=="aerial"){landsatLayer.setOpacity(layeropacity);}else{landsatLayer.setOpacity(0);} landsatwLayer.setOpacity(layeropacity);document.body.style.backgroundColor="#E6E6E6";document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_"+language+".png";} else{layeropacity=1;topographicLayer.setOpacity(layeropacity);nauticalLayer.setOpacity(layeropacity);terrainhsLayer.setOpacity(layeropacity);terrainslLayer.setOpacity(layeropacity);terraincntLayer.setOpacity(layeropacity);settleLayer.setOpacity(layeropacity);orthoLayer.setOpacity(layeropacity);ortho36Layer.setOpacity(layeropacity);if(newaerialtype!=="aerial"){landsatLayer.setOpacity(layeropacity);}else{landsatLayer.setOpacity(0.2);} landsatwLayer.setOpacity(layeropacity);if(mapmaportho=="ortho"){document.body.style.backgroundColor="#778a98";} document.getElementById("maptypelist_aerial_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_"+language+".png";document.getElementById("maptypelist_map_dimmed").getElementsByTagName("img")[0].src="showdimmed_unchecked_"+language+".png";}}} function indexClickf(){if(newmaptype!=="3dsimple"&&newmaptype!=="3ddynamic"){if(mapsheetindex==0){mapsheetindex=1;indexLayer.show();document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_"+language+".png";} else{mapsheetindex=0;indexLayer.hide();document.getElementById("maptypelist_aerial_index").getElementsByTagName("img")[0].src="showindex_unchecked_"+language+".png";document.getElementById("maptypelist_map_index").getElementsByTagName("img")[0].src="showindex_unchecked_"+language+".png";}}} function mapnamesClickf(){if(mapmaportho=="map"&&newmaptype=="terrain"){if(mapnames==0){document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_"+language+".png";mapnames=1;if(mapmaportho=="map"&&newmaptype=="terrain"){aerialnamesLayer.show();} else{aerialnamesLayer.hide();}} else{document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_unchecked_"+language+".png";mapnames=0;aerialnamesLayer.hide();} mapscalef();} else{if(mapnames==1){document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_disabled_"+language+".png";} else{document.getElementById("maptypelist_map_names").getElementsByTagName("img")[0].src="shownames_unchecked_disabled_"+language+".png";}}} function terraincntClickf(){if(mapmaportho=="map"&&newmaptype=="terrain"){if(terraincnt==0){document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_"+language+".png";terraincnt=1;if(mapmaportho=="map"&&newmaptype=="terrain"){terraincntLayer.show();} else{terraincntLayer.hide();}} else{document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_unchecked_"+language+".png";terraincnt=0;terraincntLayer.hide();} mapscalef();} else{if(terraincnt==1){document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_disabled_"+language+".png";} else{document.getElementById("maptypelist_map_terraincnt").getElementsByTagName("img")[0].src="showterraincnt_unchecked_disabled_"+language+".png";}}} function nameClickf(){if(pName==0){document.getElementById("namepoint").getElementsByTagName("img")[0].src="name_down.png";pName=1;if(map.getLevel()>=6){pnLayer.show();}} else{document.getElementById("namepoint").getElementsByTagName("img")[0].src="name.png";document.getElementById("zoomtoclick").style.display="none";pName=0;} mapscalef();} function showback(){document.getElementById("aerialthumbback").style.display="block";document.getElementById("aerialthumbback").style.width=document.getElementById("aerialthumb").getElementsByTagName("img")[0].offsetWidth+5+"px";document.getElementById("aerialthumbback").style.height=document.getElementById("aerialthumb").getElementsByTagName("img")[0].offsetHeight+5+"px";} function hideback(){document.getElementById("aerialthumbback").style.display="none";} function aejumpf(evt){hideback();if(aerialimage.slice(0,1)=="S"){if(kinetic==0){window.open("xflyfoto.html?lang="+language+"&kinetic="+kinetic+"&id="+aerialimage.replace(".jpg",""),"_blank");} else{window.open("xflyfoto.html?lang="+language+"&id="+aerialimage.replace(".jpg",""),"_blank");}} else{if(kinetic==0){window.open("flyfoto.html?lang="+language+"&kinetic="+kinetic+"&id="+aerialimage.replace(".jpg",""),"_blank");} else{window.open("flyfoto.html?lang="+language+"&id="+aerialimage.replace(".jpg",""),"_blank");}}} function pnjumpf(evt){window.open(pnjumplink,"_blank");} function captcoordf(geometry){coordgetcancel();modus="captcoord";} function capturecursor(){map.setMapCursor("url(coord.cur), auto");} function defaultcursor(){map.setMapCursor("pointer");} function measurecursor(){map.setMapCursor("url(measure.cur), auto");}(function(context){var backendURL="https://api.npolar.no/map/elevation/";context.getElevation=function(x,y,cb){if("number"!=typeof x){throw new TypeError("Expected number for parameter 1 in getElevation");} if("number"!=typeof y){throw new TypeError("Expected number for argument 2 in getElevation");} if("function"!=typeof cb){throw new TypeError("Expected function for argument 3 in getElevation");} var xhr=new XMLHttpRequest(),type,query="?x="+x+"&y="+y+"&epsg=25833";xhr.open("GET",backendURL+"elevation.json"+query,true);xhr.onreadystatechange=function(){if(xhr.readyState==xhr.HEADERS_RECEIVED){type=xhr.getResponseHeader("Content-Type");}else if(xhr.readyState==xhr.DONE){cb({status:xhr.status,json:(/^([^\/]+)\/(json|[^+;]+\+json)($|;)/.test(type)?JSON.parse(xhr.responseText):null),text:xhr.responseText});}};xhr.send();}})(this);function addPoint(event){if(event.ctrlKey&&document.getElementById("coordharvestbox").style.display=="none"){captcoordf();} if(infohide==1){map.infoWindow.hide();map.infoWindow.resize(275,107);document.getElementById('map').oncontextmenu=function(){mapmaporthof();return false;};} infohide=0;if(pCam==1&&map.getLevel()>=6){p.show();} if(xpPlane==1&&mapmaportho=="ortho"&&map.getLevel()>=4){xaerialLayer.show();} if(coordharvest==1){coordharvestLayer.show();} if(pName==1&&map.getLevel()>=6){pnLayer.show();} graphicLayer.show();poigraphicLayer.show();pninfoboxshow=0;aerialboxshow=0;document.getElementById("poster").style.display="none";if(modus=="marker"){symbolcolortest=document.textinputform.textinputtext.value;symbolcolortest=symbolcolortest.toLowerCase();cl_graphic=0;if(language=="no"){if(symbolcolortest=="tekst/markør"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} if(symbolcolortest=="rød"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} else if(symbolcolortest=="gul"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markeryellow.png",20,19);} else if(symbolcolortest=="mini"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markermini.png",10,10);} else if(symbolcolortest=="grønn"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markergreen.png",20,19);} else if(symbolcolortest=="blå"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markerblue.png",20,19);} else if(symbolcolortest==""){markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} else if(symbolcolortest=="rød nål"||symbolcolortest=="nål"){markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markerredpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="gul nål"){markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markeryellowpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="grønn nål"){markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markergreenpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="blå nål"){markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markerbluepin.png","width":12,"height":15,"yoffset":8});} pl=new esri.geometry.Point(event.mapPoint.x,event.mapPoint.y);graphicid++;markergraphic=new esri.Graphic(pl,markerSymbol);graphic[graphicid]=graphicLayer.add(markergraphic);map.setMapCursor("default");modus=0;} else{if(symbolcolortest=="text input/marker"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} if(symbolcolortest=="red"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} else if(symbolcolortest=="yellow"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markeryellow.png",20,19);} else if(symbolcolortest=="mini"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markermini.png",10,10);} else if(symbolcolortest=="green"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markergreen.png",20,19);} else if(symbolcolortest=="blue"){markerSymbol=new esri.symbol.PictureMarkerSymbol("markerblue.png",20,19);} else if(symbolcolortest==""){markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} else if(symbolcolortest=="red pin"||symbolcolortest=="pin"){markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markerredpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="yellow pin"){markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markeryellowpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="green pin"){markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markergreenpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="blue pin"){markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markerbluepin.png","width":12,"height":15,"yoffset":8});} pl=new esri.geometry.Point(event.mapPoint.x,event.mapPoint.y);graphicid++;markergraphic=new esri.Graphic(pl,markerSymbol);graphic[graphicid]=graphicLayer.add(markergraphic);map.setMapCursor("default");modus=0;}} if(modus=="text"){cl_graphic=0;var textinput;textinput=document.textinputform;var textinputtext;textinputtext=textinput.textinputtext.value;var textSymbol=new esri.symbol.TextSymbol(textinputtext,font,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);var tp=new esri.geometry.Point(event.mapPoint.x,event.mapPoint.y);graphicid++;var labelPointGraphic=new esri.Graphic(tp,textSymbol);graphic[graphicid]=graphicLayer.add(labelPointGraphic);map.setMapCursor("default");modus=0;} zgraphicLayer.clear();if(newmaptype=="terrain"&&mapmaportho=="map"){getElevation(event.mapPoint.x,event.mapPoint.y,(function(x,y){return function(res){if((res.json.elevation>=-10)&&(res.json.source.file!=="IBCAO_Dybdetest_500m.tif")){if(measureunit=="kmnm"){var ztext="\u00a0"+Math.round(res.json.elevation,0)+"m / "+Math.round((res.json.elevation*3.2808),0)+"ft";} else if(measureunit=="km"){var ztext="\u00a0"+Math.round(res.json.elevation,0)+"m";} else{var ztext="\u00a0"+Math.round((res.json.elevation*3.2808),0)+"ft";} var textSymbol=new esri.symbol.TextSymbol(ztext,zfont,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);textSymbol.setHaloSize(1);textSymbol.setHaloColor(new dojo.Color([232,220,200]));var zp=new esri.geometry.Point(x,y);var labelPointGraphic=new esri.Graphic(zp,textSymbol);markerSymbol=new esri.symbol.PictureMarkerSymbol("zpoint.png",3,3);markergraphic=new esri.Graphic(zp,markerSymbol);zgraphicLayer.add(markergraphic);zgraphicLayer.add(labelPointGraphic);}}})(event.mapPoint.x,event.mapPoint.y));} if(modus=="captcoord"){cxpos=(map.toMap({x:event.screenPoint.x,y:event.screenPoint.y})).x;cypos=(map.toMap({x:event.screenPoint.x,y:event.screenPoint.y})).y;pw84sc=proj4(u33,w84,[cxpos,cypos]).toString();pw84scx=parseFloat(pw84sc.slice(0,(pw84sc.indexOf(","))));pw84scy=parseFloat(pw84sc.slice(pw84sc.indexOf(",")+1));if(pw84scx>-30&&pw84scx<60&&pw84scy>66&&pw84scy<89){map.infoWindow.resize(275,107);map.infoWindow.setTitle(koordlang);if(pw84scy>66&&pw84scy<72){dynutmbelt="W";} if(pw84scy>72&&pw84scy<84){dynutmbelt="X";} if(pw84scx>=-30&&pw84scx<-24){dynutmzone="26";dynutm=proj4(u33,u26,[cxpos,cypos]).toString();} if(pw84scx>=-24&&pw84scx<-18){dynutmzone="27";dynutm=proj4(u33,u27,[cxpos,cypos]).toString();} if(pw84scx>=-18&&pw84scx<-12){dynutmzone="28";dynutm=proj4(u33,u28,[cxpos,cypos]).toString();} if(pw84scx>=-12&&pw84scx<-6){dynutmzone="29";dynutm=proj4(u33,u29,[cxpos,cypos]).toString();} if(pw84scx>=-6&&pw84scx<0){dynutmzone="30";dynutm=proj4(u33,u30,[cxpos,cypos]).toString();} if(pw84scx>=42&&pw84scx<48){dynutmzone="38";dynutm=proj4(u33,u38,[cxpos,cypos]).toString();} if(pw84scx>=48&&pw84scx<54){dynutmzone="39";dynutm=proj4(u33,u39,[cxpos,cypos]).toString();} if(pw84scx>=54&&pw84scx<60){dynutmzone="40";dynutm=proj4(u33,u40,[cxpos,cypos]).toString();} if(dynutmbelt=="X"){if(pw84scx>=0&&pw84scx<9){dynutmzone="31";dynutm=proj4(u33,u31,[cxpos,cypos]).toString();} if(pw84scx>=9&&pw84scx<21){dynutmzone="33";dynutm=proj4(u33,u33,[cxpos,cypos]).toString();} if(pw84scx>=21&&pw84scx<33){dynutmzone="35";dynutm=proj4(u33,u35,[cxpos,cypos]).toString();} if(pw84scx>=33&&pw84scx<42){dynutmzone="37";dynutm=proj4(u33,u37,[cxpos,cypos]).toString();}} if(dynutmbelt=="W"){if(pw84scx>=0&&pw84scx<6){dynutmzone="31";dynutm=proj4(u33,u31,[cxpos,cypos]).toString();} if(pw84scx>=6&&pw84scx<12){dynutmzone="32";dynutm=proj4(u33,u32,[cxpos,cypos]).toString();} if(pw84scx>=12&&pw84scx<18){dynutmzone="33";dynutm=proj4(u33,u33,[cxpos,cypos]).toString();} if(pw84scx>=18&&pw84scx<24){dynutmzone="34";dynutm=proj4(u33,u34,[cxpos,cypos]).toString();} if(pw84scx>=24&&pw84scx<30){dynutmzone="35";dynutm=proj4(u33,u35,[cxpos,cypos]).toString();} if(pw84scx>=30&&pw84scx<36){dynutmzone="36";dynutm=proj4(u33,u36,[cxpos,cypos]).toString();} if(pw84scx>=36&&pw84scx<42){dynutmzone="37";dynutm=proj4(u33,u37,[cxpos,cypos]).toString();}} if(pw84scy>=84){} else{dynutmx=parseFloat(dynutm.slice(0,(dynutm.indexOf(","))));dynutmy=parseFloat(dynutm.slice(dynutm.indexOf(",")+1));} if(pw84scx>=0){pw84scxwe=1;} else{pw84scxwe=-1;pw84scx=pw84scx*-1;} xdeg=parseInt(pw84scx);xmin=((pw84scx*60).toFixed(3)-xdeg*60).toFixed(3);if(xmin==60){xdeg++;xmin="0.000";} ydeg=parseInt(pw84scy);ymin=((pw84scy*60).toFixed(3)-ydeg*60).toFixed(3);if(ymin==60){ydeg++;ymin="0.000";} if(xdeg<10){xdeg="0"+xdeg;} if(xmin<10){xmin="0"+xmin;} if(ymin<10){ymin="0"+ymin;} dyndm=ydeg+"°"+ymin+"'N "+xdeg+"°"+xmin+"'";ydeg=parseInt(pw84scy);ymin=parseInt((pw84scy-ydeg)*60);ysec=((pw84scy*3600).toFixed(1)-((ydeg*60)+ymin)*60).toFixed(1);if(ymin==59&&ysec==60){ydeg++;ymin=0;ysec="0.0";} if(ymin<59&&ysec==60){ymin++;ysec="0.0";} xdeg=parseInt(pw84scx);xmin=parseInt((pw84scx-xdeg)*60);xsec=((pw84scx*3600).toFixed(1)-((xdeg*60)+xmin)*60).toFixed(1);if(xmin==59&&xsec==60){xdeg++;xmin=0;xsec="0.0";} if(xmin<59&&xsec==60){xmin++;xsec="0.0";} if(ymin<10){ymin="0"+ymin;} if(ysec<10){ysec="0"+ysec;} if(xdeg<10){dyndd=(Math.round(pw84scy*100000)/100000).toFixed(5)+"°N 0"+(Math.round(pw84scx*100000)/100000).toFixed(5)+"°";xdeg="0"+xdeg;} else{dyndd=(Math.round(pw84scy*100000)/100000).toFixed(5)+"°N "+(Math.round(pw84scx*100000)/100000).toFixed(5)+"°";} if(xmin<10){xmin="0"+xmin;} if(xsec<10){xsec="0"+xsec;} dyndms=ydeg+"°"+ymin+"'"+ysec+'&quot;N '+xdeg+"°"+xmin+"'"+xsec+'&quot;';if(pw84scxwe==1){dyndm=dyndm+direast;dyndd=dyndd+direast;dyndms=dyndms+direast;} else{dyndm=dyndm+dirwest;dyndd=dyndd+dirwest;dyndms=dyndms+dirwest;} var titlecoord="UTM: 33X E"+Math.round(cxpos)+" N"+Math.round(cypos);if(dynutmzone!="33"&&(xdeg>8&&xdeg<35)){infoWindowContent=titlecoord.strike()+"<br />"+"UTM: "+dynutmzone+dynutmbelt+" E"+Math.round(dynutmx)+" N"+Math.round(dynutmy)+"<br />"+"DD.DDDDD: "+dyndd+"<br />"+"DD MM.MMM: "+dyndm+"<img src='sar0.png'>"+"<br />"+"DD MM SS.S: "+dyndms+"<br />";map.infoWindow.resize(275,120);} else{infoWindowContent="UTM: "+dynutmzone+dynutmbelt+" E"+Math.round(dynutmx)+" N"+Math.round(dynutmy)+"<br />"+"DD.DDDDD: "+dyndd+"<br />"+"DD MM.MMM: "+dyndm+"<img src='sar0.png'>"+"<br />"+"DD MM SS.S: "+dyndms+"<br />";map.infoWindow.resize(275,107);} map.infoWindow.setContent(infoWindowContent);map.infoWindow.setTitle(koordlang);map.infoWindow.show(event.screenPoint,map.getInfoWindowAnchor(event.screenPoint));document.getElementById('map').oncontextmenu=function(){return true;};getElevation(event.mapPoint.x,event.mapPoint.y,function(res){if((res.json.elevation>=-10)&&(res.json.source.file!=="IBCAO_Dybdetest_500m.tif")){if(measureunit=="kmnm"){infoWindowContent+=zinfo+": "+Math.round(res.json.elevation,0)+" m / "+Math.round((res.json.elevation*3.2808),0)+" ft";} if(measureunit=="km"){infoWindowContent+=zinfo+": "+Math.round(res.json.elevation,0)+" m";} else if(measureunit=="mi"||measureunit=="nm"){infoWindowContent+=zinfo+": "+Math.round((res.json.elevation*3.2808),0)+" ft";} map.infoWindow.setContent(infoWindowContent);}});} map.setMapCursor("default");modus=0;} if(document.getElementById("coordharvestbox").style.display=="block"){if(event.ctrlKey){coordharvestLayer.show();if(harvest_id!=""){graphicidharvest=parseInt(harvest_id,10)+1;} else{graphicidharvest++;} harvest_id="";if(coordharvestsystem=="33"){if(document.getElementById("coordharvestformta").value==""||document.getElementById("coordharvestformta").value=="Ctrl + museklikk i kart for å høste koordinater"||document.getElementById("coordharvestformta").value=="Ctrl + left click in map to harvest coordinates"){document.getElementById("coordharvestformta").value="U33XE U33XN Id"+"\n"+Math.round(event.mapPoint.x,0)+" "+Math.round(event.mapPoint.y,0)+" "+graphicidharvest;} else{document.getElementById("coordharvestformta").value=document.getElementById("coordharvestformta").value+"\n"+Math.round(event.mapPoint.x,0)+" "+Math.round(event.mapPoint.y,0)+" "+graphicidharvest;}} if(coordharvestsystem=="35"){var chp35i=proj4(u33,u35,[event.mapPoint.x,event.mapPoint.y]).toString();var chp35ix=parseFloat(chp35i.slice(0,(chp35i.indexOf(","))));var chp35iy=parseFloat(chp35i.slice(chp35i.indexOf(",")+1));if(document.getElementById("coordharvestformta").value==""||document.getElementById("coordharvestformta").value=="Ctrl + museklikk i kart for å høste koordinater"||document.getElementById("coordharvestformta").value=="Ctrl + left click in map to harvest coordinates"){document.getElementById("coordharvestformta").value="U35XE U35XN Id"+"\n"+Math.round(chp35ix,0)+" "+Math.round(chp35iy,0)+" "+graphicidharvest;} else{document.getElementById("coordharvestformta").value=document.getElementById("coordharvestformta").value+"\n"+Math.round(chp35ix,0)+" "+Math.round(chp35iy,0)+" "+graphicidharvest;}} if(coordharvestsystem=="84"){var chpw84i=proj4(u33,w84,[event.mapPoint.x,event.mapPoint.y]).toString();var chpw84ix=parseFloat(chpw84i.slice(0,(chpw84i.indexOf(","))));var chpw84iy=parseFloat(chpw84i.slice(chpw84i.indexOf(",")+1));if(document.getElementById("coordharvestformta").value==""||document.getElementById("coordharvestformta").value=="Ctrl + museklikk i kart for å høste koordinater"||document.getElementById("coordharvestformta").value=="Ctrl + left click in map to harvest coordinates"){if(language=="en"){document.getElementById("coordharvestformta").value="Lat Long Id"+"\n"+(Math.round(chpw84iy*100000)/100000).toFixed(5)+" "+(Math.round(chpw84ix*100000)/100000).toFixed(5)+" "+graphicidharvest;} else{document.getElementById("coordharvestformta").value="Bgr Lgr Id"+"\n"+(Math.round(chpw84iy*100000)/100000).toFixed(5)+" "+(Math.round(chpw84ix*100000)/100000).toFixed(5)+" "+graphicidharvest;}} else{document.getElementById("coordharvestformta").value=document.getElementById("coordharvestformta").value+"\n"+(Math.round(chpw84iy*100000)/100000).toFixed(5)+" "+(Math.round(chpw84ix*100000)/100000).toFixed(5)+" "+graphicidharvest;}} document.getElementById("coordharvestbox").style.display="block";var markerSymbolharvest=new esri.symbol.PictureMarkerSymbol("markerharvest.png",10,10);var plharvest=new esri.geometry.Point(event.mapPoint.x,event.mapPoint.y);var markergraphicharvest=new esri.Graphic(plharvest,markerSymbolharvest);graphic[graphicidharvest]=coordharvestLayer.add(markergraphicharvest);var harvest_fontl=new esri.symbol.Font(esri.symbol.Font.SIZE="10pt",esri.symbol.Font.STYLE_NORMAL,esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_NORMAL,esri.symbol.Font.FAMILY="verdana, arial, helvetica, sans-serif");var harvest_textSymboll=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+graphicidharvest,harvest_fontl,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);var harvest_pttl=new esri.geometry.Point(event.mapPoint.x,event.mapPoint.y);var harvest_labelPointGraphicl=new esri.Graphic(harvest_pttl,harvest_textSymboll);graphic[graphicidharvest]=coordharvestLayer.add(harvest_labelPointGraphicl);document.getElementById("coordharvestformta").scrollTop=document.getElementById("coordharvestformta").scrollHeight;}} if(modus!="-2"&&modus!="-3"&&modus!="coordharvest"){modus=0;}} function textmarkerf(geometry){coordgetcancel();symbolcolortest=document.textinputform.textinputtext.value;symbolcolortest=symbolcolortest.toLowerCase();if(language=="no"){if(symbolcolortest=="tekst/markør"||symbolcolortest=="rød"||symbolcolortest=="grønn"||symbolcolortest=="blå"||symbolcolortest=="gul"||symbolcolortest=="mini"||symbolcolortest==""||symbolcolortest=="rød nål"||symbolcolortest=="blå nål"||symbolcolortest=="grønn nål"||symbolcolortest=="gul nål"||symbolcolortest=="nål"){map.setMapCursor("url(marker.cur), auto");modus="marker";} else{modus="text";map.setMapCursor("url(text.cur), auto");}} else{if(symbolcolortest=="text input/marker"||symbolcolortest=="red"||symbolcolortest=="green"||symbolcolortest=="blue"||symbolcolortest=="yellow"||symbolcolortest=="mini"||symbolcolortest==""||symbolcolortest=="red pin"||symbolcolortest=="blue pin"||symbolcolortest=="green pin"||symbolcolortest=="yellow pin"||symbolcolortest=="pin"){map.setMapCursor("url(marker.cur), auto");modus="marker";} else{modus="text";map.setMapCursor("url(text.cur), auto");}}} function textmarkerinputblank(){map.disableKeyboardNavigation();if(document.getElementById("textmarkerinput").value=="Tekst/markør"||document.getElementById("textmarkerinput").value=="Text input/marker"){document.getElementById("textmarkerinput").value="";}} function textmarkerinputdefault(){map.enableKeyboardNavigation();if(document.getElementById("textmarkerinput").value==""){if(language=="no"){document.getElementById("textmarkerinput").value="Tekst/markør";} else{document.getElementById("textmarkerinput").value="Text input/marker";}}} function northblank(){map.disableKeyboardNavigation();if(document.getElementById("northinput").value=="Nord/B.gr."||document.getElementById("northinput").value=="North/Lat."){document.getElementById("northinput").value="";}} function northdefault(){map.enableKeyboardNavigation();if(document.getElementById("northinput").value==""){if(language=="no"){document.getElementById("northinput").value="Nord/B.gr.";} else{document.getElementById("northinput").value="North/Lat.";}}} function eastblank(){map.disableKeyboardNavigation();if(document.getElementById("eastinput").value=="Øst/L.gr."||document.getElementById("eastinput").value=="East/Long."){document.getElementById("eastinput").value="";}} function eastdefault(){map.enableKeyboardNavigation();if(document.getElementById("eastinput").value==""){if(language=="no"){document.getElementById("eastinput").value="Øst/L.gr.";} else{document.getElementById("eastinput").value="East/Long.";}}} function pnblank(){map.disableKeyboardNavigation();document.getElementById("geoname_autocomplete").value="";} function pndefault(){map.enableKeyboardNavigation();if(language=="no"){document.getElementById("geoname_autocomplete").value="Zoom til stedsnavn";} else{document.getElementById("geoname_autocomplete").value="Zoom to place name";}} function modusav(){modus=-2;measureoff=0;} function outsidenoout(){modus=-5;} function wrapper(){if(wrapperv=="1"){document.getElementById("cl_textarea").wrap="off";if(document.getElementById("cl_textarea").value==gpx_textarea_default||document.getElementById("cl_textarea").value==cl_textarea_default){document.getElementById("cl_textarea").value="";} wrapperv="0";}} function measuredistancemodef(){measurewhat=1;tb.activate(esri.toolbars.Draw.POLYLINE);map.setMapCursor("url(measure.cur), auto");measuremode="distance";firstclick=1;} function measureareamodef(){modus=-2;measureoff=0;measurewhat=0;tb.activate(esri.toolbars.Draw.POLYGON);map.setMapCursor("url(measurearea.cur), auto");measuremode="area";} function graphicidremove(geometry){if(cl_graphic==0){if(graphicid>0){graphicLayer.remove(graphic[graphicid]);graphicid--;} else if(graphicid==cl_plotline){graphicLayer.remove(graphic[graphicid]);graphicid--;cl_plotline="";}} else{cl_line=0;if(datatype!="GPX"){cl_lines=parseInt(cl_lines,10)*parseInt(cl_graphic,10)-parseInt(cl_graphic,10);} while(cl_line<cl_lines){graphicLayer.remove(graphic[graphicid]);graphicid--;cl_line++;} cl_graphic=0;}} function eraseallf(){graphicid=0;cl_graphic=0;cl_line=0;cl_plotline="";graphicLayer.clear();dataplotted=0;} function backgrounddefaultf(){document.zoomnorthform.northinput.style.border="1px solid #91A2A7";document.zoomeastform.eastinput.style.border="1px solid #91A2A7";} function coordlistposter(){coordgetcancel();map.setMapCursor("default");document.getElementById("pninfobox").style.display="none";document.getElementById("aerialbox").style.display="none";document.getElementById("aerialthumb").getElementsByTagName("img")[0].src="0.png";activeLayer.remove(activegraphic);document.getElementById("coordlistplot").style.border="none";document.getElementById("coordlistposter").style.display="block";document.getElementById("coordlistposter").getElementsByTagName("img")[0].src="aboutposter_back.png";document.getElementById("outsideposter").style.display="block";document.getElementById("coordlistposter").style.left=(document.documentElement.offsetWidth/2)-269+"px";document.getElementById("coordlistposter").style.top=(document.documentElement.offsetHeight/2)-214+"px";document.getElementById("dataformattext").innerHTML=dataformat;} function datatypef(){document.getElementById("cl_textarea").style.height="360px";document.getElementById("cl_textareaerror").style.display="none";if(datatype=="datalist"){document.getElementById("coordlistplotnow").style.top="149px";datatype="GPX";document.getElementById("tableinfo").innerHTML="GPX";document.getElementById("datalistgroup").style.display="none";document.getElementById("gpxgroup").style.display="block";if(wrapperv=="1"&&document.getElementById("cl_textarea").value==cl_textarea_default){document.getElementById("cl_textarea").value=gpx_textarea_default;}} else if(datatype=="GPX"){datatype="datalist";document.getElementById("coordlistplotnow").style.top="283px";if(language=="no"){document.getElementById("tableinfo").innerHTML="Dataliste";} else{document.getElementById("tableinfo").innerHTML="Data list";} document.getElementById("datalistgroup").style.display="block";document.getElementById("gpxgroup").style.display="none";if(wrapperv=="1"&&document.getElementById("cl_textarea").value==gpx_textarea_default){document.getElementById("cl_textarea").value=cl_textarea_default;}}} function cl_gof(){dataplotted=1;clerror="";var polylineJson;var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),2);if(language=="no"){if(document.getElementById("textmarkerinput").value.toLowerCase()=="rød"){var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,0,0]),2);} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="blå"){var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,255]),2);} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="gul"){var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,255,0]),2);} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="grønn"){var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,200,0]),2);} else{var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),2);}} if(language=="en"){if(document.getElementById("textmarkerinput").value.toLowerCase()=="red"){var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,0,0]),2);} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="blue"){var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,255]),2);} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="yellow"){var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([255,255,0]),2);} else if(document.getElementById("textmarkerinput").value.toLowerCase()=="green"){var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,200,0]),2);} else{var polylineSymbol=new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,new dojo.Color([0,0,0]),2);}} var polyline;if(updated==1){if(document.getElementById("cl_textarea").value!=""){hideposter();cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);symbolcolortest=document.textinputform.textinputtext.value;symbolcolortest=symbolcolortest.toLowerCase();if(language=="no"){if(symbolcolortest=="rød"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} else if(symbolcolortest=="gul"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markeryellow.png",20,19);} else if(symbolcolortest=="mini"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markermini.png",10,10);} else if(symbolcolortest=="grønn"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markergreen.png",20,19);} else if(symbolcolortest=="blå"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markerblue.png",20,19);} else if(symbolcolortest==""){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} else if(symbolcolortest=="rød nål"||symbolcolortest=="nål"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markerredpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="gul nål"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markeryellowpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="grønn nål"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markergreenpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="blå nål"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markerbluepin.png","width":12,"height":15,"yoffset":8});}} else if(language=="en"){if(symbolcolortest=="red"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} else if(symbolcolortest=="yellow"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markeryellow.png",20,19);} else if(symbolcolortest=="mini"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markermini.png",10,10);} else if(symbolcolortest=="green"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markergreen.png",20,19);} else if(symbolcolortest=="blue"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markerblue.png",20,19);} else if(symbolcolortest==""){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol("markerred.png",20,19);} else if(symbolcolortest=="red pin"||symbolcolortest=="pin"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markerredpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="yellow pin"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markeryellowpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="green pin"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markergreenpin.png","width":12,"height":15,"yoffset":8});} else if(symbolcolortest=="blue pin"){cl_markerSymbol=new esri.symbol.PictureMarkerSymbol({"url":"markerbluepin.png","width":12,"height":15,"yoffset":8});}} var cl_linepart;var cl_semicolonposstart;var cl_semicolonposPart;var cl_lineend;var cl_Id;var cl_east;var cl_north;var cl_graphicidstart=graphicid;cl_line=0;cl_colstep=0;cl_linestart=0;cl_value=document.getElementById("cl_textarea").value;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} cl_value=cl_value.replace(/\n\r?/g,'#');if(cl_value.lastIndexOf("#")+1!=cl_value.length){cl_value=cl_value+"#";} cl_lines=cl_value.split(/#/g).length;if(symbolcolortest=="mini"){fontl=new esri.symbol.Font(esri.symbol.Font.SIZE="8pt",esri.symbol.Font.STYLE_NORMAL,esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_NORMAL,esri.symbol.Font.FAMILY="verdana, arial, helvetica, sans-serif");} else{fontl=new esri.symbol.Font(esri.symbol.Font.SIZE="12pt",esri.symbol.Font.STYLE_NORMAL,esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_NORMAL,esri.symbol.Font.FAMILY="verdana, arial, helvetica, sans-serif");} cl_graphic=0;cl_value="#"+cl_value.slice(0,cl_value.length);if(navigator.appName=="Microsoft Internet Explorer"){cl_lines++;} if(datatype!="GPX"){if(cl_colnum_label>0){cl_line=0;cl_colstep=0;cl_linestart=0;cl_value=document.getElementById("cl_textarea").value;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} cl_value=cl_value.replace(/\n\r?/g,'#');if(cl_value.lastIndexOf("#")+1!=cl_value.length){cl_value=cl_value+"#";} cl_lines=cl_value.split(/#/g).length;if(symbolcolortest=="mini"){fontl=new esri.symbol.Font(esri.symbol.Font.SIZE="8pt",esri.symbol.Font.STYLE_NORMAL,esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_NORMAL,esri.symbol.Font.FAMILY="verdana, arial, helvetica, sans-serif");} else{fontl=new esri.symbol.Font(esri.symbol.Font.SIZE="12pt",esri.symbol.Font.STYLE_NORMAL,esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_NORMAL,esri.symbol.Font.FAMILY="verdana, arial, helvetica, sans-serif");} cl_graphic++;cl_value="#"+cl_value.slice(0,cl_value.length);if(navigator.appName=="Microsoft Internet Explorer"){cl_lines++;} while(cl_line<cl_lines-1){cl_line++;cl_value=cl_value.slice(cl_value.indexOf("#")+1,cl_value.length);cl_linepart=cl_value.slice(0,cl_value.indexOf("#"))+separator;cl_linepart_label=cl_value.slice(0,cl_value.indexOf("#"));while(cl_colstep<cl_colnums){cl_colstep++;cl_colpart=cl_linepart.slice(0,cl_linepart.indexOf(separator));cl_linepart=cl_linepart.slice(cl_linepart.indexOf(separator)+1,cl_linepart.length);if(cl_colnum_label==cl_colstep){cl_colnum_label_text=cl_colpart;} if(cl_colnum_label==cl_colnums+1){cl_colnum_label_text=cl_linepart_label;} if(cl_colnum_north==cl_colstep){cl_north=cl_colpart;} if(cl_colnum_east==cl_colstep){cl_east=cl_colpart;}} cl_colstep=0;if(dataformat=="UTM33X"){cl_north=parseInt(cl_north,10);cl_east=parseInt(cl_east,10);} else if(dataformat=="UTM35X"){cl_north=parseInt(cl_north,10);cl_east=parseInt(cl_east,10);var pu35cl=proj4(u35,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pu35cl.slice(0,(pu35cl.indexOf(",")))));cl_north=Math.round(parseFloat(pu35cl.slice(pu35cl.indexOf(",")+1)));} else if(dataformat=="UTM29W"){cl_north=parseInt(cl_north,10);cl_east=parseInt(cl_east,10);var pu29cl=proj4(u29,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pu29cl.slice(0,(pu29cl.indexOf(",")))));cl_north=Math.round(parseFloat(pu29cl.slice(pu29cl.indexOf(",")+1)));} else if(dataformat==desgr){cl_north=parseFloat(cl_north.replace(",","."));cl_east=parseFloat(cl_east.replace(",","."));var pw84cl=proj4(w84,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pw84cl.slice(0,(pw84cl.indexOf(",")))));cl_north=Math.round(parseFloat(pw84cl.slice(pw84cl.indexOf(",")+1)));} var bbpw84cl=proj4(u33,w84,[cl_east,cl_north]).toString();var bbcl_east=Math.round(parseFloat(bbpw84cl.slice(0,(bbpw84cl.indexOf(",")))));var bbcl_north=Math.round(parseFloat(bbpw84cl.slice(bbpw84cl.indexOf(",")+1)));textSymboll=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+cl_colnum_label_text,fontl,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);pttl=new esri.geometry.Point(cl_east,cl_north);labelPointGraphicl=new esri.Graphic(pttl,textSymboll);graphicid++;graphic[graphicid]=graphicLayer.add(labelPointGraphicl);}} if(document.getElementById("plotlinetext").innerHTML=="Linjer (L)"||document.getElementById("plotlinetext").innerHTML=="Lines (L)"||document.getElementById("plotlinetext").innerHTML=="P/L"||document.getElementById("plotlinetext").innerHTML=="P/L "){cl_line=0;cl_colstep=0;cl_linestart=0;cl_value=document.getElementById("cl_textarea").value;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} cl_value=cl_value.replace(/\n\r?/g,'#');if(cl_value.lastIndexOf("#")+1!=cl_value.length){cl_value=cl_value+"#";} cl_lines=cl_value.split(/#/g).length;cl_graphic++;cl_value="#"+cl_value.slice(0,cl_value.length);if(navigator.appName=="Microsoft Internet Explorer"){cl_lines++;} cl_north_prev=0;cl_east_prev=0;while(cl_line<cl_lines-1){cl_line++;cl_value=cl_value.slice(cl_value.indexOf("#")+1,cl_value.length);cl_linepart=cl_value.slice(0,cl_value.indexOf("#"))+separator;if(cl_linepart.indexOf("tsskip")>0){} else{cl_linepart_label=cl_value.slice(0,cl_value.indexOf("#"));while(cl_colstep<cl_colnums){cl_colstep++;cl_colpart=cl_linepart.slice(0,cl_linepart.indexOf(separator));cl_linepart=cl_linepart.slice(cl_linepart.indexOf(separator)+1,cl_linepart.length);if(cl_colnum_label==cl_colstep){cl_colnum_label_text=cl_colpart;} if(cl_colnum_label==cl_colnums+1){cl_colnum_label_text=cl_linepart_label;} if(cl_colnum_north==cl_colstep){cl_north=cl_colpart;} if(cl_colnum_east==cl_colstep){cl_east=cl_colpart;}} cl_colstep=0;if(dataformat=="UTM33X"){cl_north=parseInt(cl_north,10);cl_east=parseInt(cl_east,10);} else if(dataformat=="UTM35X"){cl_north=parseInt(cl_north,10);cl_east=parseInt(cl_east,10);var pu35cl=proj4(u35,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pu35cl.slice(0,(pu35cl.indexOf(",")))));cl_north=Math.round(parseFloat(pu35cl.slice(pu35cl.indexOf(",")+1)));} else if(dataformat=="UTM29W"){cl_north=parseInt(cl_north,10);cl_east=parseInt(cl_east,10);var pu29cl=proj4(u29,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pu29cl.slice(0,(pu29cl.indexOf(",")))));cl_north=Math.round(parseFloat(pu29cl.slice(pu29cl.indexOf(",")+1)));} else if(dataformat==desgr){cl_north=parseFloat(cl_north.replace(",","."));cl_east=parseFloat(cl_east.replace(",","."));var pw84cl=proj4(w84,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pw84cl.slice(0,(pw84cl.indexOf(",")))));cl_north=Math.round(parseFloat(pw84cl.slice(pw84cl.indexOf(",")+1)));} graphicid++;var bbpw84cl=proj4(u33,w84,[cl_east,cl_north]).toString();var bbcl_east=Math.round(parseFloat(bbpw84cl.slice(0,(bbpw84cl.indexOf(",")))));var bbcl_north=Math.round(parseFloat(bbpw84cl.slice(bbpw84cl.indexOf(",")+1)));if(cl_north_prev!=0&&cl_east_prev!=0){polylineJson={"paths":[[[cl_east_prev,cl_north_prev],[cl_east,cl_north]]]};polyline=new esri.geometry.Polyline(polylineJson);graphic[graphicid]=graphicLayer.add(new esri.Graphic(polyline,polylineSymbol));if(cl_east_prev==undefined){cl_plotline=graphicid;}} cl_north_prev=cl_north;cl_east_prev=cl_east;}}} if(document.getElementById("plotlinetext").innerHTML=="Punkter (P)"||document.getElementById("plotlinetext").innerHTML=="Points (P)"||document.getElementById("plotlinetext").innerHTML=="P/L "||document.getElementById("plotlinetext").innerHTML=="P/L"){var cl_lineerr;clerror="";document.getElementById("cl_textareaerror").value="";cl_line=0;cl_colstep=0;cl_linestart=0;cl_value=document.getElementById("cl_textarea").value;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} cl_value=cl_value.replace(/\n\r?/g,'#');if(cl_value.lastIndexOf("#")+1!=cl_value.length){cl_value=cl_value+"#";} cl_lines=cl_value.split(/#/g).length;cl_graphic++;cl_value="#"+cl_value.slice(0,cl_value.length);if(navigator.appName=="Microsoft Internet Explorer"){cl_lines++;} while(cl_line<cl_lines-1){cl_line++;cl_value=cl_value.slice(cl_value.indexOf("#")+1,cl_value.length);cl_linepart=cl_value.slice(0,cl_value.indexOf("#"))+separator;if(cl_linepart.indexOf("tsskip")>0){} else{cl_lineerr=cl_value.slice(0,cl_value.indexOf("#"))+separator;while(cl_colstep<cl_colnums){cl_colstep++;cl_colpart=cl_linepart.slice(0,cl_linepart.indexOf(separator));cl_linepart=cl_linepart.slice(cl_linepart.indexOf(separator)+1,cl_linepart.length);if(cl_colnum_label==cl_colstep){cl_colnum_label_text=cl_colpart;} if(cl_colnum_north==cl_colstep){cl_north=cl_colpart;} if(cl_colnum_east==cl_colstep){cl_east=cl_colpart;}} cl_colstep=0;if(dataformat=="UTM33X"){cl_north=parseInt(cl_north,10);cl_east=parseInt(cl_east,10);} else if(dataformat=="UTM35X"){cl_north=parseInt(cl_north,10);cl_east=parseInt(cl_east,10);var pu35cl=proj4(u35,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pu35cl.slice(0,(pu35cl.indexOf(",")))));cl_north=Math.round(parseFloat(pu35cl.slice(pu35cl.indexOf(",")+1)));} else if(dataformat=="UTM29W"){cl_north=parseInt(cl_north,10);cl_east=parseInt(cl_east,10);var pu29cl=proj4(u29,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pu29cl.slice(0,(pu29cl.indexOf(",")))));cl_north=Math.round(parseFloat(pu29cl.slice(pu29cl.indexOf(",")+1)));} else if(dataformat==desgr){cl_north=parseFloat(cl_north.replace(",","."));cl_east=parseFloat(cl_east.replace(",","."));var pw84cl=proj4(w84,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pw84cl.slice(0,(pw84cl.indexOf(",")))));cl_north=Math.round(parseFloat(pw84cl.slice(pw84cl.indexOf(",")+1)));} var bbpw84cl=proj4(u33,w84,[cl_east,cl_north]).toString();var bbcl_east=Math.round(parseFloat(bbpw84cl.slice(0,(bbpw84cl.indexOf(",")))));var bbcl_north=Math.round(parseFloat(bbpw84cl.slice(bbpw84cl.indexOf(",")+1)));var datapoint={"geometry":{"x":cl_east,"y":cl_north},"attributes":{"Data":cl_value.slice(0,cl_value.indexOf("#"))+separator}};graphicz=new esri.Graphic(datapoint);graphicz.setSymbol(cl_markerSymbol);graphicid++;graphic[graphicid]=graphicLayer.add(graphicz);}} if(clerror!=""){document.getElementById("coordlistplot").style.border="2px solid #ff0000";document.getElementById("cl_textarea").style.height="200px";document.getElementById("cl_textareaerror").style.display="block";clerror="";} else{document.getElementById("cl_textareaerror").style.display="none";}} if(separator=="\t"){separator="[TAB]";} if(separator==" "){separator="[SPACE]";}} else{if(trackshow==1){var ronde;cl_line=0;cl_linestart=0;cl_value=document.getElementById("cl_textarea").value;cl_value=cl_value.replace(/\n\r?/g,'#');if(cl_value.lastIndexOf("#")+1!=cl_value.length){cl_value=cl_value+"#";} cl_lines=cl_value.split(/#/g).length;cl_graphic++;cl_value="#"+cl_value.slice(0,cl_value.length);if(navigator.appName=="Microsoft Internet Explorer"){cl_lines++;} while(cl_line<cl_lines-1){cl_colnum_label_text="(Blank)";cl_line++;cl_value=cl_value.slice(cl_value.indexOf("#")+1,cl_value.length);cl_linepart=cl_value.slice(0,cl_value.indexOf("#"))+separator;if(cl_linepart.search("<trkseg>")>-1){var runde=0;cl_north_prev=0;cl_east_prev=0;cl_north=0;cl_east=0;i=0;for(i=0;i<=99999999;i++){cl_line++;if(cl_linepart.search("\x3C/trkseg\x3E")>-1){break;} if(cl_north!=0){cl_north_prev=cl_north;cl_east_prev=cl_east;} cl_value=cl_value.slice(cl_value.indexOf("#")+1,cl_value.length);cl_linepart=cl_value.slice(0,cl_value.indexOf("#"))+separator;if(cl_linepart.search("trkpt lat=")>-1){if(tracksimp==1){runde++;ronde="r"+runde;if(ronde.slice(ronde.lastIndexOf("0"),ronde.length)=="0"){cl_north=cl_linepart.slice(cl_linepart.search("lat=")+5,cl_linepart.search(" lon=")-1);cl_east=cl_linepart.slice(cl_linepart.search("lon=")+5,cl_linepart.search(">")-1);cl_north=parseFloat(cl_north.replace(",","."));cl_east=parseFloat(cl_east.replace(",","."));var pw84g=proj4(w84,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pw84g.slice(0,(pw84g.indexOf(",")))));cl_north=Math.round(parseFloat(pw84g.slice(pw84g.indexOf(",")+1)));if(cl_north_prev==0){cl_north_prev=cl_north;cl_east_prev=cl_east;} polylineJson={"paths":[[[cl_east_prev,cl_north_prev],[cl_east,cl_north]]]};polyline=new esri.geometry.Polyline(polylineJson);var bbpw84cl=proj4(u33,w84,[cl_east,cl_north]).toString();var bbcl_east=Math.round(parseFloat(bbpw84cl.slice(0,(bbpw84cl.indexOf(",")))));var bbcl_north=Math.round(parseFloat(bbpw84cl.slice(bbpw84cl.indexOf(",")+1)));var bbpw84cl_prev=proj4(u33,w84,[cl_east_prev,cl_north_prev]).toString();var bbcl_east_prev=Math.round(parseFloat(bbpw84cl.slice(0,(bbpw84cl.indexOf(",")))));var bbcl_north_prev=Math.round(parseFloat(bbpw84cl.slice(bbpw84cl.indexOf(",")+1)));graphicid++;graphic[graphicid]=graphicLayer.add(new esri.Graphic(polyline,polylineSymbol));if(cl_east_prev==undefined){cl_plotline=graphicid;}}} else{cl_north=cl_linepart.slice(cl_linepart.search("lat=")+5,cl_linepart.search(" lon=")-1);cl_east=cl_linepart.slice(cl_linepart.search("lon=")+5,cl_linepart.search(">")-1);cl_north=parseFloat(cl_north.replace(",","."));cl_east=parseFloat(cl_east.replace(",","."));var pw84g=proj4(w84,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pw84g.slice(0,(pw84g.indexOf(",")))));cl_north=Math.round(parseFloat(pw84g.slice(pw84g.indexOf(",")+1)));if(cl_north_prev==0){cl_north_prev=cl_north;cl_east_prev=cl_east;} polylineJson={"paths":[[[cl_east_prev,cl_north_prev],[cl_east,cl_north]]]};polyline=new esri.geometry.Polyline(polylineJson);var bbpw84cl=proj4(u33,w84,[cl_east,cl_north]).toString();var bbcl_east=Math.round(parseFloat(bbpw84cl.slice(0,(bbpw84cl.indexOf(",")))));var bbcl_north=Math.round(parseFloat(bbpw84cl.slice(bbpw84cl.indexOf(",")+1)));var bbpw84cl_prev=proj4(u33,w84,[cl_east_prev,cl_north_prev]).toString();var bbcl_east_prev=Math.round(parseFloat(bbpw84cl.slice(0,(bbpw84cl.indexOf(",")))));var bbcl_north_prev=Math.round(parseFloat(bbpw84cl.slice(bbpw84cl.indexOf(",")+1)));graphicid++;graphic[graphicid]=graphicLayer.add(new esri.Graphic(polyline,polylineSymbol));if(cl_east_prev==undefined){cl_plotline=graphicid;}}}}}}} cl_line=0;cl_linestart=0;cl_value=document.getElementById("cl_textarea").value;cl_value=cl_value.replace(/\n\r?/g,'#');if(cl_value.lastIndexOf("#")+1!=cl_value.length){cl_value=cl_value+"#";} cl_lines=cl_value.split(/#/g).length;if(waypointshow==1){cl_graphic++;} if(nameshow==1){cl_graphic++;} cl_value="#"+cl_value.slice(0,cl_value.length);if(navigator.appName=="Microsoft Internet Explorer"){cl_lines++;} if(waypointshow==1||nameshow==1){while(cl_line<cl_lines-1){cl_colnum_label_text="(Blank)";cl_line++;cl_value=cl_value.slice(cl_value.indexOf("#")+1,cl_value.length);cl_linepart=cl_value.slice(0,cl_value.indexOf("#"))+separator;if(cl_linepart.search("wpt lat=")>-1){cl_north=cl_linepart.slice(cl_linepart.search("lat=")+5,cl_linepart.search(" lon=")-1);cl_east=cl_linepart.slice(cl_linepart.search("lon=")+5,cl_linepart.search(">")-1);cl_north=parseFloat(cl_north.replace(",","."));cl_east=parseFloat(cl_east.replace(",","."));var pw84g=proj4(w84,u33,[cl_east,cl_north]).toString();cl_east=Math.round(parseFloat(pw84g.slice(0,(pw84g.indexOf(",")))));cl_north=Math.round(parseFloat(pw84g.slice(pw84g.indexOf(",")+1)));var bbpw84cl=proj4(u33,w84,[cl_east,cl_north]).toString();var bbcl_east=Math.round(parseFloat(bbpw84cl.slice(0,(bbpw84cl.indexOf(",")))));var bbcl_north=Math.round(parseFloat(bbpw84cl.slice(bbpw84cl.indexOf(",")+1)));if(waypointshow==1){ptl=new esri.geometry.Point(cl_east,cl_north);symboll=cl_markerSymbol;graphicz=new esri.Graphic(ptl,symboll);graphicid++;graphic[graphicid]=graphicLayer.add(graphicz);} if(nameshow==1){i=0;for(i=0;i<=99999999;i++){cl_line++;cl_value=cl_value.slice(cl_value.indexOf("#")+1,cl_value.length);cl_linepart=cl_value.slice(0,cl_value.indexOf("#"))+separator;if(cl_linepart.indexOf("<name>")>-1){cl_colnum_label_text=cl_linepart.replace("<name>","");cl_colnum_label_text=cl_colnum_label_text.replace("\x3C/name\x3E;","");textSymboll=new esri.symbol.TextSymbol("\u00A0"+cl_colnum_label_text,fontl,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);pttl=new esri.geometry.Point(cl_east,cl_north);labelPointGraphicl=new esri.Graphic(pttl,textSymboll);graphicid++;graphic[graphicid]=graphicLayer.add(labelPointGraphicl);break;} if(cl_linepart.indexOf("\x3C/wpt\x3E")>-1){break;}}}}}} cl_lines=graphicid-cl_graphicidstart;}}} wrapperv="1";} function plotdown(){if(language=="no"){document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src="plot_points_no_down.png";} else if(language=="en"){document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src="plot_points_en_down.png";}} function plotup(){if(language=="no"){document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src="plot_points_no.png";} else if(language=="en"){document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src="plot_points_en.png";}} function dataformatbuttonf(event){updated=1;if(dataformat==desgr){dataformat="UTM33X";} else if(dataformat=="UTM33X"){dataformat="UTM35X";} else if(dataformat=="UTM35X"){dataformat="UTM29W";} else if(dataformat=="UTM29W"){dataformat=desgr;} document.getElementById('dataformattext').innerHTML=dataformat;} function dataformatbackbuttonf(event){updated=1;if(dataformat==desgr){dataformat="UTM29W";} else if(dataformat=="UTM29W"){dataformat="UTM35X";} else if(dataformat=="UTM35X"){dataformat="UTM33X";} else if(dataformat=="UTM33X"){dataformat=desgr;} document.getElementById('dataformattext').innerHTML=dataformat;} function separatorbuttonf(event){updated=1;if(separator==" "){separator="[SPACE]";} if(separator=="\t"){separator="[TAB]";} if(separator==";"){separator="[TAB]";} else if(separator=="[TAB]"){separator="[SPACE]";} else if(separator=="[SPACE]"){separator=",";} else if(separator==","){separator=";";} document.getElementById('separatortext').innerHTML=separator;} function separatorbackbuttonf(event){updated=1;if(separator==" "){separator="[SPACE]";} if(separator=="\t"){separator="[TAB]";} if(separator==";"){separator=",";} else if(separator==","){separator="[SPACE]";} else if(separator=="[SPACE]"){separator="[TAB]";} else if(separator=="[TAB]"){separator=";";} document.getElementById('separatortext').innerHTML=separator;} function labelbuttonf(event){updated=1;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} var cl_valuetmp=(document.getElementById("cl_textarea").value).replace(/\n\r?/g,'#');cl_valuetmp=cl_valuetmp.slice(0,cl_valuetmp.indexOf("#"));var cl_colnums=(cl_valuetmp.split(separator).length-1)+1;cl_colnum_label++;if(cl_colnum_label<=cl_colnums){document.getElementById('labeltext').innerHTML=cl_colnum_label+"/"+cl_colnums;} else if(cl_colnum_label==cl_colnums+1){document.getElementById('labeltext').innerHTML="1-"+cl_colnums;} else if(cl_colnum_label>cl_colnums+1){cl_colnum_label=0;document.getElementById('labeltext').innerHTML=cl_colnum_label+"/"+cl_colnums;}} function labelbackbuttonf(event){updated=1;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} var cl_valuetmp=(document.getElementById("cl_textarea").value).replace(/\n\r?/g,'#');cl_valuetmp=cl_valuetmp.slice(0,cl_valuetmp.indexOf("#"));var cl_colnums=(cl_valuetmp.split(separator).length-1)+1;cl_colnum_label--;if(cl_colnum_label==-1){cl_colnum_label=cl_colnums+1;document.getElementById('labeltext').innerHTML="1-"+cl_colnums;} else if(cl_colnum_label<=cl_colnums){document.getElementById('labeltext').innerHTML=cl_colnum_label+"/"+cl_colnums;} else if(cl_colnum_label==cl_colnums+1){document.getElementById('labeltext').innerHTML="1-"+cl_colnums;} else if(cl_colnum_label>cl_colnums+1){cl_colnum_label=0;document.getElementById('labeltext').innerHTML=cl_colnum_label+"/"+cl_colnums;}} function northbuttonf(event){updated=1;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} var cl_valuetmp=(document.getElementById("cl_textarea").value).replace(/\n\r?/g,'#');cl_valuetmp=cl_valuetmp.slice(0,cl_valuetmp.indexOf("#"));var cl_colnums=(cl_valuetmp.split(separator).length-1)+1;cl_colnum_north++;if(cl_colnum_north<=cl_colnums){document.getElementById('northtext').innerHTML=cl_colnum_north+"/"+cl_colnums;} else{cl_colnum_north=1;document.getElementById('northtext').innerHTML=cl_colnum_north+"/"+cl_colnums;}} function northbackbuttonf(event){updated=1;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} var cl_valuetmp=(document.getElementById("cl_textarea").value).replace(/\n\r?/g,'#');cl_valuetmp=cl_valuetmp.slice(0,cl_valuetmp.indexOf("#"));var cl_colnums=(cl_valuetmp.split(separator).length-1)+1;cl_colnum_north--;if(cl_colnum_north==0){cl_colnum_north=cl_colnums;document.getElementById('northtext').innerHTML=cl_colnum_north+"/"+cl_colnums;} else if(cl_colnum_north<=cl_colnums){document.getElementById('northtext').innerHTML=cl_colnum_north+"/"+cl_colnums;} else{cl_colnum_north=1;document.getElementById('northtext').innerHTML=cl_colnum_north+"/"+cl_colnums;}} function eastbuttonf(event){updated=1;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} var cl_valuetmp=(document.getElementById("cl_textarea").value).replace(/\n\r?/g,'#');cl_valuetmp=cl_valuetmp.slice(0,cl_valuetmp.indexOf("#"));cl_colnums=(cl_valuetmp.split(separator).length-1)+1;cl_colnum_east++;if(cl_colnum_east<=cl_colnums){document.getElementById('easttext').innerHTML=cl_colnum_east+"/"+cl_colnums;} else{cl_colnum_east=1;document.getElementById('easttext').innerHTML=cl_colnum_east+"/"+cl_colnums;}} function eastbackbuttonf(event){updated=1;if(separator=="[TAB]"){separator="\t";} if(separator=="[SPACE]"){separator=" ";} var cl_valuetmp=(document.getElementById("cl_textarea").value).replace(/\n\r?/g,'#');cl_valuetmp=cl_valuetmp.slice(0,cl_valuetmp.indexOf("#"));cl_colnums=(cl_valuetmp.split(separator).length-1)+1;cl_colnum_east--;if(cl_colnum_east==0){cl_colnum_east=cl_colnums;document.getElementById('easttext').innerHTML=cl_colnum_east+"/"+cl_colnums;} else if(cl_colnum_east<=cl_colnums){document.getElementById('easttext').innerHTML=cl_colnum_east+"/"+cl_colnums;} else{cl_colnum_east=1;document.getElementById('easttext').innerHTML=cl_colnum_east+"/"+cl_colnums;}} function plotlinebuttonf(event){if(language=="no"){if(document.getElementById("plotlinetext").innerHTML=="Punkter (P)"){document.getElementById("plotlinetext").innerHTML="Linjer (L)";} else if(document.getElementById("plotlinetext").innerHTML=="Linjer (L)"){document.getElementById("plotlinetext").innerHTML="P/L ";} else if(document.getElementById("plotlinetext").innerHTML=="P/L "){document.getElementById("plotlinetext").innerHTML="Punkter (P)";}} else if(language=="en"){if(document.getElementById("plotlinetext").innerHTML=="Points (P)"){document.getElementById("plotlinetext").innerHTML="Lines (L)";} else if(document.getElementById("plotlinetext").innerHTML=="Lines (L)"){document.getElementById("plotlinetext").innerHTML="P/L";} else if(document.getElementById("plotlinetext").innerHTML=="P/L"){document.getElementById("plotlinetext").innerHTML="Points (P)";}}} function plotlinebackbuttonf(event){if(language=="no"){if(document.getElementById("plotlinetext").innerHTML=="Punkter (P)"){document.getElementById("plotlinetext").innerHTML="P/L ";} else if(document.getElementById("plotlinetext").innerHTML=="P/L "){document.getElementById("plotlinetext").innerHTML="Linjer (L)";} else if(document.getElementById("plotlinetext").innerHTML=="Linjer (L)"){document.getElementById("plotlinetext").innerHTML="Punkter (P)";}} else if(language=="en"){if(document.getElementById("plotlinetext").innerHTML=="Points (P)"){document.getElementById("plotlinetext").innerHTML="P/L";} else if(document.getElementById("plotlinetext").innerHTML=="P/L"){document.getElementById("plotlinetext").innerHTML="Lines (L)";} else if(document.getElementById("plotlinetext").innerHTML=="Lines (L)"){document.getElementById("plotlinetext").innerHTML="Points (P)";}}} function waypointbuttonf(event){if(waypointshow==1){document.getElementById("waypointtext").style.textDecoration="line-through";waypointshow=0;} else if(waypointshow==0){document.getElementById("waypointtext").style.textDecoration="none";waypointshow=1;}} function namebuttonf(event){if(nameshow==1){document.getElementById("nametext").style.textDecoration="line-through";nameshow=0;} else if(nameshow==0){document.getElementById("nametext").style.textDecoration="none";nameshow=1;}} function trackbuttonf(event){if(trackshow==1){document.getElementById("tracktext").style.textDecoration="line-through";trackshow=0;document.getElementById("tracksimpbutton").style.display="none";document.getElementById("tracksimptext").style.display="none";} else if(trackshow==0){document.getElementById("tracktext").style.textDecoration="none";trackshow=1;document.getElementById("tracksimpbutton").style.display="block";document.getElementById("tracksimptext").style.display="block";}} function tracksimpf(event){if(tracksimp==1){document.getElementById("tracksimptext").style.textDecoration="line-through";tracksimp=0;} else if(tracksimp==0){document.getElementById("tracksimptext").style.textDecoration="none";tracksimp=1;}} function cl_default(){if(document.getElementById("cl_textarea").value==""){wrapperv="1";document.getElementById("cl_textarea").wrap="on";if(datatype=="datalist"){document.getElementById("cl_textarea").value=cl_textarea_default;} if(datatype=="GPX"){document.getElementById("cl_textarea").value=gpx_textarea_default;}}} function zoomto(geometry){backgrounddefaultf();var northtmp;var easttmp;var ddlabel;var dmlabel;var dmslabel;var coordformatcurrent="";coordgetcancel();map.setMapCursor("default");coordok="0";cl_graphic=0;zoomnorthform=document.zoomnorthform;zoomeastform=document.zoomeastform;northtmp=zoomnorthform.north.value;easttmp=zoomeastform.east.value;eastwest=1;if(easttmp.slice(0,1)=="-"){easttmp=easttmp.substr(1);eastwest=-1;} if(easttmp.slice(easttmp.length-1)=="W"||easttmp.slice(easttmp.length-1)=="w"||easttmp.slice(easttmp.length-1)=="V"||easttmp.slice(easttmp.length-1)=="v"){easttmp=easttmp.replace("W","");easttmp=easttmp.replace("w","");easttmp=easttmp.replace("V","");easttmp=easttmp.replace("v","");eastwest=-1;} if(northtmp.length<3){northtmp=northtmp+".0";} if(easttmp.length<3){easttmp=easttmp+".0";} if(easttmp.slice(0,2)=="0."){easttmp="0"+easttmp;} if(easttmp.slice(0,2)=="0,"){easttmp="0"+easttmp;} if(northtmp!=""&&easttmp!=""&&northtmp!="Nord/B.gr."&&easttmp!="Øst/L.gr."&&northtmp!="North/Lat."&&easttmp!="East/Long."){northtmp=(northtmp).replace(",",".");northtmp=(northtmp).replace(":"," ");northtmp=(northtmp).replace("N"," ");northtmp=(northtmp).replace("xN","X");northtmp=(northtmp).replace("xn","X");northtmp=(northtmp).replace("d"," ");northtmp=(northtmp).replace("n"," ");northtmp=(northtmp).replace("'"," ");northtmp=(northtmp).replace("''"," ");northtmp=(northtmp).replace("˚"," ");northtmp=(northtmp).replace("°"," ");northtmp=(northtmp).replace("º"," ");northtmp=(northtmp).replace("′"," ");northtmp=(northtmp).replace("″"," ");northtmp=(northtmp).replace("\""," ");northtmp=(northtmp).replace(/ /g," ");while(northtmp.slice(0,1)==" "){if(northtmp.slice(0,1)==" "){northtmp=northtmp.slice(1,northtmp.length);}} while(northtmp.lastIndexOf(" ")==northtmp.length-1){if(northtmp.lastIndexOf(" ")==northtmp.length-1){northtmp=northtmp.slice(0,northtmp.length-1);}} var northcheck;northcheck=northtmp;var koordn2=northcheck.charAt(2);var koordn4=northcheck.charAt(4);var koordn5=northcheck.charAt(5);var zoomeastform;easttmp=(easttmp).replace(",",".");easttmp=(easttmp).replace(":"," ");easttmp=(easttmp).replace("d"," ");easttmp=(easttmp).replace("xE","X");easttmp=(easttmp).replace("xe","X");easttmp=(easttmp).replace("Ø"," ");easttmp=(easttmp).replace("ø"," ");easttmp=(easttmp).replace("Ö"," ");easttmp=(easttmp).replace("ö"," ");easttmp=(easttmp).replace("E0"," ");easttmp=(easttmp).replace("E"," ");easttmp=(easttmp).replace("e0"," ");easttmp=(easttmp).replace("e"," ");easttmp=(easttmp).replace("'"," ");easttmp=(easttmp).replace("''"," ");easttmp=(easttmp).replace("˚"," ");easttmp=(easttmp).replace("°"," ");easttmp=(easttmp).replace("º"," ");easttmp=(easttmp).replace("′"," ");easttmp=(easttmp).replace("″"," ");easttmp=(easttmp).replace("\""," ");easttmp=(easttmp).replace(/ /g," ");if(easttmp.charAt(0)=="0"){easttmp=easttmp.slice(1,easttmp.length);} if(easttmp.charAt(0)=="0"){easttmp=easttmp.slice(1,easttmp.length);} while(easttmp.slice(0,1)==" "){if(easttmp.slice(0,1)==" "){easttmp=easttmp.slice(1,easttmp.length);}} while(easttmp.lastIndexOf(" ")==easttmp.length-1){if(easttmp.lastIndexOf(" ")==easttmp.length-1){easttmp=easttmp.slice(0,easttmp.length-1);}} var eastcheck;eastcheck=easttmp;var koorde1=eastcheck.charAt(1);var koorde2=eastcheck.charAt(2);var koorde3=eastcheck.charAt(3);var koorde4=eastcheck.charAt(4);var koorde5=eastcheck.charAt(5);if(language=="no"){if(document.textinputform.textinputtext.value=="nål"||document.textinputform.textinputtext.value=="rød nål"){symbol=new esri.symbol.PictureMarkerSymbol({"url":"markerredpin.png","width":12,"height":15,"yoffset":7});} else if(document.textinputform.textinputtext.value=="gul nål"){symbol=new esri.symbol.PictureMarkerSymbol({"url":"markeryellowpin.png","width":12,"height":15,"yoffset":7});} else if(document.textinputform.textinputtext.value=="blå nål"){symbol=new esri.symbol.PictureMarkerSymbol({"url":"markerbluepin.png","width":12,"height":15,"yoffset":7});} else if(document.textinputform.textinputtext.value=="grønn nål"){symbol=new esri.symbol.PictureMarkerSymbol({"url":"markergreenpin.png","width":12,"height":15,"yoffset":7});} else{symbol=new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27);}} else{if(document.textinputform.textinputtext.value.toLowerCase()=="pin"||document.textinputform.textinputtext.value=="red pin"){symbol=new esri.symbol.PictureMarkerSymbol({"url":"markerredpin.png","width":12,"height":15,"yoffset":7});} else if(document.textinputform.textinputtext.value.toLowerCase()=="yellow pin"){symbol=new esri.symbol.PictureMarkerSymbol({"url":"markeryellowpin.png","width":12,"height":15,"yoffset":7});} else if(document.textinputform.textinputtext.value.toLowerCase()=="blue pin"){symbol=new esri.symbol.PictureMarkerSymbol({"url":"markerbluepin.png","width":12,"height":15,"yoffset":7});} else if(document.textinputform.textinputtext.value.toLowerCase()=="green pin"){symbol=new esri.symbol.PictureMarkerSymbol({"url":"markergreenpin.png","width":12,"height":15,"yoffset":7});} else{symbol=new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27);}} if(koordn2=="."&&koorde1=="."){zoomnorthform=document.zoomnorthform;north=parseFloat((((parseFloat(northtmp))*100000)/100000).toFixed(5));northtmp=north;zoomeastform=document.zoomeastform;east=parseFloat((((parseFloat(easttmp))*100000)/100000).toFixed(5));easttmp=east;zoomeastform=document.zoomeastform;east=east*eastwest;var pw84z=proj4(w84,u33,[east,north]).toString();var pw84zx=parseFloat(pw84z.slice(0,(pw84z.indexOf(","))));var pw84zy=parseFloat(pw84z.slice(pw84z.indexOf(",")+1));if(north>66&&north<89&&east>-30&&east<60){coordok="1";pt=new esri.geometry.Point(pw84zx,pw84zy,new esri.SpatialReference({wkid:25833}));map.centerAndZoom(pt,4);graphicz=new esri.Graphic(pt,symbol);graphicid++;graphic[graphicid]=graphicLayer.add(graphicz);if(eastwest==1){ddlabel=north+"°N, "+east+"°"+direast;} else{ddlabel=north+"°N, "+(east*-1)+"°"+dirwest;} textSymbol=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+ddlabel,font,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);ptt=new esri.geometry.Point(pw84zx,pw84zy);labelPointGraphic=new esri.Graphic(ptt,textSymbol);graphicid++;graphic[graphicid]=graphicLayer.add(labelPointGraphic);} coordformatcurrent="dd";} if(koordn2=="."&&koorde2=="."){zoomnorthform=document.zoomnorthform;north=parseFloat((((parseFloat(northtmp))*100000)/100000).toFixed(5));northtmp=north;zoomeastform=document.zoomeastform;east=parseFloat((((parseFloat(easttmp))*100000)/100000).toFixed(5));easttmp=east;zoomeastform=document.zoomeastform;east=east*eastwest;var pw84z=proj4(w84,u33,[east,north]).toString();var pw84zx=parseFloat(pw84z.slice(0,(pw84z.indexOf(","))));var pw84zy=parseFloat(pw84z.slice(pw84z.indexOf(",")+1));if(north>66&&north<89&&east>-30&&east<60){coordok="1";pt=new esri.geometry.Point(pw84zx,pw84zy,new esri.SpatialReference({wkid:25833}));map.centerAndZoom(pt,4);graphicz=new esri.Graphic(pt,symbol);graphicid++;graphic[graphicid]=graphicLayer.add(graphicz);if(eastwest==1){ddlabel=north+"°N, "+east+"°"+direast;} else{ddlabel=north+"°N, "+(east*-1)+"°"+dirwest;} textSymbol=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+ddlabel,font,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);ptt=new esri.geometry.Point(pw84zx,pw84zy);labelPointGraphic=new esri.Graphic(ptt,textSymbol);graphicid++;graphic[graphicid]=graphicLayer.add(labelPointGraphic);} coordformatcurrent="dd";} else if(koordn2==" "&&(koorde2==" "||koorde1==" ")&&koordn5!=" "&&koorde5!=" "&&koordn4!=" "&&koorde4!=" "){zoomnorthform=document.zoomnorthform;northd=parseFloat(northtmp.slice(0,2));northm=parseFloat(northtmp.slice(3,15));zoomeastform=document.zoomeastform;if(koorde1==" "){eastd=parseFloat(easttmp.slice(0,1));eastm=parseFloat(easttmp.slice(2,15));} else{eastd=parseFloat(easttmp.slice(0,2));eastm=parseFloat(easttmp.slice(3,15));} north=northd+(northm/60);east=eastd+(eastm/60);east=east*eastwest;var pw84z=proj4(w84,u33,[east,north]).toString();var pw84zx=parseFloat(pw84z.slice(0,(pw84z.indexOf(","))));var pw84zy=parseFloat(pw84z.slice(pw84z.indexOf(",")+1));if(north>66&&north<89&&east>-30&&east<60&&northm<60&&eastm<60){coordok="1";pt=new esri.geometry.Point(pw84zx,pw84zy,new esri.SpatialReference({wkid:25833}));map.centerAndZoom(pt,4);graphicz=new esri.Graphic(pt,symbol);graphicid++;graphic[graphicid]=graphicLayer.add(graphicz);northm=northtmp.slice(3,15);if(northm.substr(northm.indexOf(".")+4,1)<5){northm=Math.floor(northm*1000)/1000;} else if(northm.substr(northm.indexOf(".")+4,1)>4){northm=Math.ceil(northm*1000)/1000;} if(northm<10){northtmp=northd+" 0"+(((parseFloat(northtmp.slice(3,15)))*1000)/1000).toFixed(3);} else{northtmp=northd+" "+(((parseFloat(northtmp.slice(3,15)))*1000)/1000).toFixed(3);} if(koorde1==" "){eastm=easttmp.slice(2,15);} else{eastm=easttmp.slice(3,15);} if(eastm.substr(eastm.indexOf(".")+4,1)<5){eastm=Math.floor(eastm*1000)/1000;} else if(eastm.substr(eastm.indexOf(".")+4,1)>4){eastm=Math.ceil(eastm*1000)/1000;} if(eastm<10){easttmp=eastd+" 0"+(((parseFloat(easttmp.slice(3,15)))*1000)/1000).toFixed(3);} else{easttmp=eastd+" "+(((parseFloat(easttmp.slice(3,15)))*1000)/1000).toFixed(3);} if(northm<10){northm="0"+northm;} if(eastm<10){eastm="0"+eastm;} if(northm==60){northd++;northm="00";} if(eastm==60){eastd++;eastm="00";} if(eastwest==1){dmlabel=northd+"°"+northm+"'N, "+eastd+"°"+eastm+"'"+direast;} else{dmlabel=northd+"°"+northm+"'N, "+eastd+"°"+eastm+"'"+dirwest;} textSymbol=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+dmlabel,font,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);ptt=new esri.geometry.Point(pw84zx,pw84zy);labelPointGraphic=new esri.Graphic(ptt,textSymbol);graphicid++;graphic[graphicid]=graphicLayer.add(labelPointGraphic);} coordformatcurrent="dm";} else if(koordn2==" "&&koorde2==" "&&koordn4==" "&&koorde4==" "){northd=parseFloat(northtmp.slice(0,2));northm=parseFloat(northtmp.slice(3,4));norths=parseFloat(northtmp.slice(5,100));eastd=parseFloat(easttmp.slice(0,2));eastm=parseFloat(easttmp.slice(3,4));easts=parseFloat(easttmp.slice(5,100));coordformatcurrent="dms";} else if(koordn2==" "&&koorde2==" "&&koordn4==" "&&koorde5==" "){northd=parseFloat(northtmp.slice(0,2));northm=parseFloat(northtmp.slice(3,4));norths=parseFloat(northtmp.slice(5,100));eastd=parseFloat(easttmp.slice(0,2));eastm=parseFloat(easttmp.slice(3,5));easts=parseFloat(easttmp.slice(6,100));coordformatcurrent="dms";} else if(koordn2==" "&&koorde2==" "&&koordn5==" "&&koorde4==" "){northd=parseFloat(northtmp.slice(0,2));northm=parseFloat(northtmp.slice(3,5));norths=parseFloat(northtmp.slice(6,100));eastd=parseFloat(easttmp.slice(0,2));eastm=parseFloat(easttmp.slice(3,4));easts=parseFloat(easttmp.slice(5,100));coordformatcurrent="dms";} else if(koordn2==" "&&koorde2==" "&&koordn5==" "&&koorde5==" "){northd=parseFloat(northtmp.slice(0,2));northm=parseFloat(northtmp.slice(3,5));norths=parseFloat(northtmp.slice(6,100));eastd=parseFloat(easttmp.slice(0,2));eastm=parseFloat(easttmp.slice(3,5));easts=parseFloat(easttmp.slice(6,100));coordformatcurrent="dms";} else if(koordn2==" "&&koorde1==" "&&koordn4==" "&&koorde3==" "){northd=parseFloat(northtmp.slice(0,2));northm=parseFloat(northtmp.slice(3,4));norths=parseFloat(northtmp.slice(5,100));eastd=parseFloat(easttmp.slice(0,1));eastm=parseFloat(easttmp.slice(2,3));easts=parseFloat(easttmp.slice(4,100));coordformatcurrent="dms";} else if(koordn2==" "&&koorde1==" "&&koordn4==" "&&koorde4==" "){northd=parseFloat(northtmp.slice(0,2));northm=parseFloat(northtmp.slice(3,4));norths=parseFloat(northtmp.slice(5,100));eastd=parseFloat(easttmp.slice(0,1));eastm=parseFloat(easttmp.slice(2,4));easts=parseFloat(easttmp.slice(5,100));coordformatcurrent="dms";} else if(koordn2==" "&&koorde1==" "&&koordn5==" "&&koorde3==" "){northd=parseFloat(northtmp.slice(0,2));northm=parseFloat(northtmp.slice(3,5));norths=parseFloat(northtmp.slice(6,100));eastd=parseFloat(easttmp.slice(0,1));eastm=parseFloat(easttmp.slice(2,3));easts=parseFloat(easttmp.slice(4,100));coordformatcurrent="dms";} else if(koordn2==" "&&koorde1==" "&&koordn5==" "&&koorde4==" "){northd=parseFloat(northtmp.slice(0,2));northm=parseFloat(northtmp.slice(3,5));norths=parseFloat(northtmp.slice(6,100));eastd=parseFloat(easttmp.slice(0,1));eastm=parseFloat(easttmp.slice(2,4));easts=parseFloat(easttmp.slice(5,100));coordformatcurrent="dms";} if(coordformatcurrent=="dms"){north=northd+(northm/60)+(norths/3600);east=eastd+(eastm/60)+(easts/3600);east=east*eastwest;var pw84z=proj4(w84,u33,[east,north]).toString();var pw84zx=parseFloat(pw84z.slice(0,(pw84z.indexOf(","))));var pw84zy=parseFloat(pw84z.slice(pw84z.indexOf(",")+1));if(north>66&&north<89&&east>-30&&east<60&&northm<60&&eastm<60&&norths<60&&easts<60){coordok="1";pt=new esri.geometry.Point(pw84zx,pw84zy,new esri.SpatialReference({wkid:25833}));map.centerAndZoom(pt,4);graphicz=new esri.Graphic(pt,symbol);graphicid++;graphic[graphicid]=graphicLayer.add(graphicz);northtmp="tmp"+norths;easttmp="tmp"+easts;if(northtmp.substr(northtmp.indexOf(".")+2,1)<5){norths=Math.floor(norths*10)/10;} else if(northtmp.substr(northtmp.indexOf(".")+2,1)>4){norths=Math.ceil(norths*10)/10;} if(easttmp.substr(easttmp.indexOf(".")+2,1)<5){easts=Math.floor(easts*10)/10;} else if(easttmp.substr(easttmp.indexOf(".")+2,1)>4){easts=Math.ceil(easts*10)/10;} if(northm<10){northm="0"+northm;} if(eastm<10){eastm="0"+eastm;} if(norths<10){norths="0"+norths;} if(easts<10){easts="0"+easts;} if(norths==60){northm++;norths="00";} if(northm==60){northd++;northm="00";} if(easts==60){eastm++;easts="00";} if(eastm==60){eastd++;eastm="00";} if(eastwest==1){dmslabel=northd+"°"+northm+"'"+norths+"\"N, "+eastd+"°"+eastm+"'"+easts+"\""+direast;} else{dmslabel=northd+"°"+northm+"'"+norths+"\"N, "+eastd+"°"+eastm+"'"+easts+"\""+dirwest;} textSymbol=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+dmslabel,font,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);ptt=new esri.geometry.Point(pw84zx,pw84zy);labelPointGraphic=new esri.Graphic(ptt,textSymbol);graphicid++;graphic[graphicid]=graphicLayer.add(labelPointGraphic);} coordformatcurrent="dms";} var utmcoordzone="0";var utmnorth="0";var utmeast="0";var utmlong;var utmconvx;var utmconvy;if(northcheck.length==10&&eastcheck.length==9&&northcheck.search("-")==-1&&eastcheck.search("-")==-1&&(northcheck.slice(0,2)==eastcheck.slice(0,2))){utmcoordzone=northcheck.slice(0,2);coordformatcurrent="utm";zoomnorthform=document.zoomnorthform;north=northcheck.slice(3);north=parseFloat(north);zoomeastform=document.zoomeastform;east=eastcheck.slice(3);east=parseFloat(east);if(utmcoordzone=="26"){utmlong=proj4(u26,w84,[east,north]).toString();} if(utmcoordzone=="27"){utmlong=proj4(u27,w84,[east,north]).toString();} if(utmcoordzone=="28"){utmlong=proj4(u28,w84,[east,north]).toString();} if(utmcoordzone=="29"){utmlong=proj4(u29,w84,[east,north]).toString();} if(utmcoordzone=="30"){utmlong=proj4(u30,w84,[east,north]).toString();} if(utmcoordzone=="31"){utmlong=proj4(u31,w84,[east,north]).toString();} if(utmcoordzone=="32"){utmlong=proj4(u32,w84,[east,north]).toString();} if(utmcoordzone=="33"){utmlong=proj4(u33,w84,[east,north]).toString();} if(utmcoordzone=="34"){utmlong=proj4(u34,w84,[east,north]).toString();} if(utmcoordzone=="35"){utmlong=proj4(u35,w84,[east,north]).toString();} if(utmcoordzone=="36"){utmlong=proj4(u36,w84,[east,north]).toString();} if(utmcoordzone=="37"){utmlong=proj4(u37,w84,[east,north]).toString();} if(utmcoordzone=="38"){utmlong=proj4(u38,w84,[east,north]).toString();} if(utmcoordzone=="39"){utmlong=proj4(u39,w84,[east,north]).toString();} if(utmcoordzone=="40"){utmlong=proj4(u40,w84,[east,north]).toString();} utmconvx=parseFloat(utmlong.slice(0,(utmlong.indexOf(","))));utmconvy=parseFloat(utmlong.slice(utmlong.indexOf(",")+1));if(utmconvx>-30&&utmconvx<60&&utmconvy>66&&utmconvy<89){coordok="1";var utmconvnew=proj4(w84,u33,[utmconvx,utmconvy]).toString();var utmconvnewx=parseFloat(utmconvnew.slice(0,(utmconvnew.indexOf(","))));var utmconvnewy=parseFloat(utmconvnew.slice(utmconvnew.indexOf(",")+1));pt=new esri.geometry.Point(utmconvnewx,utmconvnewy,new esri.SpatialReference({wkid:25833}));map.centerAndZoom(pt,4);graphicz=new esri.Graphic(pt,symbol);graphicid++;graphic[graphicid]=graphicLayer.add(graphicz);textSymbol=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+"E"+east+", N"+north+" (UTM"+utmcoordzone+"X)",font,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);ptt=new esri.geometry.Point(utmconvnewx,utmconvnewy);labelPointGraphic=new esri.Graphic(ptt,textSymbol);graphicid++;graphic[graphicid]=graphicLayer.add(labelPointGraphic);}} if(language=="no"){if(document.textinputform.textinputtext.value=="nål"||document.textinputform.textinputtext.value=="rød nål"||document.textinputform.textinputtext.value=="gul nål"||document.textinputform.textinputtext.value=="blå nål"||document.textinputform.textinputtext.value=="grønn nål"){textSymbol.yoffset=7;}} else{if(document.textinputform.textinputtext.value=="pin"||document.textinputform.textinputtext.value=="red pin"||document.textinputform.textinputtext.value=="green pin"||document.textinputform.textinputtext.value=="blue pin"||document.textinputform.textinputtext.value=="yellow pin"){textSymbol.yoffset=7;}}} if(coordok=="0"){document.zoomnorthform.northinput.style.border="2px solid #FF0000";document.zoomeastform.eastinput.style.border="2px solid #FF0000";if(northtmp.length==7&&easttmp.length==6){document.getElementById("coordformattitle").innerHTML="For UTM-koordinater må <br>sonen inkluderes i nord- <br>og øst-boksene, f.eks. <br>33X8683286 og <br>33X514883.";} else if(northtmp==""||easttmp==""||northtmp=="Nord/B.gr."||easttmp=="Øst/L.gr."||northtmp=="North/Lat."||easttmp=="East/Long."){document.getElementById("coordformattitle").innerHTML="Koordinatformater:<br>UTM<br>dd.ddddd<br>dd mm.mmm<br>dd mm ss.s ";} else if(northtmp.length==10&&easttmp.length==9&&northtmp.slice(0,2)!==easttmp.slice(0,2)&&(northtmp.slice(2,3)=="X"||northtmp.slice(2,3)=="x")&&(easttmp.slice(2,3)=="X"||easttmp.slice(2,3)=="x")){document.getElementById("coordformattitle").innerHTML="Nord- og østkoordinatene <br>må være i samme sone.";} else{document.getElementById("coordformattitle").innerHTML=coordformattitlelang;} document.getElementById("coordformattext1").innerHTML="";document.getElementById("coordformattext2").innerHTML="";document.getElementById("coordformattext3").innerHTML="";document.getElementById("coordformattext3SAR").style.display="none";document.getElementById("coordformattext4").innerHTML="";document.getElementById("coordformattext5").innerHTML="";document.getElementById("coordformatbox").style.display="block";} else{pw84sc=proj4(u33,w84,[pt.x,pt.y]).toString();pw84scx=pw84sc.slice(0,(pw84sc.indexOf(",")));pw84scx=parseFloat(pw84scx.slice(0,15));pw84scy=parseFloat(pw84sc.slice(pw84sc.indexOf(",")+1));if(pw84scy>66&&pw84scy<72){dynutmbelt="W";} if(pw84scy>72&&pw84scy<84){dynutmbelt="X";} if(pw84scx>=-30&&pw84scx<-24){dynutmzone="26";dynutm=proj4(u33,u26,[pt.x,pt.y]).toString();} if(pw84scx>=-24&&pw84scx<-18){dynutmzone="27";dynutm=proj4(u33,u27,[pt.x,pt.y]).toString();} if(pw84scx>=-18&&pw84scx<-12){dynutmzone="28";dynutm=proj4(u33,u28,[pt.x,pt.y]).toString();} if(pw84scx>=-12&&pw84scx<-6){dynutmzone="29";dynutm=proj4(u33,u29,[pt.x,pt.y]).toString();} if(pw84scx>=-6&&pw84scx<0){dynutmzone="30";dynutm=proj4(u33,u30,[pt.x,pt.y]).toString();} if(pw84scx>=42&&pw84scx<48){dynutmzone="38";dynutm=proj4(u33,u38,[pt.x,pt.y]).toString();} if(pw84scx>=48&&pw84scx<54){dynutmzone="39";dynutm=proj4(u33,u39,[pt.x,pt.y]).toString();} if(pw84scx>=54&&pw84scx<60){dynutmzone="40";dynutm=proj4(u33,u40,[pt.x,pt.y]).toString();} if(dynutmbelt=="X"){if(pw84scx>=0&&pw84scx<9){dynutmzone="31";dynutm=proj4(u33,u31,[pt.x,pt.y]).toString();} if(pw84scx>=9&&pw84scx<21){dynutmzone="33";dynutm=proj4(u33,u33,[pt.x,pt.y]).toString();} if(pw84scx>=21&&pw84scx<33){dynutmzone="35";dynutm=proj4(u33,u35,[pt.x,pt.y]).toString();} if(pw84scx>=33&&pw84scx<42){dynutmzone="37";dynutm=proj4(u33,u37,[pt.x,pt.y]).toString();}} if(dynutmbelt=="W"){if(pw84scx>=0&&pw84scx<6){dynutmzone="31";dynutm=proj4(u33,u31,[pt.x,pt.y]).toString();} if(pw84scx>=6&&pw84scx<12){dynutmzone="32";dynutm=proj4(u33,u32,[pt.x,pt.y]).toString();} if(pw84scx>=12&&pw84scx<18){dynutmzone="33";dynutm=proj4(u33,u33,[pt.x,pt.y]).toString();} if(pw84scx>=18&&pw84scx<24){dynutmzone="34";dynutm=proj4(u33,u34,[pt.x,pt.y]).toString();} if(pw84scx>=24&&pw84scx<30){dynutmzone="35";dynutm=proj4(u33,u35,[pt.x,pt.y]).toString();} if(pw84scx>=30&&pw84scx<36){dynutmzone="36";dynutm=proj4(u33,u36,[pt.x,pt.y]).toString();} if(pw84scx>=36&&pw84scx<42){dynutmzone="37";dynutm=proj4(u33,u37,[pt.x,pt.y]).toString();}} if(pw84scy>=84){utmtext=utm0;} else{dynutmx=parseFloat(dynutm.slice(0,(dynutm.indexOf(","))));dynutmy=parseFloat(dynutm.slice(dynutm.indexOf(",")+1));utmtext=dynutmzone+dynutmbelt+" E"+Math.round(dynutmx)+" N"+Math.round(dynutmy);} if(pw84scx>=0){pw84scxwe=1;} else{pw84scxwe=-1;pw84scx=pw84scx*-1;} xdeg=parseInt(pw84scx);xmin=((pw84scx*60).toFixed(3)-xdeg*60).toFixed(3);if(xmin==60){xdeg++;xmin="0.000";} ydeg=parseInt(pw84scy);ymin=((pw84scy*60).toFixed(3)-ydeg*60).toFixed(3);if(ymin==60){ydeg++;ymin="0.000";} if(xdeg<10){xdeg="0"+xdeg;} if(xmin<10){xmin="0"+xmin;} if(ymin<10){ymin="0"+ymin;} dyndm=ydeg+"°"+ymin+"'N "+xdeg+"°"+xmin+"'";ydeg=parseInt(pw84scy);ymin=parseInt((pw84scy-ydeg)*60);ysec=((pw84scy*3600).toFixed(1)-((ydeg*60)+ymin)*60).toFixed(1);if(ymin==59&&ysec==60){ydeg++;ymin=0;ysec="0.0";} if(ymin<59&&ysec==60){ymin++;ysec="0.0";} xdeg=parseInt(pw84scx);xmin=parseInt((pw84scx-xdeg)*60);xsec=((pw84scx*3600).toFixed(1)-((xdeg*60)+xmin)*60).toFixed(1);if(xmin==59&&xsec==60){xdeg++;xmin=0;xsec="0.0";} if(xmin<59&&xsec==60){xmin++;xsec="0.0";} if(ymin<10){ymin="0"+ymin;} if(ysec<10){ysec="0"+ysec;} if(xdeg<10){dyndd=(Math.round(pw84scy*100000)/100000).toFixed(5)+"°N 0"+(Math.round(pw84scx*100000)/100000).toFixed(5)+"°";xdeg="0"+xdeg;} else{dyndd=(Math.round(pw84scy*100000)/100000).toFixed(5)+"°N "+(Math.round(pw84scx*100000)/100000).toFixed(5)+"°";} if(xmin<10){xmin="0"+xmin;} if(xsec<10){xsec="0"+xsec;} dyndms=ydeg+"°"+ymin+"'"+ysec+'&quot;N '+xdeg+"°"+xmin+"'"+xsec+'&quot;';if(pw84scxwe==1){dyndm=dyndm+direast;dyndd=dyndd+direast;dyndms=dyndms+direast;} else{dyndm=dyndm+dirwest;dyndd=dyndd+dirwest;dyndms=dyndms+dirwest;} if(coordformatcurrent=="dd"){document.getElementById("coordformattitle").innerHTML=dyndd+" ≈";document.getElementById("coordformattitle").title="DD.DDDDD";} if(coordformatcurrent=="dm"){document.getElementById("coordformattitle").innerHTML=dyndm+" ≈";document.getElementById("coordformattitle").title="DD MM.MMM";} if(coordformatcurrent=="dms"){document.getElementById("coordformattitle").innerHTML=dyndms+" ≈";document.getElementById("coordformattitle").title="DD MM SS.S";} if(coordformatcurrent=="utm"){if(utmconvy<84){document.getElementById("coordformattitle").innerHTML=dynutmzone+dynutmbelt+" E"+Math.round(dynutmx)+" N"+Math.round(dynutmy)+" ≈";document.getElementById("coordformattitle").title="UTM "+utmcoordzone+"X";}} document.getElementById("coordformattext1").innerHTML=utmtext;document.getElementById("coordformattext2").innerHTML=dyndd;document.getElementById("coordformattext3").innerHTML=dyndm;document.getElementById("coordformattext4").innerHTML=dyndms;document.getElementById("coordformattext3SAR").style.display="block";document.getElementById("coordformatbox").style.display="block";getElevation(ptt.x,ptt.y,function(res){if((res.json.elevation>=-10)&&(res.json.source.file!=="IBCAO_Dybdetest_500m.tif")){if(measureunit=="kmnm"){document.getElementById("coordformattext5").innerHTML=zinfo+": "+Math.round(res.json.elevation,0)+" m / "+Math.round((res.json.elevation*3.2808),0)+" ft";} if(measureunit=="km"){document.getElementById("coordformattext5").innerHTML=zinfo+": "+Math.round(res.json.elevation,0)+" m";} else if(measureunit=="mi"||measureunit=="nm"){document.getElementById("coordformattext5").innerHTML=zinfo+": "+Math.round((res.json.elevation*3.2808),0)+" ft";}} else{document.getElementById("coordformattext5").innerHTML="";}});} map.infoWindow.hide();panelsrelocatef();} function coordformatclosef(){document.getElementById("coordformatbox").style.display="none";} function panelsrelocatef(){if(document.getElementById("sarmenu").style.display=="block"){if(document.getElementById("coordharvestbox").style.display=="block"){document.getElementById("coordharvestbox").style.top="418px";if(document.getElementById("coordharvestformta").style.height=="145px"){document.getElementById("coordformatbox").style.top="600px";} else{document.getElementById("coordformatbox").style.top="828px";}} else{document.getElementById("coordformatbox").style.top="418px";}} else{if(document.getElementById("coordharvestbox").style.display=="block"){document.getElementById("coordharvestbox").style.top="372px";if(document.getElementById("coordharvestformta").style.height=="145px"){document.getElementById("coordformatbox").style.top="554px";} else{document.getElementById("coordformatbox").style.top="782px";}} else{document.getElementById("coordformatbox").style.top="372px";}}} function coordharvestf(geometry){coordgetcancel();document.getElementById("coordharvestbox").style.display="block";coordharvestLayer.show();panelsrelocatef();} function coordharvestsysf(){if(coordharvestsystem=="33"){document.getElementById("coordharvestsys").innerHTML="UTM35X";coordharvestsystem="35";} else if(coordharvestsystem=="35"){if(language=="no"){document.getElementById("coordharvestsys").innerHTML="Desimalgr.";} else{document.getElementById("coordharvestsys").innerHTML="Decimal dg.";} coordharvestsystem="84";} else if(coordharvestsystem=="84"){document.getElementById("coordharvestsys").innerHTML="UTM33X";coordharvestsystem="33";}} function coordharvestexpandf(){if(document.getElementById("coordharvestformta").style.width=="172px"){document.getElementById("coordharvestbackgr").getElementsByTagName("img")[0].src="coordharvestexpanded2.png";document.getElementById("coordharvestformta").style.width="272px";document.getElementById("coordharvestformta").style.height="373px";} else{document.getElementById("coordharvestbackgr").getElementsByTagName("img")[0].src="coordharvest2.png";document.getElementById("coordharvestformta").style.width="172px";document.getElementById("coordharvestformta").style.height="145px";} panelsrelocatef();} function coordharvestpanf(){var harvest_line=0;var harvest_value=document.getElementById("coordharvestformta").value;harvest_value=harvest_value.replace(/\n\r?/g,'#');if(harvest_value.lastIndexOf("#")+1!=harvest_value.length){harvest_value=harvest_value+"#";} var harvest_lines=harvest_value.split(/#/g).length-1;while(harvest_line<coordharvestformta.value.substr(0,coordharvestformta.selectionStart).split("\n").length-1){harvest_line++;harvest_value=harvest_value.slice(harvest_value.indexOf("#")+1,harvest_value.length);harvest_linepart=harvest_value.slice(0,harvest_value.indexOf("#"));if(coordharvestsystem=="33"){harvest_east=harvest_linepart.slice(0,6);harvest_north=harvest_linepart.slice(7,14);} if(coordharvestsystem=="35"){harvest_east=harvest_linepart.slice(0,6);harvest_north=harvest_linepart.slice(7,14);var chupos=proj4(u35,u33,[harvest_east,harvest_north]).toString();harvest_east=Math.round(parseFloat(chupos.slice(0,(chupos.indexOf(",")))));harvest_north=Math.round(parseFloat(chupos.slice(chupos.indexOf(",")+1)));} if(coordharvestsystem=="84"){harvest_north=harvest_linepart.slice(0,8);harvest_east=harvest_linepart.slice(9,17);var chupos=proj4(w84,u33,[harvest_east,harvest_north]).toString();harvest_east=Math.round(parseFloat(chupos.slice(0,(chupos.indexOf(",")))));harvest_north=Math.round(parseFloat(chupos.slice(chupos.indexOf(",")+1)));}} try{esriConfig.defaults.map.panDuration=1;map.centerAt(new esri.geometry.Point(harvest_east,harvest_north,new esri.SpatialReference({wkid:25833})));esriConfig.defaults.map.panDuration=350;} catch(err){}} function coordharvestblankf(){if(document.getElementById("coordharvestformta").value=="Ctrl + museklikk i kart for å høste koordinater"||document.getElementById("coordharvestformta").value=="Ctrl + left click in map to harvest coordinates"){document.getElementById("coordharvestformta").value="";}} function coordharvestupdatef(){coordharvestLayer.clear();graphicidharvest=0;var harvest_east="";var harvest_north="";harvest_id="";var harvest_line=0;var harvest_value=document.getElementById("coordharvestformta").value;harvest_value=harvest_value.replace(/\n\r?/g,'#');if(harvest_value.lastIndexOf("#")+1!=harvest_value.length){harvest_value=harvest_value+"#";} var harvest_lines=harvest_value.split(/#/g).length-1;while(harvest_line<harvest_lines-1){harvest_line++;harvest_value=harvest_value.slice(harvest_value.indexOf("#")+1,harvest_value.length);harvest_linepart=harvest_value.slice(0,harvest_value.indexOf("#"));if(coordharvestsystem=="33"){harvest_east=harvest_linepart.slice(0,6);harvest_north=harvest_linepart.slice(7,14);harvest_id=harvest_linepart.slice(15,harvest_linepart.lenght);markerSymbolharvest=new esri.symbol.PictureMarkerSymbol("markerharvest.png",10,10);plharvest=new esri.geometry.Point(harvest_east,harvest_north);markergraphicharvest=new esri.Graphic(plharvest,markerSymbolharvest);graphic[graphicidharvest]=coordharvestLayer.add(markergraphicharvest);harvest_fontl=new esri.symbol.Font(esri.symbol.Font.SIZE="10pt",esri.symbol.Font.STYLE_NORMAL,esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_NORMAL,esri.symbol.Font.FAMILY="verdana, arial, helvetica, sans-serif");harvest_textSymboll=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+harvest_id,harvest_fontl,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);harvest_pttl=new esri.geometry.Point(harvest_east,harvest_north);harvest_labelPointGraphicl=new esri.Graphic(harvest_pttl,harvest_textSymboll);graphic[graphicidharvest]=coordharvestLayer.add(harvest_labelPointGraphicl);if(harvest_id==""){harvest_id="0";} graphicidharvest=parseInt(harvest_id,10);} if(coordharvestsystem=="35"){harvest_east=harvest_linepart.slice(0,6);harvest_north=harvest_linepart.slice(7,14);harvest_id=harvest_linepart.slice(15,harvest_linepart.lenght);harvest_east=harvest_linepart.slice(0,6);harvest_north=harvest_linepart.slice(7,14);var harvestpw33sc=proj4(u35,u33,[harvest_east,harvest_north]).toString();harvest_east=Math.round(parseFloat(harvestpw33sc.slice(0,(harvestpw33sc.indexOf(",")))));harvest_north=Math.round(parseFloat(harvestpw33sc.slice(harvestpw33sc.indexOf(",")+1)));markerSymbolharvest=new esri.symbol.PictureMarkerSymbol("markerharvest.png",10,10);plharvest=new esri.geometry.Point(harvest_east,harvest_north);markergraphicharvest=new esri.Graphic(plharvest,markerSymbolharvest);graphic[graphicidharvest]=coordharvestLayer.add(markergraphicharvest);harvest_fontl=new esri.symbol.Font(esri.symbol.Font.SIZE="10pt",esri.symbol.Font.STYLE_NORMAL,esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_NORMAL,esri.symbol.Font.FAMILY="verdana, arial, helvetica, sans-serif");harvest_textSymboll=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+harvest_id,harvest_fontl,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);harvest_pttl=new esri.geometry.Point(harvest_east,harvest_north);harvest_labelPointGraphicl=new esri.Graphic(harvest_pttl,harvest_textSymboll);graphic[graphicidharvest]=coordharvestLayer.add(harvest_labelPointGraphicl);if(harvest_id==""){harvest_id="0";} graphicidharvest=parseInt(harvest_id,10);} if(coordharvestsystem=="84"){harvest_north=harvest_linepart.slice(0,8);harvest_east=harvest_linepart.slice(9,17);harvest_id=harvest_linepart.slice(18,harvest_linepart.lenght);var harvestpw84sc=proj4(w84,u33,[harvest_east,harvest_north]).toString();harvest_east=Math.round(parseFloat(harvestpw84sc.slice(0,(harvestpw84sc.indexOf(",")))));harvest_north=Math.round(parseFloat(harvestpw84sc.slice(harvestpw84sc.indexOf(",")+1)));markerSymbolharvest=new esri.symbol.PictureMarkerSymbol("markerharvest.png",10,10);plharvest=new esri.geometry.Point(harvest_east,harvest_north);markergraphicharvest=new esri.Graphic(plharvest,markerSymbolharvest);graphic[graphicidharvest]=coordharvestLayer.add(markergraphicharvest);harvest_fontl=new esri.symbol.Font(esri.symbol.Font.SIZE="10pt",esri.symbol.Font.STYLE_NORMAL,esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_NORMAL,esri.symbol.Font.FAMILY="verdana, arial, helvetica, sans-serif");harvest_textSymboll=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+harvest_id,harvest_fontl,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);harvest_pttl=new esri.geometry.Point(harvest_east,harvest_north);harvest_labelPointGraphicl=new esri.Graphic(harvest_pttl,harvest_textSymboll);graphic[graphicidharvest]=coordharvestLayer.add(harvest_labelPointGraphicl);if(harvest_id==""){harvest_id="0";} graphicidharvest=parseInt(harvest_id,10);}}} function coordharvestclosef(){document.getElementById("coordharvestbox").style.display="none";coordharvestLayer.hide();document.getElementById("coordformatbox").style.top="372px";panelsrelocatef();}}</script></head><body onresize="mapsizef()"> <div id=maptypelist_map_showback onmouseover="showmaptypelistf()" onmouseout="hidemaptypef()" oncontextmenu="return false"><img src=showback_map2.png> <div id=maptypelist_map_menupin onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_menupin()" oncontextmenu="return false"><img src=menupin.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_mapx onmouseover="this.style.cursor='pointer'" oncontextmenu="return false"><img src=maptypelist_map.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerialx3d onmouseover="this.style.cursor='not-allowed'" oncontextmenu="return false"><img src=maptypelist_aerial_inactive2_3d.png onmouseover="this.style.cursor='not-allowed'"></div> <div id=maptypelist_aerialx onmouseover="this.style.cursor='pointer';toggle_tipsf()" onmouseout="tipstopcount()" onclick="maptype_u33()" oncontextmenu="return false"><img src=maptypelist_aerial_inactive.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_topographic onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33topographic()" oncontextmenu="return false"><img src=showtopographic_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_nautical onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33nautical()" oncontextmenu="return false"><img src=shownautical_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=nauticalenc onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="nauticalencf()" oncontextmenu="return false"><img src=nauticalenc.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_terrain onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33terrain()" oncontextmenu="return false"><img src=showterrain_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_terrainhs title=Fjellskygge onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33terrainhs()" oncontextmenu="return false"><img src=showterrain_hs_disabled.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_terrainsl title=Helning onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33terrainsl()" oncontextmenu="return false"><img src=showterrain_sl.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_3d onmouseover="showmaptypef()" onclick="maptype_3d()" oncontextmenu="return false"><img src=show3dsimple_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_3dexp onmouseover="showmaptypef()" onclick="maptype_3dexp()" oncontextmenu="return false"><img src=show3ddynamic_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_names onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); mapnamesClickf()" oncontextmenu="return false"><img src=shownames_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_terraincnt onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); terraincntClickf()" oncontextmenu="return false"><img src=showterraincnt_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_graticules onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); graticulesClickf()" oncontextmenu="return false"><img src=showgraticules_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_index onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); indexClickf()" oncontextmenu="return false"><img src=showindex_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_map_dimmed onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); dimmedClickf()" oncontextmenu="return false"><img src=showdimmed_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div></div> <div id=maptypelist_aerial_showback onmouseover="showmaptypelistf()" onmouseout="hidemaptypef()" oncontextmenu="return false"><img src=showback_map2.png> <div id=maptypelist_aerial_menupin onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_menupin()" oncontextmenu="return false"><img src=menupin.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_mapx onmouseover="this.style.cursor='pointer'" onclick="maptype_u33()" oncontextmenu="return false"><img src=maptypelist_map_inactive.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerialx onmouseover="this.style.cursor='default'" oncontextmenu="return false"><img src=maptypelist_aerial.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_aerial onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33aerial()" oncontextmenu="return false"><img src=showaerial_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_sat onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33sat()" oncontextmenu="return false"><img src=showsat_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_aerialsat onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33aerialsat()" oncontextmenu="return false"><img src=showaerialsat_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_satw onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33satw()" oncontextmenu="return false"><img src=showsatw_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_ortho36 onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="maptype_u33ortho36()" oncontextmenu="return false"><img src=showortho36_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_old onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); xaerialClickf()" oncontextmenu="return false"><img src=showold_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_names onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); aerialnamesClickf()" oncontextmenu="return false"><img src=shownames_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_graticules onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); graticulesClickf()" oncontextmenu="return false"><img src=showgraticules_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_index onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); indexClickf()" oncontextmenu="return false"><img src=showindex_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=maptypelist_aerial_dimmed onmouseover="showmaptypelistf();this.style.cursor='pointer'" onclick="hideposter(); dimmedClickf()" oncontextmenu="return false"><img src=showdimmed_unchecked_no.png onmouseover="this.style.cursor='pointer'"></div></div> <div id=tsnews onclick="infohidef()" oncontextmenu="return false" style="position:absolute; left:211px; top:5px; z-index:20; display:none"><img src=tsnews_no00000000.png></div> <div id=m3dexpavail style="position:absolute; left:1px; top:1px; width:10px; height:10px; z-index:1; display:none"><img src="https://toposvalbard.npolar.no/ts3dexperiment/art/nodata.png"></div> <div id=map3dn oncontextmenu="change3ddir(event); return false" style="position:absolute; left:0px; top:0px; width:50px; height:50px; border:1px solid #000; z-index:1; background-color:#6CB7D4"></div> <div id=map3de oncontextmenu="change3ddir(event); return false" style="position:absolute; left:0px; top:0px; width:50px; height:50px; border:1px solid #000; z-index:1; background-color:#6CB7D4"></div> <div id=map3ds oncontextmenu="change3ddir(event); return false" style="position:absolute; left:0px; top:0px; width:50px; height:50px; border:1px solid #000; z-index:1; background-color:#6CB7D4"></div> <div id=map3dw oncontextmenu="change3ddir(event); return false" style="position:absolute; left:0px; top:0px; width:50px; height:50px; border:1px solid #000; z-index:1; background-color:#6CB7D4"></div> <div id=whitemap oncontextmenu="return false" style="position:absolute; left:0px; top:0px; width:50px; height:50px; border:1px solid #E6E6E6; z-index:5; background-color:#E6E6E6"></div> <div id=iframecenter><img src=iframecenter.png></div> <div id=iframemapdiv oncontextmenu="return false"><img src=0.png> <div id=iframemap onmousedown="hideiframecomposerf()" dojotype=dijit.layout.ContentPane></div> <div id=iframecompose onclick="iframecomposef()"><img src=0.png onmouseover="this.style.cursor='pointer'"></div> <div id=iframecomposer><img src=iframe_composer.png> <div id=iframetitlediv><FORM NAME=iframetitleform><INPUT ID=iframetitleinput value onfocus="iframeandmapstop()" onblur="iframeandmapstart()" title=Tittel TYPE=TEXT NAME=iframetitletext STYLE="border:1px solid #91A2A7; padding:0; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF; width:133px" maxlength=100></FORM></div> <form id=iframeinfodiv name=iframeinfoform><textarea id=iframeinfo_textarea name=iframeinfo_textareatext title=Info onfocus="iframeandmapstop()" onblur="iframeandmapstart()" spellcheck=false style="z-index:99; width:133px; height:50px;resize:none;position:absolute;border:1px solid #91A2A7; padding:0; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF"></textarea> </form> <div id=iframemarkerred onclick="iframemarkerredf()"><img onmouseover="this.style.cursor='pointer'" src=markerred.png onmouseout="src='markerred.png'" onmousedown="src='markerred_down.png'" onmouseup="src='markerred.png'"></div> <div id=iframemarkergreen onclick="iframemarkergreenf()"><img onmouseover="this.style.cursor='pointer'" src=markergreen.png onmouseout="src='markergreen.png'" onmousedown="src='markergreen_down.png'" onmouseup="src='markergreen.png'"></div> <div id=iframemarkerblue onclick="iframemarkerbluef()"><img onmouseover="this.style.cursor='pointer'" src=markerblue.png onmouseout="src='markerblue.png'" onmousedown="src='markerblue_down.png'" onmouseup="src='markerblue.png'"></div> <div id=iframemarkeryellow onclick="iframemarkeryellowf()"><img onmouseover="this.style.cursor='pointer'" src=markeryellow.png onmouseout="src='markeryellow.png'" onmousedown="src='markeryellow_down.png'" onmouseup="src='markeryellow.png'"></div> <div id=iframemarkerline onclick="iframemarkerlinef();iframetb.activate(esri.toolbars.Draw.POLYLINE)"><img onmouseover="this.style.cursor='pointer'" src=iframe_markerline.png onmouseout="src='iframe_markerline.png'" onmousedown="src='iframe_markerline_down.png'" onmouseup="src='iframe_markerline.png'"></div> <div id=iframemarkertext onclick="iframemarkertextf()"><img onmouseover="this.style.cursor='pointer'" src=iframe_markertext.png onmouseout="src='iframe_markertext.png'" onmousedown="src='iframe_markertext_down.png'" onmouseup="src='iframe_markertext.png'"></div></div> <div id=iframeeraser onclick="iframegraphicidremove()"><img src=0.png onmouseover="this.style.cursor='pointer'" onmouseout="src='iframe_eraser.png'" onmousedown="src='iframe_eraser_down.png'" onmouseup="src='iframe_eraser.png'"></div> <div id=iframemapmatch onclick="iframemapmatchf()"><img src=0.png onmouseover="this.style.cursor='pointer'" onmouseout="src='iframe_mapmatch.png'" onmousedown="src='iframe_mapmatch_down.png'" onmouseup="src='iframe_mapmatch.png'"></div> <div id=iframeimapmatch onclick="iframeimapmatchf()"><img src=0.png onmouseover="this.style.cursor='pointer'" onmouseout="src='iframe_imapmatch.png'" onmousedown="src='iframe_imapmatch_down.png'" onmouseup="src='iframe_imapmatch.png'"></div> <div id=iframeimapget onclick="iframeagreeshow()"><img src=0.png onmouseover="this.style.cursor='pointer'"></div> <div id=iframecomposerhide onclick="iframecomposerhidef()"><img onmouseover="this.style.cursor='pointer'" src=0.png onmouseout="src='iframe_composerhide.png'" onmousedown="src='iframe_composerhide_down.png'" onmouseup="src='iframe_composerhide.png'"></div> <div id=iframecomposerclose onclick="iframehidef()"><img onmouseover="this.style.cursor='pointer'" src=0.png onmouseout="src='iframe_composerclose.png'" onmousedown="src='iframe_composerclose_down.png'" onmouseup="src='iframe_composerclose.png'"></div> <div id=iframebackground><img src=0.png></div> <div id=iframenplogo><img src=0.png></div> <div id=iframelogo><img src=0.png></div> <div id=iframenavcontrols><img src=0.png></div></div> <div id=iframecomposershow oncontextmenu="return false" onclick="iframecomposershowf()"><img onmouseover="this.style.cursor='pointer'" src=iframe_composershow.png title="Vis IFrame-vinduet" onmouseout="src='iframe_composershow.png'" onmousedown="src='iframe_composershow_down.png'" onmouseup="src='iframe_composershow.png'"></div> <div id=iframemapdivback><img src=0.png></div> <div id=iframeagree><img src=0.png> <div id=iframeagree_close oncontextmenu="return false" onclick="iframeagreehide()"><img src=iframe_close_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=iframeagree_accept oncontextmenu="return false" onclick="iframeimapgetf()"><img src=iframe_accept_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=iframeagree_cancel oncontextmenu="return false" onclick="iframeagreehide()"><img src=iframe_cancel_no.png onmouseover="this.style.cursor='pointer'"></div> <form id=iframeiframediv name=iframeiframeform><textarea id=iframeiframe_textarea name=iframeiframe_textareatext oncontextmenu="return true" spellcheck=false style="width:434px; height:219px;position:absolute;border:1px solid #91A2A7;resize:none; padding:0; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF"></textarea> </form></div> <div id=bordercontainer dojotype=dijit.layout.BorderContainer gutters=false style="width:100%; height:100%"> <div id=showhide oncontextmenu="return false" onclick="showhide()"><img src=showhide.png title="Skjul/vis plakat" onmousedown="src='showhide_down.png'" onmouseup="src='showhide.png'" onmouseover="this.style.cursor='pointer'"></div> <div id=showhideomap oncontextmenu="return false" onclick="showhideomap()"><img src=showhideomap.png title="Skjul/vis oversiktskart" onmousedown="src='showhideomap_down.png'" onmouseup="src='showhideomap.png'" onmouseover="this.style.cursor='pointer'"></div> <div id=transprightedge oncontextmenu="return false"><img src=rightedge.png></div> <div id=transplengthrightborder oncontextmenu="return false"></div> <div id=transplengthright oncontextmenu="return false"></div> <div id=zoomtoclick><img src=zoomtoclick_no.png></div> <div id=sarmenu><img src=sarmenuback.png> <div id=sarclose oncontextmenu="return false" onclick="sarclosef()" style="position:absolute;left:11px;top:5px;z-index:52"><img onmouseover="this.style.cursor='pointer'" src=sarclose.png></div> <div id=sartext oncontextmenu="return false" style="position:absolute;left:42px;top:12px;z-index:52">Tekstfil-kartlag</div> <div id=sartoggle oncontextmenu="return false" onclick="sartogglef()" style="position:absolute;left:232px;top:5px;z-index:52"><img onmouseover="this.style.cursor='pointer'" src=sartoggle.png></div></div> <div id=aerialthumb0 style="position:absolute;right:9px;top:3px;z-index:1;display:none;opacity:0; filter:Alpha(opacity=0)"><img src=empty.png></div> <div id=aerialbox onmouseover="this.style.cursor='pointer'" style="position:absolute; right:176px;top:10px;z-index:98;display:none"> <div id=aerialthumb oncontextmenu="return false" onclick="aejumpf()" onmouseover="showback()" onmouseout="hideback()" style="position:absolute;right:5px;top:5px;z-index:98; display:none"><img src=empty.png onmouseover="this.style.cursor='pointer'"></div> <div id=aerialthumbback onclick="aejumpf()" style="position:absolute;right:1px;top:1px;z-index:60; display:none;background-color:#ffffff;border:1px solid #91A2A7"></div></div> <div id=pninfobox style="position:absolute; right:170px;top:11px;z-index:98;display:none"><img src=pninfobox.png> <div id=pnjump onclick="pnjumpf()"><img src=pnjump.png title="Mer navneinformasjon. (Åpnes i nytt vindu)" onmouseover="this.style.cursor='pointer'" onmousedown="src='pnjump_down.png'" onmouseup="src='pnjump.png'"></div> <form id=pninfoform><textarea id=pninfoformta spellcheck=false style="z-index:97; position:absolute; width:216px; height:138px;top:7px; left:12px;resize:none; border:1px solid #91A2A7; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF"></textarea> </form></div> <div id=coordformatbox style="position:absolute; left:6px;top:372px;z-index:50;display:none"> <div id=coordformatclose oncontextmenu="return false" onclick="coordformatclosef()" style="position:absolute; left:170px;top:25px;z-index:99"><img onmouseover="this.style.cursor='pointer'" src=coordformatclose1.png></div> <div id=coordformatsbackgr oncontextmenu="return false"><img src=coordformat2.png></div> <div id=coordformattitle style="position:absolute;left:13px;top:7px;width:185px;z-index:52"></div> <div id=coordformattext1 style="position:absolute;left:13px;top:23px;width:170px;z-index:52;color:#7E898C" title="UTM 33X"></div> <div id=coordformattext2 style="position:absolute;left:13px;top:36px;width:170px;z-index:52;color:#7E898C" title=UTM></div> <div id=coordformattext3 style="position:absolute;left:13px;top:49px;width:170px;z-index:52;color:#7E898C" title=DD.DDDDD></div> <div id=coordformattext3SAR style="position:absolute;left:166px;top:49px;z-index:51" title="Search and Rescue-format"><img src=sar1.png></div> <div id=coordformattext4 style="position:absolute;left:13px;top:62px;width:180px;z-index:52;color:#7E898C" title="DD MM.MMM"></div> <div id=coordformattext5 style="position:absolute;left:13px;top:75px;width:170px;z-index:52;color:#7E898C" title="DD MM SS.S"></div></div> <div id=coordharvestbox style="position:absolute; left:6px;top:372px;z-index:50;display:none"> <div id=coordharvestbackgr oncontextmenu="return false" style="position:absolute; left:0px;top:0px;z-index:60"><img src=coordharvest2.png></div> <div id=coordharvestbutton oncontextmenu="return false" onclick="coordharvestsysf()" style="position:absolute; left:16px;top:2px;z-index:99"><img onmouseover="this.style.cursor='pointer'" src=coordharvestsys.png onmousedown="src='coordharvestsys_down.png'" onmouseup="src='coordharvestsys.png'"></div> <div id=coordharvestsys oncontextmenu="return false" onmouseover="this.style.cursor='default'" style="position:absolute; left:36px;top:3px;z-index:99;width:100px">UTM33X</div> <div id=coordharvestpan oncontextmenu="return false" onclick="coordharvestpanf()" style="position:absolute; left:120px;top:2px;z-index:99"><img onmouseover="this.style.cursor='pointer'" src=coordharvestpan.png></div> <div id=coordharvestexpand oncontextmenu="return false" onclick="coordharvestexpandf()" style="position:absolute; left:144px;top:2px;z-index:99"><img onmouseover="this.style.cursor='pointer'" src=coordharvestexpand.png></div> <div id=coordharvestclose oncontextmenu="return false" onclick="coordharvestclosef()" style="position:absolute; left:168px;top:2px;z-index:99"><img onmouseover="this.style.cursor='pointer'" src=coordharvestclose.png></div> <form id=coordharvestform><textarea id=coordharvestformta spellcheck=false onclick="coordharvestblankf()" onkeyup="coordharvestupdatef()" style="padding:0;z-index:97; position:absolute; width:172px; height:145px;top:17px;left:12px;resize:none; border:1px solid #91A2A7; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF">Ctrl + museklikk i kart for å høste koordinater</textarea> </form></div> <div id=maptype oncontextmenu="return false" onmouseover="maptype_tipsf(); this.style.cursor='pointer'" onclick="showmaptypef()" onmouseout="tipstopcount();hidemaptypef()"><img src=maptype_no.png></div> <div id=panel><img oncontextmenu="return false" onmouseover="coordnull()" src=backgroundsar.png> <div id=help3d oncontextmenu="return false" onmousedown="help3ddownf()" onmouseup="help3dupf()" onmouseout="help3dupf()" style="position:absolute; left:21px; top:306px; z-index:91; display:none"><img src=about3d.png onmouseover="this.style.cursor='pointer'" onmousedown="src='about3d_down.png'" onmouseup="src='about3d.png'"></div> <div id=help3dposter style="position:absolute; left:5px; top:371px;z-index:99;display:none"><img src=0.png></div> <div id=m3dposter oncontextmenu="return false" style="position:absolute; left:16px; top:183px; z-index:90; display:none"><img src=0.png></div> <div id=m3dexpposter oncontextmenu="return false" style="position:absolute; left:14px; top:178px; z-index:199; display:none"><img src=0.png></div> <div id=btnu33 oncontextmenu="return false" onmousedown="mapdownf()" onmouseup="mapupf()" onmouseout="mapupf()" style="position:absolute; left:159px; top:298px; z-index:99; display:none"><img src=view_map.png onmouseover="this.style.cursor='pointer'" onmousedown="src='view_map_down.png'" onmouseup="src='view_map.png'"></div> <div id=btn3dn oncontextmenu="return false" onclick="map3dnf()" style="position:absolute; left:93px; top:302px; z-index:99; display:none"><img src=view_north_down.png onmouseover="this.style.cursor='pointer'" onmousedown="src='view_north_down.png'"></div> <div id=btn3de oncontextmenu="return false" onclick="map3def()" style="position:absolute; left:46px; top:255px; z-index:99; display:none"><img src=view_east.png onmouseover="this.style.cursor='pointer'" onmousedown="src='view_east_down.png'"></div> <div id=btn3ds oncontextmenu="return false" onclick="map3dsf()" style="position:absolute; left:93px; top:208px; z-index:99; display:none"><img src=view_south.png onmouseover="this.style.cursor='pointer'" onmousedown="src='view_south_down.png'"></div> <div id=btn3dw oncontextmenu="return false" onclick="map3dwf()" style="position:absolute; left:139px; top:255px; z-index:99; display:none"><img src=view_west.png onmouseover="this.style.cursor='pointer'" onmousedown="src='view_west_down.png'"></div> <div id=logo oncontextmenu="return false"><img src=logo_no.png></div> <div id=pn> <form id=geoname_autocomplete_form method=get> <input name=pnquery onmouseover="geoname_autocomplete_tipsf()" onmouseout="tipstopcount()" onfocus="pnblank()" onblur="pndefault()" type="search -webkit-appearance=none" id=geoname_autocomplete value="Zoom til stedsnavn" style="border-radius:0;border:1px solid #91A2A7; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF; width:138px" maxlength=100> </form></div> <div id=gull1 oncontextmenu="return false"><img src=gull1.png></div> <div id=gull2 oncontextmenu="return false"><img src=gull2.png></div> <div id=gull3 oncontextmenu="return false"><img src=gull3.png></div> <div id=zoomin oncontextmenu="return false" onclick="zoomin()" onmouseover="this.style.cursor='pointer'"><img src=zoominlarge2.png></div> <div id=zoomout oncontextmenu="return false" onclick="zoomout()" onmouseover="this.style.cursor='pointer'"><img src=zoomoutlarge2.png></div> <div id=mapexportdiv oncontextmenu="return false" onclick="mapexportf()"><img src=export2.png onmouseover="this.style.cursor='pointer';mapexport_tipsf()" onmousedown="src='export_down2.png'" onmouseup="src='export2.png'" onmouseout="tipstopcount()"></div> <div id=aboutpopup oncontextmenu="return false" onclick="hideposter(); aboutf()"><img src=about.png onmouseover="this.style.cursor='pointer';aboutpopup_tipsf()" onmouseout="tipstopcount()" onmousedown="src='about_down.png'" onmouseup="src='about.png'"></div> <div id=cursorshowb oncontextmenu="return false" onclick="hideposter(); cursorshowf()"><img src=cursorshow.png onmouseover="this.style.cursor='pointer';cursorshow_tipsf()" onmouseout="tipstopcount()" onmousedown="src='cursorshow_down.png'" onmouseup="src='cursorshow.png'"></div> <div id=namepoint oncontextmenu="return false" onclick="hideposter(); nameClickf()"><img src=name.png onmouseover="this.style.cursor='pointer';namepoint_tipsf()" onmouseout="tipstopcount()"></div> <div id=photopoint oncontextmenu="return false" onclick="hideposter(); photoClickf()"><img src=cam.png onmouseover="this.style.cursor='pointer';photopoint_tipsf()" onmouseout="tipstopcount()"></div> <div id=language oncontextmenu="return false" onclick="languagef();languagetipupdatef()"><img src=language_no.png onmouseover="this.style.cursor='pointer';language_tipsf()" onmouseout="tipstopcount()" onmousedown="src='language_down.png'"></div> <div id=measureresults onmouseover="measureresults_tipsf()" onmouseout="tipstopcount()"><span id=distance></span></div> <div id=measureunit oncontextmenu="return false" onclick="measureunitf()"><img onmouseover="this.style.cursor='pointer';measureunit_tipsf()" onmouseout="tipstopcount()" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=measure oncontextmenu="return false" onclick="measuredistancemodef(), modusav()"><img onmouseover="this.style.cursor='pointer';src='measure_hover.png';measure_tipsf()" onmouseout="src='measure.png';tipstopcount()" src=measure.png onmousedown="src='measure_down.png'" onmouseup="src='measure.png'"></div> <div id=eraser oncontextmenu="eraseallf(); return false" onclick="graphicidremove()"><img onmouseover="this.style.cursor='pointer';src='eraser_hover.png';eraser_tipsf()" onmouseout="src='eraser.png';tipstopcount()" src=eraser.png onmousedown="src='eraser_down.png'" onmouseup="src='eraser.png'"></div> <div id=textdiv><FORM NAME=textinputform><INPUT ID=textmarkerinput onmouseover="textmarkerinput_tipsf()" onmouseout="tipstopcount()" onfocus="textmarkerinputblank()" onblur="textmarkerinputdefault()" value="Tekst/markør" TYPE=TEXT NAME=textinputtext STYLE="border-radius:0;border:1px solid #91A2A7; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF; width:138px" maxlength=100></FORM></div> <div id=textmarker oncontextmenu="return false" onclick="tb.deactivate();textmarkerf()"><img onmouseover="this.style.cursor='pointer';src='textmarker_hover.png';textmarker_tipsf()" src=textmarker.png onmouseout="src='textmarker.png';tipstopcount()" onmousedown="src='textmarker_down.png'" onmouseup="src='textmarker.png'"></div> <div id=coordlistplot oncontextmenu="return false" onclick="tb.deactivate();coordlistposter()"><img onmouseover="this.style.cursor='pointer';src='coordlistgo_hover.png';coordlistplot_tipsf()" src=coordlistgo.png onmouseout="src='coordlistgo.png';tipstopcount()" onmousedown="src='coordlistgo_down.png'" onmouseup="src='coordlistgo.png'"></div> <div id=zoomnorthdiv onclick="backgrounddefaultf()"><FORM NAME=zoomnorthform><INPUT ID=northinput value="Nord/B.gr." onfocus="northblank()" onblur="northdefault()" onmouseover="northinput_tipsf()" onmouseout="tipstopcount()" TYPE=TEXT NAME=north STYLE="border-radius:0;border:1px solid #91A2A7; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF; width:68px" maxlength=100></FORM></div> <div id=zoomeastdiv onclick="backgrounddefaultf()"><FORM NAME=zoomeastform><INPUT ID=eastinput value="Øst/L.gr." onfocus="eastblank()" onblur="eastdefault()" onmouseover="eastinput_tipsf()" onmouseout="tipstopcount()" TYPE=TEXT NAME=east STYLE="border-radius:0;border:1px solid #91A2A7; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF; width:63px" maxlength=100></FORM></div> <div id=zoom oncontextmenu="return false" onclick="tb.deactivate();zoomto()"><img onmouseover="this.style.cursor='pointer';src='zoomto_hover.png';zoom_tipsf()" src=zoomto.png onmouseout="src='zoomto.png';tipstopcount()" onmousedown="src='zoomto_down.png'" onmouseup="src='zoomto.png'"></div> <div id=showcoord oncontextmenu="return false"><span id=dynposu33></span><br><span id=dynposw84></span></div> <div id=dynposw84sar style="position:absolute;left:169px;top:325px;z-index:49" title="Search and Rescue-format"><img src=sar1.png></div> <div id=utmformat oncontextmenu="return false" onclick="utmformatf()" onmouseover="utmformatoverf()" onmouseout="utmformatoutf()"></div> <div id=dgformat oncontextmenu="return false" onclick="dgformatf()" onmouseover="dgformatoverf()" onmouseout="dgformatoutf()"></div> <div id=tooltips oncontextmenu="return false"></div> <div id=captcoord oncontextmenu="coordharvestf(); return false" onclick="tb.deactivate();captcoordf(); capturecursor()"><img onmouseover="this.style.cursor='pointer';src='captcoord_hover.png';captcoord_tipsf()" src=captcoord.png onmouseout="src='captcoord.png';tipstopcount()" onmousedown="src='captcoord_down.png'" onmouseup="src='captcoord.png'"></div></div> <div id=mapprintframeright oncontextmenu="return false"><img src=0.png></div> <div id=mapprintframebottom oncontextmenu="return false"><img src=0.png></div> <div id=mapexportposter style="position:absolute; left:214px; top:11px; z-index:60; display:none"><img src=mapexportposter2.png oncontextmenu="return false"> <div id=mapexportclose oncontextmenu="return false" onclick="mapexportclosef()"><img onmouseover="this.style.cursor='pointer'" src=mapexportclose.png></div> <div id=mapurltitle onmouseover="this.style.cursor='default'" oncontextmenu="return false">Lenke til dette kartet</div> <div id=mapurldiv><FORM NAME=mapexporturlform><INPUT ID=mapexporturlinput readonly=readonly onmouseover="mapexporturlf()" TYPE=TEXT NAME=mapexporturltext STYLE="border:1px solid #91A2A7; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF; width:500px" maxlength=100></FORM><span id=mapexporturl></span></div> <div id=mapprinttitle onmouseover="this.style.cursor='default'" oncontextmenu="return false">Skriv ut. (Noe ustabilitet)</div> <div id=mapprint oncontextmenu="return false" onclick="mapprintf()"><img onmouseover="this.style.cursor='pointer'" src=mapprint.png onmousedown="src='mapprint_down.png'" onmouseup="src='mapprint.png'"></div> <div id=mapprintnotes><FORM NAME=mapprintnotesform><INPUT ID=mapprintnotesinput TYPE=TEXT NAME=mapprintnotestext value=Tittel onclick="mapprintblank()" oninput="mapprintnotesupdate()" onblur="mapprintnotesupdate()" STYLE="border:1px solid #91A2A7; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF; width:134px" maxlength=70></FORM><span id=mapprintnotesurl></span></div> <div id=iframemaptitle onmouseover="this.style.cursor='default'" oncontextmenu="return false">Komponer en IFrame ...</div> <div id=iframemapbutton oncontextmenu="return false" onclick="iframemapf()"><img onmouseover="this.style.cursor='pointer'" src=iframe_mapexport.png onmousedown="src='iframe_mapexport_down.png'" onmouseup="src='iframe_mapexport.png'"></div></div> <div id=mapprintout oncontextmenu="return false"> <div id=mapprintlogo oncontextmenu="return false"><img src=0.png width=67 height=61></div> <div id=mapprintnotestop oncontextmenu="return false"></div> <div id=mapexportnote oncontextmenu="return false"><img src=0.png width=358 height=22></div> <div id=mapscaledexport oncontextmenu="return false"><img src=scale0.png></div></div> <div id=poster oncontextmenu="return false"><img src=0.png></div> <div id=photoposter oncontextmenu="return false" onclick="hideposter()"><img src=0.png> <div id=photodate onmouseover="this.style.cursor='default'" style="position:absolute;left:14px;top:436px;z-index:100"><img src=month01.png></div> <div id=photoviewpoint onmouseover="this.style.cursor='default'" style="position:absolute;left:30px;top:437px;z-index:100"><img src=viewpoint_heli.png title="Sett fra helikopter"></div> <div id=photoposterphotodir onmouseover="this.style.cursor='default'" style="position:absolute;left:53px;top:434px;z-index:99;color:#E5E5E5;font-family:Verdana, arial, helvetica, sans-serif; font-size:12px"></div> <div id=photoposterphotodirback onmouseover="this.style.cursor='default'"></div> <div id=photoposterphoto onclick="hideposter()" style="position:absolute;left:5px;top:5px;z-index:97"><img src=empty.png></div></div> <div id=aboutposter oncontextmenu="return false" style=z-index:90><img src=0.png> <div id=datastatus onclick="datastatusf()" onmouseover="this.style.cursor='pointer'" style="position:absolute; left:382px; top:242px;z-index:95"><img src=datastatus.png></div> <div id=customisetoposvalbard onclick="customisetoposvalbardf()" onmouseover="this.style.cursor='pointer'" style="position:absolute; right:-44px; top:72px;z-index:95"><img src=customise_no.png></div> <div id=about_toposvalbard_button onclick="abouttoposvalbardf()" style="position:absolute; left:31px; top:33px;z-index:95"><img src=about_toposvalbard_button_down.png></div> <div id=about_legend_button onclick="aboutlegendf()" style="position:absolute; left:190px; top:33px;z-index:95"><img src=about_legend_no_button.png onmousedown="src='about_legend_no_button_down.png'"></div> <div id=about_tools_button onclick="abouttoolsf()" style="position:absolute; left:349px; top:33px;z-index:95"><img src=about_tools_no_button.png onmousedown="src='about_tools_no_button_down.png'"></div> <div id=about_previous_button onclick="aboutprevious()" style="position:absolute; left:354px; top:55px;z-index:95"><img src=about_previous_button.png onmousedown="src='about_previous_button_down.png'" onmouseup="src='about_previous_button.png'"></div> <div id=about_next_button onclick="aboutnext()" style="position:absolute; left:385px; top:55px;z-index:95"><img src=about_next_button.png onmousedown="src='about_next_button_down.png'" onmouseup="src='about_next_button.png'"></div> <div id=about_pagenum style="position:absolute; left:417px; top:56px; z-index:95; color:#7C8284; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px"></div> <div id=about_page style="position:absolute; top:0px;left:0px;z-index:90"><img src=0.png></div></div> <div id=scale3dnb oncontextmenu="return false" onmousedown="scale3dnotedownf()" onmouseup="scale3dnoteupf()" onmouseout="scale3dnoteupf()" onmouseover="this.style.cursor='pointer'"><img src=scale3dnb.png></div> <div id=scale3dnote oncontextmenu="return false"><img src=scale3dnote_no.png></div> <div id=mapscaled oncontextmenu="return false" onclick="measureunitf()" onmouseover="this.style.cursor='pointer'"><img src=scale0.png></div> <div id=terms oncontextmenu="return false" onclick="termsf()"><img src=terms_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=accuracy oncontextmenu="return false" onclick="accuracyf()"><img src=accuracy_no.png onmouseover="this.style.cursor='pointer'"></div> <div id=copyright oncontextmenu="return false"><img src=copyright.png></div> <div id=npolardiv oncontextmenu="return false" title="Norsk Polarinstitutts forside"><a id=npolar href="https://www.npolar.no"><img src=npolar_no.png onmouseover="this.style.cursor='pointer'"></a></div> <div id=svalbardworld style="position:fixed; right:20px; top:20px; z-Index:74;display:none;"><img src=svalbardworld.png></div> <div id=cursorlength></div> <div id=cursorshow></div> <div id=map oncontextmenu="mapmaporthof(); return false" ondragover="return false" ondragend="return false" dojotype=dijit.layout.ContentPane region=center style=z-index:10> <div id=zoomedinmarker oncontextmenu="return false" style="position:absolute;right:86px;top:79px;z-index:74; display:none"><img src=zoomedinmarker.png></div> <div id=ovWin style="position:fixed; right:20px; top:-1019px; z-Index:9; width:138px;height:138px"> <div id=overviewDiv></div></div> <div id=omapback style="display:none; position:fixed; right:7px; top:11px; z-Index:8; width:165px;height:164px"><img src=omap.png></div></div> <div id=outsideposter oncontextmenu="outsidenoout(); return false" onmousedown="hideposter()"></div> <div id=coordlistposter><img oncontextmenu="return false" src=0.png> <div id=coordtypeshide oncontextmenu="return false" style="position:absolute;left:339px;top:51px;height:226px;width:93px;background-color:#FF0000;opacity:.10;filter:Alpha(opacity=10);z-index:75;display:none"></div> <div id=tableinfobutton oncontextmenu="datatypef(); return false" onclick="datatypef()" style="position:absolute;left:414px;top:33px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=tableinfo oncontextmenu="return false" onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:35px;width:90px;height:16px;font-weight:bold"><b>Dataliste</b></div> <div id=datalistgroup oncontextmenu="return false"> <div id=dataformattitle onmouseover="this.style.cursor='default'" style="position:absolute;left:414px;top:57px">Dataformat:</div> <div id=dataformatbutton oncontextmenu="dataformatbackbuttonf(); return false" onclick="dataformatbuttonf()" style="position:absolute;left:414px;top:71px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=dataformattext onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:73px;width:90px;height:16px">Desimalgr.</div> <div id=separatortitle onmouseover="this.style.cursor='default'" style="position:absolute;left:414px;top:94px">Skilletegn:</div> <div id=separatorbutton oncontextmenu="separatorbackbuttonf(); return false" onclick="separatorbuttonf()" style="position:absolute;left:414px;top:108px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=separatortext onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:110px;width:90px;height:16px">;</div> <div id=labeltitle onmouseover="this.style.cursor='default'" style="position:absolute;left:414px;top:131px">Etikett-felt:</div> <div id=labelbutton oncontextmenu="labelbackbuttonf(); return false" onclick="labelbuttonf()" style="position:absolute;left:414px;top:145px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=labeltext onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:147px;width:90px;height:16px">0/4</div> <div id=easttitle onmouseover="this.style.cursor='default'" style="position:absolute;left:414px;top:168px">Øst-felt:</div> <div id=eastbutton oncontextmenu="eastbackbuttonf(); return false" onclick="eastbuttonf()" style="position:absolute;left:414px;top:182px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=easttext onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:184px;width:90px;height:16px">3/4</div> <div id=northtitle onmouseover="this.style.cursor='default'" style="position:absolute;left:414px;top:205px">Nord-felt:</div> <div id=northbutton oncontextmenu="northbackbuttonf(); return false" onclick="northbuttonf()" style="position:absolute;left:414px;top:219px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=northtext onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:221px;width:90px;height:16px">4/4</div> <div id=plotlinetitle onmouseover="this.style.cursor='default'" style="position:absolute;left:414px;top:242px">Plott som:</div> <div id=plotlinebutton oncontextmenu="plotlinebackbuttonf(); return false" onclick="plotlinebuttonf()" style="position:absolute;left:414px;top:256px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=plotlinetext onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:258px;width:90px;height:16px">Punkter (P)</div></div> <div id=gpxgroup style=display:none oncontextmenu="return false"> <div id=waypointbutton onclick="waypointbuttonf()" style="position:absolute;left:414px;top:57px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=waypointtext onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:59px;width:90px;height:16px">Waypoint</div> <div id=namebutton onclick="namebuttonf()" style="position:absolute;left:414px;top:80px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=nametext onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:82px;width:90px;height:16px">WP Name</div> <div id=trackbutton onclick="trackbuttonf()" style="position:absolute;left:414px;top:103px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=tracktext onmouseover="this.style.cursor='default'" style="position:absolute;left:436px;top:105px;width:90px;height:16px">Track</div> <div id=tracksimpbutton onclick="tracksimpf()" style="position:absolute;left:423px;top:122px"><img onmouseover="this.style.cursor='pointer'" src=measureunit.png onmousedown="src='measureunit_down.png'" onmouseup="src='measureunit.png'"></div> <div id=tracksimptext onmouseover="this.style.cursor='default'" style="position:absolute;left:445px;top:124px;width:90px;height:100px;text-decoration:line-through">Forenklet</div></div> <form id=cl_Form><textarea id=cl_textarea spellcheck=false onclick="wrapper()" onblur="cl_default()" style="z-index:99; position:absolute; width:373px; height:360px;top:32px; left:33px;resize:none; border:1px solid #91A2A7; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF"></textarea><textarea id=cl_textareaerror spellcheck=false style="z-index:98; display:none; position:absolute; width:298px; height:56px;top:243px; left:33px;resize:none; border:2px solid #FF0000; color:#434A4C; font-family:Verdana, arial, helvetica, sans-serif; font-size:11px; background-color:#FFFFFF"></textarea> </form> <div id=coordlistplotnow oncontextmenu="return false" onclick="cl_gof()" style="position:absolute;width:116px;height:21px;left:414px;top:283px"><img onmouseover="this.style.cursor='pointer'" src=plot_points_no.png onmousedown="plotdown()" onmouseup="plotup()"></div></div> <div id=m3dexp style="display:none; position:absolute; overflow:hidden; left:0px; top:0px; width:100px; height:100px; z-index:23; background-color:#E2F0FB"><iframe id=i3dexpid name=i3dexp src=blank.html></iframe></div> <div id=owgnote oncontextmenu="return false" style="display:none; position:absolute; overflow:hidden; left:4px; bottom:0px; z-index:100"><img src=owgnote_no.png></div> <div id=landsatnote oncontextmenu="return false" style="display:none; position:absolute; overflow:hidden; left:4px; bottom:0px; z-index:60"><img src=sentinelnote_no.png></div> <div id=sentinelnote oncontextmenu="return false" style="display:none; position:absolute; overflow:hidden; left:4px; bottom:0px; z-index:60"><img src=sentinelnote_no.png></div> <div id=settlenote oncontextmenu="return false" style="display:none; position:absolute; overflow:hidden; left:4px; bottom:0px; z-index:60"><img src=settlenote_no.png></div> <div id=nauticalnote oncontextmenu="return false" style="display:none; position:absolute; overflow:hidden; left:1px; bottom:-2px; z-index:60"><img src=nauticalnote_no0.png></div> <div id=nauticalnmalink title="Kartverkets nettside" oncontextmenu="return false" onclick="nmawebsite()" onmouseover="this.style.cursor='pointer'" style="display:none; position:absolute; overflow:hidden; left:16px; bottom:0px; z-index:61"><img src=nmalink_no.png></div> <div id=terrainnote oncontextmenu="return false" style="display:none; position:absolute; overflow:hidden; left:1px; bottom:-2px; z-index:60"><img src=terrainnote_no1.png></div> <div id=ortho36note oncontextmenu="return false" style="display:none; position:absolute; overflow:hidden; left:1px; bottom:-2px; z-index:60"><img src=ortho36note_no.png></div> <div id=ortho36link title="Kartverkets nettside" oncontextmenu="return false" onclick="ortho36website()" onmouseover="this.style.cursor='pointer'" style="display:none; position:absolute; overflow:hidden; left:1px; bottom:0px; z-index:61"><img src=ortho36link_no.png></div> <div id=terrainnmalink title="Kartverkets nettside" oncontextmenu="return false" onclick="nmawebsite()" onmouseover="this.style.cursor='pointer'" style="display:none; position:absolute; overflow:hidden; left:16px; bottom:0px; z-index:61"><img src=nmalink_no.png></div> <div id=bordertop oncontextmenu="return false" style="position:absolute;top:0px;left:0px;height:1px;width:100px;z-index:99;background-color:#000000;display:none"></div> <div id=borderbottom oncontextmenu="return false" style="position:absolute;bottom:0px;left:0px;height:1px;width:100px;z-index:99;background-color:#000000;display:none"></div> <div id=borderleft oncontextmenu="return false" style="position:absolute;top:0px;left:0px;height:100px;width:1px;z-index:99;background-color:#000000;display:none"></div> <div id=borderright oncontextmenu="return false" style="position:absolute;top:0px;right:0px;height:100px;width:1px;z-index:99;background-color:#000000;display:none"></div></div> <script type="text/javascript">function timedCount(){c=c+1;t=setTimeout("timedCount()",600000);} function doTimer(){if(!timer_is_on){timer_is_on=0;timedCount();}}</script> <script type="text/javascript" src=yui-min.js charset=utf-8></script> <script type="text/javascript">YUI().use("autocomplete","autocomplete-filters","autocomplete-highlighters",function(Y){Y.one('body').addClass('yui3-skin-sam');var base="https://api.npolar.no";var limit=10;var source=base+"/placename/?q-name.@value={query}&filter-area=Svalbard&filter-status=official&not-terrain.nn=utm%C3%A5l|verneomr%C3%A5de&format=geojson&fields=id,type,geometry,name,area,terrain,terrain_type&limit="+limit+"";var autocomplete=Y.one('#geoname_autocomplete');autocomplete.plug(Y.Plugin.AutoComplete,{resultHighlighter:'phraseMatch',resultListLocator:'features',resultTextLocator:'name.@value',source:source});autocomplete.ac.on('select',function(event){var p=event.result.raw;var name=p.name['@value'];var coords=p.geometry.coordinates;var latitude=(coords[1]||0).toFixed(5);var longitude=(coords[0]||0).toFixed(5);north=event.result.raw.north;east=event.result.raw.east;var pw84pn=proj4(w84,u33,[longitude,latitude]).toString();longitude=Math.round(parseFloat(pw84pn.slice(0,(pw84pn.indexOf(",")))));latitude=Math.round(parseFloat(pw84pn.slice(pw84pn.indexOf(",")+1)));pt=new esri.geometry.Point(longitude,latitude,new esri.SpatialReference({wkid:25833}));map.centerAndZoom(pt,4);symbol=new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27);graphicz=new esri.Graphic(pt,symbol);graphicid++;graphic[graphicid]=graphicLayer.add(graphicz);textSymbol=new esri.symbol.TextSymbol("\u00A0"+"\u00A0"+"\u00A0"+name,font,new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START);ptt=new esri.geometry.Point(longitude,latitude);labelPointGraphic=new esri.Graphic(ptt,textSymbol);graphicid++;graphic[graphicid]=graphicLayer.add(labelPointGraphic);cl_graphic=0;});});</script> <script type="text/javascript" src=npolar-placename-bbox.js charset=utf-8></script> <script type="text/javascript">function createNameList(features){var names=features.forEach(function(f){plotpn(f)});} function proc(fc){if(fc&&fc.features&&fc.type==='FeatureCollection'){console.debug('names',fc.features);createNameList(fc.features);}} function bbox_from_extent(extent){var w,s,e,n;var bbmin=proj4(u33,w84,[extent.xmin,extent.ymin]).toString();var bbmax=proj4(u33,w84,[extent.xmax,extent.ymax]).toString();var bbminx=(parseFloat(bbmin.slice(0,(bbmin.indexOf(","))))).toFixed(5);var bbminy=(parseFloat(bbmin.slice(bbmin.indexOf(",")+1))).toFixed(5);var bbmaxx=(parseFloat(bbmax.slice(0,(bbmax.indexOf(","))))).toFixed(5);var bbmaxy=(parseFloat(bbmax.slice(bbmax.indexOf(",")+1))).toFixed(5);w=parseFloat(bbminx)-0.02;s=parseFloat(bbminy)-0.02;e=parseFloat(bbmaxx)+0.02;n=parseFloat(bbmaxy)+0.02;return[w,s,e,n];} function pndotsf(){pnLayer.clear();var bbox=bbox_from_extent(map.extent);var placename_bbox=new NpolarPlacenameBbox();placename_bbox.find(bbox,proc);} function plotpn(f){var lon,lat;if(f.longitude&&f.latitude){lon=f.longitude;lat=f.latitude;} else if(f.geometry&&f.geometry.coordinates){lon=f.geometry.coordinates[0];lat=f.geometry.coordinates[1];} var pw84pp=proj4(w84,u33,[lon,lat]).toString();var pw84ppx=Math.round(parseFloat(pw84pp.slice(0,(pw84pp.indexOf(",")))));var pw84ppy=Math.round(parseFloat(pw84pp.slice(pw84pp.indexOf(",")+1)));var lang='en';var definition=(f.texts&&f.texts.definition&&f.texts.definition[lang])?f.texts.definition[lang]:'';if(definition!=""){definition="["+definition+".]";} var origin=(f.texts&&f.texts.origin&&f.texts.origin[lang])?f.texts.origin[lang]:'';if(origin!=""){origin=origin+"."+'\n'+'\n'};var terrain="("+f.terrain[lang]+")"+'\n';;if(origin==""){pS1=new esri.symbol.PictureMarkerSymbol("pnmarkersee.png",24,28);} else{pS1=new esri.symbol.PictureMarkerSymbol("pnmarker.png",24,28);} var pP1c;if(map.getLevel()==6){pP1c=400}else if(map.getLevel()==7){pP1c=200}else if(map.getLevel()==8){pP1c=100}else if(map.getLevel()==9){pP1c=50}else if(map.getLevel()==10){pP1c=25}else if(map.getLevel()==11){pP1c=12.5};var pninfo="\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+f.name['@value']+'\n'+"\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+"\u00A0"+terrain+'\n'+origin+definition;var pP1={"geometry":{"x":pw84ppx,"y":pw84ppy-pP1c},"attributes":{"pnlink":"https://placenames.npolar.no/placename/"+f.id+"?name="+f.name['@value'],"pninfo":pninfo}};if(f.name['@value']!=="Negerpynten"&&f.name['@value']!=="Negerdalen"&&f.name['@value']!=="Negerfjellet"){pU1=new esri.Graphic(pP1);pU1.setSymbol(pS1);pnLayer.add(pU1);}}</script> <script>document.getElementById('map').ondrop=function(e){e.preventDefault();reader=new FileReader();reader.readAsText(e.dataTransfer.files[0]);if(e.dataTransfer.files[0].name=="sarfuel.txt"){document.getElementById("sartext").innerHTML=e.dataTransfer.files[0].name;reader.onload=function(event){sarlist=event.target.result;sartoolsf();};}};</script> <noscript>TopoSvalbard krever at JavaScript er aktivert i nettleseren / TopoSvalbard requires that JavaScript is enabled in your web browser</noscript></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10