How to create shapes for Google Maps?

I’m using Google Maps API and currently need to draw some shapes on it. Of course GPolygon is right for me, but I need data for it. Like countries shapes. So I wrote simple tool in JavaScript to draw shape on map, and get corresponding data – array with vertexes latitude and longitude.

As for now version 0.1 was tested in Firefox, there are some quirks with my IE, which I will iron out in next releases. Data can be presented as array of arrays with latitude and longitude or array with GLatLng objects – both are suitable to copy and paste to JavaScript code. I plan also output in SQL format.

And my tool is available under http://nhw.pl/download/points.html.

Join the Conversation

2 Comments

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.