|
|
@@ -121,11 +121,21 @@ export class FieldService {
|
|
|
|
|
|
getSelectedFieldGeoJSON() {
|
|
|
return {
|
|
|
- type: 'Polygon',
|
|
|
- coordinates: this.selectedField
|
|
|
- .clone()
|
|
|
- .transform('EPSG:5514', 'EPSG:4326')
|
|
|
- .getCoordinates(),
|
|
|
+ type: 'FeatureCollection',
|
|
|
+ name: 'Selected field',
|
|
|
+ features: [
|
|
|
+ {
|
|
|
+ type: 'Feature',
|
|
|
+ properties: {},
|
|
|
+ geometry: {
|
|
|
+ type: 'Polygon',
|
|
|
+ coordinates: this.selectedField
|
|
|
+ .clone()
|
|
|
+ .transform('EPSG:5514', 'EPSG:4326')
|
|
|
+ .getCoordinates(),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
};
|
|
|
}
|
|
|
|