climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1483166 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/directives.js
Date Thu, 16 May 2013 03:01:20 GMT
Author: joyce
Date: Thu May 16 03:01:20 2013
New Revision: 1483166

URL: http://svn.apache.org/r1483166
Log:
Resolves CLIMATE-24. Disables mouse scroll to zoom on UI map.

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

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/directives.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/directives.js?rev=1483166&r1=1483165&r2=1483166&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/directives.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/directives.js Thu May 16 03:01:20 2013
@@ -9,9 +9,9 @@ directive('sap', function($rootScope) {
 		template: '<div></div>',
 		link: function(scope, element, attrs) {
 			$rootScope.map = L.map(attrs.id, {
-				//center: [40, -86],
 				center: [40, 0],
-				zoom: 2
+				zoom: 2,
+				scrollWheelZoom: false,
 			});
 			//create a CloudMade tile layer and add it to the map
 			L.tileLayer('http://{s}.tile.cloudmade.com/57cbb6ca8cac418dbb1a402586df4528/997/256/{z}/{x}/{y}.png',
{



Mime
View raw message