[OpenLayers-Commits] r11354 -
sandbox/bartvde/sencha/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Feb 23 11:46:06 EST 2011
Author: bartvde
Date: 2011-02-23 08:46:06 -0800 (Wed, 23 Feb 2011)
New Revision: 11354
Modified:
sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html
Log:
do not use segemented buttons since they depress and we only have single actions
Modified: sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html
===================================================================
--- sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html 2011-02-23 16:44:38 UTC (rev 11353)
+++ sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html 2011-02-23 16:46:06 UTC (rev 11354)
@@ -45,45 +45,34 @@
pack: "center"
},
items: [{
- xtype: "segmentedbutton",
- items: [{
- iconCls: "search",
- iconMask: true,
- id: "search"
- }, {
- iconCls: "locate",
- iconMask: true,
- id: "locate",
- handler: function() {
- var geolocate = map.getControlsByClass('OpenLayers.Control.Geolocate')[0];
- if (geolocate.active) {
- geolocate.getCurrentLocation();
- } else {
- geolocate.activate();
- }
- },
- scope: app
- }]
+ iconCls: "search",
+ iconMask: true
}, {
+ iconCls: "locate",
+ iconMask: true,
+ handler: function() {
+ var geolocate = map.getControlsByClass('OpenLayers.Control.Geolocate')[0];
+ if (geolocate.active) {
+ geolocate.getCurrentLocation();
+ } else {
+ geolocate.activate();
+ }
+ }
+ }, {
xtype: "spacer"
}, {
- xtype: "segmentedbutton",
- items: [{
- iconMask: true,
- iconCls: "add",
- id: 'zoomin',
- handler: function() {
- map.zoomIn();
- }
- }, {
- iconMask: true,
- iconCls: "add",
- id: 'zoomout',
- handler: function() {
- map.zoomOut();
- }
- }]
+ iconMask: true,
+ iconCls: "add",
+ handler: function() {
+ map.zoomIn();
+ }
}, {
+ iconMask: true,
+ iconCls: "add",
+ handler: function() {
+ map.zoomOut();
+ }
+ }, {
xtype: "spacer"
}, {
text: "Layers",
More information about the Commits
mailing list