setCoordinates(coordinates, layout) {
    this.setLayout(layout, coordinates, 2);
    if (!this.flatCoordinates) {
      this.flatCoordinates = [];
    }
    const ends = deflateCoordinatesArray(
      this.flatCoordinates,
      0,
      coordinates,
      this.stride,
      this.ends_,
    );
    this.flatCoordinates.length = ends.length === 0 ? 0 : ends[ends.length - 1];
    this.changed();
  }
Set the coordinates of the multilinestring.
@param {!Array<Array<import("../coordinate.js").Coordinate>>} coordinates Coordinates.
@param {import("./Geometry.js").GeometryLayout} [layout] Layout.
@api
@override