climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1503393 - in /incubator/climate/trunk/rcmet/src/main/ui/app: img/globe.png index.html
Date Mon, 15 Jul 2013 18:17:01 GMT
Author: joyce
Date: Mon Jul 15 18:17:01 2013
New Revision: 1503393

URL: http://svn.apache.org/r1503393
Log:
CLIMATE-193 - Don't display preview map for global dataset

- Add app/img/globe.png. Thanks to 'penubag' who released this image at
  http://commons.wikimedia.org/wiki/File:Ambox_globe.svg for everyone to
  use without any conditions.
- Update dataset display section in index.html to hide the preview map
  and display the globe thumbnail if a dataset is a global.

Added:
    incubator/climate/trunk/rcmet/src/main/ui/app/img/globe.png
Modified:
    incubator/climate/trunk/rcmet/src/main/ui/app/index.html

Added: incubator/climate/trunk/rcmet/src/main/ui/app/img/globe.png
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/img/globe.png?rev=1503393&view=auto
==============================================================================
Files incubator/climate/trunk/rcmet/src/main/ui/app/img/globe.png (added) and incubator/climate/trunk/rcmet/src/main/ui/app/img/globe.png
Mon Jul 15 18:17:01 2013 differ

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/index.html
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/index.html?rev=1503393&r1=1503392&r2=1503393&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/index.html (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/index.html Mon Jul 15 18:17:01 2013
@@ -166,7 +166,14 @@
                   </div>
                   <!--Preview Map Section-->
                   <div class="span3">
-                    <div preview-map="dataset" index="$index"></div>
+                    <!--If the dataset is global we show a picture of a globe instead
of the actual map-->
+                    <div ng-hide="dataset.latlonVals.lonMin == -180 && dataset.latlonVals.lonMax
== 180 &&
+                                  dataset.latlonVals.latMin == -90 && dataset.latlonVals.latMax
== 90" 
+                                  preview-map="dataset" index="$index"></div>
+                    <div ng-show="dataset.latlonVals.lonMin == -180 && dataset.latlonVals.lonMax
== 180 &&
+                                  dataset.latlonVals.latMin == -90 && dataset.latlonVals.latMax
== 90">
+                      <img src="/app/img/globe.png" class="preview-map">
+                    </div>
                   </div>
                 </div>
                 <div class="row-fluid">



Mime
View raw message