Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fixed lodash imports

Benjamin Kinge2a244603a00
diff --git a/web/js/map/wv.map.js b/web/js/map/wv.map.js
index 4a70e58ae..84b872cbc 100644
--- a/web/js/map/wv.map.js
+++ b/web/js/map/wv.map.js
@@ -1,7 +1,8 @@
-import {
- map as _map, each as _each,
- isUndefined as _isUndefined, find as _find
-} from 'lodash';
+
+import _map from 'lodash/map';
+import _each from 'lodash/each';
+import _isUndefined from 'lodash/isUndefined';
+import _find from 'lodash/find';
import ol from 'openlayers';
/*
* Checks to see if an extents string is found. If it exist
diff --git a/web/js/map/wv.map.layerbuilder.js b/web/js/map/wv.map.layerbuilder.js
index a05c35566..99089d405 100644
--- a/web/js/map/wv.map.layerbuilder.js
+++ b/web/js/map/wv.map.layerbuilder.js
@@ -1,10 +1,8 @@
import util from '../util/util';
import ol from 'openlayers';
-import {
- cloneDeep as _cloneDeep,
- merge as _merge,
- each as _each
-} from 'lodash';
+import _cloneDeep from 'lodash/cloneDeep';
+import _merge from 'lodash/merge';
+import _each from 'lodash/each';
export default function(models, config, cache, Parent) {
var self = {};
diff --git a/web/js/map/wv.map.model.js b/web/js/map/wv.map.model.js
index ca00e1e78..b0baa63ea 100644
--- a/web/js/map/wv.map.model.js
+++ b/web/js/map/wv.map.model.js
@@ -1,6 +1,6 @@
import ol from 'openlayers';
import util from '../util/util';
-import { clone as _clone } from 'lodash';
+import _clone from 'lodash/clone';
export default function(models, config) {
var self = {};
diff --git a/web/js/map/wv.map.precachetile.js b/web/js/map/wv.map.precachetile.js
index dddfad5e2..0e043e0b1 100644
--- a/web/js/map/wv.map.precachetile.js
+++ b/web/js/map/wv.map.precachetile.js
@@ -1,4 +1,4 @@
-import {each as _each} from 'lodash';
+import _each from 'lodash/each';
import ol from 'openlayers';
export default function (models, config, cache, parent) {
diff --git a/web/js/map/wv.map.runningdata.js b/web/js/map/wv.map.runningdata.js
index 2e95631a5..a490809af 100644
--- a/web/js/map/wv.map.runningdata.js
+++ b/web/js/map/wv.map.runningdata.js
@@ -1,9 +1,7 @@
import $ from 'jquery';
import util from '../util/util';
-import {
- differenced as _difference,
- each as _each
-} from 'lodash';
+import _difference from 'lodash/difference';
+import _each from 'lodash/each';
export default function(models) {
var self;
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index 4500d0b46..ce55bc09b 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -1,12 +1,10 @@
import $ from 'jquery';
import ol from 'openlayers';
-import {
- forOwn as _forOwn,
- each as _each,
- findIndex as _findIndex,
- find as _find,
- throttle as _throttle
-} from 'lodash';
+import _findIndex from 'lodash/findIndex';
+import _each from 'lodash/each';
+import _forOwn from 'lodash/forOwn';
+import _throttle from 'lodash/throttle';
+import _find from 'lodash/find';
import util from '../util/util';
export default function(models, config, components) {