Google maps 不要开火';缩放已更改';使用fitbounds()时发生的事件
在我的初始阶段,我有一些类似的东西Google maps 不要开火';缩放已更改';使用fitbounds()时发生的事件,google-maps,zooming,fitbounds,Google Maps,Zooming,Fitbounds,在我的初始阶段,我有一些类似的东西 google.maps.event.addListener(gmap, 'zoom_changed', function(){ GMapPlot.getSwNe(window.gmap.getBounds()); //GMapPlot.rePlotMap(presentPlaceType); }); 在某种程度上,我有gmap.fitBounds(GMapPlot.markerBounds),我的问题是,fitBounds引发intern调用
google.maps.event.addListener(gmap, 'zoom_changed', function(){
GMapPlot.getSwNe(window.gmap.getBounds());
//GMapPlot.rePlotMap(presentPlaceType);
});
在某种程度上,我有
gmap.fitBounds(GMapPlot.markerBounds)
,我的问题是,fitBounds
引发intern调用绑定方法的zoom\u changed
事件,我不希望发生这种情况,有没有办法做到这一点。如果我尝试clearListener
forzoom\u在fitBounds
不起作用之前更改了事件。找到答案了吗?