I have SVG files, which I'd like to:
- export and use as custom ground overlay with flat Euclidean projection (econym.org.uk/gmap/example_custommapflat.htm).
- take only polygons and project them on Google Map
My SVG files have some rules in common:
- they all are 4096x4096px
- main objects of the map are centered
I have done some experiments, one of which could be seen here -- http://dev.ondigital.eu/map/map.php* (remove map.php from the URL to see svg, png and other files). As you can see, the problem is, that polygons points are being projected on the left side instead of being centered + the aspect ratio is absolutely incorrect.
So the question is: How to calculate the aspect ratio, when:
- svg's viewBox attribute is present
- svg's viewBox attribute is not present and/or each polygon has to be transformed (like in our map.svg).
And what about the offset (object centration)?
Thank you in advance!
*Not tested with IE