有没有监听程序可以处理完全加载的map?
在我的例子中,我需要从map获取边界,所以我这样做:
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();
},有什么不被黑客攻击的方法吗?
发布于 2011-12-30 17:29:38
尝试如下所示:
google.maps.event.addListenerOnce(map, 'idle', function(){
//loaded fully
});发布于 2013-05-30 21:36:05
tilesloaded事件怎么样?
google.maps.event.addListener(map, 'tilesloaded', function() {
// Visible tiles loaded!
});https://stackoverflow.com/questions/8677261
复制相似问题