Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-1032 fixed issue which kills map after exiting image crop

Taylor Gunnoea9ea0f958df8
diff --git a/web/js/image/wv.image.rubberband.js b/web/js/image/wv.image.rubberband.js
index d094bdda8..a6b7ac16e 100644
--- a/web/js/image/wv.image.rubberband.js
+++ b/web/js/image/wv.image.rubberband.js
@@ -127,6 +127,8 @@ wv.image.rubberband = wv.image.rubberband || function(models, ui, config) {
else {
state = "off";
$button.prop("checked", false).button("refresh");
+ $cropee
+ .insertAfter('#productsHolder');
jcropAPI.destroy();
if (previousPalettes) {
models.palettes.restore(previousPalettes);