javascript - how to execute google maps event "bounds_changed" only once -


how tell google map event "bounds_change" work when map loaded, , not after user change?

from documentation

addlisteneronce(instance:object, eventname:string, handler:function(?))
return value: mapseventlistener addlistener, handler removes after handling first event.

google.maps.event.addlisteneronce(map,'bounds_changed', function() {}); 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

sql - MySQL Custom calculate views -