Skip to content

Commit efb9dce

Browse files
Revert "Cesium: add mapbox provider, make it the default provider"
This reverts commit 472e1b3.
1 parent 472e1b3 commit efb9dce

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/assets/mapbox.png

-13.2 KB
Binary file not shown.

src/components/CesiumViewer.vue

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
Color,
2020
createDefaultImageryProviderViewModels,
2121
ProviderViewModel,
22-
MapboxStyleImageryProvider,
2322
UrlTemplateImageryProvider,
2423
Viewer, createWorldTerrain,
2524
PointPrimitiveCollection,
@@ -104,11 +103,10 @@ export default {
104103
scene3DOnly: false,
105104
selectionIndicator: false,
106105
shadows: true,
107-
selectedImageryProviderViewModel: this.mapboxprovider,
108106
imageryProviderViewModels: imageryProviders
109107
110108
})
111-
this.viewer.imageryLayers.addImageryProvider(this.mapboxprovider)
109+
112110
this.viewer.scene.debugShowFramesPerSecond = true
113111
if (this.state.vehicle !== 'boat') {
114112
this.viewer.terrainProvider = createWorldTerrain()
@@ -191,20 +189,6 @@ export default {
191189
})
192190
}
193191
}))
194-
// save this one so it can be referenced when creating the cesium viewer
195-
this.mapboxprovider = new ProviderViewModel({
196-
name: 'MapBox',
197-
iconUrl: require('../assets/mapbox.png'),
198-
tooltip: 'Mapbox aerial imagery \nhttps://www.mapbox.com/',
199-
creationFunction: function () {
200-
return new MapboxStyleImageryProvider({
201-
styleId: 'satellite-streets-v11',
202-
accessToken: 'sk.eyJ1Ijoid2lsbGlhbmdhbHZhbmkiLCJhIjoi' +
203-
'Y2tlMWphbDU5MGVtYzJybWZ3M3BsNzA0ZiJ9.auDGkWkW_r7SFfkcCp1PNg'
204-
})
205-
}
206-
})
207-
imageryProviders.push(this.mapboxprovider)
208192
imageryProviders.push(new ProviderViewModel({
209193
name: 'Eniro',
210194
iconUrl: require('../assets/eniro.png'),

0 commit comments

Comments
 (0)