zengh
2020-11-13 0b45c0c42fe3f218f282d57627cbdae22774403c
图片动画
8 files added
101 ■■■■■ changed files
widgets/PictureAnimation/Widget.html 2 ●●●●● patch | view | raw | blame | history
widgets/PictureAnimation/Widget.js 64 ●●●●● patch | view | raw | blame | history
widgets/PictureAnimation/css/style.css patch | view | raw | blame | history
widgets/PictureAnimation/images/icon.png patch | view | raw | blame | history
widgets/PictureAnimation/manifest.json 18 ●●●●● patch | view | raw | blame | history
widgets/PictureAnimation/nls/es/strings.js 5 ●●●●● patch | view | raw | blame | history
widgets/PictureAnimation/nls/strings.js 7 ●●●●● patch | view | raw | blame | history
widgets/PictureAnimation/nls/zh-cn/strings.js 5 ●●●●● patch | view | raw | blame | history
widgets/PictureAnimation/Widget.html
New file
@@ -0,0 +1,2 @@
<div>
</div>
widgets/PictureAnimation/Widget.js
New file
@@ -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 () {
        },
    });
});
widgets/PictureAnimation/css/style.css
widgets/PictureAnimation/images/icon.png
widgets/PictureAnimation/manifest.json
New file
@@ -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
  }
}
widgets/PictureAnimation/nls/es/strings.js
New file
@@ -0,0 +1,5 @@
define(
   ({
    _widgetLabel: "PictureAnimation"
  })
);
widgets/PictureAnimation/nls/strings.js
New file
@@ -0,0 +1,7 @@
define({
  root: ({
    _widgetLabel: "PictureAnimation"
  }),
  "es": 1,
  "zh-cn": 1
});
widgets/PictureAnimation/nls/zh-cn/strings.js
New file
@@ -0,0 +1,5 @@
define(
   ({
    _widgetLabel: "图片动画"
  })
);