zengh
2020-11-13 4b05cf3d99a3e7311381d7caf20c2c85ea567ba9
鹰眼地图
8 files added
93 ■■■■■ changed files
widgets/HawkEyeMap/Widget.html 2 ●●●●● patch | view | raw | blame | history
widgets/HawkEyeMap/Widget.js 56 ●●●●● patch | view | raw | blame | history
widgets/HawkEyeMap/css/style.css patch | view | raw | blame | history
widgets/HawkEyeMap/images/icon.png patch | view | raw | blame | history
widgets/HawkEyeMap/manifest.json 18 ●●●●● patch | view | raw | blame | history
widgets/HawkEyeMap/nls/es/strings.js 5 ●●●●● patch | view | raw | blame | history
widgets/HawkEyeMap/nls/strings.js 7 ●●●●● patch | view | raw | blame | history
widgets/HawkEyeMap/nls/zh-cn/strings.js 5 ●●●●● patch | view | raw | blame | history
widgets/HawkEyeMap/Widget.html
New file
@@ -0,0 +1,2 @@
<div>
</div>
widgets/HawkEyeMap/Widget.js
New file
@@ -0,0 +1,56 @@
///////////////////////////////////////////////////////////////////////////
// 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-HawkEyeMap",
        destroy: function () {
            this.inherited(arguments);
        },
        onOpen: function () {
            $("#dc-hawkeye-map").show();
            var yinyan = new Cesium.WebMapTileServiceImageryProvider({
                "label": "天地图影像",
                "type": "wmts",
                "url": "http://t0.tianditu.gov.cn/img_w/wmts?tk=e9533f5acb2ac470b07f406a4d24b4f0",
                "layer": "img",
                "style": "default",
                "format": "tiles",
                "tileMatrixSetID": "w",
                "maximumLevel": 17
            });
            window.dcViewer.hawkeyeMap.enable = true
            window.dcViewer.hawkeyeMap.addBaseLayer(
                yinyan
            )
        },
        onClose: function () {
            $("#dc-hawkeye-map").hide();
        },
        startup: function () {
        },
    });
});
widgets/HawkEyeMap/css/style.css
widgets/HawkEyeMap/images/icon.png
widgets/HawkEyeMap/manifest.json
New file
@@ -0,0 +1,18 @@
{
  "name": "HawkEyeMap",
  "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/HawkEyeMap/nls/es/strings.js
New file
@@ -0,0 +1,5 @@
define(
   ({
    _widgetLabel: "HawkEyeMap"
  })
);
widgets/HawkEyeMap/nls/strings.js
New file
@@ -0,0 +1,7 @@
define({
  root: ({
    _widgetLabel: "HawkEyeMap"
  }),
  "es": 1,
  "zh-cn": 1
});
widgets/HawkEyeMap/nls/zh-cn/strings.js
New file
@@ -0,0 +1,5 @@
define(
   ({
    _widgetLabel: "鹰眼地图"
  })
);