[Commits] r385 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Tue Apr 14 23:27:06 CEST 2009
Author: tschaub
Date: 2009-04-14 23:27:05 +0200 (Tue, 14 Apr 2009)
New Revision: 385
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
Treat pan, gfi, and measure as radio buttons - still not working for this MapSplitToggle.
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-14 21:12:20 UTC (rev 384)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-14 21:27:05 UTC (rev 385)
@@ -344,6 +344,8 @@
tooltip: "Pan Map",
iconCls: "icon-pan",
enableToggle: true,
+ pressed: true,
+ allowDepress: false,
toggleGroup: toolGroup,
toggleHandler: function(b, pressed) {
if(pressed) {
@@ -359,6 +361,7 @@
iconCls: "icon-getfeatureinfo",
toggleGroup: toolGroup,
enableToggle: true,
+ allowDepress: false,
toggleHandler: function(button, pressed) {
if(pressed) {
infoControl.activate();
@@ -371,6 +374,7 @@
tooltip: "Measure",
iconCls: "icon-measure",
defaultTool: measureLength,
+ allowDepress: false,
tools: [
{text: 'Length', tool: measureLength, iconCls: null},
{text: 'Area', tool: measureArea, iconCls: null}
More information about the Commits
mailing list