You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/06/04 23:28:01 UTC

svn commit: r1489623 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js

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);