diff --git a/projects/common-map/src/fm-map/components/aol/switch2d3d/switch2d3d.component.scss b/projects/common-map/src/fm-map/components/aol/switch2d3d/switch2d3d.component.scss new file mode 100644 index 0000000..a4e654e --- /dev/null +++ b/projects/common-map/src/fm-map/components/aol/switch2d3d/switch2d3d.component.scss @@ -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; +} \ No newline at end of file diff --git a/projects/common-map/src/fm-map/components/aol/switch2d3d/switch2d3d.component.ts b/projects/common-map/src/fm-map/components/aol/switch2d3d/switch2d3d.component.ts index 71de7f4..1fe871f 100644 --- a/projects/common-map/src/fm-map/components/aol/switch2d3d/switch2d3d.component.ts +++ b/projects/common-map/src/fm-map/components/aol/switch2d3d/switch2d3d.component.ts @@ -7,16 +7,8 @@ declare var olcs: any; @Component({ selector: 'fm-map-switch2d3d', - template: '
{{label}}
', - styles: [`.twotreed { - width:2.5em; - height:2.5em; - background-color: white; - text-align:center; - line-height:2.5em; - font-weight:bold; - cursor:default;}`] - + template: '
{{label}}
', + 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() {