Skip to content

Commit

Permalink
fix for provider key
Browse files Browse the repository at this point in the history
  • Loading branch information
steren committed Feb 16, 2012
1 parent a6ed7bb commit 10d9e9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/uielements/map.js
Expand Up @@ -101,7 +101,9 @@ Joshfire.define(['joshfire/vendor/underscore', 'joshfire/uielement', 'joshfire/c
altitude : this.mapOptions.altitude3D || 150000,
travelDuration : this.mapOptions.travelDuration3D || 4000 //ms
};
options.providerKey = this.mapOptions.providersKeys && this.mapOptions.providersKeys.length ? this.mapOptions.providersKeys[options.provider] : null;
if(this.mapOptions.providersKeys) {
options.providerKey = this.mapOptions.providersKeys[options.provider];
}
return options;
},
/**
Expand Down

0 comments on commit 10d9e9c

Please sign in to comment.