From c93d4b3af5739f786cfdf20b16b28ec60403f709 Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期二, 25 六月 2024 19:53:54 +0800 Subject: [PATCH] 前端对接 seb实体库,rag基本服务 --- src/assets/js/map/mapView.js | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/assets/js/map/mapView.js b/src/assets/js/map/mapView.js index a73a0d2..515ac66 100644 --- a/src/assets/js/map/mapView.js +++ b/src/assets/js/map/mapView.js @@ -1,6 +1,13 @@ +import axios from "axios"; +import mapConfig from "./mapConfig"; import mapServer from "./mapServer"; +import modelLayer from "./modelLayer"; +import wfsConfig from "./wfsConfig"; +import mapInfo from "./mapInfo"; +import layerJson from "./mapJsonLayer"; const mapViewer = { + configTooles: null, initMap() { window.earthCtrl = new SmartEarth.EarthCtrl("sdkContainer", { // 闅愯棌榛樿搴曞浘 @@ -14,18 +21,19 @@ Viewer.scene.globe.baseColor = Cesium.Color.fromCssColorString("#A9A9A9"); //璁剧疆鍦扮悆棰滆壊 // 娓呯┖榛樿搴曞浘 Viewer.imageryLayers.removeAll(); - + mapServer.addServer({ sourceType: "arcgis", url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" }); - - - // mapServer.addServer({ - // sourceType: "geoserver", - // url: "https://cim.smartearth.cn/geoserver/PolygonFeature/ows", - // layer: "PolygonFeature:GeoEntity" - // }); + mapServer.addServer({ + sourceType: "tms", + url: "http://192.168.11.41:9001/gisserver/tmsserver/SubicBayArea" + }); + modelLayer.init(); + mapInfo.setEntityQueryInput(); + // const url = layerJson.getQueryUrl("SubicBayAreaVector_wfs", "GeoEntity"); + // layerJson.init(url); } }; export default mapViewer; -- Gitblit v1.9.3