Some styling fixes

2022.01
Willem Dantuma 2020-09-18 17:19:29 +02:00
parent c606e02673
commit 21af6ab2c4
2 changed files with 20 additions and 13 deletions

View File

@ -0,0 +1,15 @@
@import "~bootstrap/scss/bootstrap.scss";
.twotreed {
display:block;
width:2.5em;
height:2.5em;
background-color: $body-bg;
background-size: contain;
margin-top:0.5em;
text-align: center;
line-height: 2.5em;
border-radius: 1.75em;
padding: 0;
color: $secondary;
}

View File

@ -7,16 +7,8 @@ declare var olcs: any;
@Component({
selector: 'fm-map-switch2d3d',
template: '<div (click)="handleClick($event)" class="rounded-circle twotreed">{{label}}</div>',
styles: [`.twotreed {
width:2.5em;
height:2.5em;
background-color: white;
text-align:center;
line-height:2.5em;
font-weight:bold;
cursor:default;}`]
template: '<div (click)="handleClick($event)" class="btn btn-outline-secondary twotreed">{{label}}</div>',
styleUrls: ['./switch2d3d.component.scss']
})
export class Switch2D3DComponent {
@ -31,14 +23,14 @@ export class Switch2D3DComponent {
}
ngOnInit() {
createSynchronizers: (map,scene) => {
this.ol3d = new OLCesium({ map: this.map.instance, createSynchronizers: (map,scene) => {
this.synchronizers = [
new olcs.RasterSynchronizer(map,scene),
new olcs.VectorSynchronizer(map,scene)
];
return this.synchronizers;
}
this.ol3d = new OLCesium({ map: this.map.instance,stopOpenLayersEventsPropagation:true});
}, stopOpenLayersEventsPropagation:true});
}
synchronize() {