Change map button styling
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 +1 @@
|
||||
<div *fm-haspackage="'vnd.farmmaps.package.3d'" (click)="handleClick($event)" class="btn btn-outline-secondary twotreed">{{label}}</div>
|
||||
<div *fm-haspackage="'vnd.farmmaps.package.3d'" (click)="handleClick($event)" class="btn btn-outline-primary twotreed"><i class="fas fa-spinner fa-spin loading" [class]="{'loading':loading}"></i>{{label}}</div>
|
@@ -12,4 +12,12 @@
|
||||
border-radius: 1.75em;
|
||||
padding: 0;
|
||||
color: $secondary;
|
||||
}
|
||||
|
||||
.fa-spinner {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fa-spinner.loading {
|
||||
display: inline-block;
|
||||
}
|
@@ -15,6 +15,7 @@ export class Switch2D3DComponent {
|
||||
public label: string = "3D";
|
||||
private ol3d: OLCesium;
|
||||
private synchronizers:any[];
|
||||
public loading:boolean = true;
|
||||
|
||||
|
||||
constructor(private map: MapComponent) {
|
||||
@@ -28,6 +29,7 @@ export class Switch2D3DComponent {
|
||||
new olcs.RasterSynchronizer(map,scene),
|
||||
new olcs.VectorSynchronizer(map,scene)
|
||||
];
|
||||
this.loading=false;
|
||||
return this.synchronizers;
|
||||
}, stopOpenLayersEventsPropagation:true});
|
||||
}
|
||||
|
Reference in New Issue
Block a user