openLayer
that.vectormap = new VectorLayer({
source: new VectorSource({
url: process.env.VUE_APP_GEO_SERVER_BASE_URL_NO_SUFFIX+`/geoserver/jzdx/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=${layers}&maxFeatures=50&outputFormat=application%2Fjson`,
format: new GeoJSON()
}),
style: function (feature) {
console.log(feature)
}
运行以后只能发送请求,style对应的函数无法执行,所有请求都正常,只有一个请求出现问题 http://120.194.188.104:9090/geoserver/jzdx/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=jzdx:northCampus8DormitoryFloor2&maxFeatures=50&outputFormat=application%2Fjson
找不到问题