Fix static image layer

This commit is contained in:
Willem Dantuma
2020-09-18 16:05:44 +02:00
parent 15d1f14ee1
commit c606e02673
2 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import { Component, OnInit,Input,Host } from '@angular/core';
import { MapComponent } from 'ngx-openlayers';
import OLCesium from 'ol-cesium';
//import OLCesium from '../../../../../../../../ol-cesium/src/olcs/OLCesium.js';
declare var olcs: any;
@@ -30,13 +31,14 @@ export class Switch2D3DComponent {
}
ngOnInit() {
this.ol3d = new OLCesium({ map: this.map.instance,createSynchronizers: (map,scene) => {
createSynchronizers: (map,scene) => {
this.synchronizers = [
new olcs.RasterSynchronizer(map,scene),
new olcs.VectorSynchronizer(map,scene)
];
return this.synchronizers;
},stopOpenLayersEventsPropagation:true});
}
this.ol3d = new OLCesium({ map: this.map.instance,stopOpenLayersEventsPropagation:true});
}
synchronize() {