Hello,
On my maps, I have a lot of invisible elements used for positioning actual nodes. (e.g. server FOO is in rack BAR at position BAZ).
It seems that image map areas are created also for invisible elements (no icon, no label). As a consequence, the image map generated is HUGE, it takes more than a minute to create the HTML file, and more than a minute for a browser to load the DOM. This while using a "static" image map.
I managed to get my maps to generate and load in reasonable times by commenting all code responsible for the creation of the imagemap.
So there are 2 things:
1. not generating <AREA /> for invisible elements would reduce the imagemap size and maybe its generation time
2. An option to completely disable the imagemap would be useful for large maps.
deactivate image map
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: deactivate image map
It already shouldn't generate AREA tags for items with no INFOURL/OVERLIBGRAPH... are you checking this in the editor or the actual output? The editor has to have them, otherwise you could never edit those static elements.
You can disable imagemaps (and overlib as a result) by using 'HTMLSTYLE static'. Hmm, actually, maybe that just strips the javascript (it's been a while!). If you don't need the imagemap, making a "holder" page with just the image will get you the same effect though. An "HTMLSTYLE basic" option for Cacti users would be simple enough to add.
You can disable imagemaps (and overlib as a result) by using 'HTMLSTYLE static'. Hmm, actually, maybe that just strips the javascript (it's been a while!). If you don't need the imagemap, making a "holder" page with just the image will get you the same effect though. An "HTMLSTYLE basic" option for Cacti users would be simple enough to add.
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: deactivate image map
Also, I'd be interested in getting a copy of one of your maps, as a test case for performance improvements, if you were able to PM one (with the relevant image files).
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: deactivate image map
I knew I wasn't dreaming Shouldn't get linkless <area> if you aren't in the editor...
and
Code: Select all
// - skipnolinks -> in normal HTML output, we don't need areas for things with no href
function subHTML($namefilter="",$reverseorder=false, $skipnolinks=false)
Code: Select all
// skip the linkless areas if we are not in the editor - they're redundant
$html .= $this->imap->subHTML($name,true,($this->context != 'editor'));
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!)
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!)
Who is online
Users browsing this forum: No registered users and 1 guest