[OpenLayers-Commits] r11198 -
sandbox/bartvde/sencha/openlayers/examples/map
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Feb 21 10:45:54 EST 2011
Author: bartvde
Date: 2011-02-21 07:45:53 -0800 (Mon, 21 Feb 2011)
New Revision: 11198
Modified:
sandbox/bartvde/sencha/openlayers/examples/map/index.js
Log:
minor changes
Modified: sandbox/bartvde/sencha/openlayers/examples/map/index.js
===================================================================
--- sandbox/bartvde/sencha/openlayers/examples/map/index.js 2011-02-21 15:39:20 UTC (rev 11197)
+++ sandbox/bartvde/sencha/openlayers/examples/map/index.js 2011-02-21 15:45:53 UTC (rev 11198)
@@ -17,34 +17,22 @@
},
items : [
{
- position : position,
- iconCls : 'home',
- handler : function(){
- mapdemo.map.panTo(this.position);
- }
- },{
- xtype : 'segmentedbutton',
- allowMultiple : true,
- listeners : {
- toggle : function(buttons, button, active){
- if(button.iconCls == 'maps' ){
- mapdemo.traffic[active ? 'show' : 'hide']();
- }else if(button.iconCls == 'locate'){
- mapdemo.geo[active ? 'resumeUpdates' : 'suspendUpdates']();
- }
- }
- },
- items : [
- {
- iconMask: true,
- iconCls: 'maps'
- }
- ]
- }]
+ text: 'Zoom In',
+ handler: function() {
+ mapdemo.map.zoomIn();
+ }
+ }, {
+ text: 'Zoom Out',
+ handler: function() {
+ mapdemo.map.zoomOut();
+ }
+ }]
});
mapdemo = new GeoExt.Map({
+ useCurrentLocation: true,
mapOptions : {
+ controls: [],
center : new OpenLayers.LonLat(-122.135672, 37.381592), //nearby San Fran
zoom : 10
},
More information about the Commits
mailing list