in Map initComponent it appears that this is what is causing that behavior...
.. snippet from initComponent....
Code:
elseif(this.useCurrentLocation){
this.geo =this.geo || new Ext.util.GeoLocation({autoLoad:false});
this.geo.on({
locationupdate :this.onGeoUpdate,
locationerror :this.onGeoError,
scope :this
});
}
.. implementation of onGeoUpdate...
Code:
onGeoUpdate :function(coords){
var center;
if(coords){
center =this.mapOptions.center =new google.maps.LatLng(coords.latitude, coords.longitude);
}
if(this.rendered){
this.update(center);
}
else{
this.on('activate',this.onUpdate,this,{single:true, data: center});
}
},
what if you were to define a GeoLocation inline that avoided the onGeoUpdate...
Code:
mapPanel = new Ext.Map({
title: 'Map',
iconCls: 'locate',
autoUpdate: false,
useCurrentLocation: true,
mapOptions: {
disableDefaultUI: true,
zoom: 6,
geo: new Ext.util.GeoLocation({autoLoad:false})
}
});
or override the onGeoUpdate function ....