public TileArchiveMetadata withLayerStats(List<LayerAttrStats.VectorLayer> layerStats) {
    return withJson(json == null ? TileArchiveMetadataJson.create(layerStats) : json.withLayers(layerStats));
  }
Returns a copy of this instance with {@link #json} set to {@code layerStats}.
planetiler-core/src/main/java/com/onthegomap/planetiler/archive/TileArchiveMetadata.java