赣州市洪水风险预警系统三维版本
guoshilong
2023-02-27 4d8c6dd77427e8e581fda17b6b65ba86bfb7a815
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import defaultValue from '../Core/defaultValue.js';
import IonImageryProvider from './IonImageryProvider.js';
import IonWorldImageryStyle from './IonWorldImageryStyle.js';
 
    /**
     * Creates an {@link IonImageryProvider} instance for ion's default global base imagery layer, currently Bing Maps.
     *
     * @exports createWorldImagery
     *
     * @param {Object} [options] Object with the following properties:
     * @param {IonWorldImageryStyle} [options.style=IonWorldImageryStyle] The style of base imagery, only AERIAL, AERIAL_WITH_LABELS, and ROAD are currently supported.
     * @returns {IonImageryProvider}
     *
     * @see Ion
     *
     * @example
     * // Create Cesium World Terrain with default settings
     * var viewer = new Cesium.Viewer('cesiumContainer', {
     *     imageryProvider : Cesium.createWorldImagery();
     * });
     *
     * @example
     * // Create Cesium World Terrain with water and normals.
     * var viewer = new Cesium.Viewer('cesiumContainer', {
     *     imageryProvider : Cesium.createWorldImagery({
     *         style: Cesium.IonWorldImageryStyle.AERIAL_WITH_LABELS
     *     })
     * });
     *
     */
    function createWorldImagery(options) {
        options = defaultValue(options, defaultValue.EMPTY_OBJECT);
        var style = defaultValue(options.style, IonWorldImageryStyle.AERIAL);
        return new IonImageryProvider({
            assetId: style
        });
    }
export default createWorldImagery;