insertPoint(coordinate) {
    const pixelCoordinate = coordinate
      ? fromUserCoordinate(coordinate, this.getMap().getView().getProjection())
      : this.vertexFeature_?.getGeometry().getCoordinates();
    if (!pixelCoordinate) {
      return false;
    }
    const insertVertices =
      this.findInsertVerticesAndUpdateDragSegments_(pixelCoordinate);
    return insertVertices.reduce(
      (prev, segmentData) =>
        prev || this.insertVertex_(segmentData, pixelCoordinate),
      false,
    );
  }
Inserts the vertex currently being pointed to the current linestring or polygon.
@param {import('../coordinate.js').Coordinate} [coordinate] If provided, the pointer
will be set to the provided coordinate. If not, the current pointer coordinate will be used.
@return {boolean} A vertex was inserted.
@api