Reputation: 243
How do I tell the google map event "bounds_change" to only work when the map is initially loaded, and not after user change?
Upvotes: 1
Views: 2522
Reputation: 161384
addListenerOnce(instance:Object, eventName:string, handler:function(?))
Return Value: MapsEventListener Like addListener, but the handler removes itself after handling the first event.
google.maps.event.addListenerOnce(map,'bounds_changed', function() {});
Upvotes: 5