From 3ceae1cfeb70ef52c5f15413446ba09a3fc2d9a3 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 28 六月 2023 11:06:53 +0800 Subject: [PATCH] 1 --- ExportMap/UE.html | 22 ++++------------------ 1 files changed, 4 insertions(+), 18 deletions(-) diff --git a/ExportMap/UE.html b/ExportMap/UE.html index 2d88e2a..498e4f4 100644 --- a/ExportMap/UE.html +++ b/ExportMap/UE.html @@ -97,7 +97,7 @@ // 鏃堕棿鐗规晥 function setTime() { - // morning-鏃╂櫒,noon-涓崍,evening-鍌嶆櫄,night-澶滄櫄,darkWorld-鏆楄壊鍦烘櫙 + // morning-鏃╂櫒,noon-涓崍,evening-鍌嶆櫄,night-澶滄櫄,darkWorld-鏆楄壊鍦烘櫙,12 map.setTime("evening"); } @@ -110,7 +110,7 @@ z: 0, // z杞磚e4鍧愭爣 size: { width: 480, height: 180 }, // label鐨勫ぇ灏� text: '娴嬭瘯鏂囧瓧', // 鏄剧ず鐨勬枃瀛� - scale: 1, // 缂╂斁 + scale: 0.5, // 缂╂斁 type: 'Type1', // 绫诲瀷 Default,Type1,Type2 backgroundColor: "#ffffff", // 鑳屾櫙鑹叉敮鎸乺gba fillColor: "#00ff00", // 鏂囧瓧棰滆壊 @@ -134,7 +134,7 @@ alertWindow: { // 鍙�夛紝鐐瑰嚮寮圭獥 url: "http://192.168.20.89:12306/popupThree.html", // 寮圭獥鍦板潃 size: new TUVector2(180, 90), // 寮圭獥澶у皬 - offset: new TUVector2(50, -100) // 寮圭獥浣嶇疆锛屽彸锛歺姝o紝涓嬶細y姝� + offset: new TUVector2(90, -90) // 寮圭獥浣嶇疆锛屽彸锛歺姝o紝涓嬶細y姝� } } @@ -184,20 +184,6 @@ // obj.removeFromMap(); // 绉婚櫎 } - // 鍏夊湀 - function createCircleArea() { - var param = { - location: new TUVector3(0, 0, 0), // 涓績鐐� - radius: 15000, - type: 2, // 0涓婃诞妯牸锛�1瀹炶壊锛�2绠ご锛�3涓夎 - color: "#ff0000", - height: 15000, // 榛樿5000 - brightness: 10 // 榛樿10 - } - var circle = map.createCircleArea(param); - // circle.removeFromMap(); // 绉婚櫎 - } - // 鍥存爮 function createAreaBoundary() { var param = { @@ -214,6 +200,7 @@ ] }; var bound = map.createAreaBoundary(param); + map.focusOn(new TUVector3(739, 303, 1040), new TURotator(0, -73, 147), 107737); // bound.removeFromMap(); // 绉婚櫎 @@ -254,7 +241,6 @@ <button onclick="createBillboard();">POI鐐�</button> <button onclick="create3DBillboard();">3DPOI鐐�</button> <button onclick="createAreaData();">娣诲姞鍖哄煙</button> - <button onclick="createCircleArea();">鍏夊湀</button> <button onclick="createAreaBoundary();">鍥存爮</button> <button onclick="pickPosition();">鑾峰彇闀滃ご鍧愭爣</button> <button onclick="pickObject();">鎷惧彇瀵硅薄</button> -- Gitblit v1.9.3