zengh
2020-11-13 0b45c0c42fe3f218f282d57627cbdae22774403c
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
///////////////////////////////////////////////////////////////////////////
// Copyright © 2018 NarutoGIS. All Rights Reserved.
// 模块描述:鹰眼地图
///////////////////////////////////////////////////////////////////////////
define([
    "dojo/_base/declare",
    "dojo/_base/lang",
    'dojo/_base/html',
    "dojo/_base/fx",
    'jimu/BaseWidget',
    "dojo/topic",
    "dojo/Deferred",
    "dojo/on",
    'jimu/dijit/Popup'
 
], function (
    declare,
    lang,
    html,
    fx,
    BaseWidget,
    topic,
    Deferred,
    on,
    Popup
) {
    return declare([BaseWidget], {
        baseClass: "demo-widgets-PictureAnimation",
        destroy: function () {
            this.inherited(arguments);
        },
        onOpen: function () {
            var self = this;
 
            self.layer = new DC.VectorLayer('layer')
            window.dcViewer.addLayer(self.layer)
            let position = new DC.Position(115.70683949300007, 28.80868520100006);
            let circle = new DC.Circle(position, 2000)
            circle.setStyle({
                material: new DC.ImageMaterialProperty({
                    image: './images/circle_bg.png'
                })
            })
            circle.rotateAmount = 0.01
            let model = new DC.Model(position, './images/zhui.glb')
            model.setStyle({
                scale: 100
            })
            model.rotateAmount = 4
            self.layer.addOverlay(model).addOverlay(circle)
 
            self.map.camera.flyTo({
                destination: Cesium.Cartesian3.fromDegrees(115.70683949300007,28.80868520100006, 3000)
            });
 
        },
        onClose: function () {
 
        },
        startup: function () {
 
        },
    });
});