Add haspackage for 3d
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			This commit is contained in:
		| @@ -1,10 +1,12 @@ | |||||||
| import { NgModule } from '@angular/core'; | import { NgModule } from '@angular/core'; | ||||||
| import { Switch2D3DComponent } from './components/olcs/switch2d3d/switch2d3d.component'; | import { Switch2D3DComponent } from './components/olcs/switch2d3d/switch2d3d.component'; | ||||||
|  | import { AppCommonModule} from '@farmmaps/common'; | ||||||
|  |  | ||||||
|  |  | ||||||
| @NgModule({ | @NgModule({ | ||||||
|   declarations: [Switch2D3DComponent], |   declarations: [Switch2D3DComponent], | ||||||
|   imports: [ |   imports: [ | ||||||
|  |     AppCommonModule | ||||||
|   ], |   ], | ||||||
|   exports: [Switch2D3DComponent] |   exports: [Switch2D3DComponent] | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -0,0 +1 @@ | |||||||
|  | <div *fm-haspackage="'vnd.farmmaps.package.3d'" (click)="handleClick($event)" class="btn btn-outline-secondary twotreed">{{label}}</div> | ||||||
| @@ -6,7 +6,7 @@ declare var olcs: any; | |||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'fm-map3d-switch2d3d', |   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'] |   styleUrls: ['./switch2d3d.component.scss'] | ||||||
| }) | }) | ||||||
| export class Switch2D3DComponent { | export class Switch2D3DComponent { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user