buildModuleUrl

external fun buildModuleUrl(relativeUrl: String): String(source)

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,
});

Return

The absolutely URL representation of the provided path.

Parameters

relativeUrl

The relative path.

See also