2023西安数博会CIM演示-【前端】-Web
AdaKing88
2023-08-21 bc03b832caa49bbcd2674fe4cae3701b5059bf95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * @Description:
 * @Author: 王旭
 * @Date: 2022-03-07 16:33:11
 * @LastEditTime: 2023-07-17 13:58:06
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 */
const BASE_URL = "http://103.85.465.99:9012/";
 
//const BIM_PROPERTY_URL = "http://172.22.34.71:8080/cimserver/";
const BIM_PROPERTY_URL = "http://103.85.165.99:9001/cimserver/";
const BIM_LIST_URL = "http://103.85.165.99:9001/cimserver-ext/";
 
// const BIM_SERVICE_NAME = "bimcheng"
// const BIM_SERVICE_NAME = "bimtest"
const BIM_SERVICE_NAME = "hubtest";
 
//const LICENSE_URL = "https://cim.smartearth.cn/";
const LICENSE_URL = "http://192.168.2.159:8080/"
// const LICENSE_URL = "http://192.168.31.100:8082"//安宇轩本地
 
//开发环境
const BIM_SERVER_GET =
  "http://192.168.2.159:8080/gisserver/bimserver/" + BIM_SERVICE_NAME + "/";
const BIM_MODEL_SERVICE_URL =
  "http://192.168.2.159:8080/gisserver/bimserver/" + BIM_SERVICE_NAME + "/";
 
//生产环境
// const BIM_SERVER_GET = "https://cim.smartearth.cn/gisserver2/" + BIM_SERVICE_NAME + "/";
// const BIM_MODEL_SERVICE_URL ="https://cim.smartearth.cn/gisserver2/" + BIM_SERVICE_NAME + "/";
 
// const BIM_MODEL_SERVICE_URL = "http://192.168.31.100:8082/gisserver/bimserver/cpdd/";
// const BIM_MODEL_SERVICE_URL = "https://103.85.165.99:9017/";
// const BIM_MODEL_SERVICE_URL = "https://localhost:8085/";
 
const UEURL = "http://192.168.2.14:8084/";
// const UEURL = "http://192.168.31.179:8084/";
 
const TRIANGLE_COUNT = 20000000;
const ONE_TRIANGLE_MAX_COUNT = 50000;
 
const CESIUM_3DTILES_PARAMS = {
  dynamicScreenSpaceError: false,
  dynamicScreenSpaceErrorDensity: 0.00278,
  dynamicScreenSpaceErrorFactor: 4,
  dynamicScreenSpaceErrorHeightFalloff: 0.25,
  preloadWhenHidden: true,
  cullRequestsWhileMoving: false,
  maximumMemoryUsage: 2048,
  backFaceCulling: true,
  maximumScreenSpaceError: 32,
  skipLevels: 2,
  skipLevelOfDetail: false,
  preferLeaves: true,
  immediatelyLoadDesiredLevelOfDetail: true,
};
 
//const APP_NAME = "城市信息模型(CIM)基础平台";
const APP_NAME = "CIM基础平台";
//const APP_NAME = "城市数字孪生底座";
//const APP_NAME = "CIM HUB";
 
//默认初始化视角
const SET_DEFAULT_CAMERA = true; //是否设定初始视角,false不设定定位全球
//const DEFAULT_CAMERA_POINT = "114.34201240539551,22.70984778456524,8000,0.0,-80.0,0.0";//坪山视角
//const DEFAULT_CAMERA_POINT = "120.9052479,30.8246174,250,0.0,-20.0,0.0";//嘉善视角
const DEFAULT_CAMERA_POINT =
  "108.29365162742559,22.032640632898012,18987189.61781936,0.0,-90.0,0.0"; //全球中国上空
// const DEFAULT_CAMERA_POINT ="108.83327664220903, 34.131118460624755, 794.0869809726789, 3.383341663387913, -0.571027635586506, 4.859675382107298";
//配置加载图层
//const LAYER_CONFIG_PATH = "./config/layers3m.json";
//const LAYER_CONFIG_PATH = "./config/layersw.json";
const LAYER_CONFIG_PATH = "./config/layers_xian_fj.json";