Upgrade to olcs
This commit is contained in:
parent
4872dee094
commit
cf84f8c93d
@ -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",
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user