-1
rated 0 times
[
4]
[
5]
/ answers: 1 / hits: 42455
/ 13 Years ago, fri, december 30, 2011, 12:00:00
Is there any listener to handle map completely loaded?
In my case, I need to get bounds from map, so I've done it this way:
google.maps.event.addListener(this.map, bounds_changed, this.mapLoaded);
mapLoaded: function() {
google.maps.event.clearListeners(this.map, bounds_changed);
var bounds = this.map.getBounds();
this.collection.setBounds(bounds.getNorthEast(), bounds.getSouthWest());
this.collection.fetch();
},
Is there any not-hacking way?
More From » google-maps-api-3