| | |
| | | Viewer.scene.globe.baseColor = Cesium.Color.fromCssColorString("#A9A9A9"); //设置地球颜色
|
| | | // 清空默认底图
|
| | | Viewer.imageryLayers.removeAll();
|
| | |
|
| | | 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"
|
| | | });
|
| | | const a = Viewer.clock.currentTime
|
| | | let now2 = new Date();
|
| | | let todayNoon = new Date(now2.getFullYear(), now2.getMonth(), now2.getDate(), 12, 0, 0);
|
| | | Viewer.clock.currentTime = Cesium.JulianDate.fromDate(todayNoon);
|
| | | modelLayer.init();
|
| | | mapInfo.setEntityQueryInput();
|
| | | |
| | | // const url = layerJson.getQueryUrl("SubicBayAreaVector_wfs", "GeoEntity");
|
| | | // layerJson.init(url);
|
| | | }
|