To get rid of the errors that appear in the error log, change this
if (circleLine2 == null) {
drawCircle(point1, point2, fillColour, fillColour);
}
To
if (circleLine2 == null) {
if (point2) {
drawCircle(point1, point2, fillColour, fillColour);
}
}
So that you only attempt to draw the circle after you have both points.
At present it tries (and luckily crashes early enough not to cause
problems) to draw a circle with an undefined radius.
--
Mike Williams
http://econym.org.uk/gmap
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.