Interactive interface for browsing global, full-resolution satellite imagery
WV-1286: Layer options disabled on small devices
Mike McGann1bb18337056e
diff --git a/web/js/layers/wv.layers.active.js b/web/js/layers/wv.layers.active.jsindex e41b985af..33abb7dd6 100644--- a/web/js/layers/wv.layers.active.js+++ b/web/js/layers/wv.layers.active.js@@ -187,8 +187,10 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {.attr("data-layer", layer.id).attr("title", "Layer options for " + names.title).addClass("wv-layers-options");-wv.ui.mouse.click($editButton, toggleOptionsPanel);+ if ( wv.util.browser.small ) {+ $editButton.hide();+ }var $gearIcon = $("<i></i>").addClass("wv-layers-options-icon");@@ -197,7 +199,7 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {$layer.append($editButton);-+var $mainLayerDiv = $('<div></div>').addClass('layer-main').attr("data-layer", layer.id)@@ -321,6 +323,9 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {this.jsp = $("." + self.id + "category").jScrollPane({autoReinitialise: false, verticalGutter:0});}+ $(".wv-layers-options").show();+ } else {+ $(".wv-layers-options").hide();}var tabs_height = $(".ui-tabs-nav").outerHeight(true);diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.jsindex 6357e59a3..f50d730dd 100644--- a/web/js/map/wv.map.ui.js+++ b/web/js/map/wv.map.ui.js@@ -438,7 +438,7 @@ wv.map.ui = wv.map.ui || function(models, config) {scaleMetric: scaleMetric,scaleImperial: scaleImperial,mousePosition: mousePosition- }+ };createZoomButtons(map, proj);map.getView().on("change:center", updateExtent);