From 25ce610f6ecca7325e7a743dc032c4a76559c63d Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 02 Jul 2021 09:10:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/pyhmap
---
index.html | 160 ++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 109 insertions(+), 51 deletions(-)
diff --git a/index.html b/index.html
index 54e99b6..11406ad 100644
--- a/index.html
+++ b/index.html
@@ -3,7 +3,7 @@
<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"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title></title>
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/html2canvas/0.5.0-beta4/html2canvas.min.js"></script> -->
<!--jquery引用-->
@@ -11,10 +11,66 @@
<!--layer引用-->
<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>
- <!--<link rel="shortcut icon" href="images/shortcut.ico">-->
+ <script src="libs/turf/turf.min.js"></script>
+ <!-- layui -->
+ <script src='libs/layui/layui/layui.js'></script>
+ <link rel="stylesheet" href="libs/layui/layui/css/layui.css">
+ <!-- axios -->
+ <script src='libs/axios/axios.js'></script>
+
+ <!-- video flv播放 -->
+ <script src="libs/flv/flvjs/flv.js"></script>
+ <!-- <link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
+ <script src="http://vjs.zencdn.net/c/video.js"></script> -->
+ <!-- <script src="http://cdn.jsdelivr.net/npm/xgplayer/browser/index.js" charset="utf-8"></script> -->
+ <!-- <script src="http://cdn.jsdelivr.net/npm/xgplayer-flv.js/browser/index.js" charset="utf-8"></script> -->
+ <!-- echarts -->
+ <script src="libs/echarts/v4/echarts.min.js"></script>
+ <!-- 动态标绘 -->
+ <!-- <script src='libs/Cesium/ThirdParty/Workers/PlotAlgo/PlotAlgoInclude.js'></script> -->
+
+ <!-- <script src='Zplot/js/plotPanelControl/PlottingUI.Include.js'></script> -->
+ <!-- <script src='Zplot/js/plotPanelControl/PlottingUI.js'></script> -->
+ <!-- <script src='Zplot/js/bootstrap.min.js'></script>
+ <script src='Zplot/js/jquery.min.js'></script>
+ <script src='Zplot/js/plotPanelControl/PlotPanel.js'></script> -->
+ <!-- <script src='Zplot/js/plotPanelControl/StylePanel.js'></script>
+ <script src='Zplot/js/plotPanelControl/zTree/jquery.ztree.core.js'></script>
+ <script src='Zplot/js/plotPanelControl/zTree/jquery.ztree.core.js'></script>
+ <script src='Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery-ui.js'></script>
+ <script src='Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.easyui.min.js'></script>
+ <script src='Zplot/js/plotPanelControl/jquery-easyui-1.4.4/jquery.min.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/colorpicker.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/colorpickerEditor.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/eye.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/layout.js'></script>
+ <script src='Zplot/js/plotPanelControl/colorpicker/js/utils.js'></script> -->
+
+
+ <!-- <link rel="stylesheet" href="libs/Cesium/Widgets/shared.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/InfoBox/InfoBoxDescription.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Navigation/navigation.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Viewer/Viewer.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Timeline/Timeline.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/SelectionIndicator/SelectionIndicator.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/ProjectionPicker/ProjectionPicker.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/SceneModePicker/SceneModePicker.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/InfoBox/InfoBox.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Geocoder/Geocoder.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/VRButton/VRButton.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/FullscreenButton/FullscreenButton.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/CesiumInspector/CesiumInspector.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/CesiumWidget/CesiumWidget.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/Animation/Animation.css">
+ <link rel="stylesheet" href="libs/Cesium/Widgets/widgets.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"/>
<![endif]-->
@@ -35,6 +91,7 @@
}
.cesium-viewer-navigationContainer {
+ display: none !important;
top: 90px !important;
}
@@ -48,7 +105,7 @@
}
.cesium-baseLayerPicker-dropDown {
- width: 220px !important;
+ width: 308px !important;
}
#main-loading {
@@ -183,60 +240,60 @@
.cesium-viewer-toolbar .cesium-baseLayerPicker-dropDown {
position: fixed !important;
- top: 98px !important;
+ top: 54px !important;
right: 10px !important;
z-index: 213 !important;
}
</style>
- <link rel="stylesheet" type="text/css" href="jimu.js/loading/loading.css"/>
+ <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>
- <div id="loading-gif"></div>
- <div id="ie-note" style="display:none;">
- <div class="hint-title">Error</div>
- <div class="hint-img">Your browser is currently not supported.</div>
- <p class="hint-text">
- <span>
- 推荐chorome浏览器
- </span>
- </p>
+ <div id="main-loading">
+ <div id="app-loading"></div>
+ <div id="loading-gif"></div>
+ <div id="ie-note" style="display:none;">
+ <div class="hint-title">Error</div>
+ <div class="hint-img">Your browser is currently not supported.</div>
+ <p class="hint-text">
+ <span>
+ 推荐chorome浏览器
+ </span>
+ </p>
+ </div>
</div>
-</div>
-<div id="main-page">
- <div id="jimu-layout-manager"></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 src="env.js"></script>
-<script type="text/javascript" src="simpleLoader.js"></script>
-<!-- <script type="module">
+ <script type="text/javascript" src="simpleLoader.js"></script>
+ <!-- <script type="module">
window.CESIUM_BASE_URL = 'http://localhost:8081/gzsw3D/libs/Source';
import * as Cesium from './libs/Source/Cesium.js';
window.Cesium = Cesium;
</script> -->
-<script type="text/javascript" src="init.js"></script>
-<!-- <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 +315,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 +347,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 +367,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 +383,7 @@
}
});
});
-
+
function addPoint(result) {
for (var i = 0; i < result.length; i++) {
var imgs = "./widgets/Scenic/img/street.png";
@@ -355,7 +412,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 +439,11 @@
}
});
}
-
+
}
-
-
+
+
</script> -->
</body>
+
</html>
\ No newline at end of file
--
Gitblit v1.9.3