# buildModuleUrl

engine/Source/Core/buildModuleUrl.js 109
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
engine/Source/Core/buildModuleUrl.js 151

Gets the base URL for resolving modules.

##### Returns:

The configured base URL

#### static Cesium.buildModuleUrl.setBaseUrl(value)
engine/Source/Core/buildModuleUrl.js 139

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.