# HG changeset patch # User Ingo Weinzierl # Date 1277879402 0 # Node ID 4eb7fa8a36ed89a43ddd6671b573233fc4ecf12b # Parent cce6596560e61a3355e2c16cb35d8220a5e63530 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 diff -r cce6596560e6 -r 4eb7fa8a36ed gnv/ChangeLog --- a/gnv/ChangeLog Wed Jun 30 05:50:46 2010 +0000 +++ b/gnv/ChangeLog Wed Jun 30 06:30:02 2010 +0000 @@ -1,3 +1,11 @@ +2010-06-30 Ingo Weinzierl + + Issue311 + + * src/main/webapp/scripts/viewport.jsp: Changed OpenLayers MouseDefault + control with a Navigation control which is initially disabled. Users need + to activate the navigation control for panning expicitly before panning. + 2010-06-30 Ingo Weinzierl Issue307 diff -r cce6596560e6 -r 4eb7fa8a36ed gnv/src/main/webapp/scripts/viewport.jsp --- 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:'' } ), @@ -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);