@basemaps/server 7.0.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/build/bin.d.ts +0 -1
- package/build/bin.js.map +1 -1
- package/build/cli.d.ts +3 -2
- package/build/cli.js +9 -5
- package/build/cli.js.map +1 -1
- package/build/config.d.ts +4 -3
- package/build/config.js +12 -8
- package/build/config.js.map +1 -1
- package/build/index.d.ts +0 -1
- package/build/route.layers.d.ts +1 -12
- package/build/route.layers.js +14 -38
- package/build/route.layers.js.map +1 -1
- package/build/server.d.ts +0 -1
- package/build/server.js +8 -6
- package/build/server.js.map +1 -1
- package/package.json +11 -10
- package/CHANGELOG.md +0 -486
- package/build/bin.d.ts.map +0 -1
- package/build/cli.d.ts.map +0 -1
- package/build/config.d.ts.map +0 -1
- package/build/index.d.ts.map +0 -1
- package/build/route.layers.d.ts.map +0 -1
- package/build/server.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -68,8 +68,8 @@ running `basemaps-server /images/00_gebco_2021_305-75m/ /images/10_geographx_nz_
|
|
|
68
68
|
When running the `@basemaps/server` in development mode, ensure `@basemaps/landing` page has been built and bundled
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
npm install
|
|
72
|
+
npm run build
|
|
73
73
|
|
|
74
74
|
npx lerna run bundle --stream # Bundle everything
|
|
75
75
|
```
|
package/build/bin.d.ts
CHANGED
package/build/bin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":"AAAA,KAAK,CAAC,eAAe,GAAG,GAAG,CAAC;AAE5B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":"AAAA,KAAK,CAAC,eAAe,GAAG,GAAG,CAAC;AAE5B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IAC9D,MAAM,MAAM,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;IAC/B,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC;IAExC,oDAAoD;IACpD,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACxC,CAAC,CAAC,CAAC"}
|
package/build/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import { Type } from 'cmd-ts';
|
|
3
3
|
/**
|
|
4
4
|
* Parse a input parameter as a URL,
|
|
@@ -11,6 +11,7 @@ export declare const BasemapsServerCommand: Partial<import("cmd-ts/dist/cjs/argp
|
|
|
11
11
|
port: number | undefined;
|
|
12
12
|
verbose: boolean;
|
|
13
13
|
assets: string | undefined;
|
|
14
|
+
cache: URL | undefined;
|
|
14
15
|
paths: URL[];
|
|
15
16
|
}>>;
|
|
16
17
|
} & import("cmd-ts/dist/cjs/helpdoc.js").PrintHelp & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/helpdoc.js").Named & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned> & import("cmd-ts/dist/cjs/argparser.js").Register & import("cmd-ts/dist/cjs/runner.js").Handling<{
|
|
@@ -18,8 +19,8 @@ export declare const BasemapsServerCommand: Partial<import("cmd-ts/dist/cjs/argp
|
|
|
18
19
|
port: number | undefined;
|
|
19
20
|
verbose: boolean;
|
|
20
21
|
assets: string | undefined;
|
|
22
|
+
cache: URL | undefined;
|
|
21
23
|
paths: URL[];
|
|
22
24
|
}, Promise<void>> & {
|
|
23
25
|
run(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<Promise<void>>>;
|
|
24
26
|
} & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned & import("cmd-ts/dist/cjs/helpdoc.js").Descriptive & import("cmd-ts/dist/cjs/helpdoc.js").Aliased>;
|
|
25
|
-
//# sourceMappingURL=cli.d.ts.map
|
package/build/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { pathToFileURL } from 'node:url';
|
|
1
2
|
import { Env, LogConfig } from '@basemaps/shared';
|
|
2
3
|
import { CliInfo } from '@basemaps/shared/build/cli/info.js';
|
|
3
4
|
import { command, flag, number, option, optional, restPositionals, string } from 'cmd-ts';
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
5
|
import { createServer } from './server.js';
|
|
6
6
|
CliInfo.package = 'basemaps/server';
|
|
7
7
|
const DefaultPort = 5000;
|
|
@@ -38,10 +38,14 @@ export const BasemapsServerCommand = command({
|
|
|
38
38
|
long: 'assets',
|
|
39
39
|
description: 'Where the assets (sprites, fonts) are located',
|
|
40
40
|
}),
|
|
41
|
+
cache: option({
|
|
42
|
+
type: optional(Url),
|
|
43
|
+
long: 'cache',
|
|
44
|
+
description: 'Cache the metadata from loading of tiff files',
|
|
45
|
+
}),
|
|
41
46
|
paths: restPositionals({ type: Url, displayName: 'path', description: 'Path to imagery' }),
|
|
42
47
|
},
|
|
43
48
|
handler: async (args) => {
|
|
44
|
-
var _a;
|
|
45
49
|
const logger = LogConfig.get();
|
|
46
50
|
if (args.verbose)
|
|
47
51
|
logger.level = 'debug';
|
|
@@ -49,12 +53,12 @@ export const BasemapsServerCommand = command({
|
|
|
49
53
|
throw new Error('Either --config or paths must be used. see --help');
|
|
50
54
|
}
|
|
51
55
|
logger.info({ package: CliInfo, cli: 'server' }, 'Cli:Start');
|
|
52
|
-
const ServerUrl =
|
|
56
|
+
const ServerUrl = Env.get(Env.PublicUrlBase) ?? `http://localhost:${args.port}`;
|
|
53
57
|
// Force a default url base so WMTS requests know their relative url
|
|
54
58
|
process.env[Env.PublicUrlBase] = ServerUrl;
|
|
55
59
|
const serverOptions = args.config
|
|
56
|
-
? { assets: args.assets, config: args.config }
|
|
57
|
-
: { assets: args.assets, paths: args.paths };
|
|
60
|
+
? { assets: args.assets, config: args.config, configCache: args.cache }
|
|
61
|
+
: { assets: args.assets, paths: args.paths, configCache: args.cache };
|
|
58
62
|
const server = await createServer(serverOptions, logger);
|
|
59
63
|
await server.listen({ port: args.port, host: '0.0.0.0' });
|
|
60
64
|
logger.info({ url: ServerUrl + '/layers' }, 'ServerStarted');
|
package/build/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAQ,MAAM,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MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;QAC1D,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,SAAS,GAAG,SAAS,EAAE,EAAE,eAAe,CAAC,CAAC;IAC/D,CAAC;CACF,CAAC,CAAC"}
|
package/build/config.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import { BasemapsConfigProvider } from '@basemaps/config';
|
|
3
3
|
import { LogType } from '@basemaps/shared';
|
|
4
|
-
export type ServerOptions = ServerOptionsTiffs | ServerOptionsConfig
|
|
4
|
+
export type ServerOptions = (ServerOptionsTiffs | ServerOptionsConfig) & {
|
|
5
|
+
configCache?: URL;
|
|
6
|
+
};
|
|
5
7
|
/** Load configuration from folders */
|
|
6
8
|
export interface ServerOptionsTiffs {
|
|
7
9
|
assets?: string;
|
|
@@ -20,4 +22,3 @@ export interface ServerOptionsConfig {
|
|
|
20
22
|
*
|
|
21
23
|
*/
|
|
22
24
|
export declare function loadConfig(opts: ServerOptions, logger: LogType): Promise<BasemapsConfigProvider>;
|
|
23
|
-
//# sourceMappingURL=config.d.ts.map
|
package/build/config.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { initConfigFromUrls } from '@basemaps/config
|
|
3
|
-
import { fsa, getDefaultConfig
|
|
1
|
+
import { ConfigPrefix, ConfigProviderMemory } from '@basemaps/config';
|
|
2
|
+
import { ConfigJson, initConfigFromUrls } from '@basemaps/config-loader';
|
|
3
|
+
import { ConfigProviderDynamo, fsa, getDefaultConfig } from '@basemaps/shared';
|
|
4
|
+
import pLimit from 'p-limit';
|
|
5
|
+
const TiffLoadConcurrency = 25;
|
|
4
6
|
/**
|
|
5
7
|
* Attempt to load a configuration file from a number of sources
|
|
6
8
|
*
|
|
@@ -12,8 +14,10 @@ export async function loadConfig(opts, logger) {
|
|
|
12
14
|
// Load the config directly from the source tiff files
|
|
13
15
|
if ('paths' in opts) {
|
|
14
16
|
const mem = new ConfigProviderMemory();
|
|
15
|
-
const ret = await initConfigFromUrls(mem, opts.paths);
|
|
16
|
-
|
|
17
|
+
const ret = await initConfigFromUrls(mem, opts.paths, TiffLoadConcurrency, opts.configCache, logger);
|
|
18
|
+
for (const ts of ret.tileSets) {
|
|
19
|
+
logger.info({ tileSet: ts.name, layers: ts.layers.length, outputs: ts.outputs?.map((f) => f.name) }, 'TileSet:Loaded');
|
|
20
|
+
}
|
|
17
21
|
for (const im of ret.imagery) {
|
|
18
22
|
logger.info({ imagery: im.uri, title: im.title, tileMatrix: im.tileMatrix, files: im.files.length }, 'Imagery:Loaded');
|
|
19
23
|
}
|
|
@@ -32,7 +36,7 @@ export async function loadConfig(opts, logger) {
|
|
|
32
36
|
const cb = await getDefaultConfig().ConfigBundle.get(configPath);
|
|
33
37
|
if (cb == null)
|
|
34
38
|
throw new Error(`Config bundle does not exist ${configPath}`);
|
|
35
|
-
const configJson = await fsa.readJson(cb.path);
|
|
39
|
+
const configJson = await fsa.readJson(fsa.toUrl(cb.path));
|
|
36
40
|
const mem = ConfigProviderMemory.fromJson(configJson);
|
|
37
41
|
mem.createVirtualTileSets();
|
|
38
42
|
return mem;
|
|
@@ -40,12 +44,12 @@ export async function loadConfig(opts, logger) {
|
|
|
40
44
|
// Read a bundled config directly from a JSON file.
|
|
41
45
|
if (configPath.endsWith('.json') || configPath.endsWith('.json.gz')) {
|
|
42
46
|
logger.info({ path: configPath, mode: 'config:bundle' }, 'Starting Server');
|
|
43
|
-
const configJson = await fsa.readJson(configPath);
|
|
47
|
+
const configJson = await fsa.readJson(fsa.toUrl(configPath));
|
|
44
48
|
const mem = ConfigProviderMemory.fromJson(configJson);
|
|
45
49
|
mem.createVirtualTileSets();
|
|
46
50
|
return mem;
|
|
47
51
|
}
|
|
48
|
-
const mem = await ConfigJson.
|
|
52
|
+
const mem = await ConfigJson.fromUrl(fsa.toUrl(configPath), pLimit(TiffLoadConcurrency), logger, opts.configCache);
|
|
49
53
|
logger.info({ path: configPath, mode: 'config:json' }, 'Starting Server');
|
|
50
54
|
mem.createVirtualTileSets();
|
|
51
55
|
return mem;
|
package/build/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7G,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,GAAG,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAC;AACxF,OAAO,MAAM,MAAM,SAAS,CAAC;AAe7B,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,IAAmB,EAAE,MAAe;IACnE,sDAAsD;IACtD,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACpB,MAAM,GAAG,GAAG,IAAI,oBAAoB,EAAE,CAAC;QACvC,MAAM,GAAG,GAAG,MAAM,kBAAkB,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,mBAAmB,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACrG,KAAK,MAAM,EAAE,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;YAC9B,MAAM,CAAC,IAAI,CACT,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,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,GAAG,GAAG,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACtD,GAAG,CAAC,qBAAqB,EAAE,CAAC;QAC5B,OAAO,GAAG,CAAC;IACb,CAAC;IAED,mDAAmD;IACnD,IAAI,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QACpE,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,iBAAiB,CAAC,CAAC;QAC5E,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAgB,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;QAC5E,MAAM,GAAG,GAAG,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACtD,GAAG,CAAC,qBAAqB,EAAE,CAAC;QAC5B,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,GAAG,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACnH,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,GAAG,CAAC,qBAAqB,EAAE,CAAC;IAC5B,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/build/index.d.ts
CHANGED
package/build/route.layers.d.ts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import { BasemapsConfigProvider
|
|
2
|
-
export declare function getPreviewUrl(im: ConfigImagery): {
|
|
3
|
-
url: string;
|
|
4
|
-
name: string;
|
|
5
|
-
locationHash: string;
|
|
6
|
-
location: {
|
|
7
|
-
lat: number;
|
|
8
|
-
lon: number;
|
|
9
|
-
zoom: number;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
1
|
+
import { BasemapsConfigProvider } from '@basemaps/config';
|
|
12
2
|
export declare function createLayersHtml(mem: BasemapsConfigProvider): Promise<string>;
|
|
13
|
-
//# sourceMappingURL=route.layers.d.ts.map
|
package/build/route.layers.js
CHANGED
|
@@ -1,41 +1,12 @@
|
|
|
1
|
-
import { getAllImagery,
|
|
2
|
-
import { Epsg, GoogleTms,
|
|
3
|
-
import { V } from '@basemaps/shared';
|
|
4
|
-
const previewSize = { width: 1200, height: 630 };
|
|
5
|
-
// TODO this should be shared with all of the preview generation logic
|
|
6
|
-
function getImageryCenterZoom(im) {
|
|
7
|
-
const center = { x: im.bounds.x + im.bounds.width / 2, y: im.bounds.y + im.bounds.height / 2 };
|
|
8
|
-
// Find a approximate GSD needed to show most of the imagery
|
|
9
|
-
const aspectWidth = im.bounds.width / previewSize.width;
|
|
10
|
-
const aspectHeight = im.bounds.height / previewSize.height;
|
|
11
|
-
const bestAspect = Math.min(aspectHeight, aspectWidth);
|
|
12
|
-
const tms = TileMatrixSets.find(im.tileMatrix);
|
|
13
|
-
if (tms == null)
|
|
14
|
-
throw new Error(`Failed to lookup tileMatrix: ${im.tileMatrix}`);
|
|
15
|
-
const proj = Projection.get(tms);
|
|
16
|
-
const centerLatLon = proj.toWgs84([center.x, center.y]);
|
|
17
|
-
const targetZoom = Math.max(tms.findBestZoom(bestAspect) - 7, 0);
|
|
18
|
-
return { lat: centerLatLon[1], lon: centerLatLon[0], zoom: targetZoom };
|
|
19
|
-
}
|
|
20
|
-
export function getPreviewUrl(im) {
|
|
21
|
-
const location = getImageryCenterZoom(im);
|
|
22
|
-
const targetZoom = location.zoom;
|
|
23
|
-
const lat = location.lat.toFixed(7);
|
|
24
|
-
const lon = location.lon.toFixed(7);
|
|
25
|
-
const locationHash = `@${lat},${lon},z${location.zoom}`;
|
|
26
|
-
const name = standardizeLayerName(im.name);
|
|
27
|
-
return {
|
|
28
|
-
name,
|
|
29
|
-
location,
|
|
30
|
-
locationHash,
|
|
31
|
-
url: `/v1/preview/${name}/${im.tileMatrix}/${targetZoom}/${lon}/${lat}`,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
1
|
+
import { ConfigProviderMemory, getAllImagery, } from '@basemaps/config';
|
|
2
|
+
import { Epsg, GoogleTms, TileMatrixSets } from '@basemaps/geo';
|
|
3
|
+
import { getPreviewUrl, V } from '@basemaps/shared';
|
|
34
4
|
export async function createLayersHtml(mem) {
|
|
35
|
-
const allLayers = await mem.TileSet.get('ts_all');
|
|
36
|
-
|
|
5
|
+
const allLayers = await Promise.all([mem.TileSet.get('ts_all'), mem.TileSet.get('ts_elevation')]);
|
|
6
|
+
const allSourceLayers = allLayers.flatMap((m) => m?.layers).filter(Boolean);
|
|
7
|
+
if (allSourceLayers == null)
|
|
37
8
|
return 'No layers found.';
|
|
38
|
-
const allImagery = await getAllImagery(mem,
|
|
9
|
+
const allImagery = await getAllImagery(mem, allSourceLayers, [...Epsg.Codes.values()]);
|
|
39
10
|
const cards = [];
|
|
40
11
|
const layers = [...allImagery.values()].sort((a, b) => a.title.localeCompare(b.title));
|
|
41
12
|
const showPreview = allImagery.size < 10;
|
|
@@ -43,7 +14,9 @@ export async function createLayersHtml(mem) {
|
|
|
43
14
|
let tileMatrix = TileMatrixSets.find(img.tileMatrix);
|
|
44
15
|
if (tileMatrix == null)
|
|
45
16
|
tileMatrix = GoogleTms;
|
|
46
|
-
const
|
|
17
|
+
const ts = ConfigProviderMemory.imageryToTileSet(img);
|
|
18
|
+
const output = ts.outputs?.find((f) => f.format == null || f.format.includes('webp'));
|
|
19
|
+
const ret = getPreviewUrl({ imagery: img, pipeline: output?.name });
|
|
47
20
|
const els = [
|
|
48
21
|
V('div', { class: `layer-header`, style: 'display:flex; justify-content: space-around;' }, [
|
|
49
22
|
V('div', { class: 'layer-title' }, img.title),
|
|
@@ -53,7 +26,10 @@ export async function createLayersHtml(mem) {
|
|
|
53
26
|
];
|
|
54
27
|
if (showPreview)
|
|
55
28
|
els.push(V('img', { width: '600px', height: '315px', src: ret.url }));
|
|
56
|
-
cards.push(V('a', {
|
|
29
|
+
cards.push(V('a', {
|
|
30
|
+
class: `layer layer-${img.id}`,
|
|
31
|
+
href: `/${ret.slug}?tileMatrix=${tileMatrix.identifier}&style=${ret.name}`,
|
|
32
|
+
}, els));
|
|
57
33
|
}
|
|
58
34
|
const style = `
|
|
59
35
|
body {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.layers.js","sourceRoot":"","sources":["../src/route.layers.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"route.layers.js","sourceRoot":"","sources":["../src/route.layers.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EAEpB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,GAA2B;IAChE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IAElG,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAkB,CAAC;IAC7F,IAAI,eAAe,IAAI,IAAI;QAAE,OAAO,kBAAkB,CAAC;IAEvD,MAAM,UAAU,GAAG,MAAM,aAAa,CAAC,GAAG,EAAE,eAAe,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAE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,EAAE,EAAE,UAAU,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;aAC7E,CAAC;SACH,CAAC;QAEF,IAAI,WAAW;YAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACvF,KAAK,CAAC,IAAI,CACR,CAAC,CACC,GAAG,EACH;YACE,KAAK,EAAE,eAAe,GAAG,CAAC,EAAE,EAAE;YAC9B,IAAI,EAAE,IAAI,GAAG,CAAC,IAAI,eAAe,UAAU,CAAC,UAAU,UAAU,GAAG,CAAC,IAAI,EAAE;SAC3E,EACD,GAAG,CACJ,CACF,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Bf,CAAC;IAEA,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;SAC5E,QAAQ,EAAE;SACV,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC,CAAC,8BAA8B;AACrE,CAAC"}
|
package/build/server.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ import { LogType } from '@basemaps/shared';
|
|
|
2
2
|
import { FastifyInstance } from 'fastify';
|
|
3
3
|
import { ServerOptions } from './config.js';
|
|
4
4
|
export declare function createServer(opts: ServerOptions, logger: LogType): Promise<FastifyInstance>;
|
|
5
|
-
//# sourceMappingURL=server.d.ts.map
|
package/build/server.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { handler } from '@basemaps/lambda-tiler';
|
|
2
|
-
import { fsa, getDefaultConfig, setDefaultConfig } from '@basemaps/shared';
|
|
2
|
+
import { Env, fsa, getDefaultConfig, setDefaultConfig } from '@basemaps/shared';
|
|
3
3
|
import formBodyPlugin from '@fastify/formbody';
|
|
4
4
|
import fastifyStatic from '@fastify/static';
|
|
5
5
|
import { LambdaUrlRequest } from '@linzjs/lambda';
|
|
6
|
-
import fastify from 'fastify';
|
|
6
|
+
import { fastify } from 'fastify';
|
|
7
7
|
import { createRequire } from 'module';
|
|
8
8
|
import path from 'path';
|
|
9
9
|
import ulid from 'ulid';
|
|
@@ -27,11 +27,11 @@ function getLandingLocation() {
|
|
|
27
27
|
}
|
|
28
28
|
export async function createServer(opts, logger) {
|
|
29
29
|
const BasemapsServer = fastify({});
|
|
30
|
-
BasemapsServer.register(formBodyPlugin);
|
|
30
|
+
BasemapsServer.register(formBodyPlugin.default);
|
|
31
31
|
const cfg = await loadConfig(opts, logger);
|
|
32
32
|
setDefaultConfig(cfg);
|
|
33
33
|
if (opts.assets) {
|
|
34
|
-
const isExists = await fsa.exists(opts.assets);
|
|
34
|
+
const isExists = await fsa.exists(fsa.toUrl(opts.assets));
|
|
35
35
|
if (!isExists)
|
|
36
36
|
throw new Error(`--assets path "${opts.assets}" does not exist`);
|
|
37
37
|
logger.info({ path: opts.assets }, 'Config:Assets');
|
|
@@ -42,7 +42,9 @@ export async function createServer(opts, logger) {
|
|
|
42
42
|
logger.warn('Server:Landing:Failed');
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
|
-
const root = path.join(path.dirname(landingLocation), '..', 'dist');
|
|
45
|
+
const root = path.join(path.dirname(landingLocation), '..', 'dist/');
|
|
46
|
+
if (process.env[Env.StaticAssetLocation] == null)
|
|
47
|
+
process.env[Env.StaticAssetLocation] = root;
|
|
46
48
|
logger.info({ path: root }, 'Server:Landing');
|
|
47
49
|
BasemapsServer.register(fastifyStatic, { root });
|
|
48
50
|
}
|
|
@@ -74,7 +76,7 @@ export async function createServer(opts, logger) {
|
|
|
74
76
|
BasemapsServer.all('/v1/*', queryHandler);
|
|
75
77
|
BasemapsServer.all('/@*', queryHandler);
|
|
76
78
|
// Preview a list of layers
|
|
77
|
-
BasemapsServer.get('/layers', async (
|
|
79
|
+
BasemapsServer.get('/layers', async (_req, res) => {
|
|
78
80
|
const doc = await createLayersHtml(cfg);
|
|
79
81
|
res.status(200);
|
|
80
82
|
res.header('Content-Type', 'text/html');
|
package/build/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAW,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,gBAAgB,EAAW,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAY,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,OAAO,EAAiD,MAAM,SAAS,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAiB,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;AAE/B,SAAS,kBAAkB;IACzB,IAAI,CAAC;QACH,IAAI,OAAO,OAAO,KAAK,WAAW,IA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|
{
|
|
2
2
|
"name": "@basemaps/server",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/linz/basemaps.git",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": "
|
|
16
|
+
"node": ">=16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"main": "./build/index.js",
|
|
20
20
|
"types": "./build/index.d.ts",
|
|
21
21
|
"scripts": {
|
|
22
|
-
"test": "
|
|
23
|
-
"bundle": "../../scripts/bundle.
|
|
22
|
+
"test": "node --test",
|
|
23
|
+
"bundle": "../../scripts/bundle.mjs package.json"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
@@ -47,19 +47,20 @@
|
|
|
47
47
|
"@basemaps/landing": "^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"sharp": "^0.
|
|
50
|
+
"sharp": "^0.33.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@basemaps/config": "^7.
|
|
54
|
-
"@basemaps/
|
|
55
|
-
"@basemaps/
|
|
53
|
+
"@basemaps/config": "^7.1.0",
|
|
54
|
+
"@basemaps/config-loader": "^7.1.0",
|
|
55
|
+
"@basemaps/geo": "^7.1.0",
|
|
56
|
+
"@basemaps/lambda-tiler": "^7.1.1",
|
|
56
57
|
"@basemaps/landing": "^6.39.0",
|
|
57
|
-
"@basemaps/shared": "^7.
|
|
58
|
+
"@basemaps/shared": "^7.1.0",
|
|
58
59
|
"@fastify/formbody": "^7.0.1",
|
|
59
60
|
"@fastify/static": "^6.5.0",
|
|
60
61
|
"cmd-ts": "^0.12.1",
|
|
61
62
|
"fastify": "^4.9.2",
|
|
62
63
|
"pretty-json-log": "^1.0.0"
|
|
63
64
|
},
|
|
64
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "7c06286cc5f042dd211043ca0352575d1b27d205"
|
|
65
66
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,486 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [7.0.0](https://github.com/linz/basemaps/compare/v6.46.0...v7.0.0) (2023-11-27)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* **server:** create missing all tileset and stac lookup locations ([#3003](https://github.com/linz/basemaps/issues/3003)) ([d9fcbd9](https://github.com/linz/basemaps/commit/d9fcbd9be22f239e915e029912d48e038de13765))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Features
|
|
15
|
-
|
|
16
|
-
* **doc:** Improve the individual package documentations. BM-776 ([#2981](https://github.com/linz/basemaps/issues/2981)) ([5a4adcb](https://github.com/linz/basemaps/commit/5a4adcbbff15857a6f4c315d54280d542f785fec))
|
|
17
|
-
* **server:** docker improvements ([#3002](https://github.com/linz/basemaps/issues/3002)) ([9db2353](https://github.com/linz/basemaps/commit/9db2353d6bf3dc22ef2c295a6dc3de8a2022bc8c))
|
|
18
|
-
* **server:** layer preview page for local debugging ([#3004](https://github.com/linz/basemaps/issues/3004)) ([eea8cc5](https://github.com/linz/basemaps/commit/eea8cc504f81f47a0bedb7e5f142c2286f57da7a))
|
|
19
|
-
* Add proof of concept docs site BM-917 ([#2990](https://github.com/linz/basemaps/issues/2990)) ([cabccc7](https://github.com/linz/basemaps/commit/cabccc730de0c0016e9d102dc8df6acbf1510e00))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# [6.46.0](https://github.com/linz/basemaps/compare/v6.45.0...v6.46.0) (2023-10-10)
|
|
26
|
-
|
|
27
|
-
**Note:** Version bump only for package @basemaps/server
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# [6.45.0](https://github.com/linz/basemaps/compare/v6.44.0...v6.45.0) (2023-09-18)
|
|
34
|
-
|
|
35
|
-
**Note:** Version bump only for package @basemaps/server
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
# [6.44.0](https://github.com/linz/basemaps/compare/v6.43.0...v6.44.0) (2023-09-05)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Features
|
|
45
|
-
|
|
46
|
-
* add og:image preview to all basemaps links BM-264 ([#2925](https://github.com/linz/basemaps/issues/2925)) ([de00528](https://github.com/linz/basemaps/commit/de005285eac0c2f5e2c83c8eeaa61aafeff8edde))
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
# [6.43.0](https://github.com/linz/basemaps/compare/v6.42.1...v6.43.0) (2023-08-22)
|
|
53
|
-
|
|
54
|
-
**Note:** Version bump only for package @basemaps/server
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
# [6.41.0](https://github.com/linz/basemaps/compare/v6.40.0...v6.41.0) (2023-07-26)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
### Bug Fixes
|
|
64
|
-
|
|
65
|
-
* **config:** allow initializing config from URLs ([#2830](https://github.com/linz/basemaps/issues/2830)) ([0ea552e](https://github.com/linz/basemaps/commit/0ea552ec32ad723f98c96d533f18a8afc51d9657))
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
# [6.40.0](https://github.com/linz/basemaps/compare/v6.39.0...v6.40.0) (2023-03-16)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Bug Fixes
|
|
75
|
-
|
|
76
|
-
* **server:** Fix the server cli to load config from config path. ([#2690](https://github.com/linz/basemaps/issues/2690)) ([64d1f14](https://github.com/linz/basemaps/commit/64d1f14910324b04cf4355200141454fb1a3b0ad))
|
|
77
|
-
* **server:** make --no-config actually load the configuration from tiffs ([#2682](https://github.com/linz/basemaps/issues/2682)) ([019ee50](https://github.com/linz/basemaps/commit/019ee50ee22cda2ce143f9a012d4aaa9ffc0edc9))
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### Features
|
|
81
|
-
|
|
82
|
-
* **server:** change CLI interface to support multiple tiff folders ([#2688](https://github.com/linz/basemaps/issues/2688)) ([7fcd310](https://github.com/linz/basemaps/commit/7fcd310425aaf02bbadab2bb3b89cce5b7462c8f))
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
# [6.39.0](https://github.com/linz/basemaps/compare/v6.38.0...v6.39.0) (2023-01-25)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
### Bug Fixes
|
|
92
|
-
|
|
93
|
-
* **server:** correctly forward array query strings to the lambda function ([#2630](https://github.com/linz/basemaps/issues/2630)) ([4a021b2](https://github.com/linz/basemaps/commit/4a021b20ad55709861bcb910cd48a2d0e9d3c26b))
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
# [6.38.0](https://github.com/linz/basemaps/compare/v6.37.0...v6.38.0) (2022-12-11)
|
|
100
|
-
|
|
101
|
-
**Note:** Version bump only for package @basemaps/server
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
# [6.37.0](https://github.com/linz/basemaps/compare/v6.36.0...v6.37.0) (2022-12-05)
|
|
108
|
-
|
|
109
|
-
**Note:** Version bump only for package @basemaps/server
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
# [6.36.0](https://github.com/linz/basemaps/compare/v6.35.0...v6.36.0) (2022-10-18)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
### Bug Fixes
|
|
119
|
-
|
|
120
|
-
* Remove AssetLocation and using cb_lastest to get default assets. BM-693 ([#2527](https://github.com/linz/basemaps/issues/2527)) ([fce8607](https://github.com/linz/basemaps/commit/fce860786fb838a6fcbe65f35ca9ec6f12eeaf97))
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
# [6.35.0](https://github.com/linz/basemaps/compare/v6.34.0...v6.35.0) (2022-09-14)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### Bug Fixes
|
|
130
|
-
|
|
131
|
-
* **lambda-tiler:** send 408 timeout response rather than timing out. ([#2460](https://github.com/linz/basemaps/issues/2460)) ([8d31469](https://github.com/linz/basemaps/commit/8d31469829a65739ccbe525031897259d9ae2ae4))
|
|
132
|
-
* **landing:** ensure tileMatrix is being passed correctly ([#2454](https://github.com/linz/basemaps/issues/2454)) ([3b66dee](https://github.com/linz/basemaps/commit/3b66dee9700074d578328d434cae9c6f6c20dfff))
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
### Features
|
|
136
|
-
|
|
137
|
-
* allow loading config from ?config ([#2442](https://github.com/linz/basemaps/issues/2442)) ([8f946d8](https://github.com/linz/basemaps/commit/8f946d8ffb155304b80c26aca0faf4c64136390f))
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
# [6.34.0](https://github.com/linz/basemaps/compare/v6.33.0...v6.34.0) (2022-08-17)
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
### Bug Fixes
|
|
147
|
-
|
|
148
|
-
* **server:** error if port is in use ([#2418](https://github.com/linz/basemaps/issues/2418)) ([a469af3](https://github.com/linz/basemaps/commit/a469af3685899c9ece6f6a4394089a341c0672b5))
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
### Features
|
|
152
|
-
|
|
153
|
-
* **lambda-tiler:** Provide get info api and post tileserver api for arcgis BM-78 ([#2407](https://github.com/linz/basemaps/issues/2407)) ([d9b091b](https://github.com/linz/basemaps/commit/d9b091bf4e6fd2b91804a7b9bbcd388dd8b75ee8))
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
# [6.33.0](https://github.com/linz/basemaps/compare/v6.32.2...v6.33.0) (2022-08-01)
|
|
160
|
-
|
|
161
|
-
**Note:** Version bump only for package @basemaps/server
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
## [6.32.2](https://github.com/linz/basemaps/compare/v6.32.1...v6.32.2) (2022-07-28)
|
|
168
|
-
|
|
169
|
-
**Note:** Version bump only for package @basemaps/server
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
## [6.32.1](https://github.com/linz/basemaps/compare/v6.32.0...v6.32.1) (2022-07-28)
|
|
176
|
-
|
|
177
|
-
**Note:** Version bump only for package @basemaps/server
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
# [6.32.0](https://github.com/linz/basemaps/compare/v6.31.0...v6.32.0) (2022-07-28)
|
|
184
|
-
|
|
185
|
-
**Note:** Version bump only for package @basemaps/server
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
# [6.31.0](https://github.com/linz/basemaps/compare/v6.30.0...v6.31.0) (2022-07-22)
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
### Bug Fixes
|
|
195
|
-
|
|
196
|
-
* **server:** actually start the server from the cli ([#2347](https://github.com/linz/basemaps/issues/2347)) ([a5e382b](https://github.com/linz/basemaps/commit/a5e382b681d80136a1602dbe681a8b2c511aa818))
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
### Features
|
|
200
|
-
|
|
201
|
-
* **server:** Allow to start server from a config bundle dynamo reference ([#2339](https://github.com/linz/basemaps/issues/2339)) ([366ef79](https://github.com/linz/basemaps/commit/366ef793312b82a498d3ab56bc60b01e0574f6d4))
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
# [6.30.0](https://github.com/linz/basemaps/compare/v6.29.0...v6.30.0) (2022-07-20)
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
### Features
|
|
211
|
-
|
|
212
|
-
* use better names for WMTS ([#2314](https://github.com/linz/basemaps/issues/2314)) ([fbbf6c1](https://github.com/linz/basemaps/commit/fbbf6c140afe54b1a0227a15766bcc045a19bab2))
|
|
213
|
-
* **cli:** add bmc serve to create a server from a bundled config ([#2306](https://github.com/linz/basemaps/issues/2306)) ([700c729](https://github.com/linz/basemaps/commit/700c7295ddae15d436bbf1932757c88feb4686ea))
|
|
214
|
-
* **cli:** install playwright and basemaps/landing for the screenshot util ([#2286](https://github.com/linz/basemaps/issues/2286)) ([4e6559b](https://github.com/linz/basemaps/commit/4e6559be31da2f2eb578533fc8c88667ea27dca4))
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
# [6.29.0](https://github.com/linz/basemaps/compare/v6.28.1...v6.29.0) (2022-06-27)
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
### Bug Fixes
|
|
224
|
-
|
|
225
|
-
* upgrade sharp to fix the bad webp upscalling behaviour ([#2261](https://github.com/linz/basemaps/issues/2261)) ([68fe14c](https://github.com/linz/basemaps/commit/68fe14c0549a884c0c4ededa40eb2d4bd7098590))
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
### Features
|
|
229
|
-
|
|
230
|
-
* **lambda-tiler:** serve assets via /v1/sprites and /v1/fonts ([#2246](https://github.com/linz/basemaps/issues/2246)) ([0e04c63](https://github.com/linz/basemaps/commit/0e04c631363d5b540ae16bfc8c4c7910e1308412))
|
|
231
|
-
* **tiler-sharp:** extract regions before rescaling them when overzooming ([#2240](https://github.com/linz/basemaps/issues/2240)) ([fe9b858](https://github.com/linz/basemaps/commit/fe9b8588bbbe1aa8e719f7c8c645eada8c7e2876))
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
## [6.28.1](https://github.com/linz/basemaps/compare/v6.28.0...v6.28.1) (2022-06-07)
|
|
238
|
-
|
|
239
|
-
**Note:** Version bump only for package @basemaps/server
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
# [6.28.0](https://github.com/linz/basemaps/compare/v6.27.0...v6.28.0) (2022-06-06)
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
### Features
|
|
249
|
-
|
|
250
|
-
* **docker:** add a container of basemaps-server and basemaps-landing ([#2225](https://github.com/linz/basemaps/issues/2225)) ([13f8144](https://github.com/linz/basemaps/commit/13f814446de0b2896e0ccca620d4b0a017380c14))
|
|
251
|
-
* **server:** bundle basemaps-server cli so its easier to install ([#2218](https://github.com/linz/basemaps/issues/2218)) ([8457b66](https://github.com/linz/basemaps/commit/8457b66be6d0f54decf43b515bb78853cefbc8ed))
|
|
252
|
-
* **server:** provide a better error when loading configuration bundles ([#2222](https://github.com/linz/basemaps/issues/2222)) ([8318192](https://github.com/linz/basemaps/commit/83181920c8a9e061babd38a8ffd0dec93830dced))
|
|
253
|
-
* **sprites:** create sprites using sharp ([#2235](https://github.com/linz/basemaps/issues/2235)) ([e7b6a9e](https://github.com/linz/basemaps/commit/e7b6a9e9c95359dc866b40e7a6988837a71d9d96))
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
# [6.27.0](https://github.com/linz/basemaps/compare/v6.26.0...v6.27.0) (2022-05-29)
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
### Features
|
|
263
|
-
|
|
264
|
-
* **config:** add configuration parser and bundler ([#2200](https://github.com/linz/basemaps/issues/2200)) ([795e3f2](https://github.com/linz/basemaps/commit/795e3f224ee0b4cd1e66a242d05a1fd5357cae3a))
|
|
265
|
-
* **lambda-cog:** New lambda Cog for import api. ([#2207](https://github.com/linz/basemaps/issues/2207)) ([79f4ae7](https://github.com/linz/basemaps/commit/79f4ae70ea3fc16a37dd575b843a0b60a1365df4))
|
|
266
|
-
* **server:** use a bundled `@basemaps/landing` to serve static assets ([#2202](https://github.com/linz/basemaps/issues/2202)) ([c60f518](https://github.com/linz/basemaps/commit/c60f518893fe037a03f8bfd489c84d8427481678))
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
# [6.26.0](https://github.com/linz/basemaps/compare/v6.25.0...v6.26.0) (2022-05-12)
|
|
273
|
-
|
|
274
|
-
**Note:** Version bump only for package @basemaps/server
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
# [6.25.0](https://github.com/linz/basemaps/compare/v6.24.2...v6.25.0) (2022-05-11)
|
|
281
|
-
|
|
282
|
-
**Note:** Version bump only for package @basemaps/server
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
## [6.24.2](https://github.com/linz/basemaps/compare/v6.24.1...v6.24.2) (2022-04-20)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
### Bug Fixes
|
|
292
|
-
|
|
293
|
-
* **server:** indexing local tiffs should not crash ([#2152](https://github.com/linz/basemaps/issues/2152)) ([066f39f](https://github.com/linz/basemaps/commit/066f39f42bec2558353c03741ca2226028ac424a))
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
## [6.24.1](https://github.com/linz/basemaps/compare/v6.24.0...v6.24.1) (2022-04-07)
|
|
300
|
-
|
|
301
|
-
**Note:** Version bump only for package @basemaps/server
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
# [6.24.0](https://github.com/linz/basemaps/compare/v6.23.0...v6.24.0) (2022-04-05)
|
|
308
|
-
|
|
309
|
-
**Note:** Version bump only for package @basemaps/server
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
# [6.23.0](https://github.com/linz/basemaps/compare/v6.22.1...v6.23.0) (2022-04-04)
|
|
316
|
-
|
|
317
|
-
**Note:** Version bump only for package @basemaps/server
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
## [6.22.1](https://github.com/linz/basemaps/compare/v6.22.0...v6.22.1) (2022-03-23)
|
|
324
|
-
|
|
325
|
-
**Note:** Version bump only for package @basemaps/server
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
# [6.22.0](https://github.com/linz/basemaps/compare/v6.21.1...v6.22.0) (2022-03-20)
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
### Features
|
|
335
|
-
|
|
336
|
-
* **server:** support loading config from dynamodb ([#2119](https://github.com/linz/basemaps/issues/2119)) ([e550505](https://github.com/linz/basemaps/commit/e550505193df3cf148313e364c7c0670e16756e2))
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
## [6.21.1](https://github.com/linz/basemaps/compare/v6.21.0...v6.21.1) (2022-03-17)
|
|
343
|
-
|
|
344
|
-
**Note:** Version bump only for package @basemaps/server
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
# [6.21.0](https://github.com/linz/basemaps/compare/v6.20.0...v6.21.0) (2022-03-17)
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
### Reverts
|
|
354
|
-
|
|
355
|
-
* Revert "release: v6.21.0 (#2104)" (#2111) ([d07f8ab](https://github.com/linz/basemaps/commit/d07f8ab4037466b060bf7e83960737554ff064b4)), closes [#2104](https://github.com/linz/basemaps/issues/2104) [#2111](https://github.com/linz/basemaps/issues/2111)
|
|
356
|
-
* Revert "release: v6.22.0 (#2108)" (#2110) ([abcd2e4](https://github.com/linz/basemaps/commit/abcd2e4732a6d606eed865f526d6df2e4617aad3)), closes [#2108](https://github.com/linz/basemaps/issues/2108) [#2110](https://github.com/linz/basemaps/issues/2110)
|
|
357
|
-
* Revert "release: v6.21.0 (#2104)" (#2107) ([2c7e7f6](https://github.com/linz/basemaps/commit/2c7e7f6686a293995abdeb9604413808f2208bd6)), closes [#2104](https://github.com/linz/basemaps/issues/2104) [#2107](https://github.com/linz/basemaps/issues/2107)
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
# [6.20.0](https://github.com/linz/basemaps/compare/v6.19.0...v6.20.0) (2022-02-01)
|
|
364
|
-
|
|
365
|
-
**Note:** Version bump only for package @basemaps/server
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
# [6.19.0](https://github.com/linz/basemaps/compare/v6.18.1...v6.19.0) (2021-12-20)
|
|
372
|
-
|
|
373
|
-
**Note:** Version bump only for package @basemaps/server
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
# [6.18.0](https://github.com/linz/basemaps/compare/v6.17.0...v6.18.0) (2021-12-14)
|
|
380
|
-
|
|
381
|
-
**Note:** Version bump only for package @basemaps/server
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
# [6.17.0](https://github.com/linz/basemaps/compare/v6.16.1...v6.17.0) (2021-12-05)
|
|
388
|
-
|
|
389
|
-
**Note:** Version bump only for package @basemaps/server
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
## [6.16.1](https://github.com/linz/basemaps/compare/v6.16.0...v6.16.1) (2021-11-30)
|
|
396
|
-
|
|
397
|
-
**Note:** Version bump only for package @basemaps/server
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
# [6.16.0](https://github.com/linz/basemaps/compare/v6.15.0...v6.16.0) (2021-11-29)
|
|
404
|
-
|
|
405
|
-
**Note:** Version bump only for package @basemaps/server
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
# [6.15.0](https://github.com/linz/basemaps/compare/v6.14.2...v6.15.0) (2021-11-28)
|
|
412
|
-
|
|
413
|
-
**Note:** Version bump only for package @basemaps/server
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
## [6.12.1](https://github.com/linz/basemaps/compare/v6.12.0...v6.12.1) (2021-10-19)
|
|
420
|
-
|
|
421
|
-
**Note:** Version bump only for package @basemaps/server
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
# [6.12.0](https://github.com/linz/basemaps/compare/v6.11.0...v6.12.0) (2021-10-05)
|
|
428
|
-
|
|
429
|
-
**Note:** Version bump only for package @basemaps/server
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
# [6.11.0](https://github.com/linz/basemaps/compare/v6.10.1...v6.11.0) (2021-10-03)
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
### Features
|
|
439
|
-
|
|
440
|
-
* **server:** add ability to serve a folder full of tiffs ([#1889](https://github.com/linz/basemaps/issues/1889)) ([adefde1](https://github.com/linz/basemaps/commit/adefde176ce03db5c6c978d8b85a11fc7cd15693))
|
|
441
|
-
* **server:** use the lambda handler directly ([#1870](https://github.com/linz/basemaps/issues/1870)) ([408ff56](https://github.com/linz/basemaps/commit/408ff5654cc04aae35d05eb5bbc47a51f99ec5b2))
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
# [6.10.0](https://github.com/linz/basemaps/compare/v6.9.1...v6.10.0) (2021-09-22)
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
### Bug Fixes
|
|
451
|
-
|
|
452
|
-
* **lambda-tiler:** move to NZTM2000Quad for health check endpoint ([#1867](https://github.com/linz/basemaps/issues/1867)) ([d4613f0](https://github.com/linz/basemaps/commit/d4613f04f1081f785831488ea53bc8d8da7aae70))
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
### Features
|
|
456
|
-
|
|
457
|
-
* replace s3fs with chunkd/fs ([#1859](https://github.com/linz/basemaps/issues/1859)) ([9b6f2d3](https://github.com/linz/basemaps/commit/9b6f2d3609c336f96c2ae32246f241cb396e71c8))
|
|
458
|
-
* switch to esm modules ([#1857](https://github.com/linz/basemaps/issues/1857)) ([75bdff8](https://github.com/linz/basemaps/commit/75bdff8da35104f10f6b6ecf58a2c6006245af6e))
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
## [6.9.1](https://github.com/linz/basemaps/compare/v6.9.0...v6.9.1) (2021-09-09)
|
|
465
|
-
|
|
466
|
-
**Note:** Version bump only for package @basemaps/server
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
# [6.9.0](https://github.com/linz/basemaps/compare/v6.8.0...v6.9.0) (2021-09-09)
|
|
473
|
-
|
|
474
|
-
**Note:** Version bump only for package @basemaps/server
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
# [6.8.0](https://github.com/linz/basemaps/compare/v6.7.0...v6.8.0) (2021-09-01)
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
### Features
|
|
484
|
-
|
|
485
|
-
* **lambda-tiler:** remove `@basemaps/lambda` and replace with `@linzjs/lambda` ([#1821](https://github.com/linz/basemaps/issues/1821)) ([cb22b3d](https://github.com/linz/basemaps/commit/cb22b3d2c62b7430839f3e35c18dd96a162fb39a))
|
|
486
|
-
* **server:** create a standalone express server ([#1819](https://github.com/linz/basemaps/issues/1819)) ([83488af](https://github.com/linz/basemaps/commit/83488af658a3ed8f3080dd2ea9f120ac3abd2444))
|
package/build/bin.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
|
package/build/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAoE,MAAM,QAAQ,CAAC;AAOhG;;;IAGI;AACJ,eAAO,MAAM,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,CAQjC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;6JAyChC,CAAC"}
|
package/build/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,sBAAsB,EAKvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAyB,OAAO,EAAwB,MAAM,kBAAkB,CAAC;AAExF,MAAM,MAAM,aAAa,GAAG,kBAAkB,GAAG,mBAAmB,CAAC;AAErE,sCAAsC;AACtC,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,GAAG,EAAE,CAAC;CACd;AAED,qDAAqD;AACrD,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC,CA+CtG"}
|
package/build/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route.layers.d.ts","sourceRoot":"","sources":["../src/route.layers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAuC,MAAM,kBAAkB,CAAC;AAuB9G,wBAAgB,aAAa,CAAC,EAAE,EAAE,aAAa,GAAG;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACtD,CAcA;AAED,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,CAkEnF"}
|
package/build/server.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,OAAO,EAAoB,MAAM,kBAAkB,CAAC;AAKpF,OAAgB,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAKjF,OAAO,EAAc,aAAa,EAAE,MAAM,aAAa,CAAC;AAkBxD,wBAAsB,YAAY,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAiEjG"}
|