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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="zh">
 
<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <title>Document</title>
  <link rel="stylesheet" type="text/css"
    href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/dijit/themes/tundra/tundra.css" />
  <link rel="stylesheet" type="text/css"
    href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/esri/css/esri.css" />
  <link rel="stylesheet" href="./lib/layui/css/layui.css" />
  <link rel="stylesheet" href="./css/forestry-map.css" />
  <link type="text/css" rel="stylesheet" href="framework.css" />
  <link rel="stylesheet" href="./lib/zTree_v3//css/metroStyle/metroStyle.css">
  <style>
    .map_content {
      position: relative
    }
  </style>
  <script src="./lib/jquery.js"></script>
  <script src="./lib/js.cookie.min.js"></script>
  <script src="./js/request.js"></script>
  <script src="js/layer/layer.js"></script>
  <script src="js/laydate/laydate.js"></script>
  <script type="text/javascript" src="js/comm/heard.js"></script>
<!--  <script type="text/javascript" src="js/script.js"></script>-->
  <script src="./lib/layui/layui.js"></script>
  <script src="env.js"></script>
 
  <script type="text/javascript"
    src="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/init.js"></script>
  <script src='./lib/zTree_v3/js/jquery.ztree.all.js'></script>
  <script>
    var _framework = null;
    var _AppEvent = null;
 
    function getQueryStringByKey(key) {
      return (document.location.search.match(new RegExp("(?:^\\?|&)" + key + "=(.*?)(?=&|$)")) || ['', null])[1];
    }
    var ISinit = getQueryStringByKey('ISinit');
    var openId = getQueryStringByKey('openid');
    if(ISinit == null){
      init(openId,null);
    }
    function locations(res) {
      require(["dojo/topic"],
        function (topic) {
        topic.publish("location", res);
      }
      );
    }
    function init(openId,locationObj) {
      require(["base/framework", "base/AppEvent"],
        function (framework, AppEvent) {
          _framework = new framework();
          _framework.onSiderContainerShow();
          _framework.resize();
          _AppEvent = AppEvent;
          if (locationObj != null){
            //获取设备id
            window.clientID = locationObj.clientID;
          }
          _AppEvent.addAppEventListener("mapLoad", function(map){
            if (locationObj && locationObj != null) {
              map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 16);
            }
          });
          if (openId) showFun(openId);
        }
      );
    }
 
    function showFun(id) {
      _AppEvent.dispatchAppEvent(_AppEvent.RUN_WIDGET, id);
    }
 
 
  </script>
</head>
 
<body>
 
  <div class="map_content">
 
    <div id="mapTool" class="map_tool">
 
      <div id="app_content">
        <div id="tabcontainer"></div>
        <div id="mapcontentClass"></div>
      </div>
 
      <div class="map_tool_monitor">
 
        <div class="monitorClose">
          <img id="monitorClose" src="./images/map-close.png" alt="" />
          <p>关闭</p>
        </div>
 
        <div class="mon-title" id="monTitle"><span></span></div>
        <div class="map_tool_monitor_content" id="map_tool_monitor_content">
 
        </div>
 
      </div>
 
    </div>
 
  </div>
 
</body>
<script src="./js/monitor.js"></script>
<script src="./js/forestry-map.js"></script>
 
</html>