Skip to content

Commit

Permalink
Use MapQuest satellite as default layer instead of Bing Maps
Browse files Browse the repository at this point in the history
  • Loading branch information
petrsloup committed Oct 8, 2015
1 parent af5e9d7 commit 94133db
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,15 @@ weapi.App = function(divid, opt_options) {
this.scene.globe = this.globe;

if (options['empty'] !== true) {
// default layer -- Bing Maps
var bing = new Cesium.BingMapsImageryProvider({
'url' : this.resourceProtocol + '//dev.virtualearth.net',
'mapStyle' : Cesium.BingMapsStyle.AERIAL_WITH_LABELS,
'key': 'AsLurrtJotbxkJmnsefUYbatUuBkeBTzTL930TvcOekeG8SaQPY9Z5LDKtiuzAOu'
// default layer -- Map Quest
var secure = 'https:' == document.location.protocol;
var protocol = (secure ? 'https:' : 'http:');

var mq = new Cesium.OpenStreetMapImageryProvider({
'url': protocol + '//otile1' + (secure ? '-s' : '') +
'.mqcdn.com/tiles/1.0.0/sat/'
});
this.scene.imageryLayers.addImageryProvider(bing);
this.scene.imageryLayers.addImageryProvider(mq);
}
this.withTerrain = options['terrain'] == true;
if (this.withTerrain) {
Expand Down

0 comments on commit 94133db

Please sign in to comment.