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
| //是否为生产环境
| var isWeb = location.hostname.indexOf("172.") > -1;
| //是否为生产环境
| const webUrl = location.href.indexOf("/web") > -1 ? "/web" : "";
|
| var webHost = isWeb ? "172.16.2.10" + ":10088" : '100.10.1.169' + ":8088";
|
| var webArcgis = isWeb? "172.16.2.10" + ":26081" : '100.10.1.169' + ":6080"
| // WebSocket 服务地址
| var socketUrl = 'ws://' + webHost + '/MoonServer/ws/select';
| //配置文件地址
| const config = {
| mapMoon: webUrl + "/mapscreen/index.html",
| //坡度分析图层
| esri: 'http://'+ webArcgis +'/arcgis/services/moonnew/CE2DEM_slope2/MapServer/WMSServer?',
| //SDK许可
| StaticFileBaseUrl: webUrl + "/WebSDK/",
|
| proxy: "http://" + webHost + "/MoonServer",
|
| BASE_URL: "http://" + webHost + "/MoonServer",
|
| conditions: [
| ["=", "<>", "like"],
| [">=", ">", " =", "<=", "<", "<>"],
| [">=", ">", " =", "<=", "<", "<>"],
| ],
| };
|
|