15 lines
868 B
JavaScript
15 lines
868 B
JavaScript
import {
|
|
geoserverUrl,workspace
|
|
} from "/js/mapConfig.js";
|
|
// 获取一级流域面要素
|
|
export const getXiXian = function(){
|
|
return fetch("http://localhost:8088/geoserver/allRegion/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=allRegion%3Axixian&maxFeatures=50&outputFormat=application%2Fjson").then(res=>res.json())
|
|
}
|
|
|
|
export const getOsmWay = function(){
|
|
return fetch("http://localhost:8088/geoserver/allRegion/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=allRegion%3Aosm&maxFeatures=99999&outputFormat=application%2Fjson").then(res=>res.json())
|
|
}
|
|
|
|
export const getRiver = function(){
|
|
return fetch("http://localhost:8088/geoserver/allRegion/ows?srsname=EPSG:4326&service=WFS&version=1.0.0&request=GetFeature&typeName=allRegion%3Axixian_osm_water&maxFeatures=99999&outputFormat=application%2Fjson").then(res=>res.json())
|
|
} |