show online nodes above offline, but without needing to use separate layer groups
This commit is contained in:
parent
d59abdebba
commit
60f19d65c1
1 changed files with 2 additions and 0 deletions
|
|
@ -1967,6 +1967,8 @@
|
|||
var marker = L.marker([node.latitude, node.longitude], {
|
||||
icon: icon,
|
||||
tagName: node.node_id,
|
||||
// we want to show online nodes above offline, but without needing to use separate layer groups
|
||||
zIndexOffset: node.mqtt_connection_state === "online" ? 1000 : -1000,
|
||||
}).on('click', function(event) {
|
||||
// close tooltip on click to prevent tooltip and popup showing at same time
|
||||
event.target.closeTooltip();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue