I need to display maps in SVG but I don't want to require the end-user to install a browser plug in such as the svg viewer. I've seen this done before and I'm trying to re-trace the steps from where i've seen it to figure it out. Wondering if anyone has done this or knows of a javascript library that takes care of this for you.thanks
1/7/2009 5:45:06 PM
afaik SVG support is built in FF3 but not IE / FF2
1/7/2009 5:46:39 PM
i used http://24ways.org/2007/supersleight-transparent-png-in-ie6 to get transparent png in IE6. maybe could use a similar technique?
1/7/2009 5:56:22 PM
1/7/2009 7:00:43 PM
I guess that should have readSVG support is built into FF3 AFAIK not IE/ FF2qntmfred: SVG isn't even remotely close to PNG, I have no idea where you're going with that
1/7/2009 7:05:45 PM
^^^thats not remotely like svg but while on the topic of pngpng8 work just fine for transparency in IE6+ and png24 work in IE7+ FF2/3 etcthat script to get png24 to work in ie6 is so performance intensive that its useless because it ruins the whole user experience.
1/7/2009 10:40:44 PM
short of something like translating SVG to dojox.gfx, I haven't been able to find a feasible way to do thishttp://www.thinkvitamin.com/features/design/create-cross-browser-vector-graphicsinterestingly enough SVG appears to be an XML format, so you could presumably load it into the DOM and then traverse that node replacing the SVG elements w/ dojo.gfx elementssounds like a lot of work, tho[Edited on January 8, 2009 at 9:20 AM. Reason : in fact that may not be necessary, it looks like dojox.gfx might even support SVG]
1/8/2009 9:01:49 AM
damn, after a bit of consideration I'm thinking about porting my Prototype code over to Dojo, classing appears to be handled in much the same way, and dojox.gfx appears to be the Final Solution to the Browser Graphics Problem[Edited on January 8, 2009 at 10:16 AM. Reason : .]
1/8/2009 9:48:47 AM
If you don't want your end users to have a SVG plugin, you'd best start writing a script to generate PNG files from your SVG at the browser requested resolutions.I've made plenty of SVG maps before and I always used inkscape to generate the PNG files I needed for web use at the different resolutions I needed.
1/8/2009 11:59:35 AM
^^dojo is awesome but it's HUGE
1/8/2009 12:12:41 PM
been playing around with SVG all day...this shits awesome. Saved the floor plans from a DXF to SVG in Illustrator and it looks brilliant in FireFox. Now I got to setup my VM so I can test in IE6 and begin the painful process of trying to get native support. :-/
1/8/2009 5:46:20 PM
^^dojo is also the framework behind GWT and is thus cached on Google and AOL's content delivery networks, so it's not my problem you can't get more perfect than this:http://o.aolcdn.com/dojo/1.2/dojo/dojo.xd.jshttp://ajax.googleapis.com/ajax/libs/dojo/1.2/dojo/dojo.xd.js
1/8/2009 6:19:47 PM
I'm looking at OpenLayers now so before I start looking at DoJo can someone answer a dojo question and save me a lot of headache...If i have a map in an SVG format will dojo 'redraw' the map for me and work in IE6? I need a solution where I can take an outside source (SVG) and end of day work in IE6 either by parsing it and redrawing it or whatever needs to be done.
1/9/2009 12:42:32 PM