地图 服务 地址更改
This commit is contained in:
@@ -307,7 +307,8 @@ export default function CesiumMap({ realtimePosition, pathPoints = [], devices =
|
||||
}
|
||||
|
||||
function fetchPublishedLayers() {
|
||||
const baseUrl = 'https://gis.caasrobot.com/geoserver';
|
||||
const baseUrl = "http://192.168.2.59:7000/geoserver";
|
||||
//const baseUrl = 'https://gis.caasrobot.com/geoserver';
|
||||
const getCapabilitiesUrl = `${baseUrl}/wms?service=WMS&version=1.1.1&request=GetCapabilities`;
|
||||
|
||||
fetch(getCapabilitiesUrl)
|
||||
@@ -352,6 +353,7 @@ export default function CesiumMap({ realtimePosition, pathPoints = [], devices =
|
||||
const [workspace, layerName] = layerFullName.split(':');
|
||||
if (!workspace || !layerName) return;
|
||||
const wmsUrl = `${baseUrl}/wms`;
|
||||
console.log("addLayerFromList", wmsUrl, workspace, layerName, index)
|
||||
addWmsLayerToCesium(wmsUrl, workspace, layerName, index);
|
||||
}
|
||||
|
||||
@@ -431,6 +433,10 @@ export default function CesiumMap({ realtimePosition, pathPoints = [], devices =
|
||||
const layerIdentifier = `${workspace}:${layerName}`;
|
||||
let baseUrl = wmsUrl;
|
||||
const cesiumLayers = [];
|
||||
console.log(wmsUrl, workspace, layerName, index, "wmsUrl, workspace, layerName, index")
|
||||
//if (index == 2) {
|
||||
// flyToLayer(layerIdentifier, baseUrl);
|
||||
//}
|
||||
//getLayerBoundsAndFit(wmsUrl, layerName);
|
||||
|
||||
if (baseUrl.includes('/gwc/service/wms')) {
|
||||
@@ -754,9 +760,6 @@ export default function CesiumMap({ realtimePosition, pathPoints = [], devices =
|
||||
|
||||
const validPositions = [];
|
||||
|
||||
// ==============================
|
||||
// 设备遍历
|
||||
// ==============================
|
||||
|
||||
devices.forEach((device, index) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user