Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // color-constants.ts: no imports in this file
- export const aoiToImageMaterial = new Cesium.ColorMaterialProperty(
- new Cesium.Color(0.4, 0.6, 0.8, 0.1)
- );
- export const aoiToImageOutline = new Cesium.Color(0.4, 0.6, 0.8, 1);
- import { Component, Input } from '@angular/core';
- import { Aoi } from '../../../models/aoi.model';
- import * as colorConstants from '../../color-constants';
- @Component({
- selector: 'cs-aoi',
- templateUrl: './aoi.component.html',
- styleUrls: ['./aoi.component.scss']
- })
- export class AoiComponent {
- @Input('aoi') aoi: Aoi;
- materialProperty;
- outlineColor;
- constructor() {
- this.materialProperty = colorConstants.aoiToImageMaterial;
- this.outlineColor = colorConstants.aoiToImageOutline;
- }
- }
Add Comment
Please, Sign In to add comment