I am trying to add an event listener to the maptype control but it's
not firing:

var map = new GMap2(document.getElementById("map"));
var typeControl = new GMapTypeControl();
map.addControl(typeControl);
GEvent.addListener(typeControl, "click", function() {
    GLog.write('testtt');
});

The reason I need this is because I need to call my custom overlay
object's close() function to hide it's focus onclick of the map
control. In any case, I want to listen when somebody clicks on the
maptype, and even the zoom controls.

I figure once I get the map type listener down, then I can figure out
the zoom. Any help is appreciated, thanks!

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