Fix static image layer
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user