in scripts/generate-manifest.js [26:59]
function generateCatalogueManifest(opts) {
opts = {
version: 'v0',
tileHostname: constants.TILE_STAGING_HOST,
vectorHostname: constants.VECTOR_STAGING_HOST,
...opts,
};
// Get the Semantic Version (in case it is date based)
const version = coerceToSemVer(opts.version);
//Catalogue manifest was removed in 7.6+
if (semver.gte(version, '7.6.0')) {
return;
}
const tilesManifest = semver.lt(version, '7.2.0')
? { id: 'tiles_v2', version: 'v2' }
: { id: 'tiles', version: 'v7.2' };
const manifest = {
version: `${version.major}.${version.minor}`,
services: [{
id: tilesManifest.id,
name: 'Elastic Maps Tile Service',
manifest: `https://${opts.tileHostname}/${tilesManifest.version}/manifest`,
type: 'tms',
}, {
id: 'geo_layers',
name: 'Elastic Maps Vector Service',
manifest: `https://${opts.vectorHostname}/${opts.version}/manifest`,
type: 'file',
}],
};
return manifest;
}