Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 598529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:23:53+00:00 2026-05-13T16:23:53+00:00

I am using google maps v2 in my web application. I want to call

  • 0

I am using google maps v2 in my web application. I want to call database to fetch records when map bounds are changed due to zoom or drag. Until now I was using tilesloaded event handler to do it assuming the map bounds will change when all tiles are loaded (I want clarification on this assumption too).

When I do zoom in/out and handle zoomend event to set a flag which is checked in tilesloaded event handler which then queries database using new bounds. This works fine as long as tilesloaded event is fired AFTER zoomend event. But (annoyingly) many a times it is fired BEFORE zoomend event, so in that case the zoom flag wouldn’t be set in tilesloaded event handler and no db call happens.

Same happens for drag. And also many times tilesloaded event is not fired when we drag map a little. Does google uses any cache mechanism for map tiles if we drag only a little (just a wild guess).

I want something like bounds_changed event to be fired for v2, please somebody help me out.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:23:54+00:00Added an answer on May 13, 2026 at 4:23 pm

    I would use the moveend event. It will fire whenever the map is zoomed or moved (on mouseup).

    var moveListener = GEvent.addListener(map, "moveend", function() {
        var bounds = map.getBounds();
        var sw = bounds.getSouthWest();
        var ne = bounds.getNorthEast();
    
        var sBound = sw.lat();
        var wBound = sw.lng();
        var nBound = ne.lat();
        var eBound = ne.lng();
    
        // AJAX call to the database with the map bounds
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm displaying a small Google map on a web page using the Google Maps
I'm writing a web application using the google maps api v3, which displays places
I'm using Google Maps API on my ASP.NET Web Application. Currently the center position
I am using Google Maps static interface to show maps in my web application.
In my web application, I am using Google Maps JavaScript API v3. In a
I am developing web-application using Google Maps API and ASP.NET Ajax. Here is my
I'm currently building a web application using Google Maps. Unfortunately, I've reached the absolute
We started using Google Maps on our web application rather extensively. It worked fine
When I check the website, I see that web application using Google maps API
I've got a web application using the Google Maps JavaScript API(v3) and I'm hitting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.