I DO want to show infowindows for all features on the map, but I'd like them to close when the user clicks one of my markers and opens a styled infoBubble, or single clicks the map (as opposed to a drag). This is to keep the ux consistant between custom markers and styled infobubbles, and default feature markers and infowindows. I can't close them based solely on a z-index, it's too tightly coupled and could easily break in a minor api update.
Has any event for feature infowindow open, feature marker clicked, or something similar been published that will allow me to close a feature infowindow? For all types in google.maps.MapTypeStyleFeatureType? Thanks, Dan On Sunday, December 4, 2011 7:35:18 PM UTC-5, Chris Broadfoot (Google Employee) wrote: > > Hi Tomas, > > Just a couple things: > 1. Use addListenerOnce, the event listener will only be fired the first > time event is fired after you add the listener. > 2. As you said, this technique is very susceptible to breaking changes by > the API. > 3. Does this not cause a flash between when the info window is displayed, > and when your code hides it? > > For those that don't want the info windows to show when poi icons are > clicked, can I ask why? It would be good to get an idea of your use case - > it helps when we are prioritising development of new features. > > In particular, why you'd like to show icons but no info windows - beware > this may potentially confuse your users, who are accustomed to being able > to get information about a place by clicking its business icon. > > Cheers > Chris > > -- > http://twitter.com/broady > > > > On Sun, Dec 4, 2011 at 1:08 AM, blaaah <[email protected]> wrote: > >> There have been some discussions how to disable POIs infoWindows while >> keeping POIs disabled (disable POIs completely can be easily done >> using layer styling). There's been solution found recently!! >> >> http://stackoverflow.com/q/7950030/684229#8361698 >> >> blaaah >> >> -- >> 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. >> >> > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/BbKEzhwFQzwJ. 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.
