Upgrade to olcs
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user