zengh
2020-11-06 fee7cd750dbe31bd3c0b6d21382a3e417a323e5a
图片动画框架集成
1 files modified
2 files added
18 ■■■■ changed files
images/circle_bg.png patch | view | raw | blame | history
images/zhui.glb patch | view | raw | blame | history
widgets/PathShow/Widget.js 18 ●●●● patch | view | raw | blame | history
images/circle_bg.png
images/zhui.glb
Binary files differ
widgets/PathShow/Widget.js
@@ -127,7 +127,6 @@
                    });
                    //清除地图点
                    self.map.entities.removeAll();
@@ -149,7 +148,6 @@
                        }
                    });
                });
@@ -235,6 +233,22 @@
                    clampToGround: true
                });
                self.layer.addOverlay(self.polyline);
                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)
            },
            addPoint: function (res) {