Well almost there there is mvc forEach operator I saw in another post
but even though the  myMap.map.controls.length == 4
this iterator only see's the firsdt contol i added

 
myMap.map.controls[google.maps.ControlPosition.TOP_RIGHT].forEach(function(element,
index) {

    alert(element.id);
    if (element == controlDiv) {
      alert(element.id);
    }
  });


any hints and if it does iterrate is the element the object to pass
to
google.maps.event.trigger ?

On Sep 18, 6:44 pm, Tee Cee <[email protected]> wrote:
> now I know how to trigger an event on  a marker
> marker = new google.maps.Marker({ ,,,, });
> google.maps.event.trigger(marker,"click");
>
> I assume you should be able to pass any gmap  object to
> google.maps.event.trigger
> but the constructor for map.control does not return a map.control
> object
>
>   myMap.map.trafficInfo = new google.maps.TrafficLayer();
>   var trafficDiv = getTrafficControlDiv(.....)
>
> myMap.map.controls[google.maps.ControlPosition.TOP_RIGHT].push(trafficDiv.d­iv);
> myMap.map.controls.length has a length but how do get a ierrator on
> the controls
>
> or is there a right way to programmtically click a map control ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to