function manifestLayerV1()

in scripts/generate-manifest.js [139:159]


function manifestLayerV1(data, hostname, opts) {
  const format = getDefaultFormat(data.emsFormats);
  const pathname = `/blob/${data.id}`;
  const layer = {
    attribution: data.attribution.map(getAttributionString).join('|'),
    weight: data.weight,
    name: data.humanReadableName.en,
    url: getFileUrl(hostname, pathname, opts.manifestVersion),
    format: format.type,
    fields: data.fieldMapping
      .filter(fieldMap => ['id', 'property'].includes(fieldMap.type))
      .map(fieldMap => ({
        name: fieldMap.name,
        description: fieldMap.desc,
      })),
    created_at: data.createdAt,
    tags: [],
    id: data.id,
  };
  return layer;
}