javascript - How to make center_changed listener in Google Map API v3 only fire once? -
I am currently using 'center_changed', function () as latitude and latitude of the map center as a listener And then later call a reverse geocode method to convert latitude and LAG to an address. However, since the map is being dragged, since the center is firing more than once, I get an instant message "OVER_QUERY_LIMIT" from my reverse geocode method. Is there a way to set the center-changed listener only once?
Use the addlist list once the method.
Comments
Post a Comment