handleEvent(mapBrowserEvent) {
    if (!mapBrowserEvent.originalEvent) {
      return true;
    }
    this.lastPointerEvent_ = mapBrowserEvent;

    let handled;
    if (
      !mapBrowserEvent.map.getView().getInteracting() &&
      mapBrowserEvent.type == MapBrowserEventType.POINTERMOVE &&
      !this.handlingDownUpSequence
    ) {
      this.handlePointerMove_(mapBrowserEvent);
    }
    if (this.vertexFeature_ && this.deleteCondition_(mapBrowserEvent)) {
      if (
        mapBrowserEvent.type != MapBrowserEventType.SINGLECLICK ||
        !this.ignoreNextSingleClick_
      ) {
        handled = this.removePoint();
      } else {
        handled = true;
      }
    }

    if (mapBrowserEvent.type == MapBrowserEventType.SINGLECLICK) {
      this.ignoreNextSingleClick_ = false;
    }

    return super.handleEvent(mapBrowserEvent) && !handled;
  }
/**
   * Handles the {@link module:ol/MapBrowserEvent map browser event} and may modify the geometry.
   * @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
   * @return {boolean} `false` to stop event propagation.
   */
Handles the  module:ol/MapBrowserEvent map browser event and may modify the geometry.
Handles the module : ol / MapBrowserEvent map browser event and may modify the geometry .
handleEvent(mapBrowserEvent) {
    if (!mapBrowserEvent.originalEvent) {
      return true;
    }
    this.lastPointerEvent_ = mapBrowserEvent;
    let handled;
    if (
      !mapBrowserEvent.map.getView().getInteracting() &&
      mapBrowserEvent.type == MapBrowserEventType.POINTERMOVE &&
      !this.handlingDownUpSequence
    ) {
      this.handlePointerMove_(mapBrowserEvent);
    }
    if (this.vertexFeature_ && this.deleteCondition_(mapBrowserEvent)) {
      if (
        mapBrowserEvent.type != MapBrowserEventType.SINGLECLICK ||
        !this.ignoreNextSingleClick_
      ) {
        handled = this.removePoint();
      } else {
        handled = true;
      }
    }
    if (mapBrowserEvent.type == MapBrowserEventType.SINGLECLICK) {
      this.ignoreNextSingleClick_ = false;
    }
    return super.handleEvent(mapBrowserEvent) && !handled;
  }
handleEvent ( mapBrowserEvent ) { if ( ! mapBrowserEvent . originalEvent ) { return true ; } this . lastPointerEvent_ = mapBrowserEvent ; let handled ; if ( ! mapBrowserEvent . map . getView ( ) . getInteracting ( ) && mapBrowserEvent . type == MapBrowserEventType . POINTERMOVE && ! this . handlingDownUpSequence ) { this . handlePointerMove_ ( mapBrowserEvent ) ; } if ( this . vertexFeature_ && this . deleteCondition_ ( mapBrowserEvent ) ) { if ( mapBrowserEvent . type != MapBrowserEventType . SINGLECLICK || ! this . ignoreNextSingleClick_ ) { handled = this . removePoint ( ) ; } else { handled = true ; } } if ( mapBrowserEvent . type == MapBrowserEventType . SINGLECLICK ) { this . ignoreNextSingleClick_ = false ; } return super . handleEvent ( mapBrowserEvent ) && ! handled ; }
Handles the {@link module:ol/MapBrowserEvent map browser event} and may modify the geometry.
Handles the { @link module : ol / MapBrowserEvent map browser event } and may modify the geometry .