I know I'm replying myself, but I'm very pleased with inkscape tonight.
I've been playing with javascript embedded in the svg file, since inkscape even gives a handy method for doing it. That and links.
Took me a while to get the syntax right for the svg xml. As well, I didn't realize I was going to overwrite the whole style attribute rather than only changing a part of it. I simply didn't know how much 'work' inkscape was going to do for me (or not). I was hoping it merged the change I guess.
At this point I can control any style attribute or position from an event. I think going forward it will be much easier simply doing that kind of work directly on the svg file in a text editor though.
This is the basic syntax for if you guys want to play with svg files in your browser or on your websites:
evt.target.setAttribute("style","stroke:red");
You could just copy past that into, say the mouseover and mouseout values in the properties for any old object (changing the colour on one of them, obviously).
In practice, you need to duplicate the whole style and change only the stroke, so it ends up looking more like this:
evt.target.setAttribute("style","color:#000000;fill:none;stroke:#ff0000;stroke-width:3.07200002999999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate");
You don't have to type all that! You just draw the object to your liking and then load the svg file into your text editor. If you label your object back in inkscape, it's easy to do a 'find' for it in your text editor later. Just copy out the style info from there and change only those bits you are interested in.
Anyhow, it's very early days for me on this stuff, but I'm now sure I can make a good interactive map showing, say, grooming history as a heat map of how many days since a trail was groomed or just hightlighting a single trail as so many 'legs' are reused as parts of other routes.
Here's what I was playing with tonight. I took a sat photo and made a negative of it as I thought it would be easier for me to trace over it. The little creek joining two tiny lakes simply changes colour on hovering your mouse. The slightly larger lake in the middle does the same, but also has a weblink and a title that pops up. It's just a raw svg file with no web page around it at all. It just pops right up in firefox. It should do the same for anything
except IEs less than IE9. I'd like to hear back from any that do load it in something other than firefox and esp. IE's less than IE9 using the adobe plugin.
http://gemlog.ca/test/ajtest.svgI'm still going to do the tubemap, but clearly that isn't it :-)