Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

update model when projection changes

Mike McGann8a188f16a166
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 883f70256..33f534949 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -111,6 +111,7 @@ export function mapui(models, config) {
// Update the rotation buttons if polar projection to display correct value
if (models.proj.selected.id !== 'geographic' && models.proj.selected.id !== 'webmerc') {
let currentRotation = map.getView().getRotation();
+ models.map.rotation = currentRotation;
rotation.setResetButton(currentRotation);
}