Thanks, but it has to be removed on mouseover.
the same polygon.
see www.globalwebdevelopment.net/aardbeving/test.php
now it just makes new ones all the time
I can create circle overlays perfectly, but removing them?? noway. I
thnk this is a bug in V2, can someone please help?
Not a bug.
var polygon = new GPolygon(points, "#f33f00", 1, 1, "#ff0000", 0.1);
if (r==0){
map.removeOverlay(polygon);
This creates a brand new polygon, and would "remove" it
immediately ... except it has never been added to the map at all (it
is brand new, after all). Pretty obviously, it has nothing to do with
any polygon you might have created earlier.
What you might want to do is remove the last polygon _before_ creating
a new one?
And if r=0, then just not make a new one?
To be able to remove the polygon later, you will need to keep a
reference to it, the easiest way might be in a global variable.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.
--
You received this message because you are subscribed to the Google Groups "Google
Maps API V2" 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.