Google Maps: How does Trulia create their custom InfoWIndows?

Posted by NickT on Stack Overflow See other posts from Stack Overflow or by NickT
Published on 2010-04-07T15:59:36Z Indexed on 2010/04/07 18:33 UTC
Read the original article Hit count: 322

I really like how Trulia.com has created their custom Google Map InfoWindows.

What I like in particular about Trulia's implementation of the InfoWindow is:

  • Extends beyond the map border: Google Maps InfoWindows are contained within the map border whereas Trulia's seems to be able to float on-top of the map
  • Always displays InfoWindow near map Center: Google Maps InfoWindows always display the InfoWindow above the marker whereas Trulia InfoWindows always display the InfoWindow as close the center of the map as possible. For example, if the map marker icon is on the top of the map near the border, the Trulia InfoWindow is displayed below the map marker icon
  • InfoWindow is displayed on mouse hover (not 'click'): With the default Google Maps InfoWindow, you have to 'click' the map marker icon to display the InfoWindow whereas Trulia InfoWindows are display simply by hovering over the map marker icon.

I found the PdMarker, which is a 3rd party extension for Google Map InfoWindows that accomplishes most of the above bullets but not all. 1) It does not extend beyond the map border, 2) it does not work with Google Maps API version 3 (only version 2).

Anyone know how Trulia is accomplishing their InfoWindow-like implementation on Google Maps API v3?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript