Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Save opacity compare value in permalink #1891

Benjamin King6694804f67ff
diff --git a/web/js/map/compare/opacity.js b/web/js/map/compare/opacity.js
index 9f9aa8977..5f5423150 100644
--- a/web/js/map/compare/opacity.js
+++ b/web/js/map/compare/opacity.js
@@ -48,9 +48,6 @@ export class Opacity {
this.mapCase = document.getElementById('wv-map');
const Props = {
onSlide: this.oninput.bind(this),
- onSlideEnd: value => {
- this.compareEvents.trigger('moveend', value);
- },
value: value
};
this.mapCase.appendChild(this.sliderCase);
@@ -68,5 +65,6 @@ export class Opacity {
convertedValue = value / 100;
this.firstLayer.setOpacity(1 - convertedValue);
this.secondLayer.setOpacity(convertedValue);
+ this.compareEvents.trigger('moveend', value)
}
}