The Service is as a "zoom to rectangle" tool
example:
* constructor(
* private cameraService: CameraService,
* private cesiumService: CesiumService,
* private zoomToRectangleService: ZoomToRectangleService,
* ) {
* this.zoomToRectangleService.init(cesiumService, cameraService);
* }
* ...
* this.zoomToRectangleService.activate({onComplete: () => this.zoomToRectangleService.disable()});
*
init()
- initialize the service with CameraService and CesiumService.
If no mapId is provided to activate() - must be called before calling activate()
.
disable()
- disables the tool.
activate()
-