How do efficiently display items on Google map in the viewing range of the user?

Posted by Cory on Stack Overflow See other posts from Stack Overflow or by Cory
Published on 2010-05-29T22:56:22Z Indexed on 2010/05/29 23:02 UTC
Read the original article Hit count: 212

Filed under:
|

When a user moves the Google map, I would like to display items in the viewing range of the user automatically. How can I efficiently and quickly display the items?

I have basic understanding of calling getBounds() method every time the user moves the map, but I am not sure how I can efficiently search and get from my database the items within the lat/lng of the bounds of the current viewport. Is there easier and faster way of doing this?

© Stack Overflow or respective owner

Related posts about google-maps

Related posts about google-api