|
@@ -363,12 +363,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
- // const isStationCode = ref()
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
+ // const isStationCode = ref()
|
|
|
|
|
|
// 时间选择器、滑块和时间间隔的控制变量
|
|
|
const value2 = ref(0); // 滑动条的默认值(从0点开始)
|
|
@@ -749,7 +745,7 @@ const info=ref<any>({
|
|
|
const createWMSLayer = ({ layerName, minZoom, maxZoom, opacity = 1 }) => {
|
|
|
return new TileLayer({
|
|
|
source: new TileWMS({
|
|
|
- url: 'http://192.168.127.124:8080/geoserver/wms',
|
|
|
+ url: import.meta.env.VITE_API_GIS_URL as string+'/geoserver/wms',
|
|
|
params: { 'LAYERS': layerName, 'TILED': true, 'FORMAT': 'image/png', 'TRANSPARENT': true, 'ENCODING': 'UTF-8' },
|
|
|
serverType: 'geoserver'
|
|
|
}),
|
|
@@ -788,7 +784,7 @@ const initializeMap = () => {
|
|
|
// 定义鹰眼视图层
|
|
|
const overviewMapLayer = new TileLayer({
|
|
|
source: new TileWMS({
|
|
|
- url: 'http://192.168.127.124:8080/geoserver/wms',
|
|
|
+ url: import.meta.env.VITE_API_GIS_URL as string+'/geoserver/wms',
|
|
|
params: {
|
|
|
'LAYERS': 'basemap:province', // 选择可见的图层为省级
|
|
|
'TILED': true,
|
|
@@ -823,7 +819,7 @@ watch(isEagleEyeOn, (newValue) => {
|
|
|
const initializeOverviewMap = () => {
|
|
|
const overviewMapLayer = new TileLayer({
|
|
|
source: new TileWMS({
|
|
|
- url: 'http://192.168.127.124:8080/geoserver/wms',
|
|
|
+ url: import.meta.env.VITE_API_GIS_URL as string+'/geoserver/wms',
|
|
|
params: {
|
|
|
'LAYERS': 'basemap:province',
|
|
|
'TILED': true,
|