Skip to content

worldwind-ui API / worldwind-kit / configureAssetBaseUrl

Function: configureAssetBaseUrl() ​

configureAssetBaseUrl(worldWind, baseUrl?): string

Defined in: kit/src/assets.ts:24

Points WorldWind at its image assets. When WorldWind is bundled (rather than loaded from a <script> tag) it cannot discover its own location, so this must be set before any layer that uses images is created. Returns the normalized URL. *

Parameters ​

worldWind ​

WorldWindStatic

baseUrl? ​

string = DEFAULT_ASSET_BASE_URL

Returns ​

string

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.