Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Remove need for util zoom func to return a func

Benjamin Kingf60eaaee7806
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 0f07c55a5..3e6f37e06 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -674,7 +674,9 @@ export function mapui(models, config) {
$zoomOut.button({
text: false
});
- $zoomOut.click(mapUtilZoomAction(map, -1));
+ $zoomOut.click(() => {
+ mapUtilZoomAction(map, -1);
+ });
var $zoomIn = $('<button></button>')
.addClass('wv-map-zoom-in')
@@ -688,7 +690,9 @@ export function mapui(models, config) {
$zoomIn.button({
text: false
});
- $zoomIn.click(mapUtilZoomAction(map, 1));
+ $zoomIn.click(() => {
+ mapUtilZoomAction(map, 1);
+ });
/*
* Sets zoom buttons as active or inactive based