clone() {
    const polygon = new Polygon(
      this.flatCoordinates.slice(),
      this.layout,
      this.ends_.slice(),
    );
    polygon.applyProperties(this);
    return polygon;
  }
Make a complete copy of the geometry.
@return {!Polygon} Clone.
@api
@override