leaflet.label
This commit is contained in:
parent
090b6c1d79
commit
52434ff06c
4 changed files with 71 additions and 2 deletions
|
@ -7,7 +7,7 @@ define(function () {
|
|||
var m = L.circleMarker([d.nodeinfo.location.latitude, d.nodeinfo.location.longitude], iconFunc(d))
|
||||
|
||||
m.on('click', gotoAnything.node(d, false))
|
||||
m.bindPopup(d.nodeinfo.hostname)
|
||||
m.bindLabel(d.nodeinfo.hostname)
|
||||
|
||||
dict[d.nodeinfo.node_id] = m
|
||||
|
||||
|
@ -27,7 +27,7 @@ define(function () {
|
|||
|
||||
var line = L.polyline(d.latlngs, opts)
|
||||
|
||||
line.bindPopup(d.source.node.nodeinfo.hostname + " – " + d.target.node.nodeinfo.hostname + "<br><strong>" + showDistance(d) + " / " + showTq(d) + "</strong>")
|
||||
line.bindLabel(d.source.node.nodeinfo.hostname + " – " + d.target.node.nodeinfo.hostname + "<br><strong>" + showDistance(d) + " / " + showTq(d) + "</strong>")
|
||||
line.on('click', gotoAnything.link(d, false))
|
||||
|
||||
dict[linkId(d)] = line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue