Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Updated notice message when using canvas with image download, wording by Ryan

Mike McGannee8533708b22
diff --git a/src/js/image/wv.image.rubberband.js b/src/js/image/wv.image.rubberband.js
index 3fa6eefb9..b72a1823b 100644
--- a/src/js/image/wv.image.rubberband.js
+++ b/src/js/image/wv.image.rubberband.js
@@ -17,8 +17,9 @@ wv.image.rubberband = wv.image.rubberband || function(models, ui, config) {
var self = {};
var PALETTE_WARNING =
- "Image download does not yet support the custom palette(s) that you " +
- "have applied. Would you like to continue with the default color palette(s)?";
+ "One or more layers on the map have been modified (changed palette, " +
+ "thresholds, etc.). These modifications cannot be used to take a " +
+ "snapshot. Would you like to revert to the original layer(s)?";
var containerId = "wv-image-button";
var container;
diff --git a/src/js/ui/wv.ui.js b/src/js/ui/wv.ui.js
index dfec3a81c..6aea29e52 100644
--- a/src/js/ui/wv.ui.js
+++ b/src/js/ui/wv.ui.js
@@ -114,7 +114,10 @@ wv.ui = (function(self) {
resizable: false,
modal: true,
buttons: buttons
- }).html(spec.message);
+ }).html(spec.message)
+ .on("dialogclose", function() {
+ if ( spec.onCancel ) { spec.onCancel(); }
+ });
};
/**