GisShareApp.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
  6. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  7. <title>虹口共享平台</title>
  8. <style>
  9. html,
  10. body,
  11. #mapDiv {
  12. padding: 0;
  13. margin: 0;
  14. height: 100%;
  15. width: 100%;
  16. }
  17. table {
  18. border-collapse: collapse;
  19. width:100%;
  20. }
  21. ul li{
  22. list-style: none;
  23. }
  24. th, td {
  25. border: 1px pink solid;
  26. text-align: left;
  27. }
  28. th,td,tr{
  29. width:100%;
  30. }
  31. table tbody tr:hover {
  32. background-color: whitesmoke;
  33. }
  34. /*button*/
  35. .button {
  36. background-color: #3fb0db; /* Green */
  37. border: none;
  38. color: white;
  39. padding: 8px 15px;
  40. /*
  41. text-align: center;
  42. */
  43. text-decoration: none;
  44. display: inline-block;
  45. font-size: 16px;
  46. margin: 4px 2px;
  47. border-radius: 6px;
  48. -webkit-transition-duration: 0.4s; /* Safari */
  49. transition-duration: 0.4s;
  50. cursor: pointer;
  51. }
  52. .button:hover {
  53. background-color: #31b0d5; /* Green */
  54. box-shadow: 0 6px 16px 0 rgba(0,0,0,0.24),0 6px 20px 0 rgba(0,0,0,0.19);
  55. }
  56. </style>
  57. <link href="css/amazeui.min.css" type="text/css" rel="stylesheet">
  58. <script src="js/amazeui.min.js"></script>
  59. <!--<link rel="stylesheet" href="http://localhost/arcgis_js_api_44/library/4.4/esri/themes/light/main.css">-->
  60. <!--<script src="http://localhost/arcgis_js_api_44/library/4.4/init.js"></script>-->
  61. <!--<script src="http://10.214.3.217/arcgis_js_api/library/4.6/init.js"></script>-->
  62. <!--<link rel="stylesheet" href="http://10.214.3.217/arcgis_js_api/library/4.6/esri/themes/light/main.css">-->
  63. <!--<link rel="stylesheet" href="http://10.214.3.217/arcgis_js_api/library/4.6/esri/css/main.css">-->
  64. <link rel="stylesheet" href="https://js.arcgis.com/4.7/esri/css/main.css">
  65. <script src="https://js.arcgis.com/4.7/"></script>
  66. <!--系统自定义JS-->
  67. <script src="Common/dataClass/XMLUtil.js"></script> <!--XML操作功能-->
  68. <script src="Common/dataClass/ConfigManager.js"></script>
  69. <script src="Common/dataClass/DataCommonClass.js"></script>
  70. <script src="Common/dataClass/MD5.js"></script>
  71. <script src="Common/dataClass/Base64.js"></script>
  72. <script src="Common/mapClass/MapClass4.js"></script>
  73. <script src="Common/WsCommonClass.js"></script>
  74. <script src="Common/mapClass/GSFunction.js"></script>
  75. <script src="Common/ProjectClass/Component/tableClass.js"></script>
  76. <script src="jquery/jquery-3.1.0.js"></script>
  77. <script>
  78. var queryList = [];
  79. //初始化配置文件
  80. GetConfigData();
  81. require(["dojo/domReady!"
  82. ], function () {
  83. loadMap();
  84. });
  85. function loadMap() {
  86. //判断
  87. if (GetConfigDataByName("maptype") == "3D") {
  88. init3DScene();
  89. }
  90. else {
  91. initMap();
  92. }
  93. }
  94. //--------------- 按钮事件 -----------------
  95. //切换二三维地图
  96. function onViewTestClick() {
  97. btClear_Click();
  98. m_view.container=null;
  99. showLoadingDiv("正在切换地图,请稍后...");
  100. if (currentMapMode == "2D") {
  101. switchTo3DMap();
  102. }
  103. else {
  104. switchTo2DMap();
  105. }
  106. }
  107. //清空地图
  108. function btClear_Click() {
  109. queryList.splice(0, queryList.length)//清空内容
  110. GraphicsLayer_myLayer.removeAll();
  111. GraphicsLayer_DrawLayer.removeAll();
  112. GraphicsLayer_fickerLayer.removeAll();
  113. xmlQueryExtend = null;
  114. queryExtent = null;
  115. document.getElementById("printResults").innerHTML = "资产数: ";
  116. };
  117. function onMapLoaded()
  118. {
  119. //alert("加载完成");
  120. removeLoadingDiv();
  121. }
  122. function btTestClick() {
  123. setCamera(1,currentExtent.center.x,currentExtent.center.y,100,0,45);
  124. }
  125. function onbtTestClick() {
  126. OpenFeatureLayerByID(1,false);
  127. }
  128. function myBrowser(){
  129. var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  130. var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器
  131. var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera; //判断是否IE浏览器
  132. var isFF = userAgent.indexOf("Firefox") > -1; //判断是否Firefox浏览器
  133. var isSafari = userAgent.indexOf("Safari") > -1; //判断是否Safari浏览器
  134. var isChrome = userAgent.indexOf("Chrome") > -1; //判断是否Safari浏览器
  135. if (isIE) {
  136. return "IE";
  137. }
  138. else
  139. {
  140. if(isIE11())
  141. {
  142. return "IE11";
  143. }
  144. }
  145. if (isFF) {
  146. return "FF";
  147. }
  148. if (isChrome) {
  149. return "Chrome";
  150. }
  151. if (isOpera) {
  152. return "Opera";
  153. }
  154. return "IE";
  155. }//myBrowser() end
  156. function isIE11() { //ie?
  157. if (!!window.ActiveXObject || "ActiveXObject" in window)
  158. return true;
  159. else
  160. return false;
  161. }
  162. //以下是调用上面的函数
  163. if(myBrowser()=="IE")
  164. {
  165. window.location.href="GSManager1.html";
  166. }
  167. </script>
  168. <style>
  169. .esri-view-width-xlarge .esri-popup__main-container{
  170. width:600px;
  171. }
  172. </style>
  173. </head>
  174. <body>
  175. <div id="mapDiv">
  176. <div id="viewTest">
  177. </div>
  178. </div>
  179. <!--快速查询-->
  180. <div style="position:absolute;top: 0;">
  181. <!--关闭状态-->
  182. <img src="assets/image/title1.png" onclick="openQuickQueryClick()" id="openQuickQuery"/><!--background-color: #f2f2f2-->
  183. <!--打开状态-->
  184. <div id="quickQuery" style="display: none;height: 340px;width:337px;border: 1px solid cornflowerblue;box-shadow: 10px 10px 5px #888888;background-color: rgba(242, 242, 242, 0.9);">
  185. <img src="assets/image/title.png" onclick="closeQuickQueryClick()" id="closeQuickQuery"/>
  186. <br>
  187. <div style="margin-left: -5px">
  188. <ul>
  189. <!--资源类型-->
  190. <!--<img src="assets/image/t_zylx.png" style="position: relative;top:5px">-->
  191. <li>
  192. <span style="font-size:14px;font-family: 微软雅黑">资源类型:</span>
  193. <select id="select_zylx" style="font-size:16px;width:200px;background-color: #f2f2f2">
  194. <option value="BUILDING">楼宇</option>
  195. <option value="PARK">园区</option>
  196. <optgroup label="法人">
  197. <option value="ETPS">企业</option>
  198. <option value="PE">个体</option>
  199. <option value="CORP">其他团体</option>
  200. </optgroup>
  201. <option value="YDYZ">一店一档</option>
  202. </select> <br>
  203. </li>
  204. <!--区域名称-->
  205. <!--<img src="assets/image/t_yymc.png" style="position: relative;top:5px">-->
  206. <li>
  207. <span style="font-size:14px;font-family: 微软雅黑">区域名称:</span>
  208. <select id="areaName" style="font-size:16px;width:200px;background-color: #f2f2f2"
  209. onchange="changeAreaNameSelect()">
  210. <option>全部</option>
  211. </select> <br>
  212. </li>
  213. <!--街道名称-->
  214. <!-- <img src="assets/image/t_jdmc.png" style="position: relative;top:5px">-->
  215. <li>
  216. <span style="font-size:14px;font-family: 微软雅黑">街道名称:</span>
  217. <select id="streetName" style="font-size:16px;width:200px;background-color: #f2f2f2"
  218. onchange="changeStreetNameSelect()">
  219. <option>全部</option>
  220. </select> <br>
  221. </li>
  222. <!--资源名称-->
  223. <!--<img src="assets/image/t_zymc.png" style="position: relative;top:5px">-->
  224. <li>
  225. <span style="font-size:14px;font-family: 微软雅黑">资源名称:</span>
  226. <input id="txt_zymc" style=" width: 200px;height: 25px;font-size:16px;border: 1px solid #a9a9a9;background-color: #f2f2f2" placeholder="单位名称"/> <br>
  227. </li>
  228. <!--关键字-->
  229. <!-- <img src="assets/image/t_gjz.png" style="position: relative;top:5px">-->
  230. <li>
  231. <span style="margin-left: 2px;font-size:14px;font-family: 微软雅黑">关&nbsp;键&nbsp;字&nbsp;:</span>
  232. <input id="txt_keyStr" style=" width: 200px;height: 25px;font-size:16px;border: 1px solid #a9a9a9;background-color: #f2f2f2" placeholder="地址,门牌,交叉路"/> <br>
  233. </li>
  234. <!--画圈范围-->
  235. <!-- <img src="assets/image/t_fwqh.png" style="position: relative;bottom:5px">-->
  236. <!--<img src="assets/image/i_draw_circle.png" onclick="Circle_Click()">-->
  237. <li>
  238. <span style="margin-left: -2px;font-size:14px;font-family: 微软雅黑">范围圈画:</span>
  239. <img src="assets/image/i_draw_poly.png " onclick="Polygon_Click()" style="cursor:pointer;margin-top: 10px">
  240. <br>
  241. </li>
  242. <li>
  243. <button style="margin-top: -70px;margin-left: 170px" class="button button2" onclick="onViewTestClick()">切换地图</button>
  244. <!--<button id="btTest" onclick="onbtTestClick()">测试</button>-->
  245. </li>
  246. <br>
  247. <!--查询重置-->
  248. <li>
  249. <img src="assets/image/btSearch.png" style="cursor:pointer;" onclick="btnQuickQuery()">
  250. <img src="assets/image/btReset.png" style="cursor:pointer;" onclick="btClear_Click()"><br>
  251. </li>
  252. </ul>
  253. </div>
  254. </div>
  255. </div>
  256. <!--底部结果-->
  257. <div id="divSearch"
  258. style="position: absolute; bottom: 20px; height: 25px; width: 100%; background-color: rgba(129, 69, 225, 0.5);">
  259. <span id="printResults">资产数:</span>
  260. </div>
  261. <!--点击底部弹出的结果列表-->
  262. <div id="resultList"
  263. style="display:none;position :absolute ;height: 340px;width:245px;border: 1px solid cornflowerblue;background-color: #f2f2f2;top:10px;right: 10px">
  264. <table class="am-table am-table-bordered am-table-radius am-table-striped am-table-hover">
  265. <thead style="display: block;width: 100%">
  266. <tr>
  267. <th style="width:245px;background-color: blue;">
  268. <span style="color: white">名称</span>
  269. <img src="QPimage/windows/close.png" onclick="closeResultList()" align="right" alt="关闭" title="关闭">
  270. </th>
  271. </tr>
  272. </thead>
  273. <tbody id="resultListTable" style="height: 300px;overflow: auto;display: block;width: 100%;"></tbody>
  274. </table>
  275. </div>
  276. </body>
  277. </html>