can someone tell me how can I change the coords from this script ( I use it in dreamweaver ): http://jsfiddle.net/EVFEC/ . I made a SVG map with Adobe illustrator, I tried to copy the now coords in this script but it doesn't work... Why?
Asked
Active
Viewed 311 times
0
-
2You have to be a bit more specific, what is your concrete problem? I can select countries and when I click on the link text it alerts the selected ones. So what doesn't work? – dan-lee Sep 13 '12 at 15:16
-
My problem is that I want to make my own map. I use Adobe illustrator or Inkscape, when I put my coords from my own SVG map it doesn't work... why? – El Alex Sep 13 '12 at 16:25
1 Answers
0
Standalone vector graphics editors such as InkScape will flip the Y axis, as their coordinate system differs.
A bug has been filed to the InkScape issue tracking forum on launchpad (though it is debatable whether it should be considered a bug), and the issue is well known.
Several approaches may be used to solve this (all addressing the use of InkScape):
- Specify the width and height of and SVG document explicitly prior to importing into InkScape, as suggested here
- Rewrite all absolute coordinate values as relative, as offered here
- Wait for the feature request to be fulfilled. Someone suggested at AskUbuntu that it's targeted for version 0.49, but the roadmap currently shows no real evidence to support that claim.
- Compensate for the irregularity by subtracting the InkScape document height from the Y axis values on the transformation matrix.

Community
- 1
- 1

Eliran Malka
- 15,821
- 6
- 77
- 100
-
I wnat to draw this map http://www.vectortemplates.com/raster/maps-world-map-03.png in InkScape at this dimension ( 7408x4176 ) what exactly I need please help me.. – El Alex Sep 14 '12 at 11:58