FarmMapsLib/projects/common-map/src/fm-map/models/item.layer.ts

27 lines
570 B
TypeScript
Raw Normal View History

2019-10-28 13:18:25 +00:00
import { IItem } from '@farmmaps/common';
import {Layer} from 'ol/layer';
export interface IItemLayer {
item: IItem,
layer: Layer,
visible: boolean,
legendVisible:boolean,
projection: string,
opacity: number,
layerIndex:number
}
export class ItemLayer implements IItemLayer {
public item: IItem;
public layer: Layer = null;
public visible: boolean = true;
public legendVisible: boolean = false;
public projection: string;
public opacity: number = 1;
public layerIndex: number = -1;
constructor(item:IItem) {
this.item = item;
}
}