Skip to content Skip to sidebar Skip to footer

Google Maps Get Radius

I'm having a stupid hard time with this google maps javascript code. I want to get the return of the radius of a circle that is produced on google maps. Google API offers the code

Solution 1:

You seem to have a few flow problems here. Trying to use the drawingManager variable, which is bound by the initialize function.

Here: http://jsfiddle.net/RN3QL/ - I've moved the binding of the circle complete function to within the initialize function, and stitched up a few smaller flow issues.

Post a Comment for "Google Maps Get Radius"