Thank you!  This is very helpful

Tom

On Sat, May 15, 2010 at 11:38 AM, Treisska <[email protected]> wrote:

> >Hi Treisska, would you mind posting your code that made the toggle work
> for
> >you?
>
> Sure,
>
> var arbreOverlay;
>   function load() {
>      if (GBrowserIsCompatible()) {
>          var boundaries = new GLatLngBounds(new
> GLatLng(49.322846,0.963251),
> new GLatLng(49.416674,1.143094));
>          arbreOverlay = new GGroundOverlay("http://orphee5.free.fr/
> map/chutarbr.png <http://orphee5.free.fr/%0Amap/chutarbr.png>",
> boundaries);
>          geocoder = new GClientGeocoder();
> var pointCenter = new GLatLng(49.322846,0.963251);
>  map = new GMap2(document.getElementById("map"));
> map.setCenter(pointCenter, 12);
> map.setUIToDefault();
> }}
>        function addarbreOverlay() {
>        var arbreCheckBox = document.getElementById('arbre');
>        if (arbreCheckBox && arbreCheckBox.checked) {
>                    map.addOverlay(arbreOverlay);
>        }
>                else if (arbreOverlay) {
>           map.removeOverlay(arbreOverlay);
>                  }
>      }
> And the checkbox
>
> <input type="checkbox" name="arbre" id="arbre"
> onclick="addarbreOverlay();"> Chutes d'arbre
>
> --
> 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]<google-maps-api%[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" 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