Interactive interface for browsing global, full-resolution satellite imagery
Fixed regression where location of defaultProjection was moved in the config file but not updated in the code
Mike McGanncfbe7a9395c9
diff --git a/dev/permalinks.html b/dev/permalinks.htmlnew file mode 100644index 000000000..f0874f705--- /dev/null+++ b/dev/permalinks.html@@ -0,0 +1,24 @@++<ul>+<li><a href="http://localhost/worldview/?map=-80.254159,36.331433,-74.119394,41.156628">http://localhost/worldview/?map=-80.254159,36.331433,-74.119394,41.156628</a></li>+<li><a href="http://localhost/worldview/?map=0,0,0,0">http://localhost/worldview/?map=0,0,0,0</a></li>+<li><a href="http://localhost/worldview/?map=-1000,-1000,1000,1000">http://localhost/worldview/?map=-1000,-1000,1000,1000</a></li>+<li><a href="http://localhost/worldview/?map=x">http://localhost/worldview/?map=x</a></li>+<li><a href="http://localhost/worldview/?map=0,0,x,0">http://localhost/worldview/?map=0,0,x,0</a></li>+<li><a href="http://localhost/worldview/?map=-1000,-1000,-1000,-1000">http://localhost/worldview/?map=-1000,-1000,-1000,-1000</a></li>+</ul>++<ul>+<li><a href="http://localhost/worldview/?time=2012-07-15">http://localhost/worldview/?time=2012-07-15</a></li>+<li><a href="http://localhost/worldview/?time=2000-01-01">http://localhost/worldview/?time=2000-01-01</a></li>+<li><a href="http://localhost/worldview/?now=2013-03-15T12&time=2013-03-16">http://localhost/worldview/?now=2013-03-15T12&time=2013-03-16</a></li>+<li><a href="http://localhost/worldview/?now=2013-03-15&time=x">http://localhost/worldview/?now=2013-03-15&time=x</a></li>+<li><a href="http://localhost/worldview/?time=2013-02-29">http://localhost/worldview/?time=2013-02-29</a></li>+</ul>++<ul>+<li><a href="http://localhost/worldview/?switch=geographic">http://localhost/worldview/?switch=geographic</a></li>+<li><a href="http://localhost/worldview/?switch=arctic">http://localhost/worldview/?switch=arctic</a></li>+<li><a href="http://localhost/worldview/?switch=antarctic">http://localhost/worldview/?switch=antarctic</a></li>+<li><a href="http://localhost/worldview/?switch=x">http://localhost/worldview/?switch=x</a></li>+</ul>\ No newline at end of filediff --git a/js/Worldview/Widget/WorldviewMap.js b/js/Worldview/Widget/WorldviewMap.jsindex 95141c4b4..6118bd2a4 100644--- a/js/Worldview/Widget/WorldviewMap.js+++ b/js/Worldview/Widget/WorldviewMap.js@@ -76,7 +76,7 @@ Worldview.Widget.WorldviewMap = function(containerId, config) {var projection = state["switch"];if ( !(projection in self.productMap.mapConfig.projections) ) {var defaultProjection =- self.productMap.mapConfig.defaultProjection;+ self.productMap.mapConfig.config.defaultProjection;log.warn("Invalid projection: " + projection + ", using: " +defaultProjection);projection = defaultProjection;