From 0b45c0c42fe3f218f282d57627cbdae22774403c Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Fri, 13 Nov 2020 15:37:06 +0800
Subject: [PATCH] 图片动画

---
 widgets/PictureAnimation/manifest.json        |   18 +++++++++
 widgets/PictureAnimation/nls/zh-cn/strings.js |    5 ++
 widgets/PictureAnimation/css/style.css        |    0 
 widgets/PictureAnimation/Widget.html          |    2 +
 widgets/PictureAnimation/nls/es/strings.js    |    5 ++
 widgets/PictureAnimation/nls/strings.js       |    7 +++
 widgets/PictureAnimation/Widget.js            |   64 ++++++++++++++++++++++++++++++++
 widgets/PictureAnimation/images/icon.png      |    0 
 8 files changed, 101 insertions(+), 0 deletions(-)

diff --git a/widgets/PictureAnimation/Widget.html b/widgets/PictureAnimation/Widget.html
new file mode 100644
index 0000000..094418b
--- /dev/null
+++ b/widgets/PictureAnimation/Widget.html
@@ -0,0 +1,2 @@
+<div>
+</div>
\ No newline at end of file
diff --git a/widgets/PictureAnimation/Widget.js b/widgets/PictureAnimation/Widget.js
new file mode 100644
index 0000000..a7ff3cb
--- /dev/null
+++ b/widgets/PictureAnimation/Widget.js
@@ -0,0 +1,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 () {
+
+        },
+    });
+});
\ No newline at end of file
diff --git a/widgets/PictureAnimation/css/style.css b/widgets/PictureAnimation/css/style.css
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/widgets/PictureAnimation/css/style.css
diff --git a/widgets/PictureAnimation/images/icon.png b/widgets/PictureAnimation/images/icon.png
new file mode 100644
index 0000000..527ec04
--- /dev/null
+++ b/widgets/PictureAnimation/images/icon.png
Binary files differ
diff --git a/widgets/PictureAnimation/manifest.json b/widgets/PictureAnimation/manifest.json
new file mode 100644
index 0000000..c3f27b7
--- /dev/null
+++ b/widgets/PictureAnimation/manifest.json
@@ -0,0 +1,18 @@
+{
+  "name": "PictureAnimation",
+  "2D": true,
+  "3D": true,
+  "platform": "HTML",
+  "version": "2.10",
+  "wabVersion": "2.10",
+  "author": "NarutoGIS",
+  "description": "",
+  "copyright": "",
+  "license": "",
+  "properties": {
+    "inPanel": false,
+    "hasUIFile": true,
+    "hasConfig": false,
+    "supportMultiInstance": false
+  }
+}
\ No newline at end of file
diff --git a/widgets/PictureAnimation/nls/es/strings.js b/widgets/PictureAnimation/nls/es/strings.js
new file mode 100644
index 0000000..1b485e4
--- /dev/null
+++ b/widgets/PictureAnimation/nls/es/strings.js
@@ -0,0 +1,5 @@
+define(
+   ({
+    _widgetLabel: "PictureAnimation"
+  })
+);
\ No newline at end of file
diff --git a/widgets/PictureAnimation/nls/strings.js b/widgets/PictureAnimation/nls/strings.js
new file mode 100644
index 0000000..19bae36
--- /dev/null
+++ b/widgets/PictureAnimation/nls/strings.js
@@ -0,0 +1,7 @@
+define({
+  root: ({ 
+    _widgetLabel: "PictureAnimation"
+  }), 
+  "es": 1, 
+  "zh-cn": 1
+});
\ No newline at end of file
diff --git a/widgets/PictureAnimation/nls/zh-cn/strings.js b/widgets/PictureAnimation/nls/zh-cn/strings.js
new file mode 100644
index 0000000..2c7fc3f
--- /dev/null
+++ b/widgets/PictureAnimation/nls/zh-cn/strings.js
@@ -0,0 +1,5 @@
+define(
+   ({
+    _widgetLabel: "图片动画"
+  })
+);
\ No newline at end of file

--
Gitblit v1.9.3