|
@@ -309,8 +309,8 @@ export default {
|
|
|
this.removeGeoJSON();
|
|
|
loadGeoJSON(
|
|
|
cur,
|
|
|
- "#0000ff",
|
|
|
- { isfly: true, fill_a: 0.001 },
|
|
|
+ "#ff0000",
|
|
|
+ { isfly: true, fill_a: 0.001, sw: 5 },
|
|
|
(data) => (data.name = "geoserver")
|
|
|
);
|
|
|
} else {
|
|
@@ -329,7 +329,7 @@ export default {
|
|
|
loadGeoJSON(
|
|
|
geom,
|
|
|
"#0000ff",
|
|
|
- { fill_a: 0.001 },
|
|
|
+ { fill_a: 0.001, sw: 5 },
|
|
|
(data) => (data.name = "geoserver")
|
|
|
);
|
|
|
});
|
|
@@ -645,8 +645,9 @@ export default {
|
|
|
filter: `<Filter xmlns='http://www.opengis.net/ogc' xmlns:gml='http://www.opengis.net/gml'><Intersects><PropertyName>geom</PropertyName><gml:Point srsName='EPSG:4326'><gml:coordinates>
|
|
|
${xy.lng},${xy.lat}</gml:coordinates></gml:Point></Intersects></Filter>`,
|
|
|
};
|
|
|
+ console.log("----", params);
|
|
|
let res = await axios.get(url, { params });
|
|
|
- if (res.data && res.data.features.length > 0) {
|
|
|
+ if (res.data && res.data.features && res.data.features.length > 0) {
|
|
|
this.addLayerList(obj.title, obj);
|
|
|
res.data.features.forEach((feitem) => {
|
|
|
let cur = [];
|