On Feb 18, 9:15 pm, eyeyen <[email protected]> wrote: > I am trying to add an event listener to the maptype control but it's > not firing:
Why don't you just create your own custom mapType control? Here are some examples: http://maps.forum.nu/gm_custom_controls.html -- Marcelo - http://maps.forum.nu -- > > 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.
