From 59ae5ac861f67e2969c2b6337d88faba88c0bb56 Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期三, 13 四月 2022 17:02:57 +0800
Subject: [PATCH] 将模型界面导入,实现模型和参数动态加载

---
 public/hn3d/example/00_hn_new.html |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/public/hn3d/example/00_hn_new.html b/public/hn3d/example/00_hn_new.html
index fcadad8..10d315d 100644
--- a/public/hn3d/example/00_hn_new.html
+++ b/public/hn3d/example/00_hn_new.html
@@ -107,7 +107,7 @@
         },
         url: `${data_url}get_dou_params`,
         success: function (data) {
-          console.log(data)
+          console.log(data, "ajax_data")
           dou_params = data.data
         },
         error: function (request, textStatus) {
@@ -264,7 +264,7 @@
 
         position: [121.406729, 31.467183, 14], // 妤兼爧浣嶇疆
         style: {
-          url: "../model/doulunji/dizuo/dizuo.gltf",
+          url: "http://112.74.77.127:9100/hn/doulunji/dizuo/dizuo.gltf",
           scale: 0.6,
           heading: 120
         }
@@ -287,7 +287,7 @@
 
         position: [121.406729, 31.467183, 14], // 妤兼爧浣嶇疆
         style: {
-          url: "../model/doulun_0322/doulun_0322.gltf",
+          url: "http://112.74.77.127:9100/hn/doulun_0322/doulun_0322.gltf",
           runAnimations: true,
           scale: 0.6
         },
@@ -300,7 +300,7 @@
 
         position: [121.406729, 31.467183, 14], // 妤兼爧浣嶇疆
         style: {
-          url: "../model/doulunji/zhuzhou/zhuzhou.gltf",
+          url: "http://112.74.77.127:9100/hn/doulunji/zhuzhou/zhuzhou.gltf",
           heading: 0,
           scale: 0.6
         },
@@ -370,6 +370,7 @@
           model_no = 0
         }
         let item = dou_params[model_no]
+        console.log(item)
         dou_move(item.longitude, item.latitude, item.elevation, item.heading_angle)
       })
 

--
Gitblit v1.9.1