Tuesday, January 29, 2013

Draggable Polygons


Polygon shape files in the Google Maps API can now be set to draggable. If the polygon property is set to true, the user can then drag the shape over the map.

Google has created a demo game, called Mercator Puzzle, using the new draggable polygon option. In the game the players has to drag and drop 15 country shaped polygons onto the correct country. Notice in the game how the polygons resize along the lines of longitude. This is achieved by setting the geodesic property to true.

No comments: