Merged change r1242: No mouse wheel zoom.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 16 Dec 2012 13:48:37 +0000 (13:48 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 16 Dec 2012 13:48:37 +0000 (13:48 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrmap/trunk@1245 7aebc617-e5e2-0310-91dc-80fb5f6d2477

1  2 
wrmap.js

diff --cc wrmap.js
index fc9d7891fcf296024cb091be02364c9e2babf5b3,93ca3a803ce587b895fd80ea443b3c85cb821c84..a463317fb0deff3aa285ff87de464dd4b5f97ca3
+++ b/wrmap.js
@@@ -63,11 -63,15 +63,17 @@@ function init_wrmap(i, jq_map) 
                var point = new OpenLayers.Geometry.Point(lon, lat).transform(EPSG4326, EPSG3857);
                layer_sledruns.addFeatures([new OpenLayers.Feature.Vector(point, {
                        label: jq_sledrun.attr('data-title'),
 -                      url: jq_sledrun.attr('data-url')
 +                      url: jq_sledrun.attr('data-url'),
 +                      date_report: jq_sledrun.attr('data-date_report'),
 +                      condition: jq_sledrun.attr('data-condition')
                })]);
        });
+       // disable mouse wheel zoom
+       var navigation_control = map.getControlsByClass('OpenLayers.Control.Navigation')[0];
+       navigation_control.disableZoomWheel();
+       // print sledrun name when mouse moves over it
        map.addControl(new OpenLayers.Control.SelectFeature(layer_sledruns, {
                hover: true,
                highlightOnly: true,