@basemaps/lambda-tiler 6.29.0 → 6.32.0
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/CHANGELOG.md +63 -0
- package/build/__tests__/config.data.d.ts +11 -0
- package/build/__tests__/config.data.d.ts.map +1 -0
- package/build/__tests__/config.data.js +112 -0
- package/build/__tests__/config.data.js.map +1 -0
- package/build/__tests__/index.test.js +5 -14
- package/build/__tests__/index.test.js.map +1 -0
- package/build/__tests__/tile.style.json.test.js +1 -0
- package/build/__tests__/tile.style.json.test.js.map +1 -0
- package/build/__tests__/wmts.capability.test.d.ts +1 -1
- package/build/__tests__/wmts.capability.test.d.ts.map +1 -1
- package/build/__tests__/wmts.capability.test.js +286 -125
- package/build/__tests__/wmts.capability.test.js.map +1 -0
- package/build/__tests__/xyz.util.d.ts +7 -11
- package/build/__tests__/xyz.util.d.ts.map +1 -1
- package/build/__tests__/xyz.util.js +14 -42
- package/build/__tests__/xyz.util.js.map +1 -0
- package/build/index.d.ts +0 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +68 -41
- package/build/index.js.map +1 -0
- package/build/routes/__tests__/attribution.test.js +351 -399
- package/build/routes/__tests__/attribution.test.js.map +1 -0
- package/build/routes/__tests__/fonts.test.js +17 -3
- package/build/routes/__tests__/fonts.test.js.map +1 -0
- package/build/routes/__tests__/health.test.js +17 -13
- package/build/routes/__tests__/health.test.js.map +1 -0
- package/build/routes/__tests__/imagery.test.js +1 -0
- package/build/routes/__tests__/imagery.test.js.map +1 -0
- package/build/routes/__tests__/memory.fs.js +1 -0
- package/build/routes/__tests__/memory.fs.js.map +1 -0
- package/build/routes/__tests__/sprites.test.js +7 -0
- package/build/routes/__tests__/sprites.test.js.map +1 -0
- package/build/routes/__tests__/tile.json.test.d.ts +2 -0
- package/build/routes/__tests__/tile.json.test.d.ts.map +1 -0
- package/build/routes/__tests__/tile.json.test.js +124 -0
- package/build/routes/__tests__/tile.json.test.js.map +1 -0
- package/build/routes/__tests__/tile.style.json.test.d.ts +2 -0
- package/build/routes/__tests__/tile.style.json.test.d.ts.map +1 -0
- package/build/routes/__tests__/tile.style.json.test.js +95 -0
- package/build/routes/__tests__/tile.style.json.test.js.map +1 -0
- package/build/routes/__tests__/wmts.test.js +37 -27
- package/build/routes/__tests__/wmts.test.js.map +1 -0
- package/build/{__tests__ → routes/__tests__}/xyz.test.d.ts +0 -0
- package/build/routes/__tests__/xyz.test.d.ts.map +1 -0
- package/build/routes/__tests__/xyz.test.js +99 -0
- package/build/routes/__tests__/xyz.test.js.map +1 -0
- package/build/routes/attribution.d.ts +7 -5
- package/build/routes/attribution.d.ts.map +1 -1
- package/build/routes/attribution.js +50 -91
- package/build/routes/attribution.js.map +1 -0
- package/build/routes/fonts.d.ts +1 -1
- package/build/routes/fonts.d.ts.map +1 -1
- package/build/routes/fonts.js +33 -10
- package/build/routes/fonts.js.map +1 -0
- package/build/routes/health.d.ts +3 -3
- package/build/routes/health.d.ts.map +1 -1
- package/build/routes/health.js +16 -13
- package/build/routes/health.js.map +1 -0
- package/build/routes/imagery.d.ts +8 -1
- package/build/routes/imagery.d.ts.map +1 -1
- package/build/routes/imagery.js +17 -17
- package/build/routes/imagery.js.map +1 -0
- package/build/routes/ping.d.ts +3 -0
- package/build/routes/ping.d.ts.map +1 -0
- package/build/routes/ping.js +7 -0
- package/build/routes/ping.js.map +1 -0
- package/build/routes/sprites.d.ts.map +1 -1
- package/build/routes/sprites.js +22 -22
- package/build/routes/sprites.js.map +1 -0
- package/build/routes/tile.json.d.ts +7 -1
- package/build/routes/tile.json.d.ts.map +1 -1
- package/build/routes/tile.json.js +19 -22
- package/build/routes/tile.json.js.map +1 -0
- package/build/routes/tile.style.json.d.ts +6 -1
- package/build/routes/tile.style.json.d.ts.map +1 -1
- package/build/routes/tile.style.json.js +11 -13
- package/build/routes/tile.style.json.js.map +1 -0
- package/build/routes/tile.wmts.d.ts +9 -3
- package/build/routes/tile.wmts.d.ts.map +1 -1
- package/build/routes/tile.wmts.js +37 -50
- package/build/routes/tile.wmts.js.map +1 -0
- package/build/routes/tile.xyz.d.ts +14 -4
- package/build/routes/tile.xyz.d.ts.map +1 -1
- package/build/routes/tile.xyz.js +22 -17
- package/build/routes/tile.xyz.js.map +1 -0
- package/build/routes/tile.xyz.raster.d.ts +11 -0
- package/build/routes/tile.xyz.raster.d.ts.map +1 -0
- package/build/routes/tile.xyz.raster.js +90 -0
- package/build/routes/tile.xyz.raster.js.map +1 -0
- package/build/routes/tile.xyz.vector.d.ts +8 -0
- package/build/routes/tile.xyz.vector.d.ts.map +1 -0
- package/build/routes/tile.xyz.vector.js +46 -0
- package/build/routes/tile.xyz.vector.js.map +1 -0
- package/build/routes/version.d.ts +3 -0
- package/build/routes/version.d.ts.map +1 -0
- package/build/routes/version.js +9 -0
- package/build/routes/version.js.map +1 -0
- package/build/util/__test__/validate.test.d.ts +2 -0
- package/build/util/__test__/validate.test.d.ts.map +1 -0
- package/build/util/__test__/validate.test.js +66 -0
- package/build/util/__test__/validate.test.js.map +1 -0
- package/build/util/cotar.serve.d.ts +20 -0
- package/build/util/cotar.serve.d.ts.map +1 -0
- package/build/util/cotar.serve.js +41 -0
- package/build/util/cotar.serve.js.map +1 -0
- package/build/util/etag.d.ts +6 -0
- package/build/util/etag.d.ts.map +1 -0
- package/build/util/etag.js +20 -0
- package/build/util/etag.js.map +1 -0
- package/build/util/response.d.ts +4 -0
- package/build/util/response.d.ts.map +1 -0
- package/build/util/response.js +4 -0
- package/build/util/response.js.map +1 -0
- package/build/util/source.cache.d.ts +28 -0
- package/build/util/source.cache.d.ts.map +1 -0
- package/build/util/source.cache.js +53 -0
- package/build/util/source.cache.js.map +1 -0
- package/build/{source.tracer.d.ts → util/source.tracer.d.ts} +1 -0
- package/build/util/source.tracer.d.ts.map +1 -0
- package/build/{source.tracer.js → util/source.tracer.js} +4 -0
- package/build/util/source.tracer.js.map +1 -0
- package/build/util/swapping.lru.d.ts +21 -0
- package/build/util/swapping.lru.d.ts.map +1 -0
- package/build/util/swapping.lru.js +56 -0
- package/build/util/swapping.lru.js.map +1 -0
- package/build/util/validate.d.ts +46 -0
- package/build/util/validate.d.ts.map +1 -0
- package/build/util/validate.js +107 -0
- package/build/util/validate.js.map +1 -0
- package/build/wmts.capability.d.ts +27 -13
- package/build/wmts.capability.d.ts.map +1 -1
- package/build/wmts.capability.js +156 -55
- package/build/wmts.capability.js.map +1 -0
- package/dist/index.js +89 -73
- package/dist/node_modules/.package-lock.json +1 -1
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/package.json +10 -10
- package/src/__tests__/config.data.ts +120 -0
- package/src/__tests__/index.test.ts +4 -20
- package/src/__tests__/wmts.capability.test.ts +312 -139
- package/src/__tests__/xyz.util.ts +17 -45
- package/src/index.ts +75 -41
- package/src/routes/__tests__/attribution.test.ts +356 -403
- package/src/routes/__tests__/fonts.test.ts +18 -3
- package/src/routes/__tests__/health.test.ts +17 -13
- package/src/routes/__tests__/sprites.test.ts +6 -1
- package/src/routes/__tests__/tile.json.test.ts +145 -0
- package/src/routes/__tests__/tile.style.json.test.ts +105 -0
- package/src/routes/__tests__/wmts.test.ts +44 -34
- package/src/routes/__tests__/xyz.test.ts +119 -0
- package/src/routes/attribution.ts +59 -111
- package/src/routes/fonts.ts +32 -10
- package/src/routes/health.ts +17 -16
- package/src/routes/imagery.ts +18 -15
- package/src/routes/ping.ts +8 -0
- package/src/routes/sprites.ts +20 -22
- package/src/routes/tile.json.ts +24 -19
- package/src/routes/tile.style.json.ts +15 -12
- package/src/routes/tile.wmts.ts +41 -44
- package/src/routes/tile.xyz.raster.ts +106 -0
- package/src/routes/tile.xyz.ts +31 -16
- package/src/routes/tile.xyz.vector.ts +47 -0
- package/src/routes/version.ts +8 -0
- package/src/util/__test__/validate.test.ts +74 -0
- package/src/util/cotar.serve.ts +46 -0
- package/src/util/etag.ts +20 -0
- package/src/util/response.ts +4 -0
- package/src/util/source.cache.ts +71 -0
- package/src/{source.tracer.ts → util/source.tracer.ts} +4 -0
- package/src/util/swapping.lru.ts +63 -0
- package/src/util/validate.ts +126 -0
- package/src/wmts.capability.ts +170 -68
- package/tsconfig.tsbuildinfo +1 -1
- package/build/__tests__/route.test.d.ts +0 -2
- package/build/__tests__/route.test.d.ts.map +0 -1
- package/build/__tests__/route.test.js +0 -20
- package/build/__tests__/tiff.cache.test.d.ts +0 -2
- package/build/__tests__/tiff.cache.test.d.ts.map +0 -1
- package/build/__tests__/tiff.cache.test.js +0 -58
- package/build/__tests__/tile.cache.key.test.d.ts +0 -2
- package/build/__tests__/tile.cache.key.test.d.ts.map +0 -1
- package/build/__tests__/tile.cache.key.test.js +0 -48
- package/build/__tests__/tile.set.cache.test.d.ts +0 -2
- package/build/__tests__/tile.set.cache.test.d.ts.map +0 -1
- package/build/__tests__/tile.set.cache.test.js +0 -123
- package/build/__tests__/tile.set.test.d.ts +0 -2
- package/build/__tests__/tile.set.test.d.ts.map +0 -1
- package/build/__tests__/tile.set.test.js +0 -11
- package/build/__tests__/xyz.test.d.ts.map +0 -1
- package/build/__tests__/xyz.test.js +0 -306
- package/build/api.key.d.ts +0 -2
- package/build/api.key.d.ts.map +0 -1
- package/build/api.key.js +0 -23
- package/build/cli/dump.d.ts +0 -2
- package/build/cli/dump.d.ts.map +0 -1
- package/build/cli/dump.js +0 -47
- package/build/cli/tile.set.local.d.ts +0 -12
- package/build/cli/tile.set.local.d.ts.map +0 -1
- package/build/cli/tile.set.local.js +0 -39
- package/build/router.d.ts +0 -15
- package/build/router.d.ts.map +0 -1
- package/build/router.js +0 -49
- package/build/routes/api.d.ts +0 -5
- package/build/routes/api.d.ts.map +0 -1
- package/build/routes/api.js +0 -16
- package/build/routes/esri/rest.d.ts +0 -10
- package/build/routes/esri/rest.d.ts.map +0 -1
- package/build/routes/esri/rest.js +0 -87
- package/build/routes/response.d.ts +0 -4
- package/build/routes/response.d.ts.map +0 -1
- package/build/routes/response.js +0 -3
- package/build/routes/tile.d.ts +0 -3
- package/build/routes/tile.d.ts.map +0 -1
- package/build/routes/tile.etag.d.ts +0 -11
- package/build/routes/tile.etag.d.ts.map +0 -1
- package/build/routes/tile.etag.js +0 -29
- package/build/routes/tile.js +0 -27
- package/build/source.tracer.d.ts.map +0 -1
- package/build/tiff.cache.d.ts +0 -17
- package/build/tiff.cache.d.ts.map +0 -1
- package/build/tiff.cache.js +0 -45
- package/build/tile.set.cache.d.ts +0 -21
- package/build/tile.set.cache.d.ts.map +0 -1
- package/build/tile.set.cache.js +0 -100
- package/build/tile.set.d.ts +0 -4
- package/build/tile.set.d.ts.map +0 -1
- package/build/tile.set.js +0 -1
- package/build/tile.set.raster.d.ts +0 -49
- package/build/tile.set.raster.d.ts.map +0 -1
- package/build/tile.set.raster.js +0 -186
- package/build/tile.set.vector.d.ts +0 -25
- package/build/tile.set.vector.d.ts.map +0 -1
- package/build/tile.set.vector.js +0 -71
- package/build/validate.d.ts +0 -16
- package/build/validate.d.ts.map +0 -1
- package/build/validate.js +0 -31
- package/src/__tests__/route.test.ts +0 -24
- package/src/__tests__/tiff.cache.test.ts +0 -73
- package/src/__tests__/tile.cache.key.test.ts +0 -56
- package/src/__tests__/tile.set.cache.test.ts +0 -146
- package/src/__tests__/tile.set.test.ts +0 -12
- package/src/__tests__/xyz.test.ts +0 -362
- package/src/api.key.ts +0 -23
- package/src/cli/dump.ts +0 -61
- package/src/cli/tile.set.local.ts +0 -51
- package/src/router.ts +0 -58
- package/src/routes/api.ts +0 -19
- package/src/routes/esri/rest.ts +0 -90
- package/src/routes/response.ts +0 -4
- package/src/routes/tile.etag.ts +0 -36
- package/src/routes/tile.ts +0 -23
- package/src/tiff.cache.ts +0 -51
- package/src/tile.set.cache.ts +0 -111
- package/src/tile.set.raster.ts +0 -228
- package/src/tile.set.ts +0 -4
- package/src/tile.set.vector.ts +0 -79
- package/src/validate.ts +0 -32
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { ConfigProvider } from '@basemaps/config';
|
|
2
|
-
import { TileMatrixSet } from '@basemaps/geo';
|
|
3
1
|
import { LogConfig } from '@basemaps/shared';
|
|
4
|
-
import { LambdaAlbRequest, LambdaHttpRequest } from '@linzjs/lambda';
|
|
2
|
+
import { LambdaAlbRequest, LambdaHttpRequest, LambdaUrlRequest } from '@linzjs/lambda';
|
|
5
3
|
import { Context } from 'aws-lambda';
|
|
6
|
-
import { TileSetRaster } from '../tile.set.raster.js';
|
|
7
|
-
import { TileSetVector } from '../tile.set.vector.js';
|
|
8
4
|
|
|
9
5
|
export function mockRequest(path: string, method = 'get', headers: Record<string, string> = {}): LambdaHttpRequest {
|
|
10
6
|
return new LambdaAlbRequest(
|
|
11
7
|
{
|
|
12
8
|
requestContext: null as any,
|
|
13
9
|
httpMethod: method.toUpperCase(),
|
|
14
|
-
path,
|
|
10
|
+
path: encodeURI(path),
|
|
15
11
|
headers,
|
|
16
12
|
body: null,
|
|
17
13
|
isBase64Encoded: false,
|
|
@@ -21,45 +17,21 @@ export function mockRequest(path: string, method = 'get', headers: Record<string
|
|
|
21
17
|
);
|
|
22
18
|
}
|
|
23
19
|
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
export function mockUrlRequest(path: string, query = '', headers: Record<string, unknown> = {}): LambdaHttpRequest {
|
|
21
|
+
return new LambdaUrlRequest(
|
|
22
|
+
{
|
|
23
|
+
requestContext: { http: { method: 'GET' } },
|
|
24
|
+
headers,
|
|
25
|
+
rawPath: encodeURI(path),
|
|
26
|
+
rawQueryString: query,
|
|
27
|
+
isBase64Encoded: false,
|
|
28
|
+
} as any,
|
|
29
|
+
{} as Context,
|
|
30
|
+
LogConfig.get(),
|
|
31
|
+
);
|
|
36
32
|
}
|
|
37
33
|
|
|
38
|
-
export const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
updatedAt: Date.now(),
|
|
42
|
-
version: 1,
|
|
43
|
-
serviceIdentification: {
|
|
44
|
-
accessConstraints: 'the accessConstraints',
|
|
45
|
-
description: 'the description',
|
|
46
|
-
fees: 'the fees',
|
|
47
|
-
title: 'the title',
|
|
48
|
-
},
|
|
49
|
-
serviceProvider: {
|
|
50
|
-
contact: {
|
|
51
|
-
address: {
|
|
52
|
-
city: 'the city',
|
|
53
|
-
country: 'the country',
|
|
54
|
-
deliveryPoint: 'the deliveryPoint',
|
|
55
|
-
email: 'email address',
|
|
56
|
-
postalCode: 'the postalCode',
|
|
57
|
-
},
|
|
58
|
-
individualName: 'the contact name',
|
|
59
|
-
phone: 'the phone',
|
|
60
|
-
position: 'the position',
|
|
61
|
-
},
|
|
62
|
-
name: 'the name',
|
|
63
|
-
site: 'https://example.provider.com',
|
|
64
|
-
},
|
|
34
|
+
export const Api = {
|
|
35
|
+
key: 'd01f7w7rnhdzg0p7fyrc9v9ard1',
|
|
36
|
+
header: { 'x-linz-api-key': 'd01f7w7rnhdzg0p7fyrc9v9ard1' },
|
|
65
37
|
};
|
package/src/index.ts
CHANGED
|
@@ -1,59 +1,93 @@
|
|
|
1
|
-
import { lf, LambdaHttpRequest, LambdaHttpResponse } from '@linzjs/lambda';
|
|
2
1
|
import { LogConfig } from '@basemaps/shared';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Tiles } from './routes/tile.js';
|
|
6
|
-
import { Router } from './router.js';
|
|
7
|
-
import { createHash } from 'crypto';
|
|
8
|
-
import { Imagery } from './routes/imagery.js';
|
|
9
|
-
import { Esri } from './routes/esri/rest.js';
|
|
10
|
-
import { St } from './source.tracer.js';
|
|
11
|
-
import { spriteGet } from './routes/sprites.js';
|
|
2
|
+
import { LambdaHttpResponse, LambdaUrlRequest, lf } from '@linzjs/lambda';
|
|
3
|
+
import { tileAttributionGet } from './routes/attribution.js';
|
|
12
4
|
import { fontGet, fontList } from './routes/fonts.js';
|
|
5
|
+
import { healthGet } from './routes/health.js';
|
|
6
|
+
import { imageryGet } from './routes/imagery.js';
|
|
7
|
+
import { pingGet } from './routes/ping.js';
|
|
8
|
+
import { spriteGet } from './routes/sprites.js';
|
|
9
|
+
import { tileJsonGet } from './routes/tile.json.js';
|
|
10
|
+
import { styleJsonGet } from './routes/tile.style.json.js';
|
|
11
|
+
import { wmtsCapabilitiesGet } from './routes/tile.wmts.js';
|
|
12
|
+
import { tileXyzGet } from './routes/tile.xyz.js';
|
|
13
|
+
import { versionGet } from './routes/version.js';
|
|
14
|
+
import { NotFound } from './util/response.js';
|
|
15
|
+
import { CoSources } from './util/source.cache.js';
|
|
16
|
+
import { St } from './util/source.tracer.js';
|
|
13
17
|
|
|
14
|
-
const
|
|
18
|
+
export const handler = lf.http(LogConfig.get());
|
|
15
19
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
app.get('version', Version);
|
|
19
|
-
app.get('tiles', Tiles);
|
|
20
|
-
app.get('imagery', Imagery);
|
|
21
|
-
app.get('esri', Esri);
|
|
20
|
+
handler.router.hook('request', (req) => {
|
|
21
|
+
req.set('name', 'LambdaTiler');
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
export async function handleRequest(req: LambdaHttpRequest): Promise<LambdaHttpResponse> {
|
|
25
|
-
// Reset the request tracing
|
|
23
|
+
// Reset the request tracing before every request
|
|
26
24
|
St.reset();
|
|
25
|
+
});
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
if (
|
|
30
|
-
slowTimer = setTimeout(() => req.log.warn(req.logContext, 'Lambda:Slow'), 10_000);
|
|
31
|
-
slowTimer.unref();
|
|
32
|
-
|
|
33
|
-
req.set('name', 'LambdaTiler');
|
|
34
|
-
try {
|
|
35
|
-
const apiKey = Router.apiKey(req);
|
|
36
|
-
if (apiKey != null) {
|
|
37
|
-
const apiKeyHash = createHash('sha256').update(apiKey).digest('base64');
|
|
38
|
-
req.set('api', apiKeyHash);
|
|
39
|
-
}
|
|
40
|
-
const ret = await app.handle(req);
|
|
41
|
-
|
|
27
|
+
handler.router.hook('response', (req, res) => {
|
|
28
|
+
if (St.requests.length > 0) {
|
|
42
29
|
// TODO this could be relaxed to every say 5% of requests if logging gets too verbose.
|
|
43
30
|
req.set('requests', St.requests.slice(0, 100)); // limit to 100 requests (some tiles need 100s of requests)
|
|
44
31
|
req.set('requestCount', St.requests.length);
|
|
32
|
+
}
|
|
33
|
+
// Log the source cache hit/miss ratio
|
|
34
|
+
req.set('sources', {
|
|
35
|
+
hits: CoSources.cache.hits,
|
|
36
|
+
misses: CoSources.cache.misses,
|
|
37
|
+
size: CoSources.cache.currentSize,
|
|
38
|
+
resets: CoSources.cache.resets,
|
|
39
|
+
cacheA: CoSources.cache.cacheA.size,
|
|
40
|
+
cacheB: CoSources.cache.cacheB.size,
|
|
41
|
+
});
|
|
45
42
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
slowTimer = null;
|
|
43
|
+
// FunctionURLs automatically inject CORS responses for us
|
|
44
|
+
if (!(req instanceof LambdaUrlRequest) && req.headers.has('origin')) {
|
|
45
|
+
res.header('access-control-allow-origin', '*');
|
|
50
46
|
}
|
|
51
|
-
}
|
|
47
|
+
});
|
|
52
48
|
|
|
53
|
-
|
|
49
|
+
// CORS is handled by function url hook so just return ok if the route exists
|
|
50
|
+
handler.router.options('*', (req) => {
|
|
51
|
+
const route = handler.router.router.find('GET', req.path);
|
|
52
|
+
if (route == null) return NotFound();
|
|
53
|
+
return LambdaHttpResponse.ok();
|
|
54
|
+
});
|
|
54
55
|
|
|
56
|
+
// TODO some internal health checks hit these routes, we should change them all to point at /v1/
|
|
57
|
+
handler.router.get('/ping', pingGet);
|
|
58
|
+
handler.router.get('/health', healthGet);
|
|
59
|
+
handler.router.get('/version', versionGet);
|
|
60
|
+
|
|
61
|
+
handler.router.get('/v1/ping', pingGet);
|
|
62
|
+
handler.router.get('/v1/health', healthGet);
|
|
63
|
+
handler.router.get('/v1/version', versionGet);
|
|
64
|
+
|
|
65
|
+
// Image Metadata
|
|
66
|
+
handler.router.get('/v1/imagery/:imageryId/:fileName', imageryGet);
|
|
67
|
+
|
|
68
|
+
// Sprites
|
|
55
69
|
handler.router.get('/v1/sprites/:spriteName', spriteGet);
|
|
70
|
+
|
|
71
|
+
// Fonts
|
|
56
72
|
handler.router.get('/v1/fonts.json', fontList);
|
|
57
73
|
handler.router.get('/v1/fonts/:fontStack/:range.pbf', fontGet);
|
|
58
74
|
|
|
59
|
-
|
|
75
|
+
// StyleJSON
|
|
76
|
+
handler.router.get('/v1/styles/:styleName.json', styleJsonGet);
|
|
77
|
+
/** @deprecated 2022-07-22 all styles should be being served from /v1/styles/:styleName.json */
|
|
78
|
+
handler.router.get('/v1/tiles/:tileSet/:tileMatrix/style/:styleName.json', styleJsonGet);
|
|
79
|
+
|
|
80
|
+
// TileJSON
|
|
81
|
+
handler.router.get('/v1/tiles/:tileSet/:tileMatrix/tile.json', tileJsonGet);
|
|
82
|
+
|
|
83
|
+
// Tiles
|
|
84
|
+
handler.router.get('/v1/tiles/:tileSet/:tileMatrix/:z/:x/:y.:tileType', tileXyzGet);
|
|
85
|
+
|
|
86
|
+
// Attribution
|
|
87
|
+
handler.router.get('/v1/tiles/:tileSet/:tileMatrix/attribution.json', tileAttributionGet);
|
|
88
|
+
handler.router.get('/v1/attribution/:tileSet/:tileMatrix/summary.json', tileAttributionGet);
|
|
89
|
+
|
|
90
|
+
// WMTS Capabilities
|
|
91
|
+
handler.router.get('/v1/tiles/:tileSet/:tileMatrix/WMTSCapabilities.xml', wmtsCapabilitiesGet);
|
|
92
|
+
handler.router.get('/v1/tiles/:tileSet/WMTSCapabilities.xml', wmtsCapabilitiesGet);
|
|
93
|
+
handler.router.get('/v1/tiles/WMTSCapabilities.xml', wmtsCapabilitiesGet);
|