月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-08-25 a31655ccc56220ee027c22927a9bd55430d2a210
src/assets/js/Map/config.js
@@ -1,8 +1,9 @@
//是否为生产环境
var isWeb = location.hostname.indexOf("103.85.165.") > -1;
//是否为生产环境
const webUrl = location.href.indexOf("/web") > -1 ? "/web" : "";
//是否为生产环境
const isWeb = true;
//是否为生产环境
const webUrl = isWeb ? "/web" : ""
var webHost = isWeb ? "103.85.165.99" + ":28888" : '192.168.20.83' + ":8888";
//配置文件地址
const config = {
  mapMoon: webUrl + "/mapscreen/index.html",
@@ -12,19 +13,14 @@
  licenseServer: "http://183.162.245.49:18080",
  //SDK许可
  StaticFileBaseUrl: webUrl + "/CIMSDK/",
  //tmsserver
  moonTms: "/TMS",
  //Wmtsserver
  moonWmts:
    "http://172.16.2.10:50001/sj_raster/v6/wmts/service/system/10000201/3?ak=mf72ff9295c740ec0f37e61433e8a3ad8d&srs=ESRI:104903",
  //地形
  moonTerrain: "http://172.16.2.10:50001/sj_raster/v6/terrain_mesh/10013901/37",
  proxy: "http://" + webHost + "/MoonServer",
  BASE_URL: "http://" + webHost + "/MoonServer",
  conditions: [
    ['=', '<>', 'like'],
    ['>=', '>', ' =', '<=', '<', '<>'],
    ['>=', '>', ' =', '<=', '<', '<>'],
  ]
    ["=", "<>", "like"],
    [">=", ">", " =", "<=", "<", "<>"],
    [">=", ">", " =", "<=", "<", "<>"],
  ],
};
export default config;