Upgrade to olcs

This commit is contained in:
Willem Dantuma 2022-09-28 21:17:21 +02:00
parent 4872dee094
commit cf84f8c93d
2 changed files with 6 additions and 8 deletions

View File

@ -42,7 +42,7 @@
"ngx-openlayers": "1.0.0-next.19", "ngx-openlayers": "1.0.0-next.19",
"ngx-uploadx": "^5.2.0", "ngx-uploadx": "^5.2.0",
"ol": "6.14.1", "ol": "6.14.1",
"ol-cesium": "^2.13.1", "olcs": "^2.13.1",
"resumablejs": "^1.1.0", "resumablejs": "^1.1.0",
"rxjs": "^6.6.7", "rxjs": "^6.6.7",
"stream": "^0.0.2", "stream": "^0.0.2",

View File

@ -1,11 +1,9 @@
import { Component, OnInit,Input,Host } from '@angular/core'; import { Component, OnInit,Input,Host } from '@angular/core';
import { OldCircularArc } from 'arcgis-rest-api';
import { Map } from 'ol';
import { Interaction} from 'ol/interaction'; import { Interaction} from 'ol/interaction';
import { MapComponent } from 'ngx-openlayers'; import { MapComponent } from 'ngx-openlayers';
import OLCesium from 'ol-cesium'; import OLCesium from 'olcs/OLCesium';
import RasterSynchronizer from 'olcs/RasterSynchronizer';
declare var olcs: any; import VectorSynchronizer from 'olcs/VectorSynchronizer';
@Component({ @Component({
selector: 'fm-map3d-switch2d3d', selector: 'fm-map3d-switch2d3d',
@ -30,8 +28,8 @@ export class Switch2D3DComponent {
this.ol3d = new OLCesium({ map: this.map.instance, createSynchronizers: (map,scene) => { this.ol3d = new OLCesium({ map: this.map.instance, createSynchronizers: (map,scene) => {
this.synchronizers = [ this.synchronizers = [
new olcs.RasterSynchronizer(map,scene), new RasterSynchronizer(map,scene),
new olcs.VectorSynchronizer(map,scene) new VectorSynchronizer(map,scene)
]; ];
this.loading=false; this.loading=false;
return this.synchronizers; return this.synchronizers;