suerprisePlus
2024-07-04 81f92eb9fb83ed5d8ac0b0a5c206315416f10df0
src/assets/js/map/mapView.js
@@ -21,20 +21,22 @@
    Viewer.scene.globe.baseColor = Cesium.Color.fromCssColorString("#A9A9A9"); //设置地球颜色
    // 清空默认底图
    Viewer.imageryLayers.removeAll();
  //   earthCtrl.factory.createTerrainLayer({sourceType: "ctb",
  //     url: 'https://tiles1.geovisearth.com/base/v1/terrain?token=486dac3bec56d7d7c2a581c150be2bd937462f1e8f3bc9c78b5658b396122405'
  // });
    Viewer.scene.globe.depthTestAgainstTerrain = false;
    earthCtrl.factory.createTerrainLayer({
      sourceType: "ctb",
      url: "http://103.135.160.14:9038/gisserver/ctsserver/SubicBayDEM"
    });
    mapServer.addServer({
      sourceType: "arcgis",
      url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"
    });
    mapServer.addServer({
      sourceType: "tms",
      url: "http://192.168.11.41:9001/gisserver/tmsserver/SubicBayArea"
      url: "http://103.135.160.14:9038/gisserver/tmsserver/SubicBayArea"
    });
    modelLayer.init();
    mapInfo.setEntityQueryInput();
    // const url = layerJson.getQueryUrl("SubicBayAreaVector_wfs", "GeoEntity");
    // layerJson.init(url);
  }