From 7d57b0fef0f220dfe7c868ce1113a7ce6eb6c468 Mon Sep 17 00:00:00 2001
From: suerprisePlus <15810472099@163.com>
Date: 星期三, 21 八月 2024 11:23:06 +0800
Subject: [PATCH] 添加本地矢量地图服务,初始化视角切换

---
 public/config/config.js |   62 ++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 1 deletions(-)

diff --git a/public/config/config.js b/public/config/config.js
index a46bb66..d44b3fb 100644
--- a/public/config/config.js
+++ b/public/config/config.js
@@ -1 +1,61 @@
-console.log(location)
\ No newline at end of file
+console.log(location);
+const host = location.origin;
+const isWeb = false;
+var isUrl = isWeb ? "103.135.160.14" : "192.168.11.24";
+// api绔彛
+const apiHost = isWeb ? isUrl + "" : isUrl + ":12316";
+// 閰嶇綉绔彛
+const peiWangHost = isWeb ? isUrl + "" : isUrl + ":8101";
+// GeoServer绔彛
+const geoHost = isWeb ? isUrl + "" : isUrl + ":9055";
+// {host}鏇挎崲
+const iisHost = isWeb ? isUrl + ":9036" : "localhost:80";
+// 鐭ヨ瘑鍥捐氨绔彛
+const kgHost = isWeb ? isUrl + ":9036" : isUrl + ":8080";
+// 鏁版嵁鍒嗘瀽绔彛
+const pyHost = isWeb ? isUrl + ":9036" : isUrl + ":8000";
+//rag绔彛
+const ragHost = isWeb ? isUrl + ":9036" : "192.168.11.95:8080";
+// 鏈湴鏁版嵁鍦板潃
+const pwythHost = "http://localhost/pwyth";
+//閰嶇疆
+const config = {
+  // server鏈嶅姟
+  apiServices: "http://" + apiHost + "/server/",
+  // 鐭ヨ瘑鍥捐氨鏈嶅姟
+  kgServices: "http://" + kgHost,
+  // 閰嶇綉鏈嶅姟
+  peiWangServices: "http://" + peiWangHost + "/peiwang/",
+  //鏁版嵁鍒嗘瀽鎺ュ彛
+  pyServices: "http://" + pyHost + "/py",
+  //rag鏈嶅姟鍦板潃
+  ragServices: "http://" + ragHost+ "/api/vi",
+  imageUrl: "",
+  // sdk鏄剧ず
+  sdkImg: host + "/CimSDK/",
+  // 澶╁湴鍥�
+  tdToken: "94a34772eb88317fcbf8428e10448561",
+  // geoServer鏈嶅姟
+  geoServer: {
+    url: "http://" + geoHost + "/geoserver/sxpw",
+    wms: "/wms",
+    wfs: "",
+    layers:["sxpw:sxdwx","sxpw:tygdtif17"]
+    
+  },
+  pySocket:"ws://192.168.11.24:8101/peiwang/ws/asset",
+  //鍦颁笅鏁版嵁
+  terrain: {
+    isShow: false,
+    isUrl: pwythHost + "/terrain/"
+  },
+  domTilesets: {
+    url: pwythHost + "/qingxie/tileset.json"
+  },
+  baseModel:{
+    serveType: 'Tileset',
+    url: pwythHost + "/modles/TY/tileset.json",
+    cnName:"baseModel",
+    id:"baseModel",
+ },
+};

--
Gitblit v1.9.3