The demo project show how to use Google Map with CesiumIon.However, my network environment cannot access Google Map, I know , Cesium can use url to load map, and how can I do it in BabylonJS ?
Thanks.
The page is here.Babylon.js docs
You don’t need Google Maps for this. In Babylon.js, you can use any map tile URL and load it as a texture. Just replace the Google Maps source with a tile URL and it should work fine.
1 Like
1 Like
Thank you. This url work fine , but I want to use http://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}, this url can work in cesium:
// Add the local TileServer GL imagery layer
this.viewer.imageryLayers.addImageryProvider(
new Cesium.UrlTemplateImageryProvider({
url: urlTemplateImageryProviderUrl, // Updated URL pattern
minimumLevel,
maximumLevel,
// credit: "Local MBTiles",
tilingScheme: tilingScheme,
})
);
你的例子是 xyz 瓦片,和3dtiles 没有关系,两种东西,babylonjs 暂时不支持
