zengh
2022-05-16 63ad2c3598400370dd7da5534659fd7e768a0a4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// /**
//  * 多时相控件按钮
//  * @author liuyl 2015-10-26
//  **/
// define([
//     "base/AppEvent",
//     "dojo",
//     "dojo/_base/declare",
//     "dojo/_base/lang",
//     "controls/toolbar/tools/BaseTool",
//     "dojo/dom-style",
//     "base/ConfigData",
// ], function(
//     AppEvent,
//     dojo,
//     declare,
//     lang,
//     BaseTool,
//     domStyle,
//     ConfigData
// ) {
//     var RL = declare([BaseTool], {
//         customExtentAndSR:"",
//         thisobj:"",
//         constructor: function(args) {
//             thisobj=this;
//             this._normalIconClass = "tool-multidate-normal";
//             this._overIconClass = "tool-multidate-over";
//             this._selectedIconClass = "tool-multidate-select";
//             this.tooltip="多时相地图浏览";
//         },
//         activate: function(args) {
//             this.inherited(arguments);
//             var mianSelectLayer = this.map.getLayer('mianSelectLayer');
//             if(mianSelectLayer) {
//                 mianSelectLayer.setVisibility(true);
//             }
//             $("#MapSwitchControl_0").css({"display":"none"});
//             $(".esriSimpleSlider").css({"display":"none"});
//             $(".Splittime-base").css({"display":"block"});
//             $("#header_toolcontainer").css({"display":"none"});
//             $("#fenping_colse").css({"display":"block"});
//             AppEvent.dispatchAppEvent(AppEvent.RUN_WIDGET,"MultidateWidget");
//         },
//         postCreate: function() {
//             this.inherited(arguments);
// /*            domStyle.set(this.tool,"border-top-left-radius","5px");
//             domStyle.set(this.tool,"border-bottom-left-radius","5px");*/
//             AppEvent.addAppEventListener(AppEvent.MULTIDATE, lang.hitch(this, function(evt) {
//                 this.deactivate();
//             }));
//         },
//         deactivate: function() {
//             this.inherited(arguments);
//             var mianSelectLayer = this.map.getLayer('mianSelectLayer');
//             if(mianSelectLayer) {
//                 mianSelectLayer.setVisibility(false);
//             }
//             //$("#SplittimeControl_0 .split_timesselect").val("公开版地形图");
//             //$("#SplittimeControl_0 .split_tuselect").val("2016");
//             $("#MapSwitchControl_0").css({"display":"block"});
//             $(".esriSimpleSlider").css({"display":"block"});
//             $(".Splittime-base").css({"display":"none"});
//             $("#fenping_colse").css({"display":"none"});
//             $("#header_toolcontainer").css({"display":"block"});
//             AppEvent.dispatchAppEvent(AppEvent.CLOSE_WIDGET,"MultidateWidget");
//         }
//     });
//     return RL;
// });