我想保存在矢量层上绘制的多边形。以下代码段给了我一个错误
代码:
db.getEmployees().then((snapshot) => {
let employee = [];
snapshot.docs.forEach((doc) => {
let user = doc.data();
user.id = doc.id;
employee.push(user);
});
dispatch(employeeUpdateSuccess(employee));
错误:
var node;
var lName = 'workspacename:layername, http://*.*.*.*:8080/geoserver';
var layerAuth = "-";
var lNameInfo = lName.split(',');
var url = lNameInfo[1];
var layer = lNameInfo[0];
//console.log(layer.split(':')[0]);
var formatWFS = new ol.format.WFS();
var formatGML = new ol.format.GML({
featureNS: url + '/' + layer.split(':')[0],
featureType: layer.split(':')[1],
srsName: 'EPSG:28191'
});
有什么主意吗?