drawing circles on a googlemap, how to use this code?

GeX

GeX

Soldato
Joined
17 Dec 2002
Posts
6,982
Location
Manchester
Hi all.

I want to add circles to my map, i have a load of points pulled from an SQL database and want to add circles round them points too.

I have found this;

http://seewah.blogspot.com/2009/10/circle-overlay-on-google-map.html

But I don't know how to actually implement it, i have copied the code into my page - but i'm not sure how to actually call the functions properly to draw the circles.

drawCircle(map, centrePT, rangevalue);

i tried calling it using;

drawCircle(map, latlng, 10);

map being my googlemap with everything else on it, latlng being a glatlang that has just been used to draw a marker and 10 being a number for a range - but nothing happened.

Am i going mad?
 
It works for me. Have you forgot to use an overlay image? Take this, put in the same folder as your html and change var circle to this:

PHP:
var circle = new GGroundOverlay("purple_circle.png", boundaries);
 
now i feel stupid, i had the image there but the filename wasn't spelt properly!

thanks :)
 
Back
Top Bottom