-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
What happened?
Testing #12913 which adds a Google2DImageryProvider
to support new ion assets from Google Maps, a few ion assets - in particular Google Maps Labels Only (ion assetId: 3830185) which is the equivalent to Bing Maps Labels only (ion assetId: 2411391) - do not drape as expected as shown in our draping imagery sandcastle.
I am able to create an overlay with Google Maps labels using the Google2DImageryProvider
that drapes as expected (see below), but it would be good to ensure draping works with our curated assets in ion.
This could be a code issue in CesiumJS or an "asset" (but really code) issue in ion, not sure which yet, but leaving the issue in CesiumJS for great visibility and documentation of the workaround.
Works
Google Maps Labels Only Overlay drapes fine (ie this is a workaround) sandcastle
// Create the imagery layer for Google Maps (labels only)
const labelImageryLayer = Cesium.ImageryLayer.fromProviderAsync(
Cesium.Google2DImageryProvider.fromIonAssetId({
assetId: 3830182,
overlayLayerType: "layerRoadmap"
})
);
tileset.imageryLayers.add(labelImageryLayer);
Doesn't work
Curated ion GoogleMaps Labels Only overlay does not show sandcastle
// Create the imagery layer from ion asset for Google Maps (labels only)
const labelImageryLayer = Cesium.ImageryLayer.fromProviderAsync(
Cesium.IonImageryProvider.fromAssetId(3830182),
);
tileset.imageryLayers.add(labelImageryLayer);
Note - I can switch these sandcastle urls to prod sandcastle after the Oct 1 release
Reproduction steps
...
Sandcastle example
No response
Environment
Browser:
CesiumJS Version:
Operating System: