/////////////////////////////////////////////////////////////////////////// // 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 () { }, }); });