Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-959: Removed layer auto-switching when crossing the arctic projection change boundary

Mike McGannb0c63e40f37d
diff --git a/src/js/proj/wv.proj.change.js b/src/js/proj/wv.proj.change.js
index 7765d7c74..f3258f039 100644
--- a/src/js/proj/wv.proj.change.js
+++ b/src/js/proj/wv.proj.change.js
@@ -68,18 +68,6 @@ wv.proj.change = wv.proj.change || function(models) {
if ( polarVisited > 1 && wasOld !== self.old ) {
checkNotify();
}
-
- if ( wasOld !== self.old && self.old ) {
- models.layers.replace("Coastlines",
- "arctic_coastlines");
- models.layers.replace("Graticule",
- "arctic_graticule");
- } else if ( wasOld !== self.old && !self.old ) {
- models.layers.replace("arctic_coastlines",
- "Coastlines");
- models.layers.replace("arctic_graticule",
- "Graticule");
- }
};
var checkNotify = function() {
@@ -116,8 +104,10 @@ wv.proj.change = wv.proj.change || function(models) {
"<br/><br/>",
"Imagery before this date has not yet been reprocessed to the ",
- "new projection. In addition, the \"Population Density\" and ",
- "\"Global Label\" layers can no longer be displayed properly ",
+ "new projection. Coastlines and Graticule in the older projection ",
+ "can be found in the Add Layer tab by searching for \"EPSG:3995\". ",
+ "In addition, the \"Population Density\" and ",
+ "layer can no longer be displayed properly ",
"in the older projection.",
"<br/><br/>",
@@ -128,7 +118,7 @@ wv.proj.change = wv.proj.change || function(models) {
"<input id='arcticChangeNoticeDontShowAgain' value='false' ",
"type='checkbox'>Do not show again"
].join("");
- wv.ui.notify(message);
+ wv.ui.notify(message, "Notice", 400);
var $check = $("#arcticChangeNoticeDontShowAgain");
$check.on("click", function() {
if ( $check.is(":checked") ) {
diff --git a/src/js/ui/wv.ui.js b/src/js/ui/wv.ui.js
index 46e28d60a..bfe526d6f 100644
--- a/src/js/ui/wv.ui.js
+++ b/src/js/ui/wv.ui.js
@@ -60,14 +60,15 @@ wv.ui = (function(self) {
*
* @param [title="Notice"] {string} Title for the dialog box.
*/
- self.notify = function(message, title) {
+ self.notify = function(message, title, width) {
var $dialog = self.getDialog();
title = title || "Notice";
+ width = width || 300;
$dialog.html(message).dialog({
title: title,
show: { effect: "fade" },
hide: { effect: "fade" },
- width: 300,
+ width: width,
minHeight: 1,
height: "auto"
});