@azure-rest/maps-render 2.0.0-beta.1 → 2.0.0-beta.3
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 +53 -0
- package/LICENSE +4 -4
- package/README.md +48 -34
- package/dist/browser/createMultiCollection.d.ts +7 -0
- package/dist/browser/createMultiCollection.d.ts.map +1 -0
- package/dist/browser/createPathQuery.d.ts +117 -0
- package/dist/browser/createPathQuery.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/createPathQuery.js +42 -25
- package/dist/browser/createPathQuery.js.map +1 -0
- package/dist/browser/createPinsQuery.d.ts +102 -0
- package/dist/browser/createPinsQuery.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/createPinsQuery.js +44 -25
- package/dist/browser/createPinsQuery.js.map +1 -0
- package/dist/browser/generated/clientDefinitions.d.ts +131 -0
- package/dist/browser/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/generated/clientDefinitions.js +4 -0
- package/dist/browser/generated/clientDefinitions.js.map +1 -0
- package/dist/browser/generated/index.d.ts +9 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/dist/browser/generated/index.js +11 -0
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/isUnexpected.d.ts +11 -0
- package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
- package/dist/browser/generated/isUnexpected.js +78 -0
- package/dist/browser/generated/isUnexpected.js.map +1 -0
- package/dist/browser/generated/logger.d.ts +2 -0
- package/dist/browser/generated/logger.d.ts.map +1 -0
- package/dist/browser/generated/logger.js +5 -0
- package/dist/browser/generated/logger.js.map +1 -0
- package/dist/browser/generated/mapsRenderClient.d.ts +15 -0
- package/dist/browser/generated/mapsRenderClient.d.ts.map +1 -0
- package/dist/browser/generated/mapsRenderClient.js +44 -0
- package/dist/browser/generated/mapsRenderClient.js.map +1 -0
- package/dist/browser/generated/outputModels.d.ts +93 -0
- package/dist/browser/generated/outputModels.d.ts.map +1 -0
- package/dist/browser/generated/outputModels.js +4 -0
- package/dist/browser/generated/outputModels.js.map +1 -0
- package/dist/browser/generated/parameters.d.ts +384 -0
- package/dist/browser/generated/parameters.d.ts.map +1 -0
- package/dist/browser/generated/parameters.js +4 -0
- package/dist/browser/generated/parameters.js.map +1 -0
- package/dist/browser/generated/responses.d.ts +248 -0
- package/dist/browser/generated/responses.d.ts.map +1 -0
- package/dist/browser/generated/responses.js +4 -0
- package/dist/browser/generated/responses.js.map +1 -0
- package/dist/browser/index.d.ts +7 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +9 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/mapsRender.d.ts +53 -0
- package/dist/browser/mapsRender.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/mapsRender.js +1 -1
- package/dist/browser/mapsRender.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/positionToTileXY.d.ts +47 -0
- package/dist/browser/positionToTileXY.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/positionToTileXY.js +24 -3
- package/dist/browser/positionToTileXY.js.map +1 -0
- package/dist/commonjs/createMultiCollection.d.ts +7 -0
- package/dist/commonjs/createMultiCollection.d.ts.map +1 -0
- package/dist/commonjs/createMultiCollection.js +16 -0
- package/dist/commonjs/createMultiCollection.js.map +1 -0
- package/dist/commonjs/createPathQuery.d.ts +117 -0
- package/dist/commonjs/createPathQuery.d.ts.map +1 -0
- package/dist/commonjs/createPathQuery.js +117 -0
- package/dist/commonjs/createPathQuery.js.map +1 -0
- package/dist/commonjs/createPinsQuery.d.ts +102 -0
- package/dist/commonjs/createPinsQuery.d.ts.map +1 -0
- package/dist/commonjs/createPinsQuery.js +96 -0
- package/dist/commonjs/createPinsQuery.js.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts +131 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.js +5 -0
- package/dist/commonjs/generated/clientDefinitions.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +9 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +14 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/isUnexpected.d.ts +11 -0
- package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/generated/isUnexpected.js +81 -0
- package/dist/commonjs/generated/isUnexpected.js.map +1 -0
- package/dist/commonjs/generated/logger.d.ts +2 -0
- package/dist/commonjs/generated/logger.d.ts.map +1 -0
- package/dist/commonjs/generated/logger.js +8 -0
- package/dist/commonjs/generated/logger.js.map +1 -0
- package/dist/commonjs/generated/mapsRenderClient.d.ts +15 -0
- package/dist/commonjs/generated/mapsRenderClient.d.ts.map +1 -0
- package/dist/commonjs/generated/mapsRenderClient.js +47 -0
- package/dist/commonjs/generated/mapsRenderClient.js.map +1 -0
- package/dist/commonjs/generated/outputModels.d.ts +93 -0
- package/dist/commonjs/generated/outputModels.d.ts.map +1 -0
- package/dist/commonjs/generated/outputModels.js +5 -0
- package/dist/commonjs/generated/outputModels.js.map +1 -0
- package/dist/commonjs/generated/parameters.d.ts +384 -0
- package/dist/commonjs/generated/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/parameters.js +5 -0
- package/dist/commonjs/generated/parameters.js.map +1 -0
- package/dist/commonjs/generated/responses.d.ts +248 -0
- package/dist/commonjs/generated/responses.d.ts.map +1 -0
- package/dist/commonjs/generated/responses.js +5 -0
- package/dist/commonjs/generated/responses.js.map +1 -0
- package/dist/commonjs/index.d.ts +7 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/mapsRender.d.ts +53 -0
- package/dist/commonjs/mapsRender.d.ts.map +1 -0
- package/dist/commonjs/mapsRender.js +44 -0
- package/dist/commonjs/mapsRender.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/positionToTileXY.d.ts +47 -0
- package/dist/commonjs/positionToTileXY.d.ts.map +1 -0
- package/dist/commonjs/positionToTileXY.js +68 -0
- package/dist/commonjs/positionToTileXY.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/createMultiCollection.d.ts +7 -0
- package/dist/esm/createMultiCollection.d.ts.map +1 -0
- package/dist/esm/createMultiCollection.js +13 -0
- package/dist/esm/createMultiCollection.js.map +1 -0
- package/dist/esm/createPathQuery.d.ts +117 -0
- package/dist/esm/createPathQuery.d.ts.map +1 -0
- package/dist/esm/createPathQuery.js +114 -0
- package/dist/esm/createPathQuery.js.map +1 -0
- package/dist/esm/createPinsQuery.d.ts +102 -0
- package/dist/esm/createPinsQuery.d.ts.map +1 -0
- package/dist/esm/createPinsQuery.js +93 -0
- package/dist/esm/createPinsQuery.js.map +1 -0
- package/dist/esm/generated/clientDefinitions.d.ts +131 -0
- package/dist/esm/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/generated/clientDefinitions.js +4 -0
- package/dist/esm/generated/clientDefinitions.js.map +1 -0
- package/dist/esm/generated/index.d.ts +9 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +11 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/isUnexpected.d.ts +11 -0
- package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
- package/dist/esm/generated/isUnexpected.js +78 -0
- package/dist/esm/generated/isUnexpected.js.map +1 -0
- package/dist/esm/generated/logger.d.ts +2 -0
- package/dist/esm/generated/logger.d.ts.map +1 -0
- package/dist/esm/generated/logger.js +5 -0
- package/dist/esm/generated/logger.js.map +1 -0
- package/dist/esm/generated/mapsRenderClient.d.ts +15 -0
- package/dist/esm/generated/mapsRenderClient.d.ts.map +1 -0
- package/dist/esm/generated/mapsRenderClient.js +44 -0
- package/dist/esm/generated/mapsRenderClient.js.map +1 -0
- package/dist/esm/generated/outputModels.d.ts +93 -0
- package/dist/esm/generated/outputModels.d.ts.map +1 -0
- package/dist/esm/generated/outputModels.js +4 -0
- package/dist/esm/generated/outputModels.js.map +1 -0
- package/dist/esm/generated/parameters.d.ts +384 -0
- package/dist/esm/generated/parameters.d.ts.map +1 -0
- package/dist/esm/generated/parameters.js +4 -0
- package/dist/esm/generated/parameters.js.map +1 -0
- package/dist/esm/generated/responses.d.ts +248 -0
- package/dist/esm/generated/responses.d.ts.map +1 -0
- package/dist/esm/generated/responses.js +4 -0
- package/dist/esm/generated/responses.js.map +1 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/mapsRender.d.ts +53 -0
- package/dist/esm/mapsRender.d.ts.map +1 -0
- package/dist/esm/mapsRender.js +40 -0
- package/dist/esm/mapsRender.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/positionToTileXY.d.ts +47 -0
- package/dist/esm/positionToTileXY.d.ts.map +1 -0
- package/dist/esm/positionToTileXY.js +65 -0
- package/dist/esm/positionToTileXY.js.map +1 -0
- package/dist/react-native/createMultiCollection.d.ts +7 -0
- package/dist/react-native/createMultiCollection.d.ts.map +1 -0
- package/dist/react-native/createMultiCollection.js +13 -0
- package/dist/react-native/createMultiCollection.js.map +1 -0
- package/dist/react-native/createPathQuery.d.ts +117 -0
- package/dist/react-native/createPathQuery.d.ts.map +1 -0
- package/dist/react-native/createPathQuery.js +114 -0
- package/dist/react-native/createPathQuery.js.map +1 -0
- package/dist/react-native/createPinsQuery.d.ts +102 -0
- package/dist/react-native/createPinsQuery.d.ts.map +1 -0
- package/dist/react-native/createPinsQuery.js +93 -0
- package/dist/react-native/createPinsQuery.js.map +1 -0
- package/dist/react-native/generated/clientDefinitions.d.ts +131 -0
- package/dist/react-native/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/generated/clientDefinitions.js +4 -0
- package/dist/react-native/generated/clientDefinitions.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +9 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +11 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/isUnexpected.d.ts +11 -0
- package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/generated/isUnexpected.js +78 -0
- package/dist/react-native/generated/isUnexpected.js.map +1 -0
- package/dist/react-native/generated/logger.d.ts +2 -0
- package/dist/react-native/generated/logger.d.ts.map +1 -0
- package/dist/react-native/generated/logger.js +5 -0
- package/dist/react-native/generated/logger.js.map +1 -0
- package/dist/react-native/generated/mapsRenderClient.d.ts +15 -0
- package/dist/react-native/generated/mapsRenderClient.d.ts.map +1 -0
- package/dist/react-native/generated/mapsRenderClient.js +44 -0
- package/dist/react-native/generated/mapsRenderClient.js.map +1 -0
- package/dist/react-native/generated/outputModels.d.ts +93 -0
- package/dist/react-native/generated/outputModels.d.ts.map +1 -0
- package/dist/react-native/generated/outputModels.js +4 -0
- package/dist/react-native/generated/outputModels.js.map +1 -0
- package/dist/react-native/generated/parameters.d.ts +384 -0
- package/dist/react-native/generated/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/parameters.js +4 -0
- package/dist/react-native/generated/parameters.js.map +1 -0
- package/dist/react-native/generated/responses.d.ts +248 -0
- package/dist/react-native/generated/responses.d.ts.map +1 -0
- package/dist/react-native/generated/responses.js +4 -0
- package/dist/react-native/generated/responses.js.map +1 -0
- package/dist/react-native/index.d.ts +7 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +9 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/mapsRender.d.ts +53 -0
- package/dist/react-native/mapsRender.d.ts.map +1 -0
- package/dist/react-native/mapsRender.js +40 -0
- package/dist/react-native/mapsRender.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/positionToTileXY.d.ts +47 -0
- package/dist/react-native/positionToTileXY.d.ts.map +1 -0
- package/dist/react-native/positionToTileXY.js +65 -0
- package/dist/react-native/positionToTileXY.js.map +1 -0
- package/package.json +86 -72
- package/dist/index.js +0 -404
- package/dist/index.js.map +0 -1
- package/dist-esm/src/createPathQuery.js.map +0 -1
- package/dist-esm/src/createPinsQuery.js.map +0 -1
- package/dist-esm/src/index.js +0 -9
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/mapsRender.js.map +0 -1
- package/dist-esm/src/positionToTileXY.js.map +0 -1
- package/types/maps-render-rest.d.ts +0 -1212
- /package/{dist-esm/src → dist/browser}/createMultiCollection.js +0 -0
- /package/{dist-esm/src → dist/browser}/createMultiCollection.js.map +0 -0
- /package/review/{maps-render.api.md → maps-render-node.api.md} +0 -0
|
@@ -1,1212 +0,0 @@
|
|
|
1
|
-
import type { AzureKeyCredential } from '@azure/core-auth';
|
|
2
|
-
import type { AzureSASCredential } from '@azure/core-auth';
|
|
3
|
-
import { Client } from '@azure-rest/core-client';
|
|
4
|
-
import { ClientOptions } from '@azure-rest/core-client';
|
|
5
|
-
import { HttpResponse } from '@azure-rest/core-client';
|
|
6
|
-
import type { LatLon } from '@azure/maps-common';
|
|
7
|
-
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
8
|
-
import { RequestParameters } from '@azure-rest/core-client';
|
|
9
|
-
import { StreamableMethod } from '@azure-rest/core-client';
|
|
10
|
-
import type { TokenCredential } from '@azure/core-auth';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Specify a circular path.
|
|
14
|
-
*/
|
|
15
|
-
export declare interface CircularPath {
|
|
16
|
-
/** The center of the circular path. */
|
|
17
|
-
center: LatLon;
|
|
18
|
-
/** The radius of the circular path. */
|
|
19
|
-
radiusInMeters: number;
|
|
20
|
-
/** The options that modify the style of the circular path. */
|
|
21
|
-
options?: CircularPathOptions;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The options that modify the style of a circular path.
|
|
26
|
-
*/
|
|
27
|
-
export declare interface CircularPathOptions {
|
|
28
|
-
/** The line color of the path. Range from 000000 to FFFFFF. */
|
|
29
|
-
lineColor?: string;
|
|
30
|
-
/** The line opacity of the path. Range from 0 to 1. */
|
|
31
|
-
lineOpacity?: number;
|
|
32
|
-
/** The line width of the line. Should be greater than 0. */
|
|
33
|
-
lineWidthInPixels?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/** This object is returned from a successful copyright call */
|
|
37
|
-
export declare interface CopyrightCaptionOutput {
|
|
38
|
-
/** Format Version property */
|
|
39
|
-
readonly formatVersion?: string;
|
|
40
|
-
/** Copyrights Caption property */
|
|
41
|
-
readonly copyrightsCaption: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/** This object is returned from a successful copyright request */
|
|
45
|
-
export declare interface CopyrightOutput {
|
|
46
|
-
/** Format Version property */
|
|
47
|
-
readonly formatVersion?: string;
|
|
48
|
-
/** General Copyrights array */
|
|
49
|
-
readonly generalCopyrights?: Array<string>;
|
|
50
|
-
/** Regions array */
|
|
51
|
-
readonly regions?: Array<RegionCopyrightsOutput>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Create a path query string for _get map static image_ request.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const circularPath = {
|
|
60
|
-
* center: [52.4559, 13.228],
|
|
61
|
-
* radiusInMeters: 10000,
|
|
62
|
-
* options: {
|
|
63
|
-
* lineColor: "000000",
|
|
64
|
-
* lineOpacity: 0.9,
|
|
65
|
-
* lineWidthInPixels: 2,
|
|
66
|
-
* },
|
|
67
|
-
* };
|
|
68
|
-
*
|
|
69
|
-
* const linearPath = {
|
|
70
|
-
* coordinates: [
|
|
71
|
-
* [52.577, 13.35],
|
|
72
|
-
* [52.6, 13.2988],
|
|
73
|
-
* [52.32, 13.2988],
|
|
74
|
-
* ],
|
|
75
|
-
* options: {
|
|
76
|
-
* lineColor: "000000",
|
|
77
|
-
* lineOpacity: 0.9,
|
|
78
|
-
* lineWidthInPixels: 2,
|
|
79
|
-
* },
|
|
80
|
-
* };
|
|
81
|
-
*
|
|
82
|
-
* const polygonPath = {
|
|
83
|
-
* coordinates: [
|
|
84
|
-
* [52.577, 13.35],
|
|
85
|
-
* [52.6, 13.2988],
|
|
86
|
-
* [52.32, 13.2988],
|
|
87
|
-
* [52.577, 13.35],
|
|
88
|
-
* ],
|
|
89
|
-
* options: {
|
|
90
|
-
* lineColor: "000000",
|
|
91
|
-
* lineOpacity: 0.9,
|
|
92
|
-
* lineWidthInPixels: 2,
|
|
93
|
-
* fillColor: "FFFFFF",
|
|
94
|
-
* fillOpacity: 0.8,
|
|
95
|
-
* },
|
|
96
|
-
* };
|
|
97
|
-
*
|
|
98
|
-
* const path = createPathQuery([circularPath, linearPath, polygonPath]);
|
|
99
|
-
* // Send the request
|
|
100
|
-
* const response = await client.path("/map/static/{format}", "png").get({
|
|
101
|
-
* queryParameters: {
|
|
102
|
-
* bbox: [13.228,52.4559,13.5794,52.629],
|
|
103
|
-
* path: path
|
|
104
|
-
* }
|
|
105
|
-
* });
|
|
106
|
-
* ```
|
|
107
|
-
*
|
|
108
|
-
* @param paths - A collection of {@link PolygonalPath} and {@link CircularPath} that you want to draw on the image.
|
|
109
|
-
* @param options - The options for the style of the path. See the possible options in {@link PolygonalPathOptions} and {@link CircularPathOptions}.
|
|
110
|
-
*/
|
|
111
|
-
export declare function createPathQuery(paths: Array<PolygonalPath | CircularPath>): string;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Create a pin query string for _get map static image_
|
|
115
|
-
*
|
|
116
|
-
* @example
|
|
117
|
-
* ```ts
|
|
118
|
-
*
|
|
119
|
-
* const pins = {
|
|
120
|
-
* pins: [
|
|
121
|
-
* { coordinate: [52.577, 13.35], label: "Label start" },
|
|
122
|
-
* { coordinate: [52.6, 13.2988], label: "Label end" },
|
|
123
|
-
* ],
|
|
124
|
-
* pinImage: "<image source url || default || none>"
|
|
125
|
-
* options: {
|
|
126
|
-
* scale: 0.9,
|
|
127
|
-
* pinColor: "FF0000",
|
|
128
|
-
* labelColor: "0000FF",
|
|
129
|
-
* labelSizeInPixels: 18,
|
|
130
|
-
* }
|
|
131
|
-
* );
|
|
132
|
-
* const res = await client
|
|
133
|
-
* .path("/map/static/{format}", "png")
|
|
134
|
-
* .get({
|
|
135
|
-
* queryParameters: {
|
|
136
|
-
* bbox: [13.228, 52.4559, 13.5794, 52.62],
|
|
137
|
-
* zoom: 10,
|
|
138
|
-
* pins: pins,
|
|
139
|
-
* },
|
|
140
|
-
* skipUrlEncoding: true,
|
|
141
|
-
* })
|
|
142
|
-
* ```
|
|
143
|
-
*
|
|
144
|
-
* @param pins - An array of {@link Pin} that specify the positions and label text of each pin.
|
|
145
|
-
* @param pinImage - Specify the image source for custom pin. Set this to "none" if you don't want to show a pin image.
|
|
146
|
-
* @param options - The style options of the pins. See {@link PinOptions}
|
|
147
|
-
* @returns - The composed query string.
|
|
148
|
-
*/
|
|
149
|
-
export declare function createPinsQuery(pinSets: PinSet[]): string;
|
|
150
|
-
|
|
151
|
-
/** The resource management error additional info. */
|
|
152
|
-
export declare interface ErrorAdditionalInfoOutput {
|
|
153
|
-
/** The additional info type. */
|
|
154
|
-
readonly type?: string;
|
|
155
|
-
/** The additional info. */
|
|
156
|
-
readonly info?: Record<string, unknown>;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/** The error detail. */
|
|
160
|
-
export declare interface ErrorDetailOutput {
|
|
161
|
-
/** The error code. */
|
|
162
|
-
readonly code?: string;
|
|
163
|
-
/** The error message. */
|
|
164
|
-
readonly message?: string;
|
|
165
|
-
/** The error target. */
|
|
166
|
-
readonly target?: string;
|
|
167
|
-
/** The error details. */
|
|
168
|
-
readonly details?: Array<ErrorDetailOutput>;
|
|
169
|
-
/** The error additional info. */
|
|
170
|
-
readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
174
|
-
export declare interface ErrorResponseOutput {
|
|
175
|
-
/** The error object. */
|
|
176
|
-
error?: ErrorDetailOutput;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export declare interface GetCopyrightCaption {
|
|
180
|
-
/**
|
|
181
|
-
*
|
|
182
|
-
* The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions.
|
|
183
|
-
*
|
|
184
|
-
* As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map.
|
|
185
|
-
*/
|
|
186
|
-
get(options?: RenderGetCopyrightCaptionParameters): StreamableMethod<RenderGetCopyrightCaption200Response | RenderGetCopyrightCaptionDefaultResponse>;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export declare interface GetCopyrightForTile {
|
|
190
|
-
/**
|
|
191
|
-
*
|
|
192
|
-
* To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid).
|
|
193
|
-
*
|
|
194
|
-
* Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.
|
|
195
|
-
*/
|
|
196
|
-
get(options: RenderGetCopyrightForTileParameters): StreamableMethod<RenderGetCopyrightForTile200Response | RenderGetCopyrightForTileDefaultResponse>;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export declare interface GetCopyrightForWorld {
|
|
200
|
-
/**
|
|
201
|
-
*
|
|
202
|
-
* Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box.
|
|
203
|
-
*
|
|
204
|
-
* Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.
|
|
205
|
-
*/
|
|
206
|
-
get(options?: RenderGetCopyrightForWorldParameters): StreamableMethod<RenderGetCopyrightForWorld200Response | RenderGetCopyrightForWorldDefaultResponse>;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export declare interface GetCopyrightFromBoundingBox {
|
|
210
|
-
/**
|
|
211
|
-
*
|
|
212
|
-
* Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates
|
|
213
|
-
*/
|
|
214
|
-
get(options: RenderGetCopyrightFromBoundingBoxParameters): StreamableMethod<RenderGetCopyrightFromBoundingBox200Response | RenderGetCopyrightFromBoundingBoxDefaultResponse>;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export declare interface GetMapAttribution {
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
* The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset.
|
|
221
|
-
*/
|
|
222
|
-
get(options: RenderGetMapAttributionParameters): StreamableMethod<RenderGetMapAttribution200Response | RenderGetMapAttributionDefaultResponse>;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export declare interface GetMapStateTile {
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid).
|
|
229
|
-
*/
|
|
230
|
-
get(options: RenderGetMapStateTileParameters): StreamableMethod<RenderGetMapStateTile200Response | RenderGetMapStateTileDefaultResponse>;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export declare interface GetMapStaticImage {
|
|
234
|
-
/**
|
|
235
|
-
* This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications.
|
|
236
|
-
*
|
|
237
|
-
* This API includes parameters for basic data visualization:
|
|
238
|
-
*
|
|
239
|
-
* - Labeled pushpins in multiple styles.
|
|
240
|
-
* - Render circle, path, and polygon geometry types.
|
|
241
|
-
*
|
|
242
|
-
* For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data).
|
|
243
|
-
* <br><br>
|
|
244
|
-
* The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail.
|
|
245
|
-
* <br><br>
|
|
246
|
-
*
|
|
247
|
-
* |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range|
|
|
248
|
-
* |:----------|:----------------|:----------------|:----------------|:-------------|
|
|
249
|
-
* |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 |
|
|
250
|
-
* |1 | 28.125 | 360.0 | 14.87468995 | 180.0 |
|
|
251
|
-
* |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 |
|
|
252
|
-
* |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 |
|
|
253
|
-
* |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 |
|
|
254
|
-
* |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 |
|
|
255
|
-
* |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 |
|
|
256
|
-
* |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 |
|
|
257
|
-
* |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 |
|
|
258
|
-
* |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 |
|
|
259
|
-
* |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 |
|
|
260
|
-
* |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 |
|
|
261
|
-
* |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 |
|
|
262
|
-
* |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 |
|
|
263
|
-
* |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 |
|
|
264
|
-
* |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 |
|
|
265
|
-
* |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 |
|
|
266
|
-
* |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 |
|
|
267
|
-
* |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 |
|
|
268
|
-
* |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 |
|
|
269
|
-
* |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 |
|
|
270
|
-
*
|
|
271
|
-
* _Note_ : Either **center** or **bbox** parameter must be supplied to the API.
|
|
272
|
-
*/
|
|
273
|
-
get(options?: RenderGetMapStaticImageParameters): StreamableMethod<RenderGetMapStaticImage200Response | RenderGetMapStaticImageDefaultResponse>;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export declare interface GetMapTile {
|
|
277
|
-
/**
|
|
278
|
-
*
|
|
279
|
-
* The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk).
|
|
280
|
-
*/
|
|
281
|
-
get(options: RenderGetMapTileParameters): StreamableMethod<RenderGetMapTile200Response | RenderGetMapTileDefaultResponse>;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export declare interface GetMapTileset {
|
|
285
|
-
/**
|
|
286
|
-
*
|
|
287
|
-
* The Get Map Tileset API allows users to request metadata for a tileset.
|
|
288
|
-
*/
|
|
289
|
-
get(options: RenderGetMapTilesetParameters): StreamableMethod<RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse>;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export declare function isUnexpected(response: RenderGetMapTile200Response | RenderGetMapTileDefaultResponse): response is RenderGetMapTileDefaultResponse;
|
|
293
|
-
|
|
294
|
-
export declare function isUnexpected(response: RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse): response is RenderGetMapTilesetDefaultResponse;
|
|
295
|
-
|
|
296
|
-
export declare function isUnexpected(response: RenderGetMapAttribution200Response | RenderGetMapAttributionDefaultResponse): response is RenderGetMapAttributionDefaultResponse;
|
|
297
|
-
|
|
298
|
-
export declare function isUnexpected(response: RenderGetMapStateTile200Response | RenderGetMapStateTileDefaultResponse): response is RenderGetMapStateTileDefaultResponse;
|
|
299
|
-
|
|
300
|
-
export declare function isUnexpected(response: RenderGetCopyrightCaption200Response | RenderGetCopyrightCaptionDefaultResponse): response is RenderGetCopyrightCaptionDefaultResponse;
|
|
301
|
-
|
|
302
|
-
export declare function isUnexpected(response: RenderGetMapStaticImage200Response | RenderGetMapStaticImageDefaultResponse): response is RenderGetMapStaticImageDefaultResponse;
|
|
303
|
-
|
|
304
|
-
export declare function isUnexpected(response: RenderGetCopyrightFromBoundingBox200Response | RenderGetCopyrightFromBoundingBoxDefaultResponse): response is RenderGetCopyrightFromBoundingBoxDefaultResponse;
|
|
305
|
-
|
|
306
|
-
export declare function isUnexpected(response: RenderGetCopyrightForTile200Response | RenderGetCopyrightForTileDefaultResponse): response is RenderGetCopyrightForTileDefaultResponse;
|
|
307
|
-
|
|
308
|
-
export declare function isUnexpected(response: RenderGetCopyrightForWorld200Response | RenderGetCopyrightForWorldDefaultResponse): response is RenderGetCopyrightForWorldDefaultResponse;
|
|
309
|
-
|
|
310
|
-
/** Copyright attribution for the requested section of a tileset. */
|
|
311
|
-
export declare interface MapAttributionOutput {
|
|
312
|
-
/** A list of copyright strings. */
|
|
313
|
-
copyrights: Array<string>;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Creates an instance of MapsRenderClient from a subscription key.
|
|
318
|
-
*
|
|
319
|
-
* @example
|
|
320
|
-
* ```ts
|
|
321
|
-
* import MapsRender from "@azure-rest/maps-Render";
|
|
322
|
-
*
|
|
323
|
-
* const credential = new AzureKeyCredential("<subscription-key>");
|
|
324
|
-
* const client = MapsRender(credential);
|
|
325
|
-
*```
|
|
326
|
-
*
|
|
327
|
-
* @param credential - An AzureKeyCredential instance used to authenticate requests to the service
|
|
328
|
-
* @param options - Options used to configure the Render Client
|
|
329
|
-
*/
|
|
330
|
-
declare function MapsRender(credential: AzureKeyCredential, options?: ClientOptions): MapsRenderClient;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Creates an instance of MapsRender from an Azure Identity `TokenCredential`.
|
|
334
|
-
*
|
|
335
|
-
* @example
|
|
336
|
-
* ```ts
|
|
337
|
-
* import MapsRenderClient from "@azure-rest/maps-render";
|
|
338
|
-
* import { DefaultAzureCredential } from "@azure/identity";
|
|
339
|
-
*
|
|
340
|
-
* const credential = new DefaultAzureCredential();
|
|
341
|
-
* const client = MapsRender(credential, "<maps-account-client-id>");
|
|
342
|
-
*```
|
|
343
|
-
*
|
|
344
|
-
* @param credential - An TokenCredential instance used to authenticate requests to the service
|
|
345
|
-
* @param mapsAccountClientId - The Azure Maps client id of a specific map resource
|
|
346
|
-
* @param options - Options used to configure the Render Client
|
|
347
|
-
*/
|
|
348
|
-
declare function MapsRender(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsRenderClient;
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Creates an instance of MapsRender from an Azure Identity `AzureSASCredential`.
|
|
352
|
-
*
|
|
353
|
-
* @example
|
|
354
|
-
* ```ts
|
|
355
|
-
* import MapsRender from "@azure-rest/maps-render";
|
|
356
|
-
* import { AzureSASCredential } from "@azure/core-auth";
|
|
357
|
-
*
|
|
358
|
-
* const credential = new AzureSASCredential("<SAS Token>");
|
|
359
|
-
* const client = MapsRender(credential);
|
|
360
|
-
* ```
|
|
361
|
-
*
|
|
362
|
-
* @param credential - An AzureSASCredential instance used to authenticate requests to the service
|
|
363
|
-
* @param options - Options used to configure the Render Client
|
|
364
|
-
*/
|
|
365
|
-
declare function MapsRender(credential: AzureSASCredential, options?: ClientOptions): MapsRenderClient;
|
|
366
|
-
export default MapsRender;
|
|
367
|
-
|
|
368
|
-
export declare type MapsRenderClient = Client & {
|
|
369
|
-
path: Routes;
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
/** The optional parameters for the client */
|
|
373
|
-
export declare interface MapsRenderClientOptions extends ClientOptions {
|
|
374
|
-
/** The api version option of the client */
|
|
375
|
-
apiVersion?: string;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/** Metadata for a tileset in the TileJSON format. */
|
|
379
|
-
export declare interface MapTilesetOutput {
|
|
380
|
-
/** Describes the version of the TileJSON spec that is implemented by this JSON object. */
|
|
381
|
-
tilejson: string;
|
|
382
|
-
/** A name describing the tileset. The name can contain any legal character. Implementations SHOULD NOT interpret the name as HTML. */
|
|
383
|
-
name?: string;
|
|
384
|
-
/** Text description of the tileset. The description can contain any legal character. Implementations SHOULD NOT interpret the description as HTML. */
|
|
385
|
-
description?: string;
|
|
386
|
-
/** A semver.org style version number for the tiles contained within the tileset. When changes across tiles are introduced, the minor version MUST change. */
|
|
387
|
-
version?: string;
|
|
388
|
-
/** Copyright attribution to be displayed on the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking. */
|
|
389
|
-
attribution?: string;
|
|
390
|
-
/** A mustache template to be used to format data from grids for interaction. */
|
|
391
|
-
template?: string;
|
|
392
|
-
/** A legend to be displayed with the map. Implementations MAY decide to treat this as HTML or literal text. For security reasons, make absolutely sure that this field can't be abused as a vector for XSS or beacon tracking. */
|
|
393
|
-
legend?: string;
|
|
394
|
-
/** Default: "xyz". Either "xyz" or "tms". Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed. */
|
|
395
|
-
scheme?: string;
|
|
396
|
-
/** An array of tile endpoints. If multiple endpoints are specified, clients may use any combination of endpoints. All endpoints MUST return the same content for the same URL. The array MUST contain at least one endpoint. */
|
|
397
|
-
tiles: Array<string>;
|
|
398
|
-
/** An array of interactivity endpoints. */
|
|
399
|
-
grids?: Array<string>;
|
|
400
|
-
/** An array of data files in GeoJSON format. */
|
|
401
|
-
data?: Array<string>;
|
|
402
|
-
/** The minimum zoom level. */
|
|
403
|
-
minzoom?: number;
|
|
404
|
-
/** The maximum zoom level. */
|
|
405
|
-
maxzoom?: number;
|
|
406
|
-
/** The maximum extent of available map tiles. Bounds MUST define an area covered by all zoom levels. The bounds are represented in WGS:84 latitude and longitude values, in the order left, bottom, right, top. Values may be integers or floating point numbers. */
|
|
407
|
-
bounds?: Array<number>;
|
|
408
|
-
/** The default location of the tileset in the form [longitude, latitude, zoom]. The zoom level MUST be between minzoom and maxzoom. Implementations can use this value to set the default location. */
|
|
409
|
-
center?: Array<number>;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* Specify how the pin's position and label text.
|
|
414
|
-
*/
|
|
415
|
-
export declare interface Pin {
|
|
416
|
-
/** The coordinate of the pin. */
|
|
417
|
-
coordinate: LatLon;
|
|
418
|
-
/** The label text for the pin. */
|
|
419
|
-
label?: string;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* The pin options for default/none image style..
|
|
424
|
-
*/
|
|
425
|
-
export declare interface PinOptions {
|
|
426
|
-
/** The opacity of the pin. Range from 0 to 1 */
|
|
427
|
-
opacity?: number;
|
|
428
|
-
/**
|
|
429
|
-
* The labels are centered at the pushpin 'label anchor.' The anchor location is predefined for built-in pushpins and is at the top center of custom pushpins (see below).
|
|
430
|
-
* To override the label anchor, using the _labelAnchor_ option and provide X and Y pixel coordinates for the anchor.
|
|
431
|
-
* These coordinates are relative to the top left corner of the pushpin image. Positive X values move the anchor to the right, and positive Y values move the anchor down.
|
|
432
|
-
* For example, to position the label anchor 10 pixels right and 4 pixels above the top left corner of the pushpin image, use \{labelAnchor: [10, -4]\}
|
|
433
|
-
* */
|
|
434
|
-
labelAnchor?: [number, number];
|
|
435
|
-
/** Color of the label. Range from 000000 to FFFFFF */
|
|
436
|
-
labelColor?: string;
|
|
437
|
-
/** Size of the label in pixels. */
|
|
438
|
-
labelSizeInPixels?: number;
|
|
439
|
-
/**
|
|
440
|
-
* By default, custom pushpin images are drawn centered at the pin coordinates. This usually isn't ideal as it obscures the location that you're trying to highlight.
|
|
441
|
-
* To override the anchor location of the pin image, use the _pinAnchor_ option. This uses the same format as the _labelAnchor_ options.
|
|
442
|
-
* For example, if your custom pin image has the tip of the pin at the top left corner of the image, you can set the anchor to that spot by using \{pinAnchor: [0, 0]\}
|
|
443
|
-
*/
|
|
444
|
-
pinAnchor?: [number, number];
|
|
445
|
-
/** The ration of the pin. Range from -360 to 360*/
|
|
446
|
-
rotationInDegree?: number;
|
|
447
|
-
/** The scale of the pin. Should be greater than 0. */
|
|
448
|
-
scale?: number;
|
|
449
|
-
/** Color of the pin. Range from 000000 to FFFFFF */
|
|
450
|
-
pinColor?: string;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
export declare interface PinSet {
|
|
454
|
-
pins: Pin[];
|
|
455
|
-
pinImage?: "default" | "none" | string;
|
|
456
|
-
options?: PinOptions;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* Specify a polygonal path.
|
|
461
|
-
*/
|
|
462
|
-
export declare interface PolygonalPath {
|
|
463
|
-
/** The coordinates of the polygonal path. The identical coordinate in the first & last position construct a closed polygon.*/
|
|
464
|
-
coordinates: LatLon[];
|
|
465
|
-
/** The options that modify the style of the polygonal path. */
|
|
466
|
-
options?: PolygonalPathOptions;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* The options that modify the style of a polygonal path.
|
|
471
|
-
*/
|
|
472
|
-
export declare interface PolygonalPathOptions extends CircularPathOptions {
|
|
473
|
-
/** The fill color of the path. This only works if the path is a closed shape like polygon or circle. Range from 000000 to FFFFFF.*/
|
|
474
|
-
fillColor?: string;
|
|
475
|
-
/** The fill color of the path. This only works if the path is a closed shape like polygon or circle. Range from 0 to 1.*/
|
|
476
|
-
fillOpacity?: number;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* Calculates the XY tile coordinates that a coordinate falls into for a specific zoom level.
|
|
481
|
-
* Reference: https://learn.microsoft.com/en-us/azure/azure-maps/zoom-levels-and-tile-grid?tabs=typescript#tile-math-source-code
|
|
482
|
-
*
|
|
483
|
-
* @example
|
|
484
|
-
* ```ts
|
|
485
|
-
* const zoom = 6;
|
|
486
|
-
* const { x, y } = positionToTileXY([47.61559, -122.33817], 6, "256");
|
|
487
|
-
* const response = await client
|
|
488
|
-
* .path("/map/tile")
|
|
489
|
-
* .get({
|
|
490
|
-
* queryParameters: { tilesetId: "microsoft.base.road", zoom, x, y },
|
|
491
|
-
* })
|
|
492
|
-
* ```
|
|
493
|
-
*
|
|
494
|
-
* @param position - Position coordinate in the format [latitude, longitude].
|
|
495
|
-
* @param zoom - Zoom level.
|
|
496
|
-
* @param tileSize - The size of the tiles in the tile pyramid.
|
|
497
|
-
* @returns Tile XY coordinates.
|
|
498
|
-
*/
|
|
499
|
-
export declare function positionToTileXY(position: LatLon, zoom: number, tileSize: "512" | "256"): {
|
|
500
|
-
x: number;
|
|
501
|
-
y: number;
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
/** Country property */
|
|
505
|
-
export declare interface RegionCopyrightsCountryOutput {
|
|
506
|
-
/** ISO3 property */
|
|
507
|
-
readonly ISO3: string;
|
|
508
|
-
/** Label property */
|
|
509
|
-
readonly label: string;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
export declare interface RegionCopyrightsOutput {
|
|
513
|
-
/** Copyrights array */
|
|
514
|
-
readonly copyrights: Array<string>;
|
|
515
|
-
/** Country property */
|
|
516
|
-
readonly country: RegionCopyrightsCountryOutput;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
*
|
|
521
|
-
* The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions.
|
|
522
|
-
*
|
|
523
|
-
* As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map.
|
|
524
|
-
*/
|
|
525
|
-
export declare interface RenderGetCopyrightCaption200Response extends HttpResponse {
|
|
526
|
-
status: "200";
|
|
527
|
-
body: CopyrightCaptionOutput;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
*
|
|
532
|
-
* The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions.
|
|
533
|
-
*
|
|
534
|
-
* As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map.
|
|
535
|
-
*/
|
|
536
|
-
export declare interface RenderGetCopyrightCaptionDefaultResponse extends HttpResponse {
|
|
537
|
-
status: string;
|
|
538
|
-
body: ErrorResponseOutput;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
export declare type RenderGetCopyrightCaptionParameters = RequestParameters;
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
*
|
|
545
|
-
* To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid).
|
|
546
|
-
*
|
|
547
|
-
* Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.
|
|
548
|
-
*/
|
|
549
|
-
export declare interface RenderGetCopyrightForTile200Response extends HttpResponse {
|
|
550
|
-
status: "200";
|
|
551
|
-
body: CopyrightOutput;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
*
|
|
556
|
-
* To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid).
|
|
557
|
-
*
|
|
558
|
-
* Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.
|
|
559
|
-
*/
|
|
560
|
-
export declare interface RenderGetCopyrightForTileDefaultResponse extends HttpResponse {
|
|
561
|
-
status: string;
|
|
562
|
-
body: ErrorResponseOutput;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
export declare type RenderGetCopyrightForTileParameters = RenderGetCopyrightForTileQueryParam & RequestParameters;
|
|
566
|
-
|
|
567
|
-
export declare interface RenderGetCopyrightForTileQueryParam {
|
|
568
|
-
queryParameters: RenderGetCopyrightForTileQueryParamProperties;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
export declare interface RenderGetCopyrightForTileQueryParamProperties {
|
|
572
|
-
/**
|
|
573
|
-
* Zoom level for the desired tile.
|
|
574
|
-
*
|
|
575
|
-
* Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.
|
|
576
|
-
*/
|
|
577
|
-
zoom: number;
|
|
578
|
-
/**
|
|
579
|
-
* X coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].
|
|
580
|
-
*
|
|
581
|
-
* Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.
|
|
582
|
-
*/
|
|
583
|
-
x: number;
|
|
584
|
-
/**
|
|
585
|
-
* Y coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].
|
|
586
|
-
*
|
|
587
|
-
* Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.
|
|
588
|
-
*/
|
|
589
|
-
y: number;
|
|
590
|
-
/** Yes/no value to exclude textual data from response. Only images and country/region names will be in response. */
|
|
591
|
-
text?: "yes" | "no";
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
*
|
|
596
|
-
* Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box.
|
|
597
|
-
*
|
|
598
|
-
* Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.
|
|
599
|
-
*/
|
|
600
|
-
export declare interface RenderGetCopyrightForWorld200Response extends HttpResponse {
|
|
601
|
-
status: "200";
|
|
602
|
-
body: CopyrightOutput;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
*
|
|
607
|
-
* Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box.
|
|
608
|
-
*
|
|
609
|
-
* Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions.
|
|
610
|
-
*/
|
|
611
|
-
export declare interface RenderGetCopyrightForWorldDefaultResponse extends HttpResponse {
|
|
612
|
-
status: string;
|
|
613
|
-
body: ErrorResponseOutput;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
export declare type RenderGetCopyrightForWorldParameters = RenderGetCopyrightForWorldQueryParam & RequestParameters;
|
|
617
|
-
|
|
618
|
-
export declare interface RenderGetCopyrightForWorldQueryParam {
|
|
619
|
-
queryParameters?: RenderGetCopyrightForWorldQueryParamProperties;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
export declare interface RenderGetCopyrightForWorldQueryParamProperties {
|
|
623
|
-
/** Yes/no value to exclude textual data from response. Only images and country/region names will be in response. */
|
|
624
|
-
text?: "yes" | "no";
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
*
|
|
629
|
-
* Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates
|
|
630
|
-
*/
|
|
631
|
-
export declare interface RenderGetCopyrightFromBoundingBox200Response extends HttpResponse {
|
|
632
|
-
status: "200";
|
|
633
|
-
body: CopyrightOutput;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
*
|
|
638
|
-
* Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates
|
|
639
|
-
*/
|
|
640
|
-
export declare interface RenderGetCopyrightFromBoundingBoxDefaultResponse extends HttpResponse {
|
|
641
|
-
status: string;
|
|
642
|
-
body: ErrorResponseOutput;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
export declare type RenderGetCopyrightFromBoundingBoxParameters = RenderGetCopyrightFromBoundingBoxQueryParam & RequestParameters;
|
|
646
|
-
|
|
647
|
-
export declare interface RenderGetCopyrightFromBoundingBoxQueryParam {
|
|
648
|
-
queryParameters: RenderGetCopyrightFromBoundingBoxQueryParamProperties;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
export declare interface RenderGetCopyrightFromBoundingBoxQueryParamProperties {
|
|
652
|
-
/** Minimum coordinates (south-west point) of bounding box in latitude longitude coordinate system. E.g. 52.41064,4.84228 */
|
|
653
|
-
mincoordinates: Array<number>;
|
|
654
|
-
/** Maximum coordinates (north-east point) of bounding box in latitude longitude coordinate system. E.g. 52.41064,4.84228 */
|
|
655
|
-
maxcoordinates: Array<number>;
|
|
656
|
-
/** Yes/no value to exclude textual data from response. Only images and country/region names will be in response. */
|
|
657
|
-
text?: "yes" | "no";
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
*
|
|
662
|
-
* The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset.
|
|
663
|
-
*/
|
|
664
|
-
export declare interface RenderGetMapAttribution200Response extends HttpResponse {
|
|
665
|
-
status: "200";
|
|
666
|
-
body: MapAttributionOutput;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
*
|
|
671
|
-
* The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset.
|
|
672
|
-
*/
|
|
673
|
-
export declare interface RenderGetMapAttributionDefaultResponse extends HttpResponse {
|
|
674
|
-
status: string;
|
|
675
|
-
body: ErrorResponseOutput;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
export declare type RenderGetMapAttributionParameters = RenderGetMapAttributionQueryParam & RequestParameters;
|
|
679
|
-
|
|
680
|
-
export declare interface RenderGetMapAttributionQueryParam {
|
|
681
|
-
queryParameters: RenderGetMapAttributionQueryParamProperties;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
export declare interface RenderGetMapAttributionQueryParamProperties {
|
|
685
|
-
/** A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at preset zoom levels. Every tileset has a **tilesetId** to use when making requests. The **tilesetId** for tilesets created using [Azure Maps Creator](https://aka.ms/amcreator) are generated through the [Tileset Create API](https://docs.microsoft.com/rest/api/maps-creator/tileset). The ready-to-use tilesets supplied by Azure Maps are listed below. For example, microsoft.base. */
|
|
686
|
-
tilesetId: "microsoft.base" | "microsoft.base.labels" | "microsoft.base.hybrid" | "microsoft.terra.main" | "microsoft.base.road" | "microsoft.base.darkgrey" | "microsoft.base.labels.road" | "microsoft.base.labels.darkgrey" | "microsoft.base.hybrid.road" | "microsoft.base.hybrid.darkgrey" | "microsoft.imagery" | "microsoft.weather.radar.main" | "microsoft.weather.infrared.main" | "microsoft.traffic.absolute" | "microsoft.traffic.absolute.main" | "microsoft.traffic.relative" | "microsoft.traffic.relative.main" | "microsoft.traffic.relative.dark" | "microsoft.traffic.delay" | "microsoft.traffic.delay.main" | "microsoft.traffic.reduced.main" | "microsoft.traffic.incident";
|
|
687
|
-
/** Zoom level for the desired map attribution. */
|
|
688
|
-
zoom: number;
|
|
689
|
-
/** The string that represents the rectangular area of a bounding box. The bounds parameter is defined by the 4 bounding box coordinates, with WGS84 longitude and latitude of the southwest corner followed by WGS84 longitude and latitude of the northeast corner. The string is presented in the following format: `[SouthwestCorner_Longitude, SouthwestCorner_Latitude, NortheastCorner_Longitude, NortheastCorner_Latitude]`. */
|
|
690
|
-
bounds: Array<number>;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
export declare interface RenderGetMapStateTile200Headers {
|
|
694
|
-
/** The content-type for the response. */
|
|
695
|
-
"content-type"?: string;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
*
|
|
700
|
-
* Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid).
|
|
701
|
-
*/
|
|
702
|
-
export declare interface RenderGetMapStateTile200Response extends HttpResponse {
|
|
703
|
-
status: "200";
|
|
704
|
-
/** Value may contain any sequence of octets */
|
|
705
|
-
body: Uint8Array;
|
|
706
|
-
headers: RawHttpHeaders & RenderGetMapStateTile200Headers;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
*
|
|
711
|
-
* Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid).
|
|
712
|
-
*/
|
|
713
|
-
export declare interface RenderGetMapStateTileDefaultResponse extends HttpResponse {
|
|
714
|
-
status: string;
|
|
715
|
-
body: ErrorResponseOutput;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
export declare type RenderGetMapStateTileParameters = RenderGetMapStateTileQueryParam & RequestParameters;
|
|
719
|
-
|
|
720
|
-
export declare interface RenderGetMapStateTileQueryParam {
|
|
721
|
-
queryParameters: RenderGetMapStateTileQueryParamProperties;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
export declare interface RenderGetMapStateTileQueryParamProperties {
|
|
725
|
-
/**
|
|
726
|
-
* Zoom level for the desired tile.
|
|
727
|
-
*
|
|
728
|
-
* Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.
|
|
729
|
-
*/
|
|
730
|
-
zoom: number;
|
|
731
|
-
/**
|
|
732
|
-
* X coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].
|
|
733
|
-
*
|
|
734
|
-
* Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.
|
|
735
|
-
*/
|
|
736
|
-
x: number;
|
|
737
|
-
/**
|
|
738
|
-
* Y coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].
|
|
739
|
-
*
|
|
740
|
-
* Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.
|
|
741
|
-
*/
|
|
742
|
-
y: number;
|
|
743
|
-
/** The stateset id. */
|
|
744
|
-
statesetId: string;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
export declare interface RenderGetMapStaticImage200Headers {
|
|
748
|
-
/** The content-type for the response. */
|
|
749
|
-
"content-type"?: string;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications.
|
|
754
|
-
*
|
|
755
|
-
* This API includes parameters for basic data visualization:
|
|
756
|
-
*
|
|
757
|
-
* - Labeled pushpins in multiple styles.
|
|
758
|
-
* - Render circle, path, and polygon geometry types.
|
|
759
|
-
*
|
|
760
|
-
* For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data).
|
|
761
|
-
* <br><br>
|
|
762
|
-
* The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail.
|
|
763
|
-
* <br><br>
|
|
764
|
-
*
|
|
765
|
-
* |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range|
|
|
766
|
-
* |:----------|:----------------|:----------------|:----------------|:-------------|
|
|
767
|
-
* |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 |
|
|
768
|
-
* |1 | 28.125 | 360.0 | 14.87468995 | 180.0 |
|
|
769
|
-
* |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 |
|
|
770
|
-
* |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 |
|
|
771
|
-
* |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 |
|
|
772
|
-
* |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 |
|
|
773
|
-
* |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 |
|
|
774
|
-
* |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 |
|
|
775
|
-
* |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 |
|
|
776
|
-
* |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 |
|
|
777
|
-
* |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 |
|
|
778
|
-
* |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 |
|
|
779
|
-
* |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 |
|
|
780
|
-
* |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 |
|
|
781
|
-
* |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 |
|
|
782
|
-
* |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 |
|
|
783
|
-
* |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 |
|
|
784
|
-
* |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 |
|
|
785
|
-
* |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 |
|
|
786
|
-
* |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 |
|
|
787
|
-
* |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 |
|
|
788
|
-
*
|
|
789
|
-
* _Note_ : Either **center** or **bbox** parameter must be supplied to the API.
|
|
790
|
-
*/
|
|
791
|
-
export declare interface RenderGetMapStaticImage200Response extends HttpResponse {
|
|
792
|
-
status: "200";
|
|
793
|
-
/** Value may contain any sequence of octets */
|
|
794
|
-
body: Uint8Array;
|
|
795
|
-
headers: RawHttpHeaders & RenderGetMapStaticImage200Headers;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications.
|
|
800
|
-
*
|
|
801
|
-
* This API includes parameters for basic data visualization:
|
|
802
|
-
*
|
|
803
|
-
* - Labeled pushpins in multiple styles.
|
|
804
|
-
* - Render circle, path, and polygon geometry types.
|
|
805
|
-
*
|
|
806
|
-
* For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data).
|
|
807
|
-
* <br><br>
|
|
808
|
-
* The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail.
|
|
809
|
-
* <br><br>
|
|
810
|
-
*
|
|
811
|
-
* |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range|
|
|
812
|
-
* |:----------|:----------------|:----------------|:----------------|:-------------|
|
|
813
|
-
* |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 |
|
|
814
|
-
* |1 | 28.125 | 360.0 | 14.87468995 | 180.0 |
|
|
815
|
-
* |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 |
|
|
816
|
-
* |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 |
|
|
817
|
-
* |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 |
|
|
818
|
-
* |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 |
|
|
819
|
-
* |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 |
|
|
820
|
-
* |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 |
|
|
821
|
-
* |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 |
|
|
822
|
-
* |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 |
|
|
823
|
-
* |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 |
|
|
824
|
-
* |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 |
|
|
825
|
-
* |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 |
|
|
826
|
-
* |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 |
|
|
827
|
-
* |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 |
|
|
828
|
-
* |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 |
|
|
829
|
-
* |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 |
|
|
830
|
-
* |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 |
|
|
831
|
-
* |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 |
|
|
832
|
-
* |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 |
|
|
833
|
-
* |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 |
|
|
834
|
-
*
|
|
835
|
-
* _Note_ : Either **center** or **bbox** parameter must be supplied to the API.
|
|
836
|
-
*/
|
|
837
|
-
export declare interface RenderGetMapStaticImageDefaultResponse extends HttpResponse {
|
|
838
|
-
status: string;
|
|
839
|
-
body: ErrorResponseOutput;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
export declare type RenderGetMapStaticImageParameters = RenderGetMapStaticImageQueryParam & RequestParameters;
|
|
843
|
-
|
|
844
|
-
export declare interface RenderGetMapStaticImageQueryParam {
|
|
845
|
-
queryParameters?: RenderGetMapStaticImageQueryParamProperties;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
export declare interface RenderGetMapStaticImageQueryParamProperties {
|
|
849
|
-
/** Map style to be returned. Possible values are microsoft.base.road, microsoft.base.darkgrey, and microsoft.imagery. Default value is set to be microsoft.base.road. For more information, see [Render TilesetId](https://learn.microsoft.com/en-us/rest/api/maps/render/get-map-tileset?view=rest-maps-2023-06-01&tabs=HTTP#tilesetid). */
|
|
850
|
-
tilesetId?: "microsoft.base" | "microsoft.base.labels" | "microsoft.base.hybrid" | "microsoft.terra.main" | "microsoft.base.road" | "microsoft.base.darkgrey" | "microsoft.base.labels.road" | "microsoft.base.labels.darkgrey" | "microsoft.base.hybrid.road" | "microsoft.base.hybrid.darkgrey" | "microsoft.imagery" | "microsoft.weather.radar.main" | "microsoft.weather.infrared.main" | "microsoft.traffic.absolute" | "microsoft.traffic.absolute.main" | "microsoft.traffic.relative" | "microsoft.traffic.relative.main" | "microsoft.traffic.relative.dark" | "microsoft.traffic.delay" | "microsoft.traffic.delay.main" | "microsoft.traffic.reduced.main" | "microsoft.traffic.incident";
|
|
851
|
-
/** Optional Value, indicating no traffic flow overlaid on the image result. Possible values are microsoft.traffic.relative.main and none. Default value is none, indicating no traffic flow returned. If traffic related tilesetId is provided, will return map image with corresponding traffic layer. For more information, see [Render TilesetId](https://learn.microsoft.com/en-us/rest/api/maps/render/get-map-tileset?view=rest-maps-2023-06-01&tabs=HTTP#tilesetid). */
|
|
852
|
-
trafficLayer?: "microsoft.traffic.relative.main" | "none";
|
|
853
|
-
/** Desired zoom level of the map. Support zoom value range from 0-20 (inclusive) for tilesetId being microsoft.base.road or microsoft.base.darkgrey. Support zoom value range from 0-19 (inclusive) for tilesetId being microsoft.imagery. Default value is 12.<br><br>For more information, see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid). */
|
|
854
|
-
zoom?: number;
|
|
855
|
-
/**
|
|
856
|
-
* Coordinates of the center point in double. Format: 'lon,lat'. Longitude range: -180 to 180. Latitude range: -90 to 90.
|
|
857
|
-
*
|
|
858
|
-
* Note: Either center or bbox are required parameters. They are
|
|
859
|
-
* mutually exclusive.
|
|
860
|
-
*/
|
|
861
|
-
center?: Array<number>;
|
|
862
|
-
/**
|
|
863
|
-
* A bounding box is defined by two latitudes and two longitudes that represent the four sides of a rectangular area on the Earth. Format : 'minLon, minLat,
|
|
864
|
-
* maxLon, maxLat' (in double).
|
|
865
|
-
*
|
|
866
|
-
* Note: Either bbox or center are required
|
|
867
|
-
* parameters. They are mutually exclusive. bbox shouldn’t be used with
|
|
868
|
-
* height or width.
|
|
869
|
-
*
|
|
870
|
-
* The maximum and minimum allowed ranges for Lat and Lon are defined for each zoom level
|
|
871
|
-
* in the table at the top of this page.
|
|
872
|
-
*/
|
|
873
|
-
bbox?: Array<number>;
|
|
874
|
-
/**
|
|
875
|
-
* Height of the resulting image in pixels. Range from 80 to 1500. Default
|
|
876
|
-
* is 512. It shouldn’t be used with bbox.
|
|
877
|
-
*/
|
|
878
|
-
height?: number;
|
|
879
|
-
/** Width of the resulting image in pixels. Range from 80 to 2000. Default is 512. It should not be used with bbox. */
|
|
880
|
-
width?: number;
|
|
881
|
-
/**
|
|
882
|
-
* Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used.
|
|
883
|
-
*
|
|
884
|
-
* Please refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.
|
|
885
|
-
*/
|
|
886
|
-
language?: string;
|
|
887
|
-
/**
|
|
888
|
-
* The View parameter (also called the "user region" parameter) allows you to show the correct maps for a certain country/region for geopolitically disputed regions. Different countries/regions have different views of such regions, and the View parameter allows your application to comply with the view required by the country/region your application will be serving. By default, the View parameter is set to “Unified” even if you haven’t defined it in the request. It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. Alternatively, you have the option to set ‘View=Auto’, which will return the map data based on the IP address of the request. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country/region where maps, images and other data and third party content that you are authorized to access via Azure Maps is made available. Example: view=IN.
|
|
889
|
-
*
|
|
890
|
-
* Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.
|
|
891
|
-
*/
|
|
892
|
-
view?: "AE" | "AR" | "BH" | "IN" | "IQ" | "JO" | "KW" | "LB" | "MA" | "OM" | "PK" | "PS" | "QA" | "SA" | "SY" | "YE" | "Auto" | "Unified";
|
|
893
|
-
/**
|
|
894
|
-
* Pushpin style and instances. Use this parameter to optionally add pushpins to the image.
|
|
895
|
-
* The pushpin style describes the appearance of the pushpins, and the instances specify
|
|
896
|
-
* the coordinates of the pushpins (in double) and optional labels for each pin. (Be sure to properly URL-encode values of this
|
|
897
|
-
* parameter since it will contain reserved characters such as pipes and punctuation.)
|
|
898
|
-
*
|
|
899
|
-
* The Azure Maps account S0 SKU only supports a single instance of the pins parameter and the number of locations is limited to 5 per pin. Other SKUs
|
|
900
|
-
* allow up to 25 instances of the pins parameter to specify multiple pin styles, and the number of locations is limited to 50 per pin.
|
|
901
|
-
*
|
|
902
|
-
* To render a pushpin at latitude 45°N and longitude 122°W using the default built-in pushpin style, add the
|
|
903
|
-
* querystring parameter
|
|
904
|
-
*
|
|
905
|
-
* `pins=default||-122 45`
|
|
906
|
-
*
|
|
907
|
-
* Note that the longitude comes before the latitude.
|
|
908
|
-
* After URL encoding this will look like
|
|
909
|
-
*
|
|
910
|
-
* `pins=default%7C%7C-122+45`
|
|
911
|
-
*
|
|
912
|
-
* All of the examples here show the pins
|
|
913
|
-
* parameter without URL encoding, for clarity.
|
|
914
|
-
*
|
|
915
|
-
* To render a pin at multiple locations, separate each location with a pipe character. For example, use
|
|
916
|
-
*
|
|
917
|
-
* `pins=default||-122 45|-119.5 43.2|-121.67 47.12`
|
|
918
|
-
*
|
|
919
|
-
* The S0 Azure Maps account SKU only allows five pushpins. Other account SKUs do not have this limitation.
|
|
920
|
-
*
|
|
921
|
-
* ### Style Modifiers
|
|
922
|
-
*
|
|
923
|
-
* You can modify the appearance of the pins by adding style modifiers. These are added after the style but before
|
|
924
|
-
* the locations and labels. Style modifiers each have a two-letter name. These abbreviated names are used to help
|
|
925
|
-
* reduce the length of the URL.
|
|
926
|
-
*
|
|
927
|
-
* To change the color of the pushpin, use the 'co' style modifier and specify the color using the HTML/CSS RGB color
|
|
928
|
-
* format which is a six-digit hexadecimal number (the three-digit form is not supported). For example, to use
|
|
929
|
-
* a deep pink color which you would specify as #FF1493 in CSS, use
|
|
930
|
-
*
|
|
931
|
-
* `pins=default|coFF1493||-122 45`
|
|
932
|
-
*
|
|
933
|
-
* ### Pushpin Labels
|
|
934
|
-
*
|
|
935
|
-
* To add a label to the pins, put the label in single quotes just before the coordinates. Avoid using special character such as `|` or `||` in label. For example, to label
|
|
936
|
-
* three pins with the values '1', '2', and '3', use
|
|
937
|
-
*
|
|
938
|
-
* `pins=default||'1'-122 45|'2'-119.5 43.2|'3'-121.67 47.12`
|
|
939
|
-
*
|
|
940
|
-
* There is a built-in pushpin style called 'none' that does not display a pushpin image. You can use this if
|
|
941
|
-
* you want to display labels without any pin image. For example,
|
|
942
|
-
*
|
|
943
|
-
* `pins=none||'A'-122 45|'B'-119.5 43.2`
|
|
944
|
-
*
|
|
945
|
-
* To change the color of the pushpin labels, use the 'lc' label color style modifier. For example, to use pink
|
|
946
|
-
* pushpins with black labels, use
|
|
947
|
-
*
|
|
948
|
-
* `pins=default|coFF1493|lc000000||-122 45`
|
|
949
|
-
*
|
|
950
|
-
* To change the size of the labels, use the 'ls' label size style modifier. The label size represents the approximate
|
|
951
|
-
* height of the label text in pixels. For example, to increase the label size to 12, use
|
|
952
|
-
*
|
|
953
|
-
* `pins=default|ls12||'A'-122 45|'B'-119 43`
|
|
954
|
-
*
|
|
955
|
-
* The labels are centered at the pushpin 'label anchor.' The anchor location is predefined for built-in pushpins and
|
|
956
|
-
* is at the top center of custom pushpins (see below). To override the label anchor, using the 'la' style modifier
|
|
957
|
-
* and provide X and Y pixel coordinates for the anchor. These coordinates are relative to the top left corner of the
|
|
958
|
-
* pushpin image. Positive X values move the anchor to the right, and positive Y values move the anchor down. For example,
|
|
959
|
-
* to position the label anchor 10 pixels right and 4 pixels above the top left corner of the pushpin image,
|
|
960
|
-
* use
|
|
961
|
-
*
|
|
962
|
-
* `pins=default|la10 -4||'A'-122 45|'B'-119 43`
|
|
963
|
-
*
|
|
964
|
-
* ### Custom Pushpins
|
|
965
|
-
*
|
|
966
|
-
* To use a custom pushpin image, use the word 'custom' as the pin style name, and then specify a URL after the
|
|
967
|
-
* location and label information. The maximum allowed size for a customized label image is 65,536 pixels. Use two pipe characters to indicate that you're done specifying locations and are
|
|
968
|
-
* starting the URL. For example,
|
|
969
|
-
*
|
|
970
|
-
* `pins=custom||-122 45||http://contoso.com/pushpins/red.png`
|
|
971
|
-
*
|
|
972
|
-
* After URL encoding, this would look like
|
|
973
|
-
*
|
|
974
|
-
* `pins=custom%7C%7C-122+45%7C%7Chttp%3A%2F%2Fcontoso.com%2Fpushpins%2Fred.png`
|
|
975
|
-
*
|
|
976
|
-
* By default, custom pushpin images are drawn centered at the pin coordinates. This usually isn't ideal as it obscures
|
|
977
|
-
* the location that you're trying to highlight. To override the anchor location of the pin image, use the 'an'
|
|
978
|
-
* style modifier. This uses the same format as the 'la' label anchor style modifier. For example, if your custom
|
|
979
|
-
* pin image has the tip of the pin at the top left corner of the image, you can set the anchor to that spot by
|
|
980
|
-
* using
|
|
981
|
-
*
|
|
982
|
-
* `pins=custom|an0 0||-122 45||http://contoso.com/pushpins/red.png`
|
|
983
|
-
*
|
|
984
|
-
* Note: If you use the 'co' color modifier with a custom pushpin image, the specified color will replace the RGB
|
|
985
|
-
* channels of the pixels in the image but will leave the alpha (opacity) channel unchanged. This would usually
|
|
986
|
-
* only be done with a solid-color custom image.
|
|
987
|
-
*
|
|
988
|
-
* ### Scale, Rotation, and Opacity
|
|
989
|
-
*
|
|
990
|
-
* You can make pushpins and their labels larger or smaller by using the 'sc' scale style modifier. This is a
|
|
991
|
-
* value greater than zero. A value of 1 is the standard scale. Values larger than 1 will make the pins larger, and
|
|
992
|
-
* values smaller than 1 will make them smaller. For example, to draw the pushpins 50% larger than normal, use
|
|
993
|
-
*
|
|
994
|
-
* `pins=default|sc1.5||-122 45`
|
|
995
|
-
*
|
|
996
|
-
* You can rotate pushpins and their labels by using the 'ro' rotation style modifier. This is a number of degrees
|
|
997
|
-
* of clockwise rotation. Use a negative number to rotate counter-clockwise. For example, to rotate the pushpins
|
|
998
|
-
* 90 degrees clockwise and double their size, use
|
|
999
|
-
*
|
|
1000
|
-
* `pins=default|ro90|sc2||-122 45`
|
|
1001
|
-
*
|
|
1002
|
-
* You can make pushpins and their labels partially transparent by specifying the 'al' alpha style modifier.
|
|
1003
|
-
* This is a number between 0 and 1 indicating the opacity of the pushpins. Zero makes them completely transparent
|
|
1004
|
-
* (and not visible) and 1 makes them completely opaque (which is the default). For example, to make pushpins
|
|
1005
|
-
* and their labels only 67% opaque, use
|
|
1006
|
-
*
|
|
1007
|
-
* `pins=default|al.67||-122 45`
|
|
1008
|
-
*
|
|
1009
|
-
* ### Style Modifier Summary
|
|
1010
|
-
*
|
|
1011
|
-
* Modifier | Description | Type | Range
|
|
1012
|
-
* :--------:|---------------|--------|----------
|
|
1013
|
-
* al | Alpha (opacity) | float | 0 to 1
|
|
1014
|
-
* an | Pin anchor | <int32, int32> | *
|
|
1015
|
-
* co | Pin color | string | 000000 to FFFFFF
|
|
1016
|
-
* la | Label anchor | <int32, int32> | *
|
|
1017
|
-
* lc | Label color | string | 000000 to FFFFFF
|
|
1018
|
-
* ls | Label size | float | Greater than 0
|
|
1019
|
-
* ro | Rotation | float | -360 to 360
|
|
1020
|
-
* sc | Scale | float | Greater than 0
|
|
1021
|
-
*
|
|
1022
|
-
* * X and Y coordinates can be anywhere within pin image or a margin around it.
|
|
1023
|
-
* The margin size is the minimum of the pin width and height.
|
|
1024
|
-
*/
|
|
1025
|
-
pins?: string;
|
|
1026
|
-
/**
|
|
1027
|
-
* Path style and locations (in double). Use this parameter to optionally add lines, polygons or circles to the image.
|
|
1028
|
-
* The path style describes the appearance of the line and fill. (Be sure to properly URL-encode values of this
|
|
1029
|
-
* parameter since it will contain reserved characters such as pipes and punctuation.)
|
|
1030
|
-
*
|
|
1031
|
-
* Path parameter is supported in Azure Maps account SKU starting with S1. Multiple instances of the path parameter
|
|
1032
|
-
* allow to specify multiple geometries with their styles. Number of parameters per request is limited to 10 and
|
|
1033
|
-
* number of locations is limited to 100 per path.
|
|
1034
|
-
*
|
|
1035
|
-
* To render a circle with radius 100 meters and center point at latitude 45°N and longitude 122°W using the default style, add the
|
|
1036
|
-
* querystring parameter
|
|
1037
|
-
*
|
|
1038
|
-
* `path=ra100||-122 45`
|
|
1039
|
-
*
|
|
1040
|
-
* Note that the longitude comes before the latitude.
|
|
1041
|
-
* After URL encoding this will look like
|
|
1042
|
-
*
|
|
1043
|
-
* `path=ra100%7C%7C-122+45`
|
|
1044
|
-
*
|
|
1045
|
-
* All of the examples here show the path parameter without URL encoding, for clarity.
|
|
1046
|
-
*
|
|
1047
|
-
* To render a line, separate each location with a pipe character. For example, use
|
|
1048
|
-
*
|
|
1049
|
-
* `path=||-122 45|-119.5 43.2|-121.67 47.12`
|
|
1050
|
-
*
|
|
1051
|
-
* A polygon is specified with a closed path, where the first and last points are equal. For example, use
|
|
1052
|
-
*
|
|
1053
|
-
* `path=||-122 45|-119.5 43.2|-121.67 47.12|-122 45`
|
|
1054
|
-
*
|
|
1055
|
-
* Longitude value for locations of lines and polygons can be in the range from -360 to 360 to allow for rendering of geometries crossing the anti-meridian.
|
|
1056
|
-
*
|
|
1057
|
-
* ### Style Modifiers
|
|
1058
|
-
*
|
|
1059
|
-
* You can modify the appearance of the path by adding style modifiers. These are added before the locations.
|
|
1060
|
-
* Style modifiers each have a two-letter name. These abbreviated names are used to help reduce the length
|
|
1061
|
-
* of the URL.
|
|
1062
|
-
*
|
|
1063
|
-
* To change the color of the outline, use the 'lc' style modifier and specify the color using the HTML/CSS RGB color
|
|
1064
|
-
* format which is a six-digit hexadecimal number (the three-digit form is not supported). For example, to use
|
|
1065
|
-
* a deep pink color which you would specify as #FF1493 in CSS, use
|
|
1066
|
-
*
|
|
1067
|
-
* `path=lcFF1493||-122 45|-119.5 43.2`
|
|
1068
|
-
*
|
|
1069
|
-
* Multiple style modifiers may be combined to create a more complex visual style.
|
|
1070
|
-
*
|
|
1071
|
-
* `lc0000FF|lw3|la0.60|fa0.50||-122.2 47.6|-122.2 47.7|-122.3 47.7|-122.3 47.6|-122.2 47.6`
|
|
1072
|
-
*
|
|
1073
|
-
* ### Style Modifier Summary
|
|
1074
|
-
*
|
|
1075
|
-
* Modifier | Description | Type | Range
|
|
1076
|
-
* :--------:|---------------|--------|----------
|
|
1077
|
-
* lc | Line color | string | 000000 to FFFFFF
|
|
1078
|
-
* fc | Fill color | string | 000000 to FFFFFF
|
|
1079
|
-
* la | Line alpha (opacity) | float | 0 to 1
|
|
1080
|
-
* fa | Fill alpha (opacity) | float | 0 to 1
|
|
1081
|
-
* lw | Line width |int32 | (0, 50]
|
|
1082
|
-
* ra | Circle radius (meters) | float | Greater than 0
|
|
1083
|
-
*/
|
|
1084
|
-
path?: string;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
export declare interface RenderGetMapTile200Headers {
|
|
1088
|
-
/** The content-type for the response. */
|
|
1089
|
-
"content-type"?: string;
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
*
|
|
1094
|
-
* The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk).
|
|
1095
|
-
*/
|
|
1096
|
-
export declare interface RenderGetMapTile200Response extends HttpResponse {
|
|
1097
|
-
status: "200";
|
|
1098
|
-
/** Value may contain any sequence of octets */
|
|
1099
|
-
body: Uint8Array;
|
|
1100
|
-
headers: RawHttpHeaders & RenderGetMapTile200Headers;
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
/**
|
|
1104
|
-
*
|
|
1105
|
-
* The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk).
|
|
1106
|
-
*/
|
|
1107
|
-
export declare interface RenderGetMapTileDefaultResponse extends HttpResponse {
|
|
1108
|
-
status: string;
|
|
1109
|
-
body: ErrorResponseOutput;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
export declare type RenderGetMapTileParameters = RenderGetMapTileQueryParam & RequestParameters;
|
|
1113
|
-
|
|
1114
|
-
export declare interface RenderGetMapTileQueryParam {
|
|
1115
|
-
queryParameters: RenderGetMapTileQueryParamProperties;
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
export declare interface RenderGetMapTileQueryParamProperties {
|
|
1119
|
-
/** A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at preset zoom levels. Every tileset has a **tilesetId** to use when making requests. The **tilesetId** for tilesets created using [Azure Maps Creator](https://aka.ms/amcreator) are generated through the [Tileset Create API](https://docs.microsoft.com/rest/api/maps-creator/tileset). The ready-to-use tilesets supplied by Azure Maps are listed below. For example, microsoft.base. */
|
|
1120
|
-
tilesetId: "microsoft.base" | "microsoft.base.labels" | "microsoft.base.hybrid" | "microsoft.terra.main" | "microsoft.base.road" | "microsoft.base.darkgrey" | "microsoft.base.labels.road" | "microsoft.base.labels.darkgrey" | "microsoft.base.hybrid.road" | "microsoft.base.hybrid.darkgrey" | "microsoft.imagery" | "microsoft.weather.radar.main" | "microsoft.weather.infrared.main" | "microsoft.traffic.absolute" | "microsoft.traffic.absolute.main" | "microsoft.traffic.relative" | "microsoft.traffic.relative.main" | "microsoft.traffic.relative.dark" | "microsoft.traffic.delay" | "microsoft.traffic.delay.main" | "microsoft.traffic.reduced.main" | "microsoft.traffic.incident";
|
|
1121
|
-
/**
|
|
1122
|
-
* Zoom level for the desired tile.
|
|
1123
|
-
*
|
|
1124
|
-
* Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.
|
|
1125
|
-
*/
|
|
1126
|
-
zoom: number;
|
|
1127
|
-
/**
|
|
1128
|
-
* X coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].
|
|
1129
|
-
*
|
|
1130
|
-
* Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.
|
|
1131
|
-
*/
|
|
1132
|
-
x: number;
|
|
1133
|
-
/**
|
|
1134
|
-
* Y coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].
|
|
1135
|
-
*
|
|
1136
|
-
* Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.
|
|
1137
|
-
*/
|
|
1138
|
-
y: number;
|
|
1139
|
-
/**
|
|
1140
|
-
* The desired date and time of the requested tile. This parameter must be specified in the standard date-time format (e.g. 2019-11-14T16:03:00-08:00), as defined by [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). This parameter is only supported when tilesetId parameter is set to one of the values below.
|
|
1141
|
-
*
|
|
1142
|
-
* * microsoft.weather.infrared.main: We provide tiles up to 3 hours in the past. Tiles are available in 10-minute intervals. We round the timeStamp value to the nearest 10-minute time frame.
|
|
1143
|
-
* * microsoft.weather.radar.main: We provide tiles up to 1.5 hours in the past and up to 2 hours in the future. Tiles are available in 5-minute intervals. We round the timeStamp value to the nearest 5-minute time frame.
|
|
1144
|
-
*/
|
|
1145
|
-
timeStamp?: Date | string;
|
|
1146
|
-
/** The size of the returned map tile in pixels. */
|
|
1147
|
-
tileSize?: "256" | "512";
|
|
1148
|
-
/**
|
|
1149
|
-
* Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used.
|
|
1150
|
-
*
|
|
1151
|
-
* Please refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.
|
|
1152
|
-
*/
|
|
1153
|
-
language?: string;
|
|
1154
|
-
/**
|
|
1155
|
-
* The View parameter (also called the "user region" parameter) allows you to show the correct maps for a certain country/region for geopolitically disputed regions. Different countries/regions have different views of such regions, and the View parameter allows your application to comply with the view required by the country/region your application will be serving. By default, the View parameter is set to “Unified” even if you haven’t defined it in the request. It is your responsibility to determine the location of your users, and then set the View parameter correctly for that location. Alternatively, you have the option to set ‘View=Auto’, which will return the map data based on the IP address of the request. The View parameter in Azure Maps must be used in compliance with applicable laws, including those regarding mapping, of the country/region where maps, images and other data and third party content that you are authorized to access via Azure Maps is made available. Example: view=IN.
|
|
1156
|
-
*
|
|
1157
|
-
* Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.
|
|
1158
|
-
*/
|
|
1159
|
-
view?: "AE" | "AR" | "BH" | "IN" | "IQ" | "JO" | "KW" | "LB" | "MA" | "OM" | "PK" | "PS" | "QA" | "SA" | "SY" | "YE" | "Auto" | "Unified";
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
/**
|
|
1163
|
-
*
|
|
1164
|
-
* The Get Map Tileset API allows users to request metadata for a tileset.
|
|
1165
|
-
*/
|
|
1166
|
-
export declare interface RenderGetMapTileset200Response extends HttpResponse {
|
|
1167
|
-
status: "200";
|
|
1168
|
-
body: MapTilesetOutput;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
/**
|
|
1172
|
-
*
|
|
1173
|
-
* The Get Map Tileset API allows users to request metadata for a tileset.
|
|
1174
|
-
*/
|
|
1175
|
-
export declare interface RenderGetMapTilesetDefaultResponse extends HttpResponse {
|
|
1176
|
-
status: string;
|
|
1177
|
-
body: ErrorResponseOutput;
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
export declare type RenderGetMapTilesetParameters = RenderGetMapTilesetQueryParam & RequestParameters;
|
|
1181
|
-
|
|
1182
|
-
export declare interface RenderGetMapTilesetQueryParam {
|
|
1183
|
-
queryParameters: RenderGetMapTilesetQueryParamProperties;
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
export declare interface RenderGetMapTilesetQueryParamProperties {
|
|
1187
|
-
/** A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at preset zoom levels. Every tileset has a **tilesetId** to use when making requests. The **tilesetId** for tilesets created using [Azure Maps Creator](https://aka.ms/amcreator) are generated through the [Tileset Create API](https://docs.microsoft.com/rest/api/maps-creator/tileset). The ready-to-use tilesets supplied by Azure Maps are listed below. For example, microsoft.base. */
|
|
1188
|
-
tilesetId: "microsoft.base" | "microsoft.base.labels" | "microsoft.base.hybrid" | "microsoft.terra.main" | "microsoft.base.road" | "microsoft.base.darkgrey" | "microsoft.base.labels.road" | "microsoft.base.labels.darkgrey" | "microsoft.base.hybrid.road" | "microsoft.base.hybrid.darkgrey" | "microsoft.imagery" | "microsoft.weather.radar.main" | "microsoft.weather.infrared.main" | "microsoft.traffic.absolute" | "microsoft.traffic.absolute.main" | "microsoft.traffic.relative" | "microsoft.traffic.relative.main" | "microsoft.traffic.relative.dark" | "microsoft.traffic.delay" | "microsoft.traffic.delay.main" | "microsoft.traffic.reduced.main" | "microsoft.traffic.incident";
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
export declare interface Routes {
|
|
1192
|
-
/** Resource for '/map/tile' has methods for the following verbs: get */
|
|
1193
|
-
(path: "/map/tile"): GetMapTile;
|
|
1194
|
-
/** Resource for '/map/tileset' has methods for the following verbs: get */
|
|
1195
|
-
(path: "/map/tileset"): GetMapTileset;
|
|
1196
|
-
/** Resource for '/map/attribution' has methods for the following verbs: get */
|
|
1197
|
-
(path: "/map/attribution"): GetMapAttribution;
|
|
1198
|
-
/** Resource for '/map/statetile' has methods for the following verbs: get */
|
|
1199
|
-
(path: "/map/statetile"): GetMapStateTile;
|
|
1200
|
-
/** Resource for '/map/copyright/caption/\{format\}' has methods for the following verbs: get */
|
|
1201
|
-
(path: "/map/copyright/caption/{format}", format: "json" | "xml"): GetCopyrightCaption;
|
|
1202
|
-
/** Resource for '/map/static' has methods for the following verbs: get */
|
|
1203
|
-
(path: "/map/static"): GetMapStaticImage;
|
|
1204
|
-
/** Resource for '/map/copyright/bounding/\{format\}' has methods for the following verbs: get */
|
|
1205
|
-
(path: "/map/copyright/bounding/{format}", format: "json" | "xml"): GetCopyrightFromBoundingBox;
|
|
1206
|
-
/** Resource for '/map/copyright/tile/\{format\}' has methods for the following verbs: get */
|
|
1207
|
-
(path: "/map/copyright/tile/{format}", format: "json" | "xml"): GetCopyrightForTile;
|
|
1208
|
-
/** Resource for '/map/copyright/world/\{format\}' has methods for the following verbs: get */
|
|
1209
|
-
(path: "/map/copyright/world/{format}", format: "json" | "xml"): GetCopyrightForWorld;
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
export { }
|