Friday, December 19, 2008

Simple way to Draw a Circle with Google Maps

The Google Maps API doesn't provide a "draw circle" function for free, so you're left to your own devices to draw an approximation of a circle using the GPolyline object.

Here's a really basic circle drawing example adapted from the more complex example below. My simple example:

http://www.herculessolutions.com/GoogleMapsSimpleCircle.htm

The more complex example with dragable points and more:

http://maps.huge.info/dragcircle2.htm