climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1489623 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js
Date Tue, 04 Jun 2013 21:28:01 GMT
Author: joyce
Date: Tue Jun  4 21:27:57 2013
New Revision: 1489623

URL: http://svn.apache.org/r1489623
Log:
Resolves CLIMATE-78 - Allows map redraw to be triggered via event.

- Adds a listener to the WorlMapCtrl for the 'redrawOverlays' event that
  triggers a redraw of the map overlays.

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

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js?rev=1489623&r1=1489622&r2=1489623&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js Tue Jun  4 21:27:57 2013
@@ -66,6 +66,10 @@ function WorldMapCtrl($rootScope, $scope
  		}
 	};
 
+	$scope.$on('redrawOverlays', function(event, parameters) {
+		$scope.updateMap();
+	});
+
 	$scope.$watch('datasets', function() {
 		$scope.updateMap();
 	}, true);



Mime
View raw message