Commit 8ca40854 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

swapped from to in traceroute

parent ff014882
......@@ -202,7 +202,7 @@ function make_markers () {
var id=points[i].id;
var marker = L.marker ([points[i].lat, points[i].lon]).addTo(clustergroup);
bounds.extend(marker.getLatLng());
marker.bindTooltip( points[i].name, {permanent: true, className: "my-label", offset: [0, 0] });
marker.bindTooltip( points[i].name, {permanent: false, className: "my-label", offset: [0, 0] });
// var nodeurl= window.location.origin + window.location.pathname+ "?net=" + parms.net + "&;
// var nodeurl = fix_url( window.location.href, "node", id );
// var html = '<br><a href="' + nodeurl + '">Focus on</a>';
......@@ -344,8 +344,8 @@ function link_popup(link){
var dato = $("#datepicker").val();
//if (parms.net === "dragonlab") dato = dato.replace(/-/g, "");
var html = make_tooltip(link.from + ' til ' + link.to, link);
var url = 'tracetree.html?topo=/' + parms.net + '/mp/' + link.to + '/' + dato
+ '/trace/' + link.from_adr + '1.json';
var url = 'tracetree.html?topo=/' + parms.net + '/mp/' + link.from + '/' + dato
+ '/trace/' + link.to_adr + '1.json';
html += '\n<p><button class=knapp><a target="_blank" href="' + url + '">Se rute ' + '</a></button>';
/* html += '\n<p>Focus';
var abs=[link.from,link.to].join();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment