DmitryBaranovskiy / raphael

JavaScript Vector Library
https://dmitrybaranovskiy.github.io/raphael/
MIT License
11.26k stars 1.67k forks source link

How can I get so much position data when drawing a map like the Australia Map demo? #682

Closed faithwangyang closed 11 years ago

faithwangyang commented 11 years ago

Now in China we want to make a China Map demo

just like the Australia Map demo(raphaeljs.com/australia.html).

I guess by so much position data can we draw out the province’s shape.

My question is,

  How can I get so much position data?

Obviously getting these position data manually is a very difficult task.

Is there any method or tool which can give us help when needing the map’s shape position data?

tomasAlabes commented 11 years ago

Try getting a china map in svg and converting it to raphael element, use https://github.com/tomasAlabes/rappar