buildModuleUrl

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

Members

static Cesium.buildModuleUrl.getCesiumBaseUrl

Gets the base URL for resolving modules.

Methods

static Cesium.buildModuleUrl.setBaseUrl(value)

Sets the base URL for resolving modules.
Name Type Description
value String The new base URL.