File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments