diff --git a/package.json b/package.json index 21b90a9..76fe10a 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "ngx-openlayers": "1.0.0-next.19", "ngx-uploadx": "^5.2.0", "ol": "6.14.1", - "ol-cesium": "^2.13.1", + "olcs": "^2.13.1", "resumablejs": "^1.1.0", "rxjs": "^6.6.7", "stream": "^0.0.2", diff --git a/projects/common-map3d/src/fm-map3d/components/olcs/switch2d3d/switch2d3d.component.ts b/projects/common-map3d/src/fm-map3d/components/olcs/switch2d3d/switch2d3d.component.ts index ab92fdf..4d5ed64 100644 --- a/projects/common-map3d/src/fm-map3d/components/olcs/switch2d3d/switch2d3d.component.ts +++ b/projects/common-map3d/src/fm-map3d/components/olcs/switch2d3d/switch2d3d.component.ts @@ -1,11 +1,9 @@ import { Component, OnInit,Input,Host } from '@angular/core'; -import { OldCircularArc } from 'arcgis-rest-api'; -import { Map } from 'ol'; import { Interaction} from 'ol/interaction'; import { MapComponent } from 'ngx-openlayers'; -import OLCesium from 'ol-cesium'; - -declare var olcs: any; +import OLCesium from 'olcs/OLCesium'; +import RasterSynchronizer from 'olcs/RasterSynchronizer'; +import VectorSynchronizer from 'olcs/VectorSynchronizer'; @Component({ selector: 'fm-map3d-switch2d3d', @@ -30,8 +28,8 @@ export class Switch2D3DComponent { this.ol3d = new OLCesium({ map: this.map.instance, createSynchronizers: (map,scene) => { this.synchronizers = [ - new olcs.RasterSynchronizer(map,scene), - new olcs.VectorSynchronizer(map,scene) + new RasterSynchronizer(map,scene), + new VectorSynchronizer(map,scene) ]; this.loading=false; return this.synchronizers;