// import Cesium from "./core"

export default class Viewer extends Cesium.Viewer {
    constructor(container, options){
        super(container, {
            animation: false, // 动画控制不显示
            shouldAnimate: true,
            timeline: false, // 时间线不显示
            fullscreenButton: false, // 全屏按钮不显示
            creditContainer: document.createElement("div"),
            geocoder: false,
            homeButton: false,
            sceneModePicker: false, // 切换球形和平面型
            baseLayerPicker: false,
            navigationHelpButton: false,
            infoBox: false,
            selectionIndicator: false,
            // imageryProvider: new Cesium.ArcGisMapServerImageryProvider({
            //   url: "https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer",
            // }),
            // imageryProvider: false,
            ...options
        })
    }
}
