123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta http-equiv="Access-Control-Allow-Origin" content="*">
- <title>虹口共享平台</title>
- <style>
- html,
- body,
- #mapDiv {
- padding: 0;
- margin: 0;
- height: 100%;
- width: 100%;
- }
- table {
- border-collapse: collapse;
- width:100%;
- }
- ul li{
- list-style: none;
- }
- th, td {
- border: 1px pink solid;
- text-align: left;
- }
- th,td,tr{
- width:100%;
- }
- table tbody tr:hover {
- background-color: whitesmoke;
- }
- /*button*/
- .button {
- background-color: #3fb0db; /* Green */
- border: none;
- color: white;
- padding: 8px 15px;
- /*
- text-align: center;
- */
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- margin: 4px 2px;
- border-radius: 6px;
- -webkit-transition-duration: 0.4s; /* Safari */
- transition-duration: 0.4s;
- cursor: pointer;
- }
- .button:hover {
- background-color: #31b0d5; /* Green */
- box-shadow: 0 6px 16px 0 rgba(0,0,0,0.24),0 6px 20px 0 rgba(0,0,0,0.19);
- }
- </style>
- <link href="css/amazeui.min.css" type="text/css" rel="stylesheet">
- <script src="js/amazeui.min.js"></script>
- <!--<link rel="stylesheet" href="http://localhost/arcgis_js_api_44/library/4.4/esri/themes/light/main.css">-->
- <!--<script src="http://localhost/arcgis_js_api_44/library/4.4/init.js"></script>-->
- <!--<script src="http://10.214.3.217/arcgis_js_api/library/4.6/init.js"></script>-->
- <!--<link rel="stylesheet" href="http://10.214.3.217/arcgis_js_api/library/4.6/esri/themes/light/main.css">-->
- <!--<link rel="stylesheet" href="http://10.214.3.217/arcgis_js_api/library/4.6/esri/css/main.css">-->
- <link rel="stylesheet" href="https://js.arcgis.com/4.7/esri/css/main.css">
- <script src="https://js.arcgis.com/4.7/"></script>
- <!--系统自定义JS-->
- <script src="Common/dataClass/XMLUtil.js"></script> <!--XML操作功能-->
- <script src="Common/dataClass/ConfigManager.js"></script>
- <script src="Common/dataClass/DataCommonClass.js"></script>
- <script src="Common/dataClass/MD5.js"></script>
- <script src="Common/dataClass/Base64.js"></script>
- <script src="Common/mapClass/MapClass4.js"></script>
- <script src="Common/WsCommonClass.js"></script>
- <script src="Common/mapClass/GSFunction.js"></script>
- <script src="Common/ProjectClass/Component/tableClass.js"></script>
- <script src="jquery/jquery-3.1.0.js"></script>
- <script>
- var queryList = [];
- //初始化配置文件
- GetConfigData();
- require(["dojo/domReady!"
- ], function () {
- loadMap();
- });
- function loadMap() {
- //判断
- if (GetConfigDataByName("maptype") == "3D") {
- init3DScene();
- }
- else {
- initMap();
- }
- }
- //--------------- 按钮事件 -----------------
- //切换二三维地图
- function onViewTestClick() {
- btClear_Click();
- m_view.container=null;
- showLoadingDiv("正在切换地图,请稍后...");
- if (currentMapMode == "2D") {
- switchTo3DMap();
- }
- else {
- switchTo2DMap();
- }
- }
- //清空地图
- function btClear_Click() {
- queryList.splice(0, queryList.length)//清空内容
- GraphicsLayer_myLayer.removeAll();
- GraphicsLayer_DrawLayer.removeAll();
- GraphicsLayer_fickerLayer.removeAll();
- xmlQueryExtend = null;
- queryExtent = null;
- document.getElementById("printResults").innerHTML = "资产数: ";
- };
- function onMapLoaded()
- {
- //alert("加载完成");
- removeLoadingDiv();
- }
- function btTestClick() {
- setCamera(1,currentExtent.center.x,currentExtent.center.y,100,0,45);
- }
-
- function onbtTestClick() {
- OpenFeatureLayerByID(1,false);
- }
- function myBrowser(){
- var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
- var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器
- var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera; //判断是否IE浏览器
- var isFF = userAgent.indexOf("Firefox") > -1; //判断是否Firefox浏览器
- var isSafari = userAgent.indexOf("Safari") > -1; //判断是否Safari浏览器
- var isChrome = userAgent.indexOf("Chrome") > -1; //判断是否Safari浏览器
- if (isIE) {
- return "IE";
- }
- else
- {
- if(isIE11())
- {
- return "IE11";
- }
- }
- if (isFF) {
- return "FF";
- }
- if (isChrome) {
- return "Chrome";
- }
- if (isOpera) {
- return "Opera";
- }
- return "IE";
- }//myBrowser() end
- function isIE11() { //ie?
- if (!!window.ActiveXObject || "ActiveXObject" in window)
- return true;
- else
- return false;
- }
- //以下是调用上面的函数
- if(myBrowser()=="IE")
- {
- window.location.href="GSManager1.html";
- }
- </script>
- <style>
- .esri-view-width-xlarge .esri-popup__main-container{
- width:600px;
- }
- </style>
- </head>
- <body>
- <div id="mapDiv">
- <div id="viewTest">
- </div>
- </div>
- <!--快速查询-->
- <div style="position:absolute;top: 0;">
- <!--关闭状态-->
- <img src="assets/image/title1.png" onclick="openQuickQueryClick()" id="openQuickQuery"/><!--background-color: #f2f2f2-->
- <!--打开状态-->
- <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);">
- <img src="assets/image/title.png" onclick="closeQuickQueryClick()" id="closeQuickQuery"/>
- <br>
- <div style="margin-left: -5px">
- <ul>
- <!--资源类型-->
- <!--<img src="assets/image/t_zylx.png" style="position: relative;top:5px">-->
- <li>
- <span style="font-size:14px;font-family: 微软雅黑">资源类型:</span>
- <select id="select_zylx" style="font-size:16px;width:200px;background-color: #f2f2f2">
- <option value="BUILDING">楼宇</option>
- <option value="PARK">园区</option>
- <optgroup label="法人">
- <option value="ETPS">企业</option>
- <option value="PE">个体</option>
- <option value="CORP">其他团体</option>
- </optgroup>
- <option value="YDYZ">一店一档</option>
- </select> <br>
- </li>
- <!--区域名称-->
- <!--<img src="assets/image/t_yymc.png" style="position: relative;top:5px">-->
- <li>
- <span style="font-size:14px;font-family: 微软雅黑">区域名称:</span>
- <select id="areaName" style="font-size:16px;width:200px;background-color: #f2f2f2"
- onchange="changeAreaNameSelect()">
- <option>全部</option>
- </select> <br>
- </li>
- <!--街道名称-->
- <!-- <img src="assets/image/t_jdmc.png" style="position: relative;top:5px">-->
- <li>
- <span style="font-size:14px;font-family: 微软雅黑">街道名称:</span>
- <select id="streetName" style="font-size:16px;width:200px;background-color: #f2f2f2"
- onchange="changeStreetNameSelect()">
- <option>全部</option>
- </select> <br>
- </li>
- <!--资源名称-->
- <!--<img src="assets/image/t_zymc.png" style="position: relative;top:5px">-->
- <li>
- <span style="font-size:14px;font-family: 微软雅黑">资源名称:</span>
- <input id="txt_zymc" style=" width: 200px;height: 25px;font-size:16px;border: 1px solid #a9a9a9;background-color: #f2f2f2" placeholder="单位名称"/> <br>
- </li>
- <!--关键字-->
- <!-- <img src="assets/image/t_gjz.png" style="position: relative;top:5px">-->
- <li>
- <span style="margin-left: 2px;font-size:14px;font-family: 微软雅黑">关 键 字 :</span>
- <input id="txt_keyStr" style=" width: 200px;height: 25px;font-size:16px;border: 1px solid #a9a9a9;background-color: #f2f2f2" placeholder="地址,门牌,交叉路"/> <br>
- </li>
- <!--画圈范围-->
- <!-- <img src="assets/image/t_fwqh.png" style="position: relative;bottom:5px">-->
- <!--<img src="assets/image/i_draw_circle.png" onclick="Circle_Click()">-->
- <li>
- <span style="margin-left: -2px;font-size:14px;font-family: 微软雅黑">范围圈画:</span>
- <img src="assets/image/i_draw_poly.png " onclick="Polygon_Click()" style="cursor:pointer;margin-top: 10px">
- <br>
- </li>
- <li>
- <button style="margin-top: -70px;margin-left: 170px" class="button button2" onclick="onViewTestClick()">切换地图</button>
- <!--<button id="btTest" onclick="onbtTestClick()">测试</button>-->
- </li>
- <br>
- <!--查询重置-->
- <li>
- <img src="assets/image/btSearch.png" style="cursor:pointer;" onclick="btnQuickQuery()">
- <img src="assets/image/btReset.png" style="cursor:pointer;" onclick="btClear_Click()"><br>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <!--底部结果-->
- <div id="divSearch"
- style="position: absolute; bottom: 20px; height: 25px; width: 100%; background-color: rgba(129, 69, 225, 0.5);">
- <span id="printResults">资产数:</span>
- </div>
- <!--点击底部弹出的结果列表-->
- <div id="resultList"
- style="display:none;position :absolute ;height: 340px;width:245px;border: 1px solid cornflowerblue;background-color: #f2f2f2;top:10px;right: 10px">
- <table class="am-table am-table-bordered am-table-radius am-table-striped am-table-hover">
- <thead style="display: block;width: 100%">
- <tr>
- <th style="width:245px;background-color: blue;">
- <span style="color: white">名称</span>
- <img src="QPimage/windows/close.png" onclick="closeResultList()" align="right" alt="关闭" title="关闭">
- </th>
- </tr>
- </thead>
- <tbody id="resultListTable" style="height: 300px;overflow: auto;display: block;width: 100%;"></tbody>
- </table>
- </div>
- </body>
- </html>
|