Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix rotation permalink load #780

Benjamin Kinga8c4e9b9d361
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index f45187a57..01808079a 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -566,7 +566,7 @@ export function mapui(models, config) {
maxResolution: proj.resolutions[0],
projection: olProj.get(proj.crs),
center: proj.startCenter,
- rotation: proj.id === 'geographic' || 'webmerc' ? 0.0 : models.map.rotation,
+ rotation: (proj.id === 'geographic' || proj.id === 'webmerc') ? 0.0 : models.map.rotation,
zoom: proj.startZoom,
maxZoom: proj.numZoomLevels,
enableRotation: true,