Some styling fixes
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user