Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Updated query mask

Mike McGann48621a0b4bf6
diff --git a/web/js/data/wv.data.model.js b/web/js/data/wv.data.model.js
index c9eb753ae..1b0afab7f 100644
--- a/web/js/data/wv.data.model.js
+++ b/web/js/data/wv.data.model.js
@@ -114,7 +114,7 @@ wv.data.model = wv.data.model || function(models, config) {
*/
self.activate = function(productName) {
if ( !self.active ) {
- // try { FIXME: OL3
+ try {
if ( productName ) {
validateProduct(productName);
}
@@ -129,13 +129,11 @@ wv.data.model = wv.data.model || function(models, config) {
self.selectedProduct);
query();
}
- /* FIXME: OL3
} catch ( error ) {
self.active = false;
self.selectedProduct = null;
throw error;
}
- */
}
};
diff --git a/web/js/map/wv.map.js b/web/js/map/wv.map.js
index 0beec2113..ec1fdf68b 100644
--- a/web/js/map/wv.map.js
+++ b/web/js/map/wv.map.js
@@ -18,14 +18,14 @@ wv.map = (function(self) {
self.CRS_WGS_84_QUERY_EXTENT = [-180, -60, 180, 60];
- /* FIXME OL3
+ /*
self.CRS_WGS_84_QUERY_MASK =
- new OpenLayers.Geometry.MultiPolygon([
- new OpenLayers.Bounds(-180, -90, 180, -60).toGeometry(),
- new OpenLayers.Bounds(-180, 60, 180, 90).toGeometry()
+ new ol.geom.MultiPolygon([
+ [-180, -90], [180, -90], [180, -60], [-180, -60], [-180, -90]],
+ [-180, 60], [180, 60], [180, 90], [-180, 90], [-180, 60]]
]);
*/
-
+
self.parse = function(state, errors) {
// 1.1 support
if ( state.map ) {