buildModuleUrl
Given a relative URL under the Cesium base URL, returns an absolute URL.
const viewer = new Viewer("cesiumContainer", {
baseLayer: ImageryLayer.fromProviderAsync(
TileMapServiceImageryProvider.fromUrl(
buildModuleUrl("Assets/Textures/NaturalEarthII"),
)),
baseLayerPicker: false,
});
Content copied to clipboard
Return
The absolutely URL representation of the provided path.
Parameters
relativeUrl
The relative path.