worldwind-ui API / worldwind-kit / scriptLoader
Function: scriptLoader() ​
scriptLoader(
src?): () =>Promise<unknown>
Defined in: kit/src/worldwind.ts:114
A loader that adds a <script> tag instead of bundling WorldWind. Use it with loadWorldWind({ loader: scriptLoader() }) (or a loadOptions prop) to keep the 1.7 MB bundle out of your build, or as an alternative to the Vite plugin. *
Parameters ​
src? ​
string = DEFAULT_WORLDWIND_SCRIPT_URL
Returns ​
() => Promise<unknown>