Add haspackage for 3d
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2021-01-30 11:14:25 +01:00
parent 5b0632ebf1
commit 45de27f666
3 changed files with 4 additions and 1 deletions

View File

@ -1,10 +1,12 @@
import { NgModule } from '@angular/core';
import { Switch2D3DComponent } from './components/olcs/switch2d3d/switch2d3d.component';
import { AppCommonModule} from '@farmmaps/common';
@NgModule({
declarations: [Switch2D3DComponent],
imports: [
AppCommonModule
],
exports: [Switch2D3DComponent]
})

View File

@ -0,0 +1 @@
<div *fm-haspackage="'vnd.farmmaps.package.3d'" (click)="handleClick($event)" class="btn btn-outline-secondary twotreed">{{label}}</div>

View File

@ -6,7 +6,7 @@ declare var olcs: any;
@Component({
selector: 'fm-map3d-switch2d3d',
template: '<div (click)="handleClick($event)" class="btn btn-outline-secondary twotreed">{{label}}</div>',
templateUrl: './switch2d3d.component.html',
styleUrls: ['./switch2d3d.component.scss']
})
export class Switch2D3DComponent {