On Aug 22, 7:31 am, "jp.dollo" <[email protected]> wrote:
> Hello
>
> Excuse for my english
>
> My map url :www.trains-du-monde.fr/Carte7.php
>
> I can't remove gpolies and panel with function clearmap
>
> function clearMap() {
>  for (var i = 0; i < gdirmarkers.length; i++);

The above for loop does nothing gmarkers.length times.

>  for(var i = 0; i < gpolies.length; i++);

The above for loop does nothing gpolies.length times.

>  for(var i = 0; i < gpanel.length; i++)
>   {
>    map.removeOverlay(gdirmarkers[i], gpolies[i], gpanel  )
>
> }

The above for loop does something gpanel.length times, but you really
should look at the documentation for removeOverlay...

http://code.google.com/apis/maps/documentation/reference.html#GMap2.removeOverlay

(it only takes one argument, javascript will happily accept as many as
you want to pass, and ignore them)

  -- Larry

> }
>
> Thank you for help
--~--~---------~--~----~------------~-------~--~----~
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