Interactive interface for browsing global, full-resolution satellite imagery
add jquery bridget for isotope in modal
Ed Plato2d01f97ff8e8
diff --git a/web/js/layers/modal.js b/web/js/layers/modal.jsindex ad4961ca1..a573f01fc 100644--- a/web/js/layers/modal.js+++ b/web/js/layers/modal.js@@ -1,7 +1,8 @@import $ from 'jquery';import 'jquery-ui-bundle/jquery-ui';import 'icheck';-import 'isotope-layout';+import jQueryBridget from 'jquery-bridget';+import Isotope from 'isotope-layout';import 'perfect-scrollbar/jquery';import React from 'react';import ReactDOM from 'react-dom';@@ -32,6 +33,9 @@ export function layersModal(models, ui, config) {var searchBool;var hasMeasurement;+ // bridge isotope method onto jQuery for webpack+ jQueryBridget('isotope', Isotope, $);+var getLayersForProjection = function (projection) {var filteredLayers = lodashValues(config.layers).filter(function (layer) {// Only use the layers for the active projection