diff gnv/src/main/webapp/scripts/viewport.jsp @ 1018:4eb7fa8a36ed

Changed OpenLayers MouseDefault control with an OpenLayers Navigation control. Before panning the map, the user needs to activate this control (issue311). gnv/trunk@1248 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 30 Jun 2010 06:30:02 +0000
parents cce6596560e6
children
line wrap: on
line diff
--- a/gnv/src/main/webapp/scripts/viewport.jsp	Wed Jun 30 05:50:46 2010 +0000
+++ b/gnv/src/main/webapp/scripts/viewport.jsp	Wed Jun 30 06:30:02 2010 +0000
@@ -57,9 +57,10 @@
     controls = {
         previous: nav.previous,
         next    : nav.next,
-        navigate: new OpenLayers.Control.MouseDefaults(
+        navigate: new OpenLayers.Control.Navigation(
             {
                 displayClass: 'olControlPan',
+                autoActivate: 'false',
                 title:'<bean:message key="gnviewer.mapclient.controls.navigate.title"/>'
             }
         ),
@@ -87,7 +88,6 @@
 
     map.addControl(panel);
     map.addControl(new OpenLayers.Control.PanZoomBar({zoomWorldIcon: 'true'}));
-    map.addControl(new OpenLayers.Control.MouseDefaults());
     // Displaying the mouse postion 
     mousePosition = new OpenLayers.Control.MousePosition();
     map.addControl(mousePosition);

http://dive4elements.wald.intevation.org