Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix permalink #235

Benjamincd0089f8a312
diff --git a/web/js/map/wv.map.rotate.js b/web/js/map/wv.map.rotate.js
index 1a382ee1b..a73012df4 100644
--- a/web/js/map/wv.map.rotate.js
+++ b/web/js/map/wv.map.rotate.js
@@ -142,7 +142,6 @@ wv.map.rotate = wv.map.rotate || function(ui, models, map) {
radians = view.getRotation();
models.map.rotation = radians;
self.setResetButton(radians);
- model.update(view.get);
};
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index 4c3cbf39f..ef2e4b115 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -125,7 +125,7 @@ wv.map.ui = wv.map.ui || function(models, config, components) {
extent = models.map.getLeadingExtent();
}
if ( extent ) {
- map.getView().fit(extent);
+ map.getView().fit(extent, {nearest: true});
}
}
updateExtent();