buildModuleUrl

Given a relative URL under the Cesium base URL, returns an absolute URL.
Example:
const viewer = new Cesium.Viewer("cesiumContainer", {
  baseLayer: Cesium.ImageryLayer.fromProviderAsync(
    Cesium.TileMapServiceImageryProvider.fromUrl(
      Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII"),
    )),
  baseLayerPicker: false,
});

Methods

static Cesium.buildModuleUrl.getCesiumBaseUrl()string

Gets the base URL for resolving modules.
Returns:
The configured base URL

static Cesium.buildModuleUrl.setBaseUrl(value)

Sets the base URL for resolving modules.
Name Type Description
value string The new base URL.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.