src/ol/format/TopoJSON.js
function readPolygonGeometry(object, arcs) {
  const coordinates = [];
  for (let i = 0, ii = object['arcs'].length; i < ii; ++i) {
    coordinates[i] = concatenateArcs(object['arcs'][i], arcs);
  }
  return new Polygon(coordinates);
}
function readPolygonGeometry(object, arcs) {
  const coordinates = [];
  for (let i = 0, ii = object['arcs'].length; i < ii; ++i) {
    coordinates[i] = concatenateArcs(object['arcs'][i], arcs);
  }
  return new Polygon(coordinates);
}
function readPolygonGeometry ( object , arcs ) { const coordinates = [ ] ; for ( let i = 0 , ii = object [ 'arcs' ] . length ; i < ii ; ++ i ) { coordinates [ i ] = concatenateArcs ( object [ 'arcs' ] [ i ] , arcs ) ; } return new Polygon ( coordinates ) ; }
Create a polygon from a TopoJSON geometry object.

@param {TopoJSONPolygon} object TopoJSON object.
@param {Array<Array<import("../coordinate.js").Coordinate>>} arcs Array of arcs.
@return {Polygon} Geometry.
Create a polygon from a TopoJSON geometry object .