helpers/tiles.js
// return the geojson normalized to 0 and 360 degrees
return the geojson normalized to 0 and 360 degrees
return the geojson normalized to 0 and 360 degrees
function transformCoordinates(geojsonList) {
  const regularGeojsonList = normalizeCoordinates(geojsonList, [-180, 180]);
  const antimeridianGeojsonList = normalizeCoordinates(geojsonList, [0, 360]);
  if (insideArea(antimeridianGeojsonList, antimeridianArea)) {
    return antimeridianGeojsonList;
  }
  return regularGeojsonList;
}
function transformCoordinates ( geojsonList ) { const regularGeojsonList = normalizeCoordinates ( geojsonList , [ - 180 , 180 ] ) ; const antimeridianGeojsonList = normalizeCoordinates ( geojsonList , [ 0 , 360 ] ) ; if ( insideArea ( antimeridianGeojsonList , antimeridianArea ) ) { return antimeridianGeojsonList ; } return regularGeojsonList ; }
return the geojson normalized to 0 and 360 degrees
return the geojson normalized to 0 and 360 degrees