Overcrossing links hover problem

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
freeradius
Posts: 3
Joined: Mon Nov 21, 2016 10:41 am

Overcrossing links hover problem

Post by freeradius »

Hello
I have multiple links that overcross each other, using OVERLIBGRAPH url work.
Problem at crossing point I see graph/picture for bottom link, that was specified first at weathermap configuration file.
How to at crossing point display top LINK graph.

Aleks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Overcrossing links hover problem

Post by Howie »

Which version of weathermap do you get this with? I thought I'd fixed it...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
freeradius
Posts: 3
Joined: Mon Nov 21, 2016 10:41 am

Re: Overcrossing links hover problem

Post by freeradius »

v0.97c
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Overcrossing links hover problem

Post by Howie »

Then try 0.98. I know I've looked at this before, because it causes more problems in the editor too.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
freeradius
Posts: 3
Joined: Mon Nov 21, 2016 10:41 am

Re: Overcrossing links hover problem

Post by freeradius »

Just tried 0.98 version, nothing changed, same "picture"
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Overcrossing links hover problem

Post by Howie »

OK I will check again tonight... I know I've fixed this before now :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Overcrossing links hover problem

Post by Howie »

OK, it's fixed in the dev version but not in a release yet. Which is strange because I'm sure I fixed it ages ago.

Anyway, the good news is that it's a one-line fix:

For 0.98, in lib/Weathermap.class.php, change line 3301. (e.g. vi +3301 lib/Weathermap.class.php)
from

Code: Select all

foreach($z_items as $it)
to

Code: Select all

foreach (array_reverse($z_items) as $it)
This will draw out the imagemap layers in the opposite order for each ZORDER value, so the last one drawn is the first entry in the imagemap.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests