@artstesh/maps 9.0.3 → 9.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ import { Control, Zoom } from 'ol/control';
9
9
  import * as i0 from '@angular/core';
10
10
  import { Component, Injectable, Input, ChangeDetectionStrategy, input, ViewEncapsulation, ViewChild } from '@angular/core';
11
11
  import { get, useGeographic, transform } from 'ol/proj';
12
- import { PostboyGenericMessage, PostboyCallbackMessage, PostboyExecutor, PostboyService, PostboyAbstractRegistrator } from '@artstesh/postboy';
12
+ import { PostboyGenericMessage, PostboyCallbackMessage, PostboyExecutor, PostboyService, LockMessage, UnlockMessage, PostboyAbstractRegistrator } from '@artstesh/postboy';
13
13
  import * as Sphere from 'ol/sphere';
14
14
  import { getLength } from 'ol/sphere';
15
15
  import { Draw, Modify, Translate, defaults } from 'ol/interaction';
@@ -1305,7 +1305,7 @@ class DrawingService {
1305
1305
  }
1306
1306
  observeSelectArea() {
1307
1307
  this.postboy.sub(DrawSelectionAreaCommand).subscribe((ev) => {
1308
- this.postboy.lock(MapClickEvent);
1308
+ this.postboy.fire(new LockMessage(MapClickEvent));
1309
1309
  this.postboy.fireCallback(new StartDrawingCommand(ev.type, ev.style), (r) => {
1310
1310
  if (!r) {
1311
1311
  ev.finish(new Dictionary());
@@ -1363,7 +1363,7 @@ class DrawingService {
1363
1363
  this.map?.removeInteraction(this.drawInteraction);
1364
1364
  layer?.setSource(new Vector({}));
1365
1365
  }
1366
- this.postboy.unlock(MapClickEvent);
1366
+ this.postboy.fire(new UnlockMessage(MapClickEvent));
1367
1367
  setTimeout(() => this.postboy.fire(new DrawingFinishedEvent()), 300);
1368
1368
  }
1369
1369
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: DrawingService, deps: [{ token: MapPostboyService }], target: i0.ɵɵFactoryTarget.Injectable });