Skip to content

Commit

Permalink
fixes for error dynamicly loading the API with browsers that have gea…
Browse files Browse the repository at this point in the history
…rs installed
  • Loading branch information
VinylFox committed Oct 13, 2010
1 parent 3742bdd commit 3cfab3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/advanced/recenter-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Ext.onReady(function(){
}],
listeners: {
resize: function(t){
if (Ext.isDefined(window.google)){
if (window.google && window.google.maps){
t.geoCodeLookup('4 Yawkey Way, Boston, MA, 02215-3409, USA', undefined, false, true, undefined);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Ext.ux.GMapPanel3.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ markers: [{

Ext.ux.GMapPanel.superclass.initComponent.call(this);

if (Ext.isDefined(window.google)){
if (window.google && window.google.maps){
this.on('afterrender', this.apiReady, this);
}else{
window.gmapapiready = this.apiReady.createDelegate(this);
Expand Down Expand Up @@ -270,7 +270,7 @@ markers: [{
}
}

}).defer(100,this);
}).defer(200,this);

}else{
this.on('afterrender', this.apiReady, this);
Expand Down

0 comments on commit 3cfab3d

Please sign in to comment.