|
|
@@ -11,7 +11,7 @@ import {HsEventBusService, HsMapService} from 'hslayers-ng';
|
|
|
@Injectable({providedIn: 'root'})
|
|
|
export class FieldService {
|
|
|
SELECTABLE_LAYERS = ['LPIS'] as const;
|
|
|
- fieldSelects: Subject<{feature: Feature<Polygon>}> = new Subject();
|
|
|
+ fieldSelects: Subject<{feature: Feature<Geometry>}> = new Subject();
|
|
|
selectedField;
|
|
|
|
|
|
constructor(
|
|
|
@@ -26,7 +26,7 @@ export class FieldService {
|
|
|
return;
|
|
|
}
|
|
|
this.selectedField = data.feature.getGeometry() as Polygon;
|
|
|
- this.fieldSelects.next({feature: this.selectedField});
|
|
|
+ this.fieldSelects.next({feature: data.feature});
|
|
|
});
|
|
|
}
|
|
|
|