getCoords_(point, srsName, hasZ) {
    const axisOrientation = srsName
      ? getProjection(srsName).getAxisOrientation()
      : 'enu';
    let coords = axisOrientation.startsWith('en')
      ? point[0] + ',' + point[1]
      : point[1] + ',' + point[0];
    if (hasZ) {
      // For newly created points, Z can be undefined.
      const z = point[2] || 0;
      coords += ',' + z;
    }

    return coords;
  }
@param {Array<number>} point Point geometry.
@param {string} [srsName] Optional srsName
@param {boolean} [hasZ] whether the geometry has a Z coordinate (is 3D) or not.
@return {string} The coords string.
@private