> You can see this happening here -http://www.dev.robparkerdnn.co.uk/ > > Click on the Add Markers, then check the box to hide the controls. > Then mouse over a marker to display the infoWindow and as soon as you > do this the map controls come back, is there a way to override this > behaviour so I can keep them hidden after the user has made the > selection to hide them and then continues using the map?
OpenInfoWindow runs asynchronously. Also, as it is a control itself of a sort, it seems to automatically force 'show controls'. That isn't documented and no idea if it is supposed to do that or not. I think you could try allowing a timeslot for the infowindow code to run and do its thing, before your own code plunges ahead and does the show/hide action. Try wrapping your map.hideControls() in a short settimeout (which should allow the infowindow code a chance to get in the execution queue) -- 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.
