[view/map,bugfix][xs]: autozoom working again after breakage in ef74f13163cfee02dd28b8f5ecf6f08e59619ce3.

* had change autozoom to be part of state and had not done find/replace fully due to a self.autoZoom case as well as this.autoZoom case.
This commit is contained in:
Rufus Pollock 2012-06-06 23:19:55 +01:00
parent 0549383073
commit 68b6a9356f

View File

@ -61,7 +61,7 @@ my.Map = Backbone.View.extend({
// to display properly
if (self.map){
self.map.invalidateSize();
if (self._zoomPending && self.autoZoom) {
if (self._zoomPending && self.state.get('autoZoom')) {
self._zoomToFeatures();
self._zoomPending = false;
}