CINXE.COM
TopoJanMayen - Norsk Polarinstitutt
<!DOCTYPE html> <html> <head> <meta name="google-site-verification" content="n_q9vULiP6nEgTlqAeR_QVIa8lAov6lc4WybByVuhwY" /> <meta name="robots" content="noimageindex"> <meta name="description" content="Interaktivt kart over Jan Mayen fra Norsk Polarinstitutt / Interactive map of Jan Mayen by the Norwegian Polar Institute"> <meta name="keywords" content="kart, map, Jan Mayen"> <link rel="canonical" href="/" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="SHORTCUT ICON" HREF="favicon.ico"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>TopoJanMayen - 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 tjminiurl = document.URL; tjminiurl = tjminiurl.replace("topojanmayen.npolar.no/","topojanmayen.npolar.no/tjmini.html"); tjminiurl = tjminiurl.replace("topojanmayen.npolar.no/index.html","topojanmayen.npolar.no/tjmini.html"); window.location.href = tjminiurl; } if (urlsearch.indexOf("version=mini") > 0) {window.location.href = "tjmini.html";} } </script> <link rel="stylesheet" type="text/css" href="https://serverapi.arcgisonline.com/jsapi/arcgis/2.7/js/dojo/dijit/themes/tundra/tundra.css"> <script src="photos.js" type="text/javascript"></script> <script src="proj4js-compressed.js" type="text/javascript"></script> <script type="text/javascript">var djConfig = {parseOnLoad: true}</script> <script type="text/javascript" src="https://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.7"></script> <script type="text/javascript"> document.onkeypress = stopRKey; dojo.require("dijit.dijit"); dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.ContentPane"); dojo.require("esri.map"); dojo.require("esri.toolbars.draw"); dojo.require("esri.tasks.geometry"); dojo.require("esri.dijit.OverviewMap"); Proj4js.defs["EPSG:4326"] = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"; Proj4js.defs["EPSG:32629"] = "+proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"; var layer; var evt; var pl; var markerSymbol; var l_lang; var markergraphic; var zoomnorthform; var zoomeastform; var eastd; var eastm; var easts; var node; var runde; var i=0; var ronde; var polylineJson; var polylineSymbol; var polyline; var textSymboll; var pttl; var labelPointGraphicl; var cl_linepart; var cl_linestart = 0; var cl_value; var fontl; var textSymbol; var ptt; var labelPointGraphic; var cl_semicolonposstart; var cl_semicolonposPart; var cl_lineend; var cl_Id; var cl_east; var cl_north; var cl_graphicidstart = graphicid; var isIE11; var ptl; var symboll; var cl_zdd; var cl_markerSymbol; var poigraphicid = 0; var poigraphic; var poipl; var urllink = document.URL; var urllat = "0"; var urllng = "0"; var urlzoom = "5"; var urlpoi = "0"; var upos; var coordoff = 0; var activegraphic; var xpos; var ypos; var pPoint=0; var factor; var aerialimage; var pnjumplink; var pnlang = "&lang=nn"; var photopoint_tips = "Vis/skjul bilde-punkter"; var namepoint_tips = "Vis/skjul stedsnavn-punkter"; var coordlistplot_tips = "Plott dataliste/GPX ..."; var geoname_autocomplete_tips = "Skriv og velg fra listen"; var language_tips = "Switch to English"; var aboutpopup_tips = "Om portalen / Hjelp"; var measureresults_tips = "Måleresultat"; var measureunit_tips = "Velg måleenhet (km/mi/nm)"; var measure_tips = "Mål avstand/tegn linje i kartet"; 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 = "29W7868703/ 70.9218/" + "<br>" + "70 55.31/ 70 55 19"; var eastinput_tips = "29W510314/ -8.7173/" + "<br>" + "-8 43.04/ -8 43 2"; var zoom_tips = "Zoom til koordinater"; var captcoord_tips = "Klikk et punkt i kartet for koordinater"; var zoomhelp = 0; var tiptimer; var tiptimerison = "null"; var timer_is_onn=0; var cn=0; var tn; var aerialname = 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 = new Proj4js.Proj('EPSG:4326'); var u29 = new Proj4js.Proj('EPSG:32629'); 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 vp_x = "Satellittbilde"; var gullnum; var gullgo; var gullrandom; var gullleft; var gulltop; var pppdl = "Utsikt mot "; var dataformat = "Desimalgr."; var separator = ";"; var language = "no"; var abouttab = "topojanmayen"; var abouttoolspage = "1"; var aboutlimitationspage = "1"; var direast = "V"; var koordlang = "Koordinater"; var mapscalesep; var measureunit = "km"; var measureline = "0"; var posterchoice; var accuracyboard = "accuracyboard_no.png"; var termsboard = "termsboard_no.png"; var map; var tb; var wrapperv = "1"; var graphicz; var graphic = {}; var graphicid = 0; var font = 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"); 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 = 2; var cl_colnum_north = 3; var cl_colnum_east = 4; var cl_colnum_label_text; var cl_colnum_north_text; var cl_colnum_east_text; var cl_textarea_default = "001;TestData 1;70.8726;-8.9078\n002;TestData 2;71.0826;-8.3570\n003;TestData 3;71.0116;-8.0818\n004;TestData 4;70.9688;-8.3886"; var gpx_textarea_default = "[Lim inn innholdet i en GPX-fil her, og velg ønskede element-typer for plotting. For lange track-segmenter, vil forenkle-funksjonen øke opptegningsytelsen. Ytelsen varierer betydelig mellom ulike nettlesere, hvor Firefox er av de beste.]"; var S; var U; var pR = {}; var pZ = 0; var pS; var pP; var pU; var pCam = 0; var pPlane = 0; var pName = 0; var pCamPoint = 0; var pPlanePoint = 0; var pNamePoint = 0; var zooomext2 = 0; var photoLayer; var activeLayer; var pnLayer; var tmpLayer; //inntil karttjenesten oppdateres var boundingLayer; //inntil karttjenesten oppdateres var datatype = "datalist"; var gpxfile; var waypointshow = 1; var nameshow = 1; var trackshow = 1; var tracksimp = 0; var measureoff = 1; var pninfoboxshow = 0; var aerialboxshow = 0; var ct; var north; var northd; var northm; var norths; var east; var zdd; var newExtent; var pt; var symbol; var landsatLayer; function timedCountn(){ if (document.getElementById("accuracy").style.display == "block") { document.getElementById("accuracy").style.display = "block"; document.getElementById("terms").style.display = "block"; document.getElementById("copyright").style.display = "block"; document.getElementById("npolardiv").style.display = "block"; } else { document.getElementById("accuracy").style.display = "block"; document.getElementById("terms").style.display = "block"; document.getElementById("copyright").style.display = "block"; document.getElementById("npolardiv").style.display = "block"; } cn=cn+1; tn=setTimeout("timedCountn()",500); if (cn==8){ timer_is_onn=1; clearTimeout(tn); document.getElementById("accuracy").style.display = "block"; document.getElementById("terms").style.display = "block"; document.getElementById("copyright").style.display = "block"; document.getElementById("npolardiv").style.display = "block"; } } function doTimern(){ if (!timer_is_onn){ timer_is_onn=0; timedCountn(); } } function notetimeroff() { timer_is_onn=1; clearTimeout(tn); document.getElementById("accuracy").style.display = "block"; document.getElementById("terms").style.display = "block"; document.getElementById("copyright").style.display = "block"; document.getElementById("npolardiv").style.display = "block"; } function geoname (event) { north = event.result.raw.north; east = event.result.raw.east; zdd = new Proj4js.Point(east,north); Proj4js.transform(w84, u29, zdd); newExtent = new esri.geometry.Extent(zdd.x-20000,zdd.y,zdd.x+20000,zdd.y, map.spatialReference); map.setExtent(newExtent); pt = new esri.geometry.Point(zdd.x,zdd.y); symbol = new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz = new esri.Graphic(pt, symbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + "\u00A0" + event.result.raw.title, font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); ptt = new esri.geometry.Point(zdd.x,zdd.y); labelPointGraphic = new esri.Graphic(ptt,textSymbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphic); cl_graphic = 0; } function modusav() { modus = -2; measureoff = 0; } function outsidenoout() { modus = -5; } function wrapper () { if (wrapperv == "1") { document.getElementById("cl_textarea").wrap = "off"; document.getElementById("cl_textarea").value = ""; wrapperv = "0"; } } 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 coordlistposter () { document.getElementById("pninfobox").style.display = "none"; document.getElementById("aerialbox").style.display = "none"; activeLayer.remove(activegraphic); document.getElementById("coordlistplot").style.border = "none"; document.getElementById("coordlistposter").style.display = "block"; document.getElementById("outsideposter").style.display = "block"; document.getElementById("coordlistposter").style.left = (document.documentElement.offsetWidth/2)- 233 +"px"; document.getElementById("coordlistposter").style.top = (document.documentElement.offsetHeight/2)- 169 +"px"; document.getElementById("dataformattext").innerHTML = dataformat; } function datatypef () { document.getElementById("cl_textarea").style.height = "269px"; document.getElementById("cl_textareaerror").style.display = "none"; if (datatype == "datalist") { datatype = "GPX"; document.getElementById("tableinfo").innerHTML = "<b>GPX</b>"; document.getElementById("datalistgroup").style.display = "none"; document.getElementById("gpxgroup").style.display = "block"; if (wrapperv == "1") {document.getElementById("cl_textarea").value = gpx_textarea_default;} } else if (datatype == "GPX") { datatype = "datalist"; if (language == "no") {document.getElementById("tableinfo").innerHTML = "<b>Dataliste</b>";} else {document.getElementById("tableinfo").innerHTML = "<b>Data list</b>";} document.getElementById("datalistgroup").style.display = "block"; document.getElementById("gpxgroup").style.display = "none"; if (wrapperv == "1") {document.getElementById("cl_textarea").value = cl_textarea_default;} } } function cl_gof () { clerror = ""; polylineJson; polylineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,0,0]), 2); 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 (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); } } cl_linepart; cl_semicolonposstart; cl_semicolonposPart; cl_lineend; cl_Id; cl_east; cl_north; 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; 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 = cl_lines + 1;} if (datatype !== "GPX") { 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_graphic + 1; cl_value = "#" + cl_value.slice(0,cl_value.length); if (navigator.appName=="Microsoft Internet Explorer") {cl_lines = cl_lines + 1;} cl_north_prev = 0; cl_east_prev = 0; while (cl_line<cl_lines-1) { cl_north_prev = cl_north; cl_east_prev = cl_east; 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 == "UTM29W") { cl_north = parseInt (cl_north, 10); cl_east = parseInt (cl_east, 10); } else if (dataformat == desgr) { cl_north = parseFloat(cl_north.replace(",",".")); cl_east = parseFloat(cl_east.replace(",",".")); cl_zdd = new Proj4js.Point(cl_east,cl_north); Proj4js.transform(w84, u29, cl_zdd); cl_north = cl_zdd.y; cl_east = cl_zdd.x; } graphicid = graphicid + 1; if (cl_north > 7825779 && cl_north < 7927767 && cl_east > 464964 && cl_east < 570846 && cl_north_prev > 7825779 && cl_north_prev < 7927767 && cl_east_prev > 464964 && cl_east_prev < 570846) { polylineJson = {"paths":[[[cl_east_prev,cl_north_prev], [cl_east,cl_north]]]}; polyline = new esri.geometry.Polyline(polylineJson); graphic[graphicid] = map.graphics.add(new esri.Graphic(polyline,polylineSymbol)); if (cl_east_prev == undefined) {cl_plotline = graphicid;} } } } 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") { 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_graphic + 1; cl_value = "#" + cl_value.slice(0,cl_value.length); if (navigator.appName=="Microsoft Internet Explorer") {cl_lines = cl_lines + 1;} 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_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 == "UTM29W") { cl_north = parseInt (cl_north,10); cl_east = parseInt (cl_east,10); } else if (dataformat == desgr) { cl_north = parseFloat(cl_north.replace(",",".")); cl_east = parseFloat(cl_east.replace(",",".")); cl_zdd = new Proj4js.Point(cl_east,cl_north); Proj4js.transform(w84, u29, cl_zdd); cl_north = cl_zdd.y; cl_east = cl_zdd.x; } if (cl_north > 7825779 && cl_north < 7927767 && cl_east > 464964 && cl_east < 570846) { ptl = new esri.geometry.Point(cl_east,cl_north); symboll = cl_markerSymbol; graphicz = new esri.Graphic(ptl, symboll); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); } else { ptl = new esri.geometry.Point(350000,8200000); clerror = cl_lineerr; document.getElementById("cl_textareaerror").value = document.getElementById("cl_textareaerror").value + clerror; document.getElementById("cl_textareaerror").value = document.getElementById("cl_textareaerror").value + "\n"; symboll = cl_markerSymbol; graphicz = new esri.Graphic(ptl, symboll); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.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_textarea").style.height = "269px"; document.getElementById("cl_textareaerror").style.display = "none"; } } 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; 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_graphic + 1; cl_value = "#" + cl_value.slice(0,cl_value.length); if (navigator.appName=="Microsoft Internet Explorer") {cl_lines = cl_lines + 1;} 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 == "UTM29W") { cl_north = parseInt (cl_north,10); cl_east = parseInt (cl_east,10); } else if (dataformat == desgr) { cl_north = parseFloat(cl_north.replace(",",".")); cl_east = parseFloat(cl_east.replace(",",".")); cl_zdd = new Proj4js.Point(cl_east,cl_north); Proj4js.transform(w84, u29, cl_zdd); cl_north = cl_zdd.y; cl_east = cl_zdd.x; } if (cl_north > 7825779 && cl_north < 7927767 && cl_east > 464964 && cl_east < 570846) { textSymboll = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + cl_colnum_label_text, fontl, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_start); pttl = new esri.geometry.Point(cl_east,cl_north); labelPointGraphicl = new esri.Graphic(pttl,textSymboll); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphicl); } else { textSymboll = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + cl_colnum_label_text, fontl, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_start); pttl = new esri.geometry.Point(350000,8200000); labelPointGraphicl = new esri.Graphic(pttl,textSymboll); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphicl); } } } if (separator == "\t") {separator = "[TAB]";} if (separator == " ") {separator = "[SPACE]";} } else { if (trackshow == 1) { 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_graphic + 1; cl_value = "#" + cl_value.slice(0,cl_value.length); if (navigator.appName=="Microsoft Internet Explorer") {cl_lines = cl_lines + 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("<trkseg>")>-1) { 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("</trkseg>")>-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 = runde + 1; 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(",",".")); cl_zdd = new Proj4js.Point(cl_east,cl_north); Proj4js.transform(w84, u29, cl_zdd); cl_north = cl_zdd.y; cl_east = cl_zdd.x; 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); if (cl_north > 7825779 && cl_north < 7927767 && cl_east > 464964 && cl_east < 570846 && cl_north_prev > 7825779 && cl_north_prev < 7927767 && cl_east_prev > 464964 && cl_east_prev < 570846) { graphicid = graphicid + 1; graphic[graphicid] = map.graphics.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(",",".")); cl_zdd = new Proj4js.Point(cl_east,cl_north); Proj4js.transform(w84, u29, cl_zdd); cl_north = cl_zdd.y; cl_east = cl_zdd.x; 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); if (cl_north > 7825779 && cl_north < 7927767 && cl_east > 464964 && cl_east < 570846 && cl_north_prev > 7825779 && cl_north_prev < 7927767 && cl_east_prev > 464964 && cl_east_prev < 570846) { graphicid = graphicid + 1; graphic[graphicid] = map.graphics.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 = cl_graphic + 1;} if (nameshow == 1) {cl_graphic = cl_graphic + 1;} cl_value = "#" + cl_value.slice(0,cl_value.length); if (navigator.appName=="Microsoft Internet Explorer") {cl_lines = cl_lines + 1;} 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(",",".")); cl_zdd = new Proj4js.Point(cl_east,cl_north); Proj4js.transform(w84, u29, cl_zdd); cl_north = cl_zdd.y; cl_east = cl_zdd.x; if (cl_north > 7825779 && cl_north < 7927767 && cl_east > 464964 && cl_east < 570846) { if (waypointshow == 1) { ptl = new esri.geometry.Point(cl_east,cl_north); symboll = cl_markerSymbol; graphicz = new esri.Graphic(ptl, symboll); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.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("</name>;", ""); textSymboll = new esri.symbol.TextSymbol("\u00A0" + cl_colnum_label_text, fontl, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_start); pttl = new esri.geometry.Point(cl_east,cl_north); labelPointGraphicl = new esri.Graphic(pttl,textSymboll); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphicl); break; } if (cl_linepart.indexOf("</wpt>")>-1){break;} } } } else { if (waypointshow == 1) { ptl = new esri.geometry.Point(350000,8200000); symboll = cl_markerSymbol; graphicz = new esri.Graphic(ptl, symboll); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.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("</name>;", ""); textSymboll = new esri.symbol.TextSymbol("\u00A0" + cl_colnum_label_text, fontl, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_start); pttl = new esri.geometry.Point(350000,8200000); labelPointGraphicl = new esri.Graphic(pttl,textSymboll); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphicl); break; } if (cl_linepart.indexOf("</wpt>")>-1){break;} } } } } } } cl_lines = graphicid - cl_graphicidstart; } } } } function stopRKey(evt) { evt = (evt) ? evt : ((event) ? event : null); node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); if ((evt.keyCode == 13) && ((node.type=="text") || (node.type=="search"))) {return false;} } function showhide () { if(document.getElementById("panel").style.display == "none") { document.getElementById("panel").style.display = "block"; document.getElementById("panelright").style.display = "block"; } else { document.getElementById("panel").style.display = "none"; document.getElementById("panelright").style.display = "none"; } } function showhideomap () { if(document.getElementById("ovWin").style.display == "none") { document.getElementById("ovWin").style.display = "block"; document.getElementById("omapback").style.display = "block"; } else { document.getElementById("ovWin").style.display = "none"; document.getElementById("omapback").style.display = "none"; } } function defaultcursor() { map.setMapCursor("pointer"); } function measurecursor() { map.setMapCursor("url(measure.cur),auto"); } function capturecursor() { map.setMapCursor("url(coord.cur),auto"); } function textmarkerf(geometry) { 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=="") { 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=="") { map.setMapCursor("url(marker.cur),auto"); modus = "marker"; } else { modus = "text"; map.setMapCursor("url(text.cur),auto"); } } } function captcoordf(geometry) { modus = "captcoord"; } function gullf () { 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 init() { isIE11 = !!(navigator.userAgent.match(/Trident/) && navigator.userAgent.match(/rv:11/)); if (isIE11 == true) { document.getElementById("ie11user").style.display = "block"; } document.getElementById("tooltips").innerHTML = ""; if (navigator.userAgent.search("Firefox")>0){ 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"; } dojo.byId("dynposu29").innerHTML = ""; dojo.byId("dynposw84").innerHTML = ""; document.getElementById("panel").style.display = "block"; document.getElementById("panelright").style.display = "block"; document.getElementById("showhide").style.display = "block"; document.getElementById("transpleftedge").style.display = "block"; document.getElementById("transprightedge").style.display = "block"; document.getElementById("transplength").style.display = "block"; document.getElementById("transplengthright").style.display = "block"; document.getElementById("mapscaled").style.display = "block"; 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("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.gif"; esri.config.defaults.map.zoomDuration = 250; var lods = [ {"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}, {"level": 13, "scale": 10000, "resolution": 2.64583862501058} ]; map = new esri.Map("map",{fadeOnZoom:false, logo:false, slider:false, lods:lods}); layer = new esri.layers.ArcGISTiledMapServiceLayer("https://geodata.npolar.no/ArcGIS/rest/services/Basisdata/NP_Basiskart_JanMayen_WMTS_25829/MapServer"); //This map service is for the TopoJanMayen web application and subscribers in Norge digitalt only. Other use is prohibited. map.addLayer(layer); map.centerAndZoom(new esri.geometry.Point(514878,7875000),0); map.setMapCursor("default"); geometryService = new esri.tasks.GeometryService("https://geodata.npolar.no/arcgis/rest/services/Utilities/Geometry/GeometryServer"); //This geometry service is for the TopoJanMayen web application only. Other use is prohibited. landsatLayer = new esri.layers.ArcGISTiledMapServiceLayer("https://geodata.npolar.no/arcgis/rest/services/Basisdata/NP_Satellitt_JanMayen_WMTS_25829/MapServer"); map.addLayer(landsatLayer); landsatLayer.hide(); dojo.connect(geometryService, "onLengthsComplete", outputDistance); tb = new esri.toolbars.Draw(map, {showTooltips: false}); var lengthParams = new esri.tasks.LengthsParameters(); dojo.connect(tb, "onDrawEnd", function(geometry) { measureoff = 1; lengthParams.polylines = [geometry]; lengthParams.lengthUnit = esri.tasks.GeometryService.UNIT_METER; lengthParams.geodesic = true; geometryService.lengths(lengthParams); graphicid = graphicid + 1; cl_graphic = 0; graphic[graphicid] = map.graphics.add(new esri.Graphic(geometry, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,0,0]), 3))); tb.deactivate(); modus = 0; map.setMapCursor("default"); }); dojo.connect(map, "onLoad", function() { esri.bundle.widgets.overviewMap.NLS_drag = ""; dojo.connect(map, "onMouseMove", showCoordinates); dojo.connect(map, "onPanStart", pPoint2f); dojo.connect(map, "onPan", hidepoilayer); dojo.connect(map, "onMouseDown", hideextraf); dojo.connect(map, "onMouseDrag", hideposter); dojo.connect(map, "onMouseOut", mouseout); dojo.connect(photoLayer,"onClick", photopointf); dojo.connect(pnLayer,"onClick", pnpointf); dojo.connect(photoLayer,"onMouseOver", pPoint1f); dojo.connect(pnLayer,"onMouseOver", pPoint1f); dojo.connect(photoLayer,"onMouseOut", pPoint0f); dojo.connect(pnLayer,"onMouseOut", pPoint0f); dojo.connect(dijit.byId('map'), 'resize', resizeMap); map.infoWindow.resize(250, 110); }); dojo.connect(map, "onClick", addPoint); dojo.connect(map, "onExtentChange", mapscalef); dojo.connect(map, "onMouseWheel", hideposter); dojo.byId("distance").innerHTML = "0.00 km"; tmpLayer = new esri.layers.GraphicsLayer(); //inntil karttjenesten oppdateres map.addLayer(tmpLayer); //inntil karttjenesten oppdateres boundingLayer = new esri.layers.GraphicsLayer(); //inntil karttjenesten oppdateres map.addLayer(boundingLayer); //inntil karttjenesten oppdateres photoLayer = new esri.layers.GraphicsLayer(); map.addLayer(photoLayer); photoLayer.hide(); dojo.connect(photoLayer, "onMouseDown", extradown); pnLayer = new esri.layers.GraphicsLayer(); map.addLayer(pnLayer); dojo.connect(pnLayer, "onMouseDown", extradown); activeLayer = new esri.layers.GraphicsLayer(); map.addLayer(activeLayer); pnLayer.hide(); poigraphicLayer = new esri.layers.GraphicsLayer(); map.addLayer(poigraphicLayer); poigraphicLayer.show(); dojo.connect(poigraphicLayer, "onClick", poiclickf); cdoTimer(); doTimer(); doTimern(); //inntil karttjenesten oppdateres var dtallSymbol = new esri.symbol.PictureMarkerSymbol("hp_h7topp20.png",28,11); pl = new esri.geometry.Point(529800,7886760); var dtallgraphic = new esri.Graphic(pl,dtallSymbol); tmpLayer.add(dtallgraphic); polylineJson = {"paths":[[[570846,7927767],[570846,7825779],[464964,7825779],[464964,7927767],[570846,7927767]]]}; polyline = new esri.geometry.Polyline(polylineJson); var polylineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,255,255,1]), 1); boundingLayer.add(new esri.Graphic(polyline,polylineSymbol)); boundingLayer.show(); //inntil karttjenesten oppdateres photof(); gullf(); 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"; } languagef(); if (urllink.indexOf("lat=") > 0) { urlpart = urllink.slice(urllink.indexOf("lat=") + 4, urllink.length); urllat = urlpart.slice(0,7); urllat = urllat.replace(",", "."); } if (urllink.indexOf("long=") > 0) { urlpart = urllink.slice(urllink.indexOf("long=") + 5, urllink.length); urllong = urlpart.slice(0,7); urllong = urllong.replace(",", "."); } if (urllink.indexOf("zoom=") > 0) { urlpart = urllink.slice(urllink.indexOf("zoom=") + 5, urllink.length); urlzoom = urlpart.slice(0,1); } if (urllink.indexOf("poi=1") > 0) { urlpoi = 1; } if (urllat > 0 && urllong < 0) { upos = new Proj4js.Point(urllong, urllat); Proj4js.transform(w84, u29, upos); if (urlpoi == 1) { var poiSymbol = new esri.symbol.PictureMarkerSymbol("markerred.png",20,19); poipl = new esri.geometry.Point(upos.x, upos.y); poigraphic = new esri.Graphic(poipl, poiSymbol); poigraphic[poigraphicid] = poigraphicLayer.add(poigraphic); } map.centerAndZoom(new esri.geometry.Point(upos.x, upos.y, new esri.SpatialReference({wkid: 25829})), urlzoom); } } function hidepoilayer() { poigraphicLayer.hide(); } function poiclickf() { if (urllink.indexOf("title=") > 0) { urltitle = decodeURI(urllink.slice(urllink.indexOf("title=") + 6, urllink.length)); if (poigraphicid == 0) { textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + urltitle, font, new dojo.Color([0,0,0])).setAlign(esri.symbol.TextSymbol.ALIGN_START); labelPointGraphic = new esri.Graphic(poipl, textSymbol); poigraphicid = 1; graphic[poigraphicid] = poigraphicLayer.add(labelPointGraphic); } else { poigraphicLayer.remove(graphic[poigraphicid]); poigraphicid = 0; } } } function languagef () { if (language == "no") { language = "en"; direast = "W"; koordlang = "Coordinates"; accuracyboard = "accuracyboard_en.png"; termsboard = "termsboard_en.png"; desgr = "Decimal dg."; vp_g = "Seen from ground"; vp_b = "Seen from sea"; vp_h = "Seen from air"; vp_x = "Satellite imagery"; pppdl = " seen from "; pnlang = "&lang=en"; document.getElementById("aerialpoint").getElementsByTagName("img")[0].src = "maptype_en.png"; document.getElementById("ie11user").getElementsByTagName("img")[0].src = "wheel_ie11_en.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 ="See large image. (Opens in new window)"; 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 = "[Paste the content of a GPX file here, 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, where Firefox is of the best.]"; document.getElementById("tracksimptext").innerHTML = "Simplified"; if (datatype == "datalist") {document.getElementById("tableinfo").innerHTML = "<b>Data list</b>";} 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"; if (dataformat == "Desimalgr.") {dataformat = desgr;} document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src = "plot_points_en.gif"; 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.gif"; document.getElementById("panel").getElementsByTagName("img")[0].src = "background_en.png"; document.getElementById("mapscaled").getElementsByTagName("img")[0].title = "Scale denominator is correct at 96ppi"; 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("transplengthright").style.width = "591px"; document.getElementById("transprightedge").style.right = "591px"; coordlistplot_tips = "Plot data list/GPX ..."; photopoint_tips = "Show/hide photo points"; namepoint_tips = "[Currently unavail.] Show/hide place name points"; geoname_autocomplete_tips = "Type and choose from list"; language_tips = "Bytt til norsk"; aboutpopup_tips = "About the portal / Help"; measureresults_tips = "Measurement results"; measureunit_tips = "Choose measurement unit (km/mi/nm)"; measure_tips = "Measure distance/draw line in the map"; 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 a point in the map for coordinates"; } else if (language == "en") { language = "no"; direast = "V"; koordlang = "Koordinater"; accuracyboard = "accuracyboard_no.png"; termsboard = "termsboard_no.png"; desgr = "Desimalgr."; vp_g = "Sett fra bakken"; vp_b = "Sett fra sjøen"; vp_h = "Sett fra lufta"; vp_x = "Satellittbilde"; pppdl = "Utsikt mot "; pnlang = "&lang=nn"; document.getElementById("aerialpoint").getElementsByTagName("img")[0].src = "maptype_no.png"; document.getElementById("ie11user").getElementsByTagName("img")[0].src = "wheel_ie11_no.png"; 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 ="Se stort bilde. (Åpnes i nytt vindu)"; 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 = "[Lim inn innholdet i en GPX-fil her, og velg ønskede element-typer for plotting. For lange track-segmenter, vil forenkle-funksjonen øke opptegningsytelsen. Ytelsen varierer betydelig mellom ulike nettlesere, hvor Firefox er av de beste.]"; document.getElementById("tracksimptext").innerHTML = "Forenklet"; if (datatype == "datalist") {document.getElementById("tableinfo").innerHTML = "<b>Dataliste</b>";} 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("coordlistplotnow").getElementsByTagName("img")[0].src = "plot_points_no.gif"; 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.gif"; document.getElementById("panel").getElementsByTagName("img")[0].src = "background_no.png"; document.getElementById("showhideomap").getElementsByTagName("img")[0].title = "Skjul/vis oversiktskart"; document.getElementById("mapscaled").getElementsByTagName("img")[0].title = "Målestokktallet er riktig ved 96ppi"; 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("transplengthright").style.width = "514px"; document.getElementById("transprightedge").style.right = "514px"; coordlistplot_tips = "Plott dataliste/GPX ..."; photopoint_tips = "Vis/skjul bilde-punkter"; namepoint_tips = "[Midlertidig utilgjengelig] Vis/skjul stedsnavn-punkter"; 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 portalen / Hjelp"; measureresults_tips = "Måleresultat"; measureunit_tips = "Velg måleenhet (km/mi/nm)"; measure_tips = "Mål avstand/tegn linje i kartet"; 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 et punkt i kartet for koordinater"; } } function ie11zoomf() { if (isIE11 == true) { document.getElementById("ie11user").style.display = "none"; if (event.wheelDelta == 120) { if (map.getLevel() < 6) {map.centerAndZoom(new esri.geometry.Point((xpos - (xpos - map.extent.xmin) / 2) + ((xpos + (map.extent.xmax - xpos) / 2) - (xpos - (xpos - map.extent.xmin) / 2)) / 2, (ypos - (ypos - map.extent.ymin) / 2) + ((ypos + (map.extent.ymax - ypos) / 2) - (ypos - (ypos - map.extent.ymin) / 2)) / 2), (map.getLevel() + 1));} } else { if (map.getLevel() > 0) {map.centerAndZoom(new esri.geometry.Point((xpos - (xpos - map.extent.xmin) * 2) + ((xpos + (map.extent.xmax - xpos) * 2) - (xpos - (xpos - map.extent.xmin) * 2)) / 2, (ypos - (ypos - map.extent.ymin) * 2) + ((ypos + (map.extent.ymax - ypos) * 2) - (ypos - (ypos - map.extent.ymin) * 2)) / 2), (map.getLevel() - 1));} } } } function ie11userf() { document.getElementById("ie11user").style.display = "none"; } function mouseout () { coordoff = 1; dojo.byId("dynposu29").innerHTML = ""; dojo.byId("dynposw84").innerHTML = ""; } function extradown () {zooomext2 = -1;} 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("coordlistposter").style.display = "none"; document.getElementById("poster").style.display = "none"; document.getElementById("coordlistposter").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 plotdown() { if (language == "no") {document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src = "plot_points_no_down.gif";} else if (language == "en") {document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src = "plot_points_en_down.gif";} } function plotup() { if (language == "no") {document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src = "plot_points_no.gif";} else if (language == "en") {document.getElementById("coordlistplotnow").getElementsByTagName("img")[0].src = "plot_points_en.gif";} } 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) { window.open ("a/" + aerialimage,"_blank"); } function pPoint1f(evt) { document.getElementById("aerialthumb0").getElementsByTagName("img")[0].src = "at/" + evt.graphic.attributes.F + ".png"; pPoint=1; } function pPoint0f() { pPoint=0; } function hideextraf () { hideposter(); if (pPoint==0){ photoLayer.hide(); pnLayer.hide(); } } function pPoint2f () { photoLayer.hide(); pnLayer.hide(); } function showextraf () { if (pCam == 1) {photoLayer.show();} if (pName == 1 && map.getLevel()>=3) {pnLayer.show();} } 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("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"; measureline = measureline.replace(",",""); attriben = evt.graphic.attributes.pF; attribvp = evt.graphic.attributes.pS; if (attribvp == "0") { document.getElementById("photoviewpoint").getElementsByTagName("img")[0].src = "viewpoint_0.png"; document.getElementById("photoviewpoint").getElementsByTagName("img")[0].title = ""; } if (attribvp == "1") { document.getElementById("photoviewpoint").getElementsByTagName("img")[0].src = "viewpoint_boat.png"; document.getElementById("photoviewpoint").getElementsByTagName("img")[0].title = vp_b; } if (attribvp == "2") { document.getElementById("photoviewpoint").getElementsByTagName("img")[0].src = "viewpoint_ground.png"; document.getElementById("photoviewpoint").getElementsByTagName("img")[0].title = vp_g; } if (attribvp == "3") { document.getElementById("photoviewpoint").getElementsByTagName("img")[0].src = "viewpoint_heli.png"; document.getElementById("photoviewpoint").getElementsByTagName("img")[0].title = vp_h; } if (attribvp == "X") { document.getElementById("photoviewpoint").getElementsByTagName("img")[0].src = "viewpoint_sat.png"; document.getElementById("photoviewpoint").getElementsByTagName("img")[0].title = vp_x; } if (language == "no") { pppdl=""; if (evt.graphic.attributes.pD == "1") {pppdl=". Utsikt mot nord";} if (evt.graphic.attributes.pD == "2") {pppdl=". Utsikt mot nordøst";} if (evt.graphic.attributes.pD == "3") {pppdl=". Utsikt mot øst";} if (evt.graphic.attributes.pD == "4") {pppdl=". Utsikt mot sørøst";} if (evt.graphic.attributes.pD == "5") {pppdl=". Utsikt mot sør";} if (evt.graphic.attributes.pD == "6") {pppdl=". Utsikt mot sørvest";} if (evt.graphic.attributes.pD == "7") {pppdl=". Utsikt mot vest";} if (evt.graphic.attributes.pD == "8") {pppdl=". Utsikt mot nordvest";} attriben = attriben.replace("EO-1","E0-1-satellittbilde (NASA/USGS)"); attriben = attriben.replace("Jan Mayen in the world (Based on BMNG from NASA)","Jan Mayen i verden (Basert på BMNG fra NASA)"); attriben = attriben.replace("Old drawing of Beerenberg","Gammel tegning av Beerenberg"); attriben = attriben.replace("One of the Beerenburg eruptions","Et av Beerenbergs utbrudd"); attriben = attriben.replace("Depths and distances","Dybder og avstander"); attriben = attriben.replace("Volcanic eruption 20-09-1970","Vulkanutbrudd 20-09-1970"); attriben = attriben.replace("Before Nylandet was formed","Før Nylandet var dannet"); attriben = attriben.replace(/-/g,"–"); attriben = attriben.replace(" (1)",""); attriben = attriben.replace(" (2)",""); attriben = attriben.replace(" (3)",""); attriben = attriben.replace(" (4)",""); document.getElementById("photoposterphotodir").innerHTML = "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + attriben + pppdl + "." + "\u00A0"; document.getElementById("photoposterphotodirback").innerHTML = "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + attriben + pppdl + "." + "\u00A0"; } if (language == "en") { pppdl=""; if (evt.graphic.attributes.pD == "1") {pppdl=". Facing north";} if (evt.graphic.attributes.pD == "2") {pppdl=". Facing northeast";} if (evt.graphic.attributes.pD == "3") {pppdl=". Facing east";} if (evt.graphic.attributes.pD == "4") {pppdl=". Facing southeast";} if (evt.graphic.attributes.pD == "5") {pppdl=". Facing south";} if (evt.graphic.attributes.pD == "6") {pppdl=". Facing southwest";} if (evt.graphic.attributes.pD == "7") {pppdl=". Facing west";} if (evt.graphic.attributes.pD == "8") {pppdl=". Facing northwest";} attriben = attriben.replace("EO-1","E0-1 satellite image (NASA/USGS)"); attriben = attriben.replace("Jan Mayen i verden (Basert på BMNG fra NASA)","Jan Mayen in the world (Based on BMNG from NASA)"); attriben = attriben.replace("Gammel tegning av Beerenberg","Old drawing of Beerenberg"); attriben = attriben.replace("Et av Beerenbergs utbrudd","One of the Beerenburg eruptions"); attriben = attriben.replace("Dybder og avstander","Depths and distances"); attriben = attriben.replace("Vulkanutbrudd 20-09-1970","Volcanic eruption 20-09-1970"); attriben = attriben.replace("Før Nylandet var dannet","Before Nylandet was formed"); attriben = attriben.replace("antenne","antenna"); attriben = attriben.replace("gruve","mine"); attriben = attriben.replace("øst for","east of"); attriben = attriben.replace("vest for","west of"); attriben = attriben.replace("øvre del","upper part"); attriben = attriben.replace("nordre del","northern part"); attriben = attriben.replace("indre","inner part"); attriben = attriben.replace("del av","part of"); attriben = attriben.replace(" og "," and "); attriben = attriben.replace("motsatt side","opposite side"); attriben = attriben.replace("detalj","detail"); attriben = attriben.replace("under","below"); attriben = attriben.replace(/-/g,"–"); attriben = attriben.replace(" (1)",""); attriben = attriben.replace(" (2)",""); attriben = attriben.replace(" (3)",""); attriben = attriben.replace(" (4)",""); document.getElementById("photoposterphotodir").innerHTML = "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + attriben + pppdl + "." + "\u00A0"; document.getElementById("photoposterphotodirback").innerHTML = "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + attriben + pppdl + "." + "\u00A0"; } } } function photoClickf() { if (pCam == 0) { document.getElementById("photopoint").getElementsByTagName("img")[0].src = "cam_down.png"; pCam = 1; photoLayer.show(); } else { document.getElementById("photopoint").getElementsByTagName("img")[0].src = "cam.png"; photoLayer.hide(); pCam = 0; } } function aerialClickf() { if (pPlane == 0) { pPlane = 1; layer.hide(); landsatLayer.show(); document.getElementById("satnote").style.display = "block"; } else { pPlane = 0; layer.show(); landsatLayer.hide(); document.getElementById("satnote").style.display = "none"; } aerialname = 1; mapscalef(); } function nameClickf() { if (pName == 0) { if(map.getLevel()<3) { document.getElementById("zoomtoclick").style.display = "block"; } document.getElementById("namepoint").getElementsByTagName("img")[0].src = "name_down.png"; pName = 1; if(map.getLevel()>=3) {pnLayer.show();} } else { document.getElementById("namepoint").getElementsByTagName("img")[0].src = "name.png"; document.getElementById("zoomtoclick").style.display = "none"; pName = 0; } mapscalef(); } function pnjumpf(evt) { window.open (pnjumplink,"_blank"); } 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("aerialthumbback").style.display="none"; pnjumplink = evt.graphic.attributes.pnlink; document.getElementById("pninfoformta").value = evt.graphic.attributes.pninfo; 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 mapscalef (event) { poigraphicLayer.show(); gullf(); if (map.getLevel()==0) { if (map.extent.xmin + ((map.extent.xmax - map.extent.xmin)/2) < 464964 || map.extent.xmin + ((map.extent.xmax - map.extent.xmin)/2) > 570846 || map.extent.ymin + ((map.extent.ymax - map.extent.ymin)/2) > 7927767 || map.extent.ymin + ((map.extent.ymax - map.extent.ymin)/2) < 7825779) { map.centerAndZoom(new esri.geometry.Point(514878,7875000),0); } } if (map.getLevel()==6) { tmpLayer.show(); } else { tmpLayer.hide(); } if (pName==1) { if (map.getLevel()>=3) {document.getElementById("zoomtoclick").style.display = "none";} else {document.getElementById("zoomtoclick").style.display = "block";} } if (pCam == 1){ photoLayer.show(); } if (pName == 1 && map.getLevel()>=3){ pnLayer.show(); if (aerialname == 0) {pndotsf();} } else { pnLayer.hide(); } aerialname=0; document.getElementById("pninfobox").style.display = "none"; document.getElementById("aerialbox").style.display = "none"; activeLayer.remove(activegraphic); zooomext2=0; mapscalesep = Math.round(esri.geometry.getScale(map)); var sizen = 51; if (measureunit == "km") { if (mapscalesep == "5120000") {sizen = 213;} else if (mapscalesep == "2560000") {sizen = 227;} else if (mapscalesep == "1280000") {sizen = 227;} else if (mapscalesep == "640000") {sizen = 246;} else if (mapscalesep == "320000") {sizen = 246;} else if (mapscalesep == "160000") {sizen = 222;} else if (mapscalesep == "80000") {sizen = 215;} else if (mapscalesep == "40000") {sizen = 215;} else if (mapscalesep == "20000") {sizen = 216;} else if (mapscalesep == "10000") {sizen = 216;} document.getElementById("mapscaled").getElementsByTagName("img")[0].src = "km" + mapscalesep + ".png"; } else if (measureunit == "mi") { if (mapscalesep == "5120000") {sizen = 210;} else if (mapscalesep == "2560000") {sizen = 234;} else if (mapscalesep == "1280000") {sizen = 234;} else if (mapscalesep == "640000") {sizen = 223;} else if (mapscalesep == "320000") {sizen = 242;} else if (mapscalesep == "160000") {sizen = 203;} else if (mapscalesep == "80000") {sizen = 196;} else if (mapscalesep == "40000") {sizen = 196;} else if (mapscalesep == "20000") {sizen = 197;} else if (mapscalesep == "10000") {sizen = 197;} document.getElementById("mapscaled").getElementsByTagName("img")[0].src = "mi" + mapscalesep + ".png"; } else if (measureunit == "nm") { if (mapscalesep == "5120000") {sizen = 221;} else if (mapscalesep == "2560000") {sizen = 248;} else if (mapscalesep == "1280000") {sizen = 248;} else if (mapscalesep == "640000") {sizen = 237;} else if (mapscalesep == "320000") {sizen = 215;} else if (mapscalesep == "160000") {sizen = 215;} else if (mapscalesep == "80000") {sizen = 208;} else if (mapscalesep == "40000") {sizen = 208;} else if (mapscalesep == "20000") {sizen = 209;} else if (mapscalesep == "10000") {sizen = 209;} document.getElementById("mapscaled").getElementsByTagName("img")[0].src = "nm" + mapscalesep + ".png"; } document.getElementById("transplength").style.width = sizen + "px"; document.getElementById("transpleftedge").style.left=document.getElementById("transplength").style.width; omape = omape + 1; } function graphicidremove (geometry) { if (cl_graphic == 0) { if (graphicid>0) { map.graphics.remove(graphic[graphicid]); graphicid = graphicid - 1; } else if (graphicid == cl_plotline) { map.graphics.remove(graphic[graphicid]); graphicid = graphicid - 1; 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) { map.graphics.remove(graphic[graphicid]); graphicid = graphicid - 1; cl_line++; } cl_graphic = 0; } } function eraseallf() { graphicid = 0; cl_graphic = 0; cl_line = 0; cl_plotline = ""; map.graphics.clear(); } function backgrounddefaultf() { document.zoomnorthform.northinput.style.border="1px solid #91A2A7"; document.zoomeastform.eastinput.style.border="1px solid #91A2A7"; } function zoomto(geometry) { coordok = "0"; cl_graphic = 0; zoomnorthform = document.zoomnorthform; zoomeastform = document.zoomeastform; if (zoomnorthform.north.value != "" && zoomeastform.east.value != "") { zoomnorthform.north.value = (zoomnorthform.north.value).replace(",","."); while (zoomnorthform.north.value.slice(0,1)==" ") { if (zoomnorthform.north.value.slice(0,1)==" "){zoomnorthform.north.value=zoomnorthform.north.value.slice(1,zoomnorthform.north.value.length);} } while(zoomnorthform.north.value.lastIndexOf(" ") == zoomnorthform.north.value.length-1) { if (zoomnorthform.north.value.lastIndexOf(" ") == zoomnorthform.north.value.length-1){zoomnorthform.north.value=zoomnorthform.north.value.slice(0,zoomnorthform.north.value.length-1);} } var northcheck; northcheck = zoomnorthform.north.value; var koordn2=northcheck.charAt(2); var koordn4=northcheck.charAt(4); var koordn5=northcheck.charAt(5); zoomeastform.east.value = (zoomeastform.east.value).replace(",","."); if (zoomeastform.east.value.charAt(0)=="0"){zoomeastform.east.value = zoomeastform.east.value.slice(1,zoomeastform.east.value.length);} while (zoomeastform.east.value.slice(0,1)==" ") { if (zoomeastform.east.value.slice(0,1)==" "){zoomeastform.east.value=zoomeastform.east.value.slice(1,zoomeastform.east.value.length);} } while(zoomeastform.east.value.lastIndexOf(" ") == zoomeastform.east.value.length-1) { if (zoomeastform.east.value.lastIndexOf(" ") == zoomeastform.east.value.length-1){zoomeastform.east.value=zoomeastform.east.value.slice(0,zoomeastform.east.value.length-1);} } var eastcheck; eastcheck = zoomeastform.east.value; var koorde2=eastcheck.charAt(2); var koorde4=eastcheck.charAt(4); var koorde5=eastcheck.charAt(5); if (koordn2=="." && koorde2==".") { zoomnorthform = document.zoomnorthform; north = parseFloat(zoomnorthform.north.value); zoomeastform = document.zoomeastform; east = parseFloat(zoomeastform.east.value); zdd = new Proj4js.Point(east,north); Proj4js.transform(w84, u29, zdd); if (zdd.y > 7825779 && zdd.y < 7927767 && zdd.x > 464964 && zdd.x < 570846) { coordok = "1"; newExtent = new esri.geometry.Extent(zdd.x-20000,zdd.y,zdd.x+20000,zdd.y, map.spatialReference); map.setExtent(newExtent); pt = new esri.geometry.Point(zdd.x,zdd.y); symbol = new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz = new esri.Graphic(pt, symbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + north + "°N, " + east*-1 + "°" + direast, font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); ptt = new esri.geometry.Point(zdd.x,zdd.y); labelPointGraphic = new esri.Graphic(ptt,textSymbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphic); } } else if (koordn2==" " && koorde2==" " && koordn5 !== " " && koorde5 !== " " && koordn4 !== " " && koorde4 !== " ") { zoomnorthform = document.zoomnorthform; northd = parseFloat(zoomnorthform.north.value.slice(0,2)); northm = parseFloat(zoomnorthform.north.value.slice(3,10)); zoomeastform = document.zoomeastform; eastd = parseFloat(zoomeastform.east.value.slice(0,2)); eastm = parseFloat(zoomeastform.east.value.slice(3,9)); if (eastm>0){eastm=eastm*-1;} north = northd + (northm/60); east = eastd + (eastm/60); zdd = new Proj4js.Point(east,north); Proj4js.transform(w84, u29, zdd); if (zdd.y > 7825779 && zdd.y < 7927767 && zdd.x > 464964 && zdd.x < 570846) { coordok = "1"; newExtent = new esri.geometry.Extent(zdd.x-20000,zdd.y,zdd.x+20000,zdd.y, map.spatialReference); map.setExtent(newExtent); pt = new esri.geometry.Point(zdd.x,zdd.y); symbol = new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz = new esri.Graphic(pt, symbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + northd + "°" + northm + "'N, " + eastd*-1 + "°" + (eastm*-1) + "'" + direast, font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); ptt = new esri.geometry.Point(zdd.x,zdd.y); labelPointGraphic = new esri.Graphic(ptt,textSymbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphic); } } else if (koordn2==" " && koorde2==" " && koordn4==" " && koorde4==" ") { zoomnorthform = document.zoomnorthform; northd = parseFloat(zoomnorthform.north.value.slice(0,2)); northm = parseFloat(zoomnorthform.north.value.slice(3,4)); norths = parseFloat(zoomnorthform.north.value.slice(5,10)); zoomeastform = document.zoomeastform; eastd = parseFloat(zoomeastform.east.value.slice(0,2)); eastm = parseFloat(zoomeastform.east.value.slice(3,4)); easts = parseFloat(zoomeastform.east.value.slice(5,9)); north = northd + (northm/60) + (norths/3600); east = eastd - (eastm/60) - (easts/3600); zdd = new Proj4js.Point(east,north); Proj4js.transform(w84, u29, zdd); if (zdd.y > 7825779 && zdd.y < 7927767 && zdd.x > 464964 && zdd.x < 570846) { coordok = "1"; newExtent = new esri.geometry.Extent(zdd.x-20000,zdd.y,zdd.x+20000,zdd.y, map.spatialReference); map.setExtent(newExtent); pt = new esri.geometry.Point(zdd.x,zdd.y); symbol = new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz = new esri.Graphic(pt, symbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + northd + "°" + northm + "'" + norths + "''N, "+ eastd + "°" + eastm + "'" + easts + "''" + direast, font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); ptt = new esri.geometry.Point(zdd.x,zdd.y); labelPointGraphic = new esri.Graphic(ptt,textSymbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphic); } } else if (koordn2==" " && koorde2==" " && koordn5==" " && koorde5==" ") { zoomnorthform = document.zoomnorthform; northd = parseFloat(zoomnorthform.north.value.slice(0,2)); northm = parseFloat(zoomnorthform.north.value.slice(3,5)); norths = parseFloat(zoomnorthform.north.value.slice(6,10)); zoomeastform = document.zoomeastform; eastd = parseFloat(zoomeastform.east.value.slice(0,2)); eastm = parseFloat(zoomeastform.east.value.slice(3,5)); easts = parseFloat(zoomeastform.east.value.slice(6,9)); north = northd + (northm/60) + (norths/3600); east = eastd - (eastm/60) - (easts/3600); eastd = eastd * -1; zdd = new Proj4js.Point(east,north); Proj4js.transform(w84, u29, zdd); if (zdd.y > 7825779 && zdd.y < 7927767 && zdd.x > 464964 && zdd.x < 570846) { coordok = "1"; newExtent = new esri.geometry.Extent(zdd.x-20000,zdd.y,zdd.x+20000,zdd.y, map.spatialReference); map.setExtent(newExtent); pt = new esri.geometry.Point(zdd.x,zdd.y); symbol = new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz = new esri.Graphic(pt, symbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + northd + "°" + northm + "'" + norths + "''N, "+ eastd + "°" + eastm + "'" + easts + "''" + direast, font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); ptt = new esri.geometry.Point(zdd.x,zdd.y); labelPointGraphic = new esri.Graphic(ptt,textSymbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphic); } } else if (koordn2==" " && koorde2==" " && koordn5==" " && koorde4==" ") { zoomnorthform = document.zoomnorthform; northd = parseFloat(zoomnorthform.north.value.slice(0,2)); northm = parseFloat(zoomnorthform.north.value.slice(3,5)); norths = parseFloat(zoomnorthform.north.value.slice(6,10)); zoomeastform = document.zoomeastform; eastd = parseFloat(zoomeastform.east.value.slice(0,2)); eastm = parseFloat(zoomeastform.east.value.slice(3,4)); easts = parseFloat(zoomeastform.east.value.slice(5,9)); north = northd + (northm/60) + (norths/3600); east = eastd + (eastm/60) + (easts/3600); zdd = new Proj4js.Point(east,north); Proj4js.transform(w84, u29, zdd); if (zdd.y > 7825779 && zdd.y < 7927767 && zdd.x > 464964 && zdd.x < 570846) { coordok = "1"; newExtent = new esri.geometry.Extent(zdd.x-20000,zdd.y,zdd.x+20000,zdd.y, map.spatialReference); map.setExtent(newExtent); pt = new esri.geometry.Point(zdd.x,zdd.y); symbol = new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz = new esri.Graphic(pt, symbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + northd + "°" + northm + "'" + norths + "''N, "+ eastd + "°" + eastm + "'" + easts + "''" + direast, font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); ptt = new esri.geometry.Point(zdd.x,zdd.y); labelPointGraphic = new esri.Graphic(ptt,textSymbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphic); } } else if (koordn2==" " && koorde2==" " && koordn4==" " && koorde5==" ") { zoomnorthform = document.zoomnorthform; northd = parseFloat(zoomnorthform.north.value.slice(0,2)); northm = parseFloat(zoomnorthform.north.value.slice(3,4)); norths = parseFloat(zoomnorthform.north.value.slice(5,10)); zoomeastform = document.zoomeastform; eastd = parseFloat(zoomeastform.east.value.slice(0,2)); eastm = parseFloat(zoomeastform.east.value.slice(3,5)); easts = parseFloat(zoomeastform.east.value.slice(6,9)); north = northd + (northm/60) + (norths/3600); east = eastd - (eastm/60) - (easts/3600); zdd = new Proj4js.Point(east,north); Proj4js.transform(w84, u29, zdd); if (zdd.y > 7825779 && zdd.y < 7927767 && zdd.x > 464964 && zdd.x < 570846) { coordok = "1"; newExtent = new esri.geometry.Extent(zdd.x-20000,zdd.y,zdd.x+20000,zdd.y, map.spatialReference); map.setExtent(newExtent); pt = new esri.geometry.Point(zdd.x,zdd.y); symbol = new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz = new esri.Graphic(pt, symbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + northd + "°" + northm + "'" + norths + "''N, "+ (eastd*-1) + "°" + eastm + "'" + easts + "''" + direast, font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); ptt = new esri.geometry.Point(zdd.x,zdd.y); labelPointGraphic = new esri.Graphic(ptt,textSymbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphic); } } else if ((northcheck.slice(0,3)=="29W" || northcheck.slice(0,3)=="29w") && (eastcheck.slice(0,3)=="29W" || eastcheck.slice(0,3)=="29w") && northcheck.length==10 && eastcheck.length==9 && northcheck.search("-")==-1) { zoomnorthform = document.zoomnorthform; north = northcheck.slice(3); north = parseFloat(north); zoomeastform = document.zoomeastform; east = eastcheck.slice(3); east = parseFloat(east); if (north > 7825779 && north < 7927767 && east > 464964 && east < 570846) { coordok = "1"; newExtent = new esri.geometry.Extent(east-20000,north,east+20000,north, map.spatialReference); map.setExtent(newExtent); pt = new esri.geometry.Point(east,north); symbol = new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz = new esri.Graphic(pt, symbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + "N" + north + ", E" + east + " (UTM29W)", font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); ptt = new esri.geometry.Point(east,north); labelPointGraphic = new esri.Graphic(ptt,textSymbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphic); } } } if (coordok == "0") { document.zoomnorthform.northinput.style.border="2px solid #FF0000"; document.zoomeastform.eastinput.style.border="2px solid #FF0000"; } } function omapf(event) { if (omap == 0) { var overviewMapDijit = new esri.dijit.OverviewMap({ 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 = "19px"; document.getElementById("omapback").style.display = "block"; document.getElementById("showhideomap").style.display = "block"; } } function addPoint(event) { if (pCam == 1){photoLayer.show();} if (pName == 1 && map.getLevel()>=3){pnLayer.show();} if (pninfoboxshow==0){ document.getElementById("pninfobox").style.display = "none"; } pninfoboxshow = 0; if (aerialboxshow==0){ document.getElementById("aerialbox").style.display = "none"; } aerialboxshow = 0; zooomext2=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); } pl = new esri.geometry.Point(event.mapPoint.x,event.mapPoint.y); graphicid = graphicid + 1; markergraphic = new esri.Graphic(pl,markerSymbol); graphic[graphicid] = map.graphics.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); } pl = new esri.geometry.Point(event.mapPoint.x,event.mapPoint.y); graphicid = graphicid + 1; markergraphic = new esri.Graphic(pl,markerSymbol); graphic[graphicid] = map.graphics.add(markergraphic); map.setMapCursor("default"); modus = 0; } } if (modus=="text") { cl_graphic = 0; var textinput; textinput = document.textinputform; var textinputtext; textinputtext = textinput.textinputtext.value; textSymbol = new esri.symbol.TextSymbol(textinputtext, font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); var tp = new esri.geometry.Point(event.mapPoint.x,event.mapPoint.y); graphicid = graphicid + 1; var labelPointGraphic = new esri.Graphic(tp,textSymbol); graphic[graphicid] = map.graphics.add(labelPointGraphic); map.setMapCursor("default"); modus = 0; } if (modus=="captcoord") { if (event.mapPoint.y > 7825779) { if (event.mapPoint.y < 7927767) { if (event.mapPoint.x > 464964) { if (event.mapPoint.x < 570846) { map.infoWindow.setTitle(koordlang); var pw84i = new Proj4js.Point(event.mapPoint.x, event.mapPoint.y); Proj4js.transform(u29, w84, pw84i); map.infoWindow.setContent("UTM29W: N" + (Math.round(event.mapPoint.y/10)*10) + ", E" + (Math.round(event.mapPoint.x/10)*10) + "<br />DD.DDDD: " + pw84i.y.toFixed(4) + '°' + "N, " + (pw84i.x.toFixed(4))*-1 + '°' + direast + "<br />DDMM.MM: " + parseInt(pw84i.y.toFixed(6),10) + '°' + ((pw84i.y.toFixed(9)-parseInt(pw84i.y.toFixed(9),10))*60).toFixed(2) + '\'' + "N, " + (parseInt(pw84i.x.toFixed(6),10))*-1 + '°' + (((pw84i.x.toFixed(9)-parseInt(pw84i.x.toFixed(9),10))*60).toFixed(2)*-1) + '\'' + direast + "<br />DDMMSS: " + Math.floor(Math.abs(Math.round(pw84i.y * 1000000)) / 1000000) + "°" + Math.floor(((Math.abs(Math.round(pw84i.y * 1000000))/1000000) - Math.floor(Math.abs(Math.round(pw84i.y * 1000000))/1000000)) * 60) + '\'' + Math.floor(Math.floor(((((Math.abs(Math.round(pw84i.y * 1000000))/1000000) - Math.floor(Math.abs(Math.round(pw84i.y * 1000000))/1000000)) * 60) - Math.floor(((Math.abs(Math.round(pw84i.y * 1000000))/1000000) - Math.floor(Math.abs(Math.round(pw84i.y * 1000000))/1000000)) * 60)) * 100000) *60/100000) + '"' + "N" + ", " + Math.floor(Math.abs(Math.round(pw84i.x * 1000000)) / 1000000) + "°" + Math.floor(((Math.abs(Math.round(pw84i.x * 1000000))/1000000) - Math.floor(Math.abs(Math.round(pw84i.x * 1000000))/1000000)) * 60) + '\'' + Math.floor(Math.floor(((((Math.abs(Math.round(pw84i.x * 1000000))/1000000) - Math.floor(Math.abs(Math.round(pw84i.x * 1000000))/1000000)) * 60) - Math.floor(((Math.abs(Math.round(pw84i.x * 1000000))/1000000) - Math.floor(Math.abs(Math.round(pw84i.x * 1000000))/1000000)) * 60)) * 100000) *60/100000) + '"' + direast); map.infoWindow.show(event.screenPoint,map.getInfoWindowAnchor(event.screenPoint)); } } } } map.setMapCursor("default"); modus = 0; } if (modus != "-2" && modus != "-3"){modus = 0;} } function outputDistance(result) { measureline = dojo.number.format((result.lengths[0] / 1000).toFixed(2)); if (measureline.charAt(measureline.length-2) == "." || measureline.charAt(measureline.length-3) == ".") { measureline = measureline.replace(",",""); } else if (measureline.charAt(measureline.length-2) == "," || measureline.charAt(measureline.length-3) == ",") { measureline = measureline.replace(",","."); if (measureline.charAt(1) !== "0" && measureline.charAt(1) !== "1" && measureline.charAt(1) !== "2" && measureline.charAt(1) !== "3" && measureline.charAt(1) !== "4" && measureline.charAt(1) !== "5" && measureline.charAt(1) !== "6" && measureline.charAt(1) !== "7" && measureline.charAt(1) !== "8" && measureline.charAt(1) !== "9" && measureline.charAt(1) !== "." && measureline.charAt(1) !== ",") { measureline = measureline.slice(0,1) + measureline.slice(2,measureline.length); } } if (measureunit == "km") { dojo.byId("distance").innerHTML = measureline + " km"; } else if (measureunit == "mi") { dojo.byId("distance").innerHTML = (measureline / 1.609344).toFixed(2) + " mi"; } else if (measureunit == "nm") { dojo.byId("distance").innerHTML = (measureline / 1.852).toFixed(2) + " nm"; } } function dataformatbuttonf(event) { updated = 1; if (dataformat == desgr) { dataformat = "UTM29W"; } else if (dataformat == "UTM29W") { 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 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 = cl_colnum_label + 1; 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 = cl_colnum_north + 1; 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 = cl_colnum_east + 1; 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 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 measureunitf(event) { if (measureunit == "km") { measureunit = "mi"; if (measureline == "0") {dojo.byId("distance").innerHTML = "0.00 mi";} if (measureline > 0) {dojo.byId("distance").innerHTML = (measureline / 1.609344).toFixed(2) + " mi";} } else if (measureunit == "mi") { measureunit = "nm"; if (measureline == "0") {dojo.byId("distance").innerHTML = "0.00 nm";} if (measureline > 0) {dojo.byId("distance").innerHTML = (measureline / 1.852).toFixed(2) + " nm";} } else if (measureunit == "nm") { measureunit = "km"; if (measureline == "0") {dojo.byId("distance").innerHTML = "0.00 km";} if (measureline > 0) {dojo.byId("distance").innerHTML = measureline + " km";} } mapscalef(); } function ctimedCount(event){ if (coordoff == 0 && ypos > 7825779 && ypos < 7927767 && xpos > 464964 && xpos < 570846) { var pw84sc = new Proj4js.Point(xpos, ypos); Proj4js.transform(u29, w84, pw84sc); dojo.byId("dynposu29").innerHTML = "29W N" + (Math.round(ypos*0.1)/0.1) + " E" + (Math.round(xpos*0.1)/0.1); dojo.byId("dynposw84").innerHTML = (Math.round(pw84sc.y*10000)/10000).toFixed(4) + "°N "+ ((Math.round(pw84sc.x*10000)/10000).toFixed(4))*-1 + "°" + direast; } else { dojo.byId("dynposu29").innerHTML = ""; dojo.byId("dynposw84").innerHTML = ""; } ct = setTimeout("ctimedCount()",100); } function cdoTimer(){ ctimedCount(); } function showCoordinates(event) { coordoff = 0; xpos = event.mapPoint.x; ypos = event.mapPoint.y; } function aboutbuttons () { document.getElementById("about_pagenum").style.display="none"; document.getElementById("about_topojanmayen_button").getElementsByTagName("img")[0].src = "about_topojanmayen_button.gif"; document.getElementById("about_tools_button").getElementsByTagName("img")[0].src = "about_tools_" + language + "_button.gif"; document.getElementById("about_legend_button").getElementsByTagName("img")[0].src = "about_legend_" + language + "_button.gif"; document.getElementById("about_limitations_button").getElementsByTagName("img")[0].src = "about_limitations_" + language + "_button.gif"; } function aboutprevious () { if (abouttab == "tools") { if (abouttoolspage >> 1) {abouttoolspage--;} document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_tools_page_" + abouttoolspage + "_" + language + ".png"; document.getElementById("about_pagenum").innerHTML = abouttoolspage + "/6"; } if (abouttab == "limitations") { if (aboutlimitationspage >> 1) {aboutlimitationspage--;} document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_limitations_page_" + aboutlimitationspage + "_" + language + ".png"; document.getElementById("about_pagenum").innerHTML = aboutlimitationspage + "/3"; } } function aboutnext () { if (abouttab == "tools") { if (abouttoolspage < 6) {abouttoolspage++;} document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_tools_page_" + abouttoolspage + "_" + language + ".png"; document.getElementById("about_pagenum").innerHTML = abouttoolspage + "/6"; } if (abouttab == "limitations") { if (aboutlimitationspage < 3) {aboutlimitationspage++;} document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_limitations_page_" + aboutlimitationspage + "_" + language + ".png"; document.getElementById("about_pagenum").innerHTML = aboutlimitationspage + "/3"; } } function aboutf () { 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_topojanmayen_button").getElementsByTagName("img")[0].src = "about_topojanmayen_button.gif"; document.getElementById("about_legend_button").getElementsByTagName("img")[0].src = "about_legend_" + language + "_button.gif"; document.getElementById("about_tools_button").getElementsByTagName("img")[0].src = "about_tools_" + language + "_button.gif"; document.getElementById("about_limitations_button").getElementsByTagName("img")[0].src = "about_limitations_" + language + "_button.gif"; document.getElementById("about_legend_button").getElementsByTagName("img")[0].onmousedown = "about_legend_" + language + "_button_down.gif"; document.getElementById("about_tools_button").getElementsByTagName("img")[0].onmousedown = "about_tools_" + language + "_button_down.gif"; document.getElementById("about_limitations_button").getElementsByTagName("img")[0].onmousedown = "about_limitations_" + language + "_button_down.gif"; if (abouttab == "topojanmayen") { document.getElementById("about_topojanmayen_button").getElementsByTagName("img")[0].src = "about_topojanmayen_button_down.gif"; document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_topojanmayen_" + language + ".png"; } if (abouttab == "legend") { document.getElementById("about_legend_button").getElementsByTagName("img")[0].src = "about_legend_" + language + "_button_down.gif"; 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.gif"; document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_tools_page_" + abouttoolspage + "_" + language + ".png"; } if (abouttab == "limitations") { document.getElementById("about_limitations_button").getElementsByTagName("img")[0].src = "about_limitations_" + language + "_button_down.gif"; document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_limitations_page_" + aboutlimitationspage + "_" + 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.gif"; document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_legend_" + language + ".png"; } function abouttopojanmayenf () { aboutbuttons (); abouttab = "topojanmayen"; document.getElementById("about_previous_button").style.display = "none"; document.getElementById("about_next_button").style.display = "none"; document.getElementById("about_topojanmayen_button").getElementsByTagName("img")[0].src = "about_topojanmayen_button_down.gif"; document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_topojanmayen_" + 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_previous_button").style.left = "275px"; document.getElementById("about_next_button").style.left = "305px"; document.getElementById("about_pagenum").style.left = "337px"; document.getElementById("about_pagenum").innerHTML = abouttoolspage + "/6"; document.getElementById("about_tools_button").getElementsByTagName("img")[0].src = "about_tools_" + language + "_button_down.gif"; document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_tools_page_" + abouttoolspage + "_" + language + ".png"; } function aboutlimitationsf () { aboutbuttons (); abouttab = "limitations"; document.getElementById("about_previous_button").style.display = "block"; document.getElementById("about_pagenum").style.display = "block"; document.getElementById("about_next_button").style.display = "block"; document.getElementById("about_previous_button").style.left = "393px"; document.getElementById("about_next_button").style.left = "423px"; document.getElementById("about_pagenum").style.left = "455px"; document.getElementById("about_pagenum").innerHTML = aboutlimitationspage + "/3"; document.getElementById("about_limitations_button").getElementsByTagName("img")[0].src = "about_limitations_" + language + "_button_down.gif"; document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_limitations_page_" + aboutlimitationspage + "_" + language + ".png"; } 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)- 169 +"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 coordnull () { coordoff = 1; dojo.byId("dynposu29").innerHTML = ""; dojo.byId("dynposw84").innerHTML = ""; } 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 = "25px"; } function tiptimedcount() { if (tiptimerison == photopoint_tips) {document.getElementById("tooltips").innerHTML = photopoint_tips;} if (tiptimerison == namepoint_tips) {document.getElementById("tooltips").innerHTML = namepoint_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 == 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 photopoint_tipsf(){ document.getElementById("tooltips").style.top = "40px"; document.getElementById("tooltips").style.left = "100px"; document.getElementById("tooltips").style.width = "70px"; document.getElementById("tooltips").style.height = "50px"; tiptimerison = photopoint_tips; tiptimer=setTimeout("tiptimedcount()",750); } function namepoint_tipsf(){ document.getElementById("tooltips").style.top = "40px"; document.getElementById("tooltips").style.left = "100px"; document.getElementById("tooltips").style.width = "70px"; document.getElementById("tooltips").style.height = "50px"; tiptimerison = namepoint_tips; tiptimer=setTimeout("tiptimedcount()",750); } function coordlistplot_tipsf(){ tiptimerison = coordlistplot_tips; tiptimer=setTimeout("tiptimedcount()",500); } function geoname_autocomplete_tipsf(){ tiptimerison = geoname_autocomplete_tips; tiptimer=setTimeout("tiptimedcount()",500); } function language_tipsf(){ document.getElementById("tooltips").style.top = "40px"; document.getElementById("tooltips").style.left = "100px"; document.getElementById("tooltips").style.width = "70px"; document.getElementById("tooltips").style.height = "50px"; tiptimerison = language_tips; tiptimer=setTimeout("tiptimedcount()",500); } function aboutpopup_tipsf(){ document.getElementById("tooltips").style.top = "40px"; document.getElementById("tooltips").style.left = "100px"; document.getElementById("tooltips").style.width = "70px"; document.getElementById("tooltips").style.height = "50px"; tiptimerison = aboutpopup_tips; tiptimer=setTimeout("tiptimedcount()",500); } function measureresults_tipsf(){ tiptimerison = measureresults_tips; tiptimer=setTimeout("tiptimedcount()",500); } function measureunit_tipsf(){ tiptimerison = measureunit_tips; tiptimer=setTimeout("tiptimedcount()",500); } function measure_tipsf(){ tiptimerison = measure_tips; tiptimer=setTimeout("tiptimedcount()",500); } function eraser_tipsf(){ tiptimerison = eraser_tips; tiptimer=setTimeout("tiptimedcount()",500); } function textmarkerinput_tipsf(){ tiptimerison = textmarkerinput_tips; tiptimer=setTimeout("tiptimedcount()",500); } function textmarker_tipsf(){ tiptimerison = textmarker_tips; tiptimer=setTimeout("tiptimedcount()",500); } function northinput_tipsf(){ tiptimerison = northinput_tips; tiptimer=setTimeout("tiptimedcount()",500); } function eastinput_tipsf(){ tiptimerison = eastinput_tips; tiptimer=setTimeout("tiptimedcount()",500); } function zoom_tipsf(){ tiptimerison = zoom_tips; tiptimer=setTimeout("tiptimedcount()",500); } function captcoord_tipsf(){ tiptimerison = captcoord_tips; tiptimer=setTimeout("tiptimedcount()",500); } function zoomhelphide() { document.getElementById("zoomhelp").style.display = "none"; document.getElementById("zoomhelpback").style.display = "none"; } function zoominhelptip() { if (zoomhelp == 0) { document.getElementById("zoomhelpback").style.display = "block"; document.getElementById("zoomhelp").style.display = "block"; document.getElementById("zoomhelp").style.left = "30px"; } } function zoomouthelptip() { if (zoomhelp == 0) { document.getElementById("zoomhelpback").style.display = "block"; document.getElementById("zoomhelp").style.display = "block"; document.getElementById("zoomhelp").style.left = "10px"; } } function zoomhelpf() { zoomhelp = 1; document.getElementById("zoomhelp").style.display = "none"; hideposter(); aboutf(); abouttoolsf(); abouttoolspage = 1; document.getElementById("about_page").getElementsByTagName("img")[0].src = "about_tools_page_" + abouttoolspage + "_" + language + ".png"; document.getElementById("about_pagenum").innerHTML = abouttoolspage + "/6"; } function resizeMap() { var resizeTimer;clearTimeout(resizeTimer);resizeTimer = setTimeout(function() {map.resize();map.reposition();}, 500); if (document.getElementById("coordlistposter").style.display == "block") { document.getElementById("coordlistposter").style.left = (document.documentElement.offsetWidth/2)- 230 +"px"; document.getElementById("coordlistposter").style.top = (document.documentElement.offsetHeight/2)- 165 +"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"; } } function pnblank () { document.getElementById("geoname_autocomplete").value = ""; } function pndefault () { if (language == "no") { document.getElementById("geoname_autocomplete").value = "Zoom til stedsnavn"; } else { document.getElementById("geoname_autocomplete").value = "Zoom to place name"; } } function textmarkerinputblank () { if (document.getElementById("textmarkerinput").value == "Tekst/markør" || document.getElementById("textmarkerinput").value == "Text input/marker"){ document.getElementById("textmarkerinput").value = ""; } } function textmarkerinputdefault () { 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 () { if (document.getElementById("northinput").value == "Nord/B.gr." || document.getElementById("northinput").value == "North/Lat."){ document.getElementById("northinput").value = ""; } } function northdefault () { if (document.getElementById("northinput").value == "") { if (language == "no") { document.getElementById("northinput").value = "Nord/B.gr."; } else { document.getElementById("northinput").value = "North/Lat."; } } } function eastblank () { if (document.getElementById("eastinput").value == "Øst/L.gr." || document.getElementById("eastinput").value == "East/Long."){ document.getElementById("eastinput").value = ""; } } function eastdefault () { if (document.getElementById("eastinput").value == "") { if (language == "no") { document.getElementById("eastinput").value = "Øst/L.gr."; } else { document.getElementById("eastinput").value = "East/Long."; } } } dojo.addOnLoad(init); </script> <style type="text/css"> html, body { overflow:auto; height: 100%; width: 100%; margin: 0; padding: 0; font-family: verdana, arial, helvetica, sans-serif;font-size:11px;color:#666666; } body{ background-color:#E3F5FF; overflow:hidden; } #ie11user{ -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: 11px; left: 246px; z-index: 35; } #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{ display:none; margin:0px; padding:0px; width:1px; position: fixed; height:1px; left:1px; top:1px; z-index: 40; } #panelright{ display:none; margin:0px; padding:0px; width:8px; position: fixed; height:35px; left:206px; top:144px; z-index: 40; } #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: 204px; z-index: 35; } #photopoint{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; margin:0px; padding:0px; height:19px; position: fixed; top: 42px; width: 19px; left: 174px; 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: 64px; width: 19px; left: 174px; z-index: 90; } #aerialpoint{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; margin:0px; padding:0px; height:19px; position: fixed; top: 19px; width: 19px; left: 80px; z-index: 90; } #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: 155px; 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: 175px; z-index: 50; } #tooltipbreak1{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; margin:0px; padding:0px; height:10px; position: fixed; top: 50px; left: 11px; width: 188px; z-index: 60; } #tooltipbreak2{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; margin:0px; padding:0px; height:10px; position: fixed; top: 165px; left: 11px; width: 188px; z-index: 60; } #tooltipbreak3{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; margin:0px; padding:0px; height:110px; position: fixed; top: 50px; left: 180px; width: 10px; z-index: 60; } #measureresults{ margin:0px; padding:0px; height:16px; position: fixed; top: 237px; left: 43px; width: 83px; color:#596366; 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: 181px; 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: 204px; 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: 233px; 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; } #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: 257px; z-index: 50; } #pn{ color:#7B888C; margin:0px; padding:0px; height:16px; position: fixed; width: 126px; top: 212px; left: 20px; z-index: 60; } #pnjump{ position:fixed; margin:0px; padding:0px; height:22px; width: 23px; right: 212px; 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: 281px; 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:9px; margin:0px; padding:0px; height:25px; position: fixed; top: 305px; width: 140px; left: 22px; cursor: default; z-index: 50; } #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:25px; 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: 307px; width: 29px; left: 165px; z-index: 50; } #map { margin:0px; border: 1px solid #000; } #mapscaled{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; display:none; font-size:11px; color:#000000; margin:0px; padding:0px; height:16px; position: fixed; bottom: 2px; width: 195px; left: 50px; cursor: default; z-index: 50; } #zoomhelpback{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; display:none; margin:0px; padding:0px; height:60px; position: fixed; bottom: 0px; width: 70px; left: 0px; cursor: default; z-index: 55; } #zoomhelp{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; display:none; margin:0px; padding:0px; height:16px; position: fixed; bottom: 18px; width: 16px; left: 20px; z-index: 60; } #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; } #satnote{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; display:none; cursor: default; position:absolute; bottom:2px; left:300px; z-index:95; color:#000; background-color:#f0f0f0; } #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; } #transplengthright{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; display:none; position:absolute; background-color:#FFFFFF; opacity:.75; filter:Alpha(opacity=75); bottom:1px; right:1px; width:514px; height:19px; z-index:70; } #transprightedge{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; display:none; position:absolute; opacity:.75; filter:Alpha(opacity=75); bottom:1px; right:514px; width:20px; height:19px; z-index:70; } #transpleftedge{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; display:none; position:absolute; opacity:.75; filter:Alpha(opacity=75); bottom:1px; left:246px; width:20px; height:19px; z-index:47; } #poster{ -moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none; position:absolute; top:3px; left:220px; width:459px; height:329px; 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; width:459px; 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:.50; filter:Alpha(opacity=50); 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); } #bordercontainer{ design: headline; } </style> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-770196-23']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body class="tundra"> <div dojotype="dijit.layout.BorderContainer" gutters="false" style="width:100%; height:100%"> <div id="ie11user" onclick="ie11userf()"><img src="wheel_ie11_no.png" alt=""></div> <div id="showhide" oncontextmenu="return false" onclick="showhide()"><img src="showhide.png" alt="" 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" alt="" title="Skjul/vis oversiktskart" onmousedown="src='showhideomap_down.png'" onmouseup="src='showhideomap.png'" onmouseover="this.style.cursor='pointer'"></div> <div id="transpleftedge" oncontextmenu="return false" ><img src="leftedge.png" alt=""></div> <div id="transprightedge" oncontextmenu="return false" ><img src="rightedge.png" alt=""></div> <div id="transplength" oncontextmenu="return false" style="display:none;position:absolute; background-color:#FFFFFF; opacity:.75; filter:Alpha(opacity=70); bottom:1px; left:1px; width:252px; height:19px; z-index:47;opacity:.75; filter:Alpha(opacity=70)"></div> <div id="transplengthright" oncontextmenu="return false" onmouseover="notetimeroff()"></div> <div id="zoomtoclick"><img src="zoomtoclick_no.png" alt=""></div> <div id="aerialthumb0" style="position:absolute;right:9px;top:3px;z-index:1;display:block;opacity:0; filter:Alpha(opacity=0)"><img src="viewpoint_0.png" alt=""></div> <div id="aerialbox" onmouseover="this.style.cursor='pointer'" style="position:absolute; right:12px;top:10px;z-index:98;display:none"> <div id="aerialthumb" onclick="aejumpf()" onmouseover="showback()" onmouseout="hideback()" style="position:absolute;right:5px;top:5px;z-index:98; display:none"><img src="viewpoint_0.png" alt="" 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:6px;top:11px;z-index:98;display:none"><img src="pninfobox.png" alt=""> <div id="pnjump" onclick="pnjumpf()"><img src="pnjump.png" title="Mer navneinformasjon. (Åpnes i nytt vindu)" alt="" 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="panelright" oncontextmenu="return false" onmouseover="hidetips()"><img src="background_right.png" alt=""></div> <div id="panel"><img oncontextmenu="return false" onmouseover="coordnull()" src="background_no.png" alt=""> <div id="tooltipbreak1" oncontextmenu="return false" onmouseover="hidetips()"></div> <div id="tooltipbreak2" oncontextmenu="return false" onmouseover="hidetips()"></div> <div id="tooltipbreak3" oncontextmenu="return false" onmouseover="hidetips()"></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: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" alt=""></div> <div id="gull2" oncontextmenu="return false" ><img src="gull2.png" alt=""></div> <div id="gull3" oncontextmenu="return false" ><img src="gull3.png" alt=""></div> <div id="aboutpopup" oncontextmenu="return false" onclick="hideposter();aboutf()"><img src="about.gif" alt="" onmouseover="this.style.cursor='pointer';aboutpopup_tipsf()" onmouseout="tipstopcount()" onmousedown="src='about_down.gif'" onmouseup="src='about.gif'"></div> <!-- <div id="namepoint" oncontextmenu="return false" onclick="hideposter(); nameClickf()"><img src="name.png" alt="" onmouseover="this.style.cursor='pointer';namepoint_tipsf()" onmouseout="tipstopcount()"></div> <div id="namepoint" oncontextmenu="return false" onclick="hideposter()"><img src="name.png" alt="" onmouseover="this.style.cursor='pointer';namepoint_tipsf()" onmouseout="tipstopcount()"></div> --> <div id="aerialpoint" ><img src="maptype_no.png" alt="" onmouseover="this.style.cursor='pointer'" onmouseout="tipstopcount()" oncontextmenu="return false" onclick="hideposter(); aerialClickf()"></div> <div id="photopoint" oncontextmenu="return false" onclick="hideposter(); photoClickf()"><img src="cam.png" alt="" onmouseover="this.style.cursor='pointer';photopoint_tipsf()" onmouseout="tipstopcount()"></div> <div id="language" oncontextmenu="return false" onclick="languagef()"><img src="language_en.gif" alt="" onmouseover="this.style.cursor='pointer';language_tipsf()" onmouseout="tipstopcount()" onmousedown="src='language_down.gif'"></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.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="measure" oncontextmenu="return false" onclick="tb.activate(esri.toolbars.Draw.POLYLINE), modusav(), measurecursor()"><img onmouseover="this.style.cursor='pointer';src='measure_hover.png';measure_tipsf()" onmouseout="src='measure.png';tipstopcount()" src="measure.png" alt="" 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" alt="" 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: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="textmarkerf()"><img onmouseover="this.style.cursor='pointer';src='textmarker_hover.png';textmarker_tipsf()" src="textmarker.png" alt="" onmouseout="src='textmarker.png';tipstopcount()" onmousedown="src='textmarker_down.png'" onmouseup="src='textmarker.png'"></div> <div id="coordlistplot" oncontextmenu="return false" onclick="coordlistposter()"><img onmouseover="this.style.cursor='pointer';src='coordlistgo_hover.png';coordlistplot_tipsf()" src="coordlistgo.png" alt="" 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:1px solid #91A2A7; color: #434A4C; font-family: Verdana, arial, helvetica, sans-serif; font-size: 11px; background-color: #FFFFFF; width:68px" maxlength="10"></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:1px solid #91A2A7; color: #434A4C; font-family: Verdana, arial, helvetica, sans-serif; font-size: 11px; background-color: #FFFFFF; width:63px" maxlength="9"></FORM></div> <div id="zoom" oncontextmenu="return false" onclick="zoomto()"><img onmouseover="this.style.cursor='pointer';src='zoomto_hover.png';zoom_tipsf()" src="zoomto.png" alt="" onmouseout="src='zoomto.png';tipstopcount()" onmousedown="src='zoomto_down.png'" onmouseup="src='zoomto.png'"></div> <div id="showcoord" oncontextmenu="return false"><span id="dynposu29"></span><br><span id="dynposw84"></span></div> <div id="tooltips" oncontextmenu="return false"></div> <div id="captcoord" oncontextmenu="return false" onclick="captcoordf(), capturecursor()"><img onmouseover="this.style.cursor='pointer';src='captcoord_hover.png';captcoord_tipsf()" src="captcoord.png" alt="" onmouseout="src='captcoord.png';tipstopcount()" onmousedown="src='captcoord_down.png'" onmouseup="src='captcoord.png'"></div> </div> <div id="poster" oncontextmenu="return false" ><img src="posterbackground.png" alt=""></div> <div id="photoposter" oncontextmenu="return false" onclick="hideposter()"><img src="photobackground.png" alt=""> <div id="photoviewpoint" onmouseover="this.style.cursor='default'" style="position:absolute;left:9px;top:439px;z-index:100"><img src="viewpoint_heli.png" alt="" title="Sett fra helikopter"></div> <div id="photoposterphotodir" onmouseover="this.style.cursor='default'" style="position:absolute;left:9px;top:436px;z-index:99;color:#E5E5E5;font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px"></div> <div id="photoposterphotodirback" onmouseover="this.style.cursor='default'" style="position:absolute;left:10px;top:437px;z-index:98;color:#000000;font-family: Verdana, arial, helvetica, sans-serif; font-size: 12px"></div> <div id="photoposterphoto" onclick="hideposter()" style="position:absolute;left:5px;top:5px;z-index:97"><img src="viewpoint_0.png" alt="" title=""></div> </div> <div id="aboutposter" oncontextmenu="return false" style="z-index:90"><img src="aboutposter_back.png" alt=""> <div id="about_topojanmayen_button" onclick="abouttopojanmayenf()" style="position:absolute; left:34px; top:33px;z-index:95"><img src="about_topojanmayen_button_down.gif" alt=""></div> <div id="about_legend_button" onclick="aboutlegendf()" style="position:absolute; left:152px; top:33px;z-index:95"><img src="about_legend_no_button.gif" alt="" onmousedown="src='about_legend_no_button_down.gif'"></div> <div id="about_tools_button" onclick="abouttoolsf()" style="position:absolute; left:270px; top:33px;z-index:95"><img src="about_tools_no_button.gif" alt="" onmousedown="src='about_tools_no_button_down.gif'"></div> <div id="about_limitations_button" onclick="aboutlimitationsf()" style="position:absolute; left:388px; top:33px;z-index:95"><img src="about_limitations_no_button.gif" alt="" onmousedown="src='about_limitations_no_button_down.gif'"></div> <div id="about_previous_button" onclick="aboutprevious()" style="position:absolute; left:360px; top:55px;z-index:95"><img src="about_previous_button.gif" alt="" onmousedown="src='about_previous_button_down.gif'" onmouseup="src='about_previous_button.gif'"></div> <div id="about_next_button" onclick="aboutnext()" style="position:absolute; left:390px; top:55px;z-index:95"><img src="about_next_button.gif" alt="" onmousedown="src='about_next_button_down.gif'" onmouseup="src='about_next_button.gif'"></div> <div id="about_pagenum" style="position:absolute; left:390px; top:55px; 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="about_topojanmayen_no.png" alt=""></div> </div> <div id="zoomhelp" oncontextmenu="return false" onmouseover="this.style.cursor='pointer'" onmouseout="zoomhelphide()" onclick="zoomhelpf()"><img src="about.gif" alt="" onmousedown="src='about_down.gif'" onmouseup="src='about.gif'"></div> <div id="zoomhelpback" oncontextmenu="return false" onmouseover="zoomhelphide()"></div> <div id="mapscaled" oncontextmenu="return false" onclick="measureunitf()"><img title="Målestokktallet er riktig ved 96ppi" src="km40000.png" alt=""></div> <div id="satnote" oncontextmenu="return false"> Copernicus Sentinel-data 2019 </div> <div id="terms" oncontextmenu="return false" onclick="termsf()"><img src="terms_no.png" alt="" onmouseover="this.style.cursor='pointer'"></div> <div id="accuracy" oncontextmenu="return false" onclick="accuracyf()"><img src="accuracy_no.png" alt="" onmouseover="this.style.cursor='pointer'"></div> <div id="copyright" oncontextmenu="return false" ><img src="copyright.png" alt=""></div> <div id="npolardiv" oncontextmenu="return false" title="Norsk Polarinstitutts forside"><a id="npolar" href="https://www.npolar.no"><img src="npolar_no.png" alt="" onmouseover="this.style.cursor='pointer'"></a></div> <div id="map" onmousewheel="ie11zoomf()" oncontextmenu="return false" dojotype="dijit.layout.ContentPane" region="center"> <div id="ovWin" style="position:absolute; right:19px; top:-1019px; z-Index:40; width:138px;height:138px"> <div id="overviewDiv"> </div> </div> <div id="omapback" style="display:none; position:absolute; right:6px; top:10px; z-Index:39; width:165px;height:164px"><img src="omap140.png" alt=""></div> </div> <div id="outsideposter" oncontextmenu="outsidenoout(); return false" onmousedown="hideposter()"></div> <div id="coordlistposter" ><img oncontextmenu="return false" src="poster_back.png" alt=""> <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="return false" onclick="datatypef()" style="position:absolute;left:341px;top:33px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="tableinfo" oncontextmenu="return false" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;top:35px;width:90px;height:16px"><b>Dataliste</b></div> <div id="datalistgroup" oncontextmenu="return false"> <div id="dataformattitle" onmouseover="this.style.cursor='default'" style="position:absolute;left:341px;top:57px">Dataformat:</div> <div id="dataformatbutton" onclick="dataformatbuttonf()" style="position:absolute;left:341px;top:71px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="dataformattext" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;top:73px;width:90px;height:16px">Desimalgr.</div> <div id="separatortitle" onmouseover="this.style.cursor='default'" style="position:absolute;left:341px;top:94px">Skilletegn:</div> <div id="separatorbutton" onclick="separatorbuttonf()" style="position:absolute;left:341px;top:108px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="separatortext" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;top:110px;width:90px;height:16px">;</div> <div id="labeltitle" onmouseover="this.style.cursor='default'" style="position:absolute;left:341px;top:131px">Etikett-felt:</div> <div id="labelbutton" onclick="labelbuttonf()" style="position:absolute;left:341px;top:145px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="labeltext" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;top:147px;width:90px;height:16px">2/4</div> <div id="northtitle" onmouseover="this.style.cursor='default'" style="position:absolute;left:341px;top:168px">Nord-felt:</div> <div id="northbutton" onclick="northbuttonf()" style="position:absolute;left:341px;top:182px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="northtext" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;top:184px;width:90px;height:16px">3/4</div> <div id="easttitle" onmouseover="this.style.cursor='default'" style="position:absolute;left:341px;top:205px">Øst-felt:</div> <div id="eastbutton" onclick="eastbuttonf()" style="position:absolute;left:341px;top:219px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="easttext" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;top:221px;width:90px;height:16px">4/4</div> <div id="plotlinetitle" onmouseover="this.style.cursor='default'" style="position:absolute;left:341px;top:242px">Plott som:</div> <div id="plotlinebutton" onclick="plotlinebuttonf()" style="position:absolute;left:341px;top:256px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="plotlinetext" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;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:341px;top:57px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="waypointtext" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;top:59px;width:90px;height:16px">Waypoint</div> <div id="namebutton" onclick="namebuttonf()" style="position:absolute;left:341px;top:80px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="nametext" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;top:82px;width:90px;height:16px">WP Name</div> <div id="trackbutton" onclick="trackbuttonf()" style="position:absolute;left:341px;top:103px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="tracktext" onmouseover="this.style.cursor='default'" style="position:absolute;left:363px;top:105px;width:90px;height:16px">Track</div> <div id="tracksimpbutton" onclick="tracksimpf()" style="position:absolute;left:350px;top:122px"><img onmouseover="this.style.cursor='pointer'" src="measureunit.gif" alt="" onmousedown="src='measureunit_down.gif'" onmouseup="src='measureunit.gif'"></div> <div id="tracksimptext" onmouseover="this.style.cursor='default'" style="position:absolute;left:372px;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:300px; height:269px;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" disabled="true" 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:341px;top:284px"><img onmouseover="this.style.cursor='pointer'" src="plot_points_no.gif" alt="" onmousedown="plotdown()" onmouseup="plotup()"></div> </div> </div> <script type="text/javascript" src="https://yui-s.yahooapis.com/3.18.1/build/yui/yui-min.js" charset="utf-8"></script> <script> function timedCount(){ c=c+1; t=setTimeout("timedCount()",600000); } function doTimer(){ if (!timer_is_on){ timer_is_on=0; timedCount(); } } </script> <!-- <script> YUI().use("autocomplete", "autocomplete-filters", "autocomplete-highlighters", function (Y) { Y.one('body').addClass('yui3-skin-sam'); var geoname_base = "https://placenames.npolar.no:80"; // Geoname service URI (JSONP service) var geoname_service = geoname_base + "/stadnamn/edge/{query}?callback={callback}&rows=5"+ "&approved=true&location=Jan+Mayen&lang=nn"; var geoname_autocomplete = Y.one('#geoname_autocomplete'); geoname_autocomplete.plug( Y.Plugin.AutoComplete, { resultHighlighter: 'phraseMatch', //resultFormatter: simple_geoname_formatter, resultTextLocator: 'title', source : geoname_service } ); geoname_autocomplete.ac.on('select', function (e) {geoname(e);}) } ); </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=Jan+Mayen&filter-status=official¬-terrain.nn=utmål|verneområde&callback={callback}&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) { console.log(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; zdd=new Proj4js.Point(longitude,latitude); Proj4js.transform(w84,u29,zdd); pt=new esri.geometry.Point(zdd.x,zdd.y,new esri.SpatialReference({wkid:25829})); map.centerAndZoom(pt,4); symbol=new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz=new esri.Graphic(pt,symbol); graphicid++; graphic[graphicid]=map.graphics.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(zdd.x,zdd.y); labelPointGraphic=new esri.Graphic(ptt,textSymbol); graphicid++; graphic[graphicid]=map.graphics.add(labelPointGraphic); cl_graphic=0; /*- gammel north = event.result.raw.north; east = event.result.raw.east; zdd = new Proj4js.Point(east,north); Proj4js.transform(w84, u29, zdd); newExtent = new esri.geometry.Extent(zdd.x-20000,zdd.y,zdd.x+20000,zdd.y, map.spatialReference); map.setExtent(newExtent); pt = new esri.geometry.Point(zdd.x,zdd.y); symbol = new esri.symbol.PictureMarkerSymbol("markercoord.png",27,27); graphicz = new esri.Graphic(pt, symbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(graphicz); textSymbol = new esri.symbol.TextSymbol("\u00A0" + "\u00A0" + "\u00A0" + event.result.raw.title, font, new dojo.Color([0, 0, 0])).setAlign(esri.symbol.Font.ALIGN_START); ptt = new esri.geometry.Point(zdd.x,zdd.y); labelPointGraphic = new esri.Graphic(ptt,textSymbol); graphicid = graphicid + 1; graphic[graphicid] = map.graphics.add(labelPointGraphic); cl_graphic = 0; -*/ }); }); </script> <script type="text/javascript" src="bbox.js"></script> <script type="text/javascript"> function bbox_from_extent(extent) { var bbmin = new Proj4js.Point(extent.xmin, extent.ymin); Proj4js.transform(u29, w84, bbmin); var bbmax = new Proj4js.Point(extent.xmax, extent.ymax); Proj4js.transform(u29, w84, bbmax); var p1 = [bbmin.y-0.02, bbmin.x-0.02]; var p2 = [bbmax.y+0.02, bbmax.x+0.02]; var bbox = [p1, p2]; return bbox; } function pndotsf () { pnLayer.clear(); YUI().use("node", "npolar-placenames", function(Y) { Y.log(map.getLevel()); if (map.getLevel()>=3) { var bbox = bbox_from_extent(map.extent); Y.Npolar.Placenames.BBox(bbox[0], bbox[1], function(e){ for (i = 0; i < e.response.results.length; i++) { var r = e.response.results[i]; if (r.terrain != "Recognized claim" && r.terrain != "Protected area") { plotpn(r); } } }); } }); } function plotpn(r) { zdd = new Proj4js.Point(r.east,r.north); Proj4js.transform(w84, u29, zdd); pS1=new esri.symbol.PictureMarkerSymbol("pnmarker.png",24,28); if (r.origin=="From neighbouring name") {pS1=new esri.symbol.PictureMarkerSymbol("pnmarkersee.png",24,28);} if (r.origin.slice(0,4)=="See ") {pS1=new esri.symbol.PictureMarkerSymbol("pnmarkersee.png",24,28);} if (r.origin=="") {pS1=new esri.symbol.PictureMarkerSymbol("pnmarker0.png",24,28);} if (map.getLevel()==5){ pP1={"geometry":{"x":zdd.x,"y":zdd.y-100},"attributes":{"pnlink":"https://placenames.npolar.no/stadnamn/"+r.title_link+"?ident="+r.ident+pnlang,"pninfo": "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + r.title + '\n' + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "(" + r.terrain + ")" + '\n' + '\n' + r.origin}}; } else if (map.getLevel()==4){ pP1={"geometry":{"x":zdd.x,"y":zdd.y-200},"attributes":{"pnlink":"https://placenames.npolar.no/stadnamn/"+r.title_link+"?ident="+r.ident+pnlang,"pninfo": "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + r.title + '\n' + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "(" + r.terrain + ")" + '\n' + '\n' + r.origin}}; } else if (map.getLevel()==3){ pP1={"geometry":{"x":zdd.x,"y":zdd.y-400},"attributes":{"pnlink":"https://placenames.npolar.no/stadnamn/"+r.title_link+"?ident="+r.ident+pnlang,"pninfo": "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + r.title + '\n' + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "\u00A0" + "(" + r.terrain + ")" + '\n' + '\n' + r.origin}}; } pU1=new esri.Graphic(pP1); pU1.setSymbol(pS1); pnLayer.add(pU1); } </script> </body> </html>