Mercurial > dive4elements > gnv-client
changeset 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 | 170c48e2319f |
files | gnv/ChangeLog gnv/src/main/webapp/scripts/viewport.jsp |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <ingo.weinzierl@intevation.de> + + 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 <ingo.weinzierl@intevation.de> Issue307
--- 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);