[Sugar-devel] [Karma] creating a map of Uruguay w/ SVG

Bryan Berry bryan at olenepal.org
Mon Oct 19 17:16:14 EDT 2009


Hey Gabriel,

I figured out how to add the cities as svg entities. I have a very crude
sample working so far w/ one city here:
http://github.com/bryanwb/Conozco-Uruguay/tree/svg-experiment

here is the svg map i did, starting w/ just one capital
http://github.com/bryanwb/Conozco-Uruguay/blob/svg-experiment/assets/generic/images/capitals.svg

the documentation on using svg w/ js is limited but it was all
worthwhile when i discovered I could scale the entire map w/ only one
line of code:

svgDoc.documentElement.currentScale = 0.7;

That scales everything in the svg map

Hopefully I will have more to show u in the next couple of days

-- 
Bryan W. Berry
Senior Engineer
OLE Nepal, http://www.olenepal.org



More information about the Sugar-devel mailing list