浏览代码

CIM引入方式

DESKTOP-CRQ4N2U\jintian 1 年之前
父节点
当前提交
3b3e1a46f0
共有 1 个文件被更改,包括 8 次插入6 次删除
  1. 8 6
      index.html

+ 8 - 6
index.html

@@ -10,9 +10,11 @@
 				height: 100vh;
 			}
 		</style>
-		<link rel="stylesheet" type="text/css"
-			href="http://218.59.194.82:14080/api/ThirdParty/Cesium-1.93/Widgets/widgets.css" />
-		<script src="http://218.59.194.82:14080/api/ThirdParty/Cesium-1.93/Cesium.js"></script>
+		<!-- 引入Cesium -->
+		<link rel="stylesheet" type="text/css" href="./public/ThirdParty/Cesium-1.93/Widgets/widgets.css" />
+		<script src="./ThirdParty/Cesium-1.93/Cesium.js"></script>
+		<!-- 		<link rel="stylesheet" type="text/css" href="http://218.59.194.82:14080/api/ThirdParty/Cesium-1.93/Widgets/widgets.css" />
+		<script src="http://218.59.194.82:14080/api/ThirdParty/Cesium-1.93/Cesium.js"></script> -->
 		<!-- 引入生成热力图 -->
 		<script src="./ThirdParty/CesiumHeatmap.js"></script>
 		<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
@@ -34,11 +36,11 @@
 
 				function refreshRem() {
 					var width = docEl.getBoundingClientRect().width;
-					console.log('宽度',typeof(width))
+					console.log('宽度', typeof(width))
 					maxWidth = maxWidth || 1920;
-					if(!width || width < 1000){
+					if (!width || width < 1000) {
 						width = 1000
-					}else if(width > 1920){
+					} else if (width > 1920) {
 						width = 1920
 					}