Skip to content

Commit f74fa57

Browse files
committed
update to prod asset ids
1 parent 8ddcf0c commit f74fa57

File tree

7 files changed

+24
-78
lines changed

7 files changed

+24
-78
lines changed

Apps/Sandcastle/gallery/Google 2D Tiles with Custom Styles.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
window.startup = async function (Cesium) {
2828
"use strict";
2929
//Sandcastle_Begin
30-
Cesium.Ion.defaultServer = "https://api.ion-staging.cesium.com";
31-
Cesium.Ion.defaultAccessToken = "";
32-
33-
const assetId = 1687;
30+
const assetId = 3830184;
3431

3532
const base = Cesium.ImageryLayer.fromProviderAsync(
3633
Cesium.Google2DImageryProvider.fromIonAssetId({

Apps/Sandcastle/gallery/Google 2D Tiles.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
window.startup = async function (Cesium) {
2525
"use strict";
2626
//Sandcastle_Begin
27-
Cesium.Ion.defaultServer = "https://api.ion-staging.cesium.com";
28-
Cesium.Ion.defaultAccessToken = "";
29-
30-
const assetId = 1687;
27+
const assetId = 3830184;
3128

3229
const google = Cesium.ImageryLayer.fromProviderAsync(
3330
Cesium.IonImageryProvider.fromAssetId(assetId),

Apps/Sandcastle/gallery/Imagery Assets available from ion.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
window.startup = async function (Cesium) {
2525
"use strict";
2626
//Sandcastle_Begin
27-
Cesium.Ion.defaultServer = "https://api.ion-staging.cesium.com";
28-
Cesium.Ion.defaultAccessToken = "";
29-
3027
const viewer = new Cesium.Viewer("cesiumContainer", {
3128
animation: false,
3229
baseLayer: false,
@@ -43,14 +40,16 @@
4340
const menuOptions = [];
4441

4542
const dropdownOptions = [
46-
{ label: "Google Maps 2D Contour", assetId: 1689 },
47-
{ label: "Google Maps 2D Labels Only", assetId: 1688 },
48-
{ label: "Google Maps 2D Roadmap", assetId: 1687 },
49-
{ label: "Google Maps 2D Satellite", assetId: 1685 },
50-
{ label: "Google Maps 2D Satellite with Labels", assetId: 1686 },
43+
{ label: "Google Maps 2D Contour", assetId: 3830186 },
44+
{ label: "Google Maps 2D Labels Only", assetId: 3830185 },
45+
{ label: "Google Maps 2D Roadmap", assetId: 3830184 },
46+
{ label: "Google Maps 2D Satellite", assetId: 3830182 },
47+
{ label: "Google Maps 2D Satellite with Labels", assetId: 3830183 },
5148
{ label: "Bing Maps Aerial", assetId: 2 },
52-
{ label: "Bing Maps Aerial with Labels", assetId: 23 },
53-
{ label: "Bing Maps Labels Only", assetId: 1046 },
49+
{ label: "Bing Maps Aerial with Labels", assetId: 3 },
50+
{ label: "Bing Maps Road", assetId: 4 },
51+
{ label: "Bing Maps Labels Only", assetId: 2411391 },
52+
{ label: "Sentinel-2", assetId: 3954 },
5453
];
5554

5655
function showLayer(assetId) {
@@ -73,7 +72,7 @@
7372

7473
Sandcastle.addToolbarMenu(menuOptions);
7574

76-
showLayer(1687);
75+
showLayer(3830186);
7776

7877
viewer.scene.camera.flyTo({
7978
duration: 0,

packages/engine/Source/Scene/IonWorldImageryStyle.js

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -29,45 +29,5 @@ const IonWorldImageryStyle = {
2929
* @constant
3030
*/
3131
ROAD: 4,
32-
33-
/**
34-
* Imagery from Google Maps.
35-
*
36-
* @type {number}
37-
* @constant
38-
*/
39-
GOOGLE_MAPS_2D_SATELLITE: 1685,
40-
41-
/**
42-
* Imagery with place labels from Google Maps.
43-
*
44-
* @type {number}
45-
* @constant
46-
*/
47-
GOOGLE_MAPS_2D_SATELLITE_WITH_LABELS: 1686,
48-
49-
/**
50-
* Labeled roads and other features on a base landscape.
51-
*
52-
* @type {number}
53-
* @constant
54-
*/
55-
GOOGLE_MAPS_2D_ROADMAP: 1687,
56-
57-
/**
58-
* Place labels to combine with other imagery such as Sentinel-2.
59-
*
60-
* @type {number}
61-
* @constant
62-
*/
63-
GOOGLE_MAPS_2D_LABELS_ONLY: 1688,
64-
65-
/**
66-
* Hillshade mapping, contour lines, natural features (roadmap features hidden).
67-
*
68-
* @type {number}
69-
* @constant
70-
*/
71-
GOOGLE_MAPS_2D_CONTOUR: 1689,
7232
};
7333
export default Object.freeze(IonWorldImageryStyle);

packages/sandcastle/gallery/google-2d-tiles-with-custom-styles/main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import * as Cesium from "cesium";
22

3-
Cesium.Ion.defaultServer = "https://api.ion-staging.cesium.com";
4-
Cesium.Ion.defaultAccessToken = "";
5-
6-
const assetId = 1687;
3+
const assetId = 3830184;
74

85
const base = Cesium.ImageryLayer.fromProviderAsync(
96
Cesium.Google2DImageryProvider.fromIonAssetId({

packages/sandcastle/gallery/google-2d-tiles/main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import * as Cesium from "cesium";
22

3-
Cesium.Ion.defaultServer = "https://api.ion-staging.cesium.com";
4-
Cesium.Ion.defaultAccessToken = "";
5-
6-
const assetId = 1687;
3+
const assetId = 3830184;
74

85
const google = Cesium.ImageryLayer.fromProviderAsync(
96
Cesium.IonImageryProvider.fromAssetId(assetId),

packages/sandcastle/gallery/imagery-assets-available-from-ion/main.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import * as Cesium from "cesium";
22
import Sandcastle from "Sandcastle";
33

4-
Cesium.Ion.defaultServer = "https://api.ion-staging.cesium.com";
5-
Cesium.Ion.defaultAccessToken = "";
6-
74
const viewer = new Cesium.Viewer("cesiumContainer", {
85
animation: false,
96
baseLayer: false,
@@ -20,14 +17,16 @@ viewer.geocoder.viewModel.keepExpanded = true;
2017
const menuOptions = [];
2118

2219
const dropdownOptions = [
23-
{ label: "Google Maps 2D Contour", assetId: 1689 },
24-
{ label: "Google Maps 2D Labels Only", assetId: 1688 },
25-
{ label: "Google Maps 2D Roadmap", assetId: 1687 },
26-
{ label: "Google Maps 2D Satellite", assetId: 1685 },
27-
{ label: "Google Maps 2D Satellite with Labels", assetId: 1686 },
20+
{ label: "Google Maps 2D Contour", assetId: 3830186 },
21+
{ label: "Google Maps 2D Labels Only", assetId: 3830185 },
22+
{ label: "Google Maps 2D Roadmap", assetId: 3830184 },
23+
{ label: "Google Maps 2D Satellite", assetId: 3830182 },
24+
{ label: "Google Maps 2D Satellite with Labels", assetId: 3830183 },
2825
{ label: "Bing Maps Aerial", assetId: 2 },
29-
{ label: "Bing Maps Aerial with Labels", assetId: 23 },
30-
{ label: "Bing Maps Labels Only", assetId: 1046 },
26+
{ label: "Bing Maps Aerial with Labels", assetId: 3 },
27+
{ label: "Bing Maps Road", assetId: 4 },
28+
{ label: "Bing Maps Labels Only", assetId: 2411391 },
29+
{ label: "Sentinel-2", assetId: 3954 },
3130
];
3231

3332
function showLayer(assetId) {
@@ -50,7 +49,7 @@ dropdownOptions.forEach((opt) => {
5049

5150
Sandcastle.addToolbarMenu(menuOptions);
5251

53-
showLayer(1687);
52+
showLayer(3830186);
5453

5554
viewer.scene.camera.flyTo({
5655
duration: 0,

0 commit comments

Comments
 (0)