Interactive interface for browsing global, full-resolution satellite imagery
added dependencies to wv.map
Benjamin Kingdf6b03cf6710
diff --git a/web/js/map/wv.map.js b/web/js/map/wv.map.jsindex 55e5d4c7a..2ae77e998 100644--- a/web/js/map/wv.map.js+++ b/web/js/map/wv.map.js@@ -1,4 +1,5 @@-+import _ from 'lodash';+import ol from 'openlayers';/** Checks to see if an extents string is found. If it exist* then it is changed from a string to an array which is then@@ -25,7 +26,7 @@ export function parse(state, errors) {var extent = _.map(state.v.split(','), function (str) {return parseFloat(str);});- var valid = wv.map.isExtentValid(extent);+ var valid = isExtentValid(extent);if (!valid) {errors.push({message: 'Invalid extent: ' + state.v@@ -48,7 +49,7 @@ export function parse(state, errors) {* @return {boolean} False if any of the values is NaN, otherwise returns* true.*/-export function isExtentValid(extent) {+var isExtentValid = function(extent) {if (_.isUndefined(extent)) {return false;}@@ -285,7 +286,6 @@ export function toPolys(geom) {return [geom];};-/* FIXME OL3wv.map.mock = function() {