Yeah, that may workHowie wrote:Since it's a pretty specific thing, I'd suggest an alternative approach: make an image in an image-processing program, like Paint or Photoshop of the key as you'd like to see it, then place a NODE on your map, with that image as it's icon.Alice wrote: I'm sorry, but I suck @ php and it would take too long to make it myself.
No shit?Howie wrote:The GD library only has anti-aliasing for wireframe lines (not filled polygons), but it's possible, if I figure out how to do it all myself. It would be nice, but it won't be in the next release.Alice wrote: Also, I didn't read all the thread (i'll read it today I hope), and I don't know how you draw the links. How about some anti-aliasing?
It's damn simple (just found it in about 2 minutes of google):
Weathermap.class.php
around line 414:
Code: Select all
if (!is_null($fillcolours[$arrayindex]))
{
add this line:===>>> imageantialias($image, TRUE);
imagefilledpolygon($image, $there_points, count($there_points) / 2, $fillcolours[$arrayindex]); }
Also a much nicer display when using
'outlinecolour' => array(100, 100, 100),
instead of
'outlinecolour' => array(0, 0, 0),
Now... some problems:
1.
I have the web server running on 10.0.0.10, port 80. Let's call it stats2.mydomain.com
on 194.194.194.194 (another machine - let's call it stats1.mydomain.com) i have a redirect: 194.194.194.194:8888 => 10.0.0.10:80.
almost everything works ok, but when i put my mouse on a 'link', instead of searching the graph @ http://194.194.194:8888/grap.php?... it searches @ http://10.0.0.10/graph.php?...
Maybe I'll look @ it when I have time..
2.
A generated map, viewed from cacti.
Hoover a link - the graph is displayed @ mouse position. all ok.
Click on a blank spot on the image. When I hoover a link again, instead of showing the graph @ mouse position, it opens a new page with that graph.
3.
Question actually
Is there a link somewhere in cacti for the editor? because I allways type the address manually :p (http://host/plugins/weathermap/editor.php)
4
VIA points:
simple approach (at least I think):
a button like 'add link': instead of clicking on first and second host, you click on the link and the second click would be the VIA point (add a new one). If it can be coded in 4-5 copy/paste & 2-3 lines, maybe you (or someone else) can do it as a patch, before 0.9. I tried but I didn't succeded.
Also a list with via points (when clicking on a link) and the option to delete one or all of them would be nice.