> //Begin function radio1_onclick
> function radio1_onclick(ctrl) {
...
> if(radio1_0.checked == true)
> {
> var polyline = new GPolyline([

That one's created in local scope in this function.  It will not be
accessible for removal later.

> if(radio1_0.checked == false)
> {
> var polyline = new GPolyline.hide([

That's a completely different polyline, created in local scope of this
different run of the same function.
Err .. why are we creating a new polyline, I thougt this section was
to remove it?

> ...
>   getMapObject('googlemap1').map.addOverlay(polyline);

Nothing there to remove polylines.  What's a getMapObject, anyway?

The principles shown here -
   http://econym.org.uk/gmap/categories.htm
can be applied to polylines too.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to