Commit c2e79937 authored by Eric - kg6wxc's avatar Eric - kg6wxc

Merge branch 'link_popups' into 'master'

bugfix: add background colors to the links popup info.

See merge request !19
parents 9bc13178 a128a92b
......@@ -315,8 +315,8 @@ function load_LinkList($NodeList, $TopoList)
$linkList .= 'L.polyline([[' . $node_lat . ',' . $node_lon . '],[' . $link_lat .
',' . $link_lon . ']], {color: "' . $display_color . '", opacity: ' . $display_opacity .
', weight: ' . $display_weight . ', offset: ' . $display_offset . '})
.bindPopup("<strong>' . $nodeName . '</strong> to <strong>' . $linkName . '</strong><br><strong>Cost</strong>: ' .
$value['cost'] . '")
.bindPopup("<div class=\"linkPopupContent\"><strong>' . $nodeName . '</strong> to <strong>' . $linkName . '</strong><br><strong>Cost</strong>: ' .
$value['cost'] . '</div>")
.addTo(' . $map_LayerAssigned . '),' . "\n";
}
......
......@@ -343,4 +343,19 @@ MAP_DETAILS {
.leaflet-control-layers-toggle {
height: 30px !important;
width: 30px !important;
}
\ No newline at end of file
}
.linkPopupContent {
background-color: #f8f8f8;
-webkit-border-bottom-left-radius: 15px;
-webkit-border-bottom-right-radius: 15px;
-webkit-border-top-right-radius: 15px;
-webkit-border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
padding-top: 10px;
padding-bottom: 10px;
padding-right: 5px;
padding-left: 5px;
}
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