[Commits] r995 - apps/opengeo/geoexplorer/branches/0.1.x/lib

commits at geoext.org commits at geoext.org
Fri Jun 5 01:17:11 CEST 2009


Author: tschaub
Date: 2009-06-05 01:17:11 +0200 (Fri, 05 Jun 2009)
New Revision: 995

Modified:
   apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js
Log:
Adding another navigation control so users can pan while info control is active.

Modified: apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js	2009-06-04 22:58:12 UTC (rev 994)
+++ apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js	2009-06-04 23:17:11 UTC (rev 995)
@@ -167,7 +167,8 @@
         // TODO: check this.initialConfig.map for any map options
         this.map = new OpenLayers.Map({
             allOverlays: true,
-            controls: [new OpenLayers.Control.PanPanel(),
+            controls: [new OpenLayers.Control.Navigation(),
+                       new OpenLayers.Control.PanPanel(),
                        new OpenLayers.Control.ZoomPanel()]
         });
 
@@ -175,7 +176,7 @@
         var onDoubleClick = function(ctrl, evt) { 
  	        OpenLayers.Event.stop(evt ? evt : window.event); 
         };
-        var controls = this.map.controls[0].controls;
+        var controls = this.map.controls[1].controls;
         for(var i = 0; i < controls.length; i++){
             OpenLayers.Event.observe(controls[i].panel_div, "dblclick",  
  	                             OpenLayers.Function.bind(onDoubleClick, this.map.controls[0], controls[i])); 
@@ -674,6 +675,7 @@
         var activeIndex = 0;
         var measureSplit = new Ext.SplitButton({
             iconCls: "icon-measure-length",
+            tooltip: "Measure",
             enableToggle: true,
             toggleGroup: toolGroup, // Ext doesn't respect this, registered with ButtonToggleMgr below
             allowDepress: false, // Ext doesn't respect this, handler deals with it



More information about the Commits mailing list