Author: joyce
Date: Tue May 28 17:36:55 2013
New Revision: 1487010

URL: http://svn.apache.org/r1487010
Log:
Resolved CLIMATE-35 - Add display attribute during dataset addition.

- Adds the "shouldDisplay" attribute to every dataset that is added.
  This will be used when drawing overlays to the map to allow the user
  to toggle the overlays.

Modified:
    incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js
URL: 
http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js?rev=1487010&r1=1487009&r2=1487010&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js Tue May 28 17:36:55 
2013
@@ -25,6 +25,10 @@ angular.module('rcmes', []).
                        },
                        // TODO: Define the structure of the objects that are 
added with addDataset.
                        addDataset: function(dataset) {
+                               // All datasets need a shouldDisplay attribute 
that is used when rendering
+                               // the overlays on the map!
+                               dataset.shouldDisplay = true;
+
                                datasets.push(dataset);
                        },
                        removeDataset: function(index) {


Reply via email to