shuishen
2021-06-04 db9ea2a557e28fb1096dfebdb2ac23c3fe86cb57
index.html
@@ -1,6 +1,6 @@
<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
@@ -10,10 +10,12 @@
    <script src="libs/jquery/jquery-3.3.1.min.js"></script>
    <!--layer引用-->
    <script src="libs/layer/layer.js"></script>
    <!-- layui -->
    <script src="libs/layer/layer.js"></script>
    <!--空间分析插件turf引用-->
    <!-- <script src="libs/turf/turf.min.js"></script> -->
    <script src='libs/xlsx.core.min.js'></script>
    <script src='libs/md5.js'></script>
    <script src='libs/layui/layui/layui.js'></script>
    <link rel="stylesheet" href="libs/layui/layui/css/layui.css">
    <!--<link rel="shortcut icon" href="images/shortcut.ico">-->
    <!--[if IE 8]>
    <link rel="stylesheet" type="text/css" href="jimu.js/css/jimu-ie.css"/>
@@ -22,7 +24,7 @@
        * {
            box-sizing: border-box;
        }
        body,
        html {
            width: 100%;
@@ -33,32 +35,32 @@
            padding: 0;
            overflow: hidden;
        }
        .cesium-viewer-navigationContainer {
            top: 90px !important;
        }
        .cesium-performanceDisplay {
            position: relative;
            right: 250px;
        }
        .jimu-leading-margin1 {
            padding-left: 10px;
        }
        .cesium-baseLayerPicker-dropDown {
            width: 220px !important;
        }
        #main-loading {
            width: 100%;
            height: 100%;
            text-align: center;
            overflow: hidden;
        }
        #main-loading #ie-note {
            position: absolute;
            top: 0;
@@ -67,7 +69,7 @@
            right: 0;
            margin: auto;
        }
        #main-loading #ie-note {
            width: 586px;
            height: 253px;
@@ -76,14 +78,14 @@
            font-size: 14px;
            color: #596679;
        }
        #ie-note .hint-title {
            height: 40px;
            line-height: 48px;
            text-align: left;
            font-weight: bold;
        }
        #ie-note .hint-img {
            background-image: url('images/hint.png');
            background-position: left;
@@ -95,25 +97,25 @@
            line-height: 30px;
            font-weight: bold;
        }
        #ie-note span {
            display: block;
            line-height: 14px;
        }
        #main-page {
            display: none;
            width: 100%;
            height: 100%;
            position: relative;
        }
        #jimu-layout-manager {
            width: 100%;
            height: 100%;
            position: absolute;
        }
        .index_query {
            position: absolute;
            left: 45%;
@@ -121,7 +123,7 @@
            z-index: 999;
            width: 260px;
        }
        #mh_query li {
            list-style: none;
            padding-bottom: 5px;
@@ -132,9 +134,9 @@
            line-height: 20px;
            color: #ffffff;
            cursor: pointer;
        }
        #mh_query {
            width: 100%;
            background: rgba(31, 39, 48, .7);
@@ -144,7 +146,7 @@
            overflow: auto;
            z-index: 999;
        }
        .input-sm {
            width: 260px;
            height: 35px;
@@ -161,26 +163,26 @@
            background-color: rgba(63, 72, 84, .7);
            border: none;
        }
        input::-webkit-input-placeholder {
            color: #fff;
        }
        .input_img {
            position: absolute;
            right: 0;
            height: 35px;
            cursor: pointer;
        }
        .cesium-viewer-toolbar {
            top: 55px !important;
            right: -23333333333370px !important;
            width: 80px;
            height: 30px;
        }
        .cesium-viewer-toolbar .cesium-baseLayerPicker-dropDown {
            position: fixed !important;
            top: 98px !important;
@@ -190,7 +192,7 @@
    </style>
    <link rel="stylesheet" type="text/css" href="jimu.js/loading/loading.css"/>
</head>
<body class="claro jimu-main-font">
<div id="main-loading">
    <div id="app-loading"></div>
@@ -199,29 +201,29 @@
        <div class="hint-title">Error</div>
        <div class="hint-img">Your browser is currently not supported.</div>
        <p class="hint-text">
               <span>
                    <span>
            推荐chorome浏览器
          </span>
        </p>
    </div>
</div>
<div id="main-page">
    <div id="jimu-layout-manager"></div>
    <div class="index_query">
    <!-- <div class="index_query">
        <div>
            <input id="local_data" autocomplete="off" data-provide="typeahead" type="text" class="input-sm"
                   placeholder="输入关键字以搜索"/>
            <img class="input_img" src="images/query.png">
        </div>
        <div id="mh_query"></div>
    </div>
    </div> -->
</div>
<script src="env.js"></script>
<script type="text/javascript" src="simpleLoader.js"></script>
<!-- <script type="module">
    window.CESIUM_BASE_URL = 'http://localhost:8081/gzsw3D/libs/Source';
@@ -230,13 +232,13 @@
  </script> -->
<script type="text/javascript" src="init.js"></script>
<!-- <script>
    var indData = [];
    //搜索点击事件
    $(".input_img").click(function () {
        var query = $("#local_data").val();
        var data = {
            "queryMode": "SqlQuery",
            "bounds": {"leftBottom": {"x": 0, "y": 0}, "rightTop": {"x": 100, "y": 100}},
@@ -258,20 +260,20 @@
            "keywords": "",
            "spatialQueryMode": "INTERSECT"
        };
        var datas = JSON.stringify(data);
        $.ajax({
            url: 'http://61.131.223.3:8090/iserver/services/map-WLPOI/rest/maps/WLPOI/queryResults.json?returnPostAction=true&getMethodForm=true&returnContent=true',
            data: datas,
            type: "POST",
            success: function success(res) {
                var dataList = [];
                var index = 0;
                for (var i = 0; i < res.recordsets.length; i++) {
                    for (var j = 0; j < res.recordsets[i].features.length; j++) {
                        var data = {};
@@ -290,15 +292,15 @@
                            data.x = res.recordsets[i].features[j].fieldValues[4];
                            data.y = res.recordsets[i].features[j].fieldValues[5];
                        }
                        dataList.push(data);
                    }
                }
                indData = dataList;
                window.viewer.entities.removeAll();
                $("#mh_query").html("");
                if (query == "") {
                    $("#mh_query").html("");
@@ -310,15 +312,15 @@
                    addPoint(indData);
                }
                $("#mh_query").append(html);
                //添加景点li点击事件,地图定位
                $('#mh_query li').click(function () {
                    // var selectItem = this.innerText.trim();
                    // selectItem = selectItem.split("、")[1];
                    var ids = $(this).attr("id");
                    $("#mh_query").html("");
                    window.viewer.camera.flyTo({
                        destination: Cesium.Cartesian3.fromDegrees(Number(indData[ids].x), Number(indData[ids].y), 500)
                    });
@@ -326,7 +328,7 @@
            }
        });
    });
    function addPoint(result) {
        for (var i = 0; i < result.length; i++) {
            var imgs = "./widgets/Scenic/img/street.png";
@@ -355,7 +357,7 @@
            // } else if (result[i].ckey == "other") {
            //     imgs = "./widgets/Scenic/img/other.png";
            // }
            window.viewer.entities.add({
                id: result[i].id + "jd",
                position: Cesium.Cartesian3.fromDegrees(Number(result[i].x), Number(result[i].y), 0),
@@ -382,10 +384,10 @@
                }
            });
        }
    }
</script> -->
</body>
</html>