Skip to content

Commit 94133db

Browse files
committed
Use MapQuest satellite as default layer instead of Bing Maps
1 parent af5e9d7 commit 94133db

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/app.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,15 @@ weapi.App = function(divid, opt_options) {
159159
this.scene.globe = this.globe;
160160

161161
if (options['empty'] !== true) {
162-
// default layer -- Bing Maps
163-
var bing = new Cesium.BingMapsImageryProvider({
164-
'url' : this.resourceProtocol + '//dev.virtualearth.net',
165-
'mapStyle' : Cesium.BingMapsStyle.AERIAL_WITH_LABELS,
166-
'key': 'AsLurrtJotbxkJmnsefUYbatUuBkeBTzTL930TvcOekeG8SaQPY9Z5LDKtiuzAOu'
162+
// default layer -- Map Quest
163+
var secure = 'https:' == document.location.protocol;
164+
var protocol = (secure ? 'https:' : 'http:');
165+
166+
var mq = new Cesium.OpenStreetMapImageryProvider({
167+
'url': protocol + '//otile1' + (secure ? '-s' : '') +
168+
'.mqcdn.com/tiles/1.0.0/sat/'
167169
});
168-
this.scene.imageryLayers.addImageryProvider(bing);
170+
this.scene.imageryLayers.addImageryProvider(mq);
169171
}
170172
this.withTerrain = options['terrain'] == true;
171173
if (this.withTerrain) {

0 commit comments

Comments
 (0)