Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fixed extents on non-geo views

Benjaminea7c38ec1382
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index bc827ebe7..fc241c97b 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -533,7 +533,6 @@ wv.map.ui = wv.map.ui || function(models, config, components) {
mobileRotation = new ol.interaction.PinchRotate({
duration: animationDuration
});
-
map = new ol.Map({
view: new ol.View({
maxResolution: proj.resolutions[0],
@@ -543,7 +542,7 @@ wv.map.ui = wv.map.ui || function(models, config, components) {
zoom: proj.startZoom,
maxZoom: proj.numZoomLevels,
enableRotation: true,
- extent: proj.id === "geographic" ? [-250, -90, 250, 90] : [-180, -90, 180, 90],
+ extent: proj.id === "geographic" ? [-250, -90, 250, 90] : proj.maxExtent,
}),
target: id,
renderer: ["canvas"],