I have a set of paths that i have created a geographical map with in inkscape and used Raphael to put on a webpage. When i load them through Raphael i am applying a transform so that the map fills the available space.
something similar to this :-
size = "s2,2,0,0";
translate = "t90,45";
countries.transform(translate + size); // countries are basically a set of paths
Now, when i click on the map i get an XY point. I want to save these coordinates so that each click corresponds to the original coordinate space BEFORE i transformed the map. i.e. i want to apply a reverse transformation so that the points i clicked would appear in their proper position if the map had not been transformed when loaded.
Can anyone tell me how to apply this transformation (this one specifically or in general to any applied transformation) so i can preserve the positions?