27 lines
570 B
TypeScript
27 lines
570 B
TypeScript
|
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;
|
||
|
}
|
||
|
}
|