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',
 {


Reply via email to