Refactoring types

This commit is contained in:
Willem Dantuma
2021-10-05 13:46:10 +02:00
parent 4ef077f8d7
commit 160eb10aba
31 changed files with 118 additions and 102 deletions

View File

@@ -1,9 +1,10 @@
import { IItem,IListItem } from '@farmmaps/common';
import {Layer} from 'ol/layer';
import { Source } from 'ol/source';
export interface IItemLayer {
item: IItem,
layer: Layer,
layer: Layer<Source>,
visible: boolean,
legendVisible:boolean,
projection: string,
@@ -13,7 +14,7 @@ export interface IItemLayer {
export class ItemLayer implements IItemLayer {
public item: IItem;
public layer: Layer = null;
public layer: Layer<Source> = null;
public visible: boolean = true;
public legendVisible: boolean = false;
public projection: string;

View File

@@ -1,5 +1,7 @@
import {Style,Feature} from 'ol';
import {Feature} from 'ol';
import { Style } from 'ol/style';
import {Geometry } from 'ol/geom';
export interface IStyles{
[id: string]: Style | (Feature);
[id: string]: Style | (Feature<Geometry>);
};