[view/map,bugfix][xs]: autozoom working again after breakage in ef74f13163.
* 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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user