Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

permalinks for dateline-wrap #133

Benjamin9e6fdff10124
diff --git a/web/js/map/wv.map.model.js b/web/js/map/wv.map.model.js
index 350d004aa..8f93f73d5 100644
--- a/web/js/map/wv.map.model.js
+++ b/web/js/map/wv.map.model.js
@@ -55,6 +55,9 @@ wv.map.model = wv.map.model || function(models, config) {
var proj = models.proj.selected;
var extent = state.v;
var maxExtent = proj.maxExtent;
+ if(proj.id === "geographic") {
+ maxExtent = [-250, -90, 250, 90];
+ }
if ( ol.extent.intersects(extent, maxExtent) ) {
self.extent = state.v;
} else {
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index 8688a5ca8..972e7519e 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -537,7 +537,7 @@ wv.map.ui = wv.map.ui || function(models, config, components) {
view: new ol.View({
maxResolution: proj.resolutions[0],
projection: ol.proj.get(proj.crs),
- extent: proj.id === "geographic" ? [-250, -90, 250, 90] : proj.maxExtent,
+ extent: proj.maxExtent,
center: proj.startCenter,
rotation: proj.id === "geographic" ? 0.0 : models.map.rotation,
zoom: proj.startZoom,