@aws-sdk/client-geo-maps 3.916.0 → 3.918.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/dist-cjs/index.js +10 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/GetTileCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +31 -0
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/package.json +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -231,6 +231,12 @@ const TravelMode = {
|
|
|
231
231
|
TRANSIT: "Transit",
|
|
232
232
|
TRUCK: "Truck",
|
|
233
233
|
};
|
|
234
|
+
const TileAdditionalFeature = {
|
|
235
|
+
CONTOUR_LINES: "ContourLines",
|
|
236
|
+
HILLSHADE: "Hillshade",
|
|
237
|
+
LOGISTICS: "Logistics",
|
|
238
|
+
TRANSIT: "Transit",
|
|
239
|
+
};
|
|
234
240
|
class ResourceNotFoundException extends GeoMapsServiceException {
|
|
235
241
|
name = "ResourceNotFoundException";
|
|
236
242
|
$fault = "client";
|
|
@@ -352,6 +358,7 @@ const se_GetTileCommand = async (input, context) => {
|
|
|
352
358
|
b.p("X", () => input.X, "{X}", false);
|
|
353
359
|
b.p("Y", () => input.Y, "{Y}", false);
|
|
354
360
|
const query = smithyClient.map({
|
|
361
|
+
[_af]: [() => input.AdditionalFeatures !== void 0, () => input[_AF] || []],
|
|
355
362
|
[_k]: [, input[_K]],
|
|
356
363
|
});
|
|
357
364
|
let body;
|
|
@@ -549,6 +556,7 @@ const deserializeMetadata = (output) => ({
|
|
|
549
556
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
550
557
|
cfId: output.headers["x-amz-cf-id"],
|
|
551
558
|
});
|
|
559
|
+
const _AF = "AdditionalFeatures";
|
|
552
560
|
const _BB = "BoundingBox";
|
|
553
561
|
const _BP = "BoundedPositions";
|
|
554
562
|
const _C = "Center";
|
|
@@ -576,6 +584,7 @@ const _TM = "TravelModes";
|
|
|
576
584
|
const _Tr = "Traffic";
|
|
577
585
|
const _W = "Width";
|
|
578
586
|
const _Z = "Zoom";
|
|
587
|
+
const _af = "additional-features";
|
|
579
588
|
const _bb = "bounding-box";
|
|
580
589
|
const _bp = "bounded-positions";
|
|
581
590
|
const _c = "center";
|
|
@@ -731,6 +740,7 @@ exports.ScaleBarUnit = ScaleBarUnit;
|
|
|
731
740
|
exports.StaticMapStyle = StaticMapStyle;
|
|
732
741
|
exports.Terrain = Terrain;
|
|
733
742
|
exports.ThrottlingException = ThrottlingException;
|
|
743
|
+
exports.TileAdditionalFeature = TileAdditionalFeature;
|
|
734
744
|
exports.Traffic = Traffic;
|
|
735
745
|
exports.TravelMode = TravelMode;
|
|
736
746
|
exports.ValidationException = ValidationException;
|
|
@@ -114,6 +114,12 @@ export const TravelMode = {
|
|
|
114
114
|
TRANSIT: "Transit",
|
|
115
115
|
TRUCK: "Truck",
|
|
116
116
|
};
|
|
117
|
+
export const TileAdditionalFeature = {
|
|
118
|
+
CONTOUR_LINES: "ContourLines",
|
|
119
|
+
HILLSHADE: "Hillshade",
|
|
120
|
+
LOGISTICS: "Logistics",
|
|
121
|
+
TRANSIT: "Transit",
|
|
122
|
+
};
|
|
117
123
|
export class ResourceNotFoundException extends __BaseException {
|
|
118
124
|
name = "ResourceNotFoundException";
|
|
119
125
|
$fault = "client";
|
|
@@ -82,6 +82,7 @@ export const se_GetTileCommand = async (input, context) => {
|
|
|
82
82
|
b.p("X", () => input.X, "{X}", false);
|
|
83
83
|
b.p("Y", () => input.Y, "{Y}", false);
|
|
84
84
|
const query = map({
|
|
85
|
+
[_af]: [() => input.AdditionalFeatures !== void 0, () => input[_AF] || []],
|
|
85
86
|
[_k]: [, input[_K]],
|
|
86
87
|
});
|
|
87
88
|
let body;
|
|
@@ -280,6 +281,7 @@ const deserializeMetadata = (output) => ({
|
|
|
280
281
|
cfId: output.headers["x-amz-cf-id"],
|
|
281
282
|
});
|
|
282
283
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
284
|
+
const _AF = "AdditionalFeatures";
|
|
283
285
|
const _BB = "BoundingBox";
|
|
284
286
|
const _BP = "BoundedPositions";
|
|
285
287
|
const _C = "Center";
|
|
@@ -307,6 +309,7 @@ const _TM = "TravelModes";
|
|
|
307
309
|
const _Tr = "Traffic";
|
|
308
310
|
const _W = "Width";
|
|
309
311
|
const _Z = "Zoom";
|
|
312
|
+
const _af = "additional-features";
|
|
310
313
|
const _bb = "bounding-box";
|
|
311
314
|
const _bp = "bounded-positions";
|
|
312
315
|
const _c = "center";
|
|
@@ -44,6 +44,9 @@ declare const GetTileCommand_base: {
|
|
|
44
44
|
* const config = {}; // type is GeoMapsClientConfig
|
|
45
45
|
* const client = new GeoMapsClient(config);
|
|
46
46
|
* const input = { // GetTileRequest
|
|
47
|
+
* AdditionalFeatures: [ // TileAdditionalFeatureList
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
47
50
|
* Tileset: "STRING_VALUE", // required
|
|
48
51
|
* Z: "STRING_VALUE", // required
|
|
49
52
|
* X: "STRING_VALUE", // required
|
|
@@ -545,10 +545,41 @@ export interface GetStyleDescriptorResponse {
|
|
|
545
545
|
*/
|
|
546
546
|
ETag?: string | undefined;
|
|
547
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* @public
|
|
550
|
+
* @enum
|
|
551
|
+
*/
|
|
552
|
+
export declare const TileAdditionalFeature: {
|
|
553
|
+
/**
|
|
554
|
+
* Map elevation contour lines.
|
|
555
|
+
*/
|
|
556
|
+
readonly CONTOUR_LINES: "ContourLines";
|
|
557
|
+
/**
|
|
558
|
+
* Map hillshading details for shading elevation changes.
|
|
559
|
+
*/
|
|
560
|
+
readonly HILLSHADE: "Hillshade";
|
|
561
|
+
/**
|
|
562
|
+
* Map logistics details, including advanced pois and road networks.
|
|
563
|
+
*/
|
|
564
|
+
readonly LOGISTICS: "Logistics";
|
|
565
|
+
/**
|
|
566
|
+
* Map transit details.
|
|
567
|
+
*/
|
|
568
|
+
readonly TRANSIT: "Transit";
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* @public
|
|
572
|
+
*/
|
|
573
|
+
export type TileAdditionalFeature = (typeof TileAdditionalFeature)[keyof typeof TileAdditionalFeature];
|
|
548
574
|
/**
|
|
549
575
|
* @public
|
|
550
576
|
*/
|
|
551
577
|
export interface GetTileRequest {
|
|
578
|
+
/**
|
|
579
|
+
* <p>A list of optional additional parameters such as map styles that can be requested for each result.</p>
|
|
580
|
+
* @public
|
|
581
|
+
*/
|
|
582
|
+
AdditionalFeatures?: TileAdditionalFeature[] | undefined;
|
|
552
583
|
/**
|
|
553
584
|
* <p>Specifies the desired tile set.</p> <p>Valid Values: <code>raster.satellite | vector.basemap</code> </p>
|
|
554
585
|
* @public
|
|
@@ -175,7 +175,16 @@ export interface GetStyleDescriptorResponse {
|
|
|
175
175
|
CacheControl?: string | undefined;
|
|
176
176
|
ETag?: string | undefined;
|
|
177
177
|
}
|
|
178
|
+
export declare const TileAdditionalFeature: {
|
|
179
|
+
readonly CONTOUR_LINES: "ContourLines";
|
|
180
|
+
readonly HILLSHADE: "Hillshade";
|
|
181
|
+
readonly LOGISTICS: "Logistics";
|
|
182
|
+
readonly TRANSIT: "Transit";
|
|
183
|
+
};
|
|
184
|
+
export type TileAdditionalFeature =
|
|
185
|
+
(typeof TileAdditionalFeature)[keyof typeof TileAdditionalFeature];
|
|
178
186
|
export interface GetTileRequest {
|
|
187
|
+
AdditionalFeatures?: TileAdditionalFeature[] | undefined;
|
|
179
188
|
Tileset: string | undefined;
|
|
180
189
|
Z: string | undefined;
|
|
181
190
|
X: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-geo-maps",
|
|
3
3
|
"description": "AWS SDK for JavaScript Geo Maps Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.918.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-geo-maps",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.916.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.918.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.914.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.914.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.914.0",
|