Renamed prefixes in angular.json
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
26
projects/common-map/src/fm-map/models/item.layer.ts
Normal file
26
projects/common-map/src/fm-map/models/item.layer.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user