From e1186e0c9c1a7a47454b73f9cddcf733dce30b32 Mon Sep 17 00:00:00 2001
From: fuchengshen <men883234@gmail.com>
Date: 星期五, 15 七月 2022 13:42:00 +0800
Subject: [PATCH] 静态数据模式

---
 js/function2.js |   38 --------------------------------------
 1 files changed, 0 insertions(+), 38 deletions(-)

diff --git a/js/function2.js b/js/function2.js
index 593ef6f..a3d1c2d 100644
--- a/js/function2.js
+++ b/js/function2.js
@@ -1033,44 +1033,6 @@
   }
   
   
-  // 璇曞姞杞絋XT鐐逛簯鏂囦欢
-// function addPrimitivesPointFromJSONTest() {
-// 聽 var pointPrimitives = null;// 鐢虫槑鐐规覆鏌撻泦鍚�
-// 聽 pointPrimitives = map.viewer.scene.primitives.add(new Cesium.PointPrimitiveCollection());
-// 	// 璇诲彇TXT鏂囦欢骞跺皢TXT鍐呭杞崲涓烘暟缁�
-// 	$.ajax({
-// 		url: './data/hn4.txt',
-// 		dataType: 'text',
-// 		success: function(data) {
-// 			// console.log(data)
-// 			datas = data.split(/\s|[\r\n]/)//灏唗xt姣忚鍐呭鏍规嵁绌烘牸鍜屾崲琛岃繘琛屽垏鍓�
-// 			data_list = datas.map(Number)//灏嗗垏鍓插悗鐨剎yz宸﹁竟杞崲涓烘暟瀛楁牸寮�
-// 			list = group(data_list,3)//灏嗚浆鎹㈠悗鐨勬暟鎹瘡鍏釜鍒嗕负涓�缁�
-// 			// 寰幆鏁扮粍锛屽姞杞界偣浜�
-// 			for (var i = 0; i <list.length; i++) {
-// 				var hn_lon = Number(list[i][0])/distance_half+121.461085;
-// 				var hn_lat = Number(list[i][1])/distance_half+31.210190;
-// 				var hn_h = 300-Number(list[i][2]);
-// 				var color_b = Math.floor(hn_h)
-// 				if(hn_h<=50){
-// 					color = Cesium.Color.fromCssColorString(`rgba(0, ${color_b}, ${color_b}, 1)`)
-// 				}else if(hn_h<=80){
-// 					color = Cesium.Color.fromCssColorString(`rgba(${color_b}, 0, ${color_b}, 1)`)
-// 				}else{
-// 					color = Cesium.Color.fromCssColorString(`rgba(${color_b}, ${color_b}, 0, 1)`)
-// 				}
-// 			聽 聽 聽 var position = Cesium.Cartesian3.fromDegrees(hn_lon,hn_lat,hn_h);
-// 			聽 聽 聽 pointPrimitives.add({
-// 			聽 聽 聽 聽 pixelSize: 1,
-// 			聽 聽 聽 聽 color: color,
-// 			// 聽 聽 聽 聽 outlineColor: Cesium.Color.BLUE,
-// 			聽 聽 聽 聽 outlineWidth: 0,
-// 			聽 聽 聽 聽 position: position
-// 			聽 聽 聽 });
-// 			聽 聽 }
-// 		}
-// 	});
-// }
 
 
 // 娣诲姞PCI妯″瀷

--
Gitblit v1.9.1