You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
539 B
JavaScript
16 lines
539 B
JavaScript
import { defaultValue } from "../Source/Cesium.js";
|
|
import getWebGLStub from "./getWebGLStub.js";
|
|
import { Viewer } from "../Source/Cesium.js";
|
|
|
|
function createViewer(container, options) {
|
|
options = defaultValue(options, {});
|
|
options.contextOptions = defaultValue(options.contextOptions, {});
|
|
options.contextOptions.webgl = defaultValue(options.contextOptions.webgl, {});
|
|
if (!!window.webglStub) {
|
|
options.contextOptions.getWebGLStub = getWebGLStub;
|
|
}
|
|
|
|
return new Viewer(container, options);
|
|
}
|
|
export default createViewer;
|