@azure-rest/maps-render 2.0.0-alpha.20241122.1 → 2.0.0-alpha.20241125.5
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/browser/createMultiCollection.d.ts +7 -0
- package/dist/browser/createMultiCollection.d.ts.map +1 -0
- package/dist/browser/createPathQuery.d.ts +100 -0
- package/dist/browser/createPathQuery.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/createPathQuery.js +1 -1
- package/dist/browser/createPathQuery.js.map +1 -0
- package/dist/browser/createPinsQuery.d.ts +83 -0
- package/dist/browser/createPinsQuery.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/createPinsQuery.js +1 -1
- 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 +79 -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 +42 -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 +52 -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 +26 -0
- package/dist/browser/positionToTileXY.d.ts.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 +100 -0
- package/dist/commonjs/createPathQuery.d.ts.map +1 -0
- package/dist/commonjs/createPathQuery.js +100 -0
- package/dist/commonjs/createPathQuery.js.map +1 -0
- package/dist/commonjs/createPinsQuery.d.ts +83 -0
- package/dist/commonjs/createPinsQuery.d.ts.map +1 -0
- package/dist/commonjs/createPinsQuery.js +77 -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 +82 -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 +45 -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 +52 -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 +26 -0
- package/dist/commonjs/positionToTileXY.d.ts.map +1 -0
- package/dist/commonjs/positionToTileXY.js +47 -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 +100 -0
- package/dist/esm/createPathQuery.d.ts.map +1 -0
- package/dist/esm/createPathQuery.js +97 -0
- package/dist/esm/createPathQuery.js.map +1 -0
- package/dist/esm/createPinsQuery.d.ts +83 -0
- package/dist/esm/createPinsQuery.d.ts.map +1 -0
- package/dist/esm/createPinsQuery.js +74 -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 +79 -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 +42 -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 +52 -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 +26 -0
- package/dist/esm/positionToTileXY.d.ts.map +1 -0
- package/dist/esm/positionToTileXY.js +44 -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 +100 -0
- package/dist/react-native/createPathQuery.d.ts.map +1 -0
- package/dist/react-native/createPathQuery.js +97 -0
- package/dist/react-native/createPathQuery.js.map +1 -0
- package/dist/react-native/createPinsQuery.d.ts +83 -0
- package/dist/react-native/createPinsQuery.d.ts.map +1 -0
- package/dist/react-native/createPinsQuery.js +74 -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 +79 -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 +42 -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 +52 -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 +26 -0
- package/dist/react-native/positionToTileXY.d.ts.map +1 -0
- package/dist/react-native/positionToTileXY.js +44 -0
- package/dist/react-native/positionToTileXY.js.map +1 -0
- package/package.json +65 -46
- 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/review/maps-render.api.md +0 -564
- /package/{dist-esm/src → dist/browser}/createMultiCollection.js +0 -0
- /package/{dist-esm/src → dist/browser}/createMultiCollection.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/positionToTileXY.js +0 -0
- /package/{dist-esm/src → dist/browser}/positionToTileXY.js.map +0 -0
- /package/{types → dist}/maps-render-rest.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/generated/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\n\nexport interface RenderGetMapTileQueryParamProperties {\n /** 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. */\n tilesetId:\n | \"microsoft.base\"\n | \"microsoft.base.labels\"\n | \"microsoft.base.hybrid\"\n | \"microsoft.terra.main\"\n | \"microsoft.base.road\"\n | \"microsoft.base.darkgrey\"\n | \"microsoft.base.labels.road\"\n | \"microsoft.base.labels.darkgrey\"\n | \"microsoft.base.hybrid.road\"\n | \"microsoft.base.hybrid.darkgrey\"\n | \"microsoft.imagery\"\n | \"microsoft.weather.radar.main\"\n | \"microsoft.weather.infrared.main\"\n | \"microsoft.traffic.absolute\"\n | \"microsoft.traffic.absolute.main\"\n | \"microsoft.traffic.relative\"\n | \"microsoft.traffic.relative.main\"\n | \"microsoft.traffic.relative.dark\"\n | \"microsoft.traffic.delay\"\n | \"microsoft.traffic.delay.main\"\n | \"microsoft.traffic.reduced.main\"\n | \"microsoft.traffic.incident\";\n /**\n * Zoom level for the desired tile.\n *\n * Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.\n */\n zoom: number;\n /**\n * X coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].\n *\n * Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.\n */\n x: number;\n /**\n * Y coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].\n *\n * Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.\n */\n y: number;\n /**\n * 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.\n *\n * * 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.\n * * 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.\n */\n timeStamp?: Date | string;\n /** The size of the returned map tile in pixels. */\n tileSize?: \"256\" | \"512\";\n /**\n * 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.\n *\n * Please refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.\n */\n language?: string;\n /**\n * 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.\n *\n * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.\n */\n view?:\n | \"AE\"\n | \"AR\"\n | \"BH\"\n | \"IN\"\n | \"IQ\"\n | \"JO\"\n | \"KW\"\n | \"LB\"\n | \"MA\"\n | \"OM\"\n | \"PK\"\n | \"PS\"\n | \"QA\"\n | \"SA\"\n | \"SY\"\n | \"YE\"\n | \"Auto\"\n | \"Unified\";\n}\n\nexport interface RenderGetMapTileQueryParam {\n queryParameters: RenderGetMapTileQueryParamProperties;\n}\n\nexport type RenderGetMapTileParameters = RenderGetMapTileQueryParam &\n RequestParameters;\n\nexport interface RenderGetMapTilesetQueryParamProperties {\n /** 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. */\n tilesetId:\n | \"microsoft.base\"\n | \"microsoft.base.labels\"\n | \"microsoft.base.hybrid\"\n | \"microsoft.terra.main\"\n | \"microsoft.base.road\"\n | \"microsoft.base.darkgrey\"\n | \"microsoft.base.labels.road\"\n | \"microsoft.base.labels.darkgrey\"\n | \"microsoft.base.hybrid.road\"\n | \"microsoft.base.hybrid.darkgrey\"\n | \"microsoft.imagery\"\n | \"microsoft.weather.radar.main\"\n | \"microsoft.weather.infrared.main\"\n | \"microsoft.traffic.absolute\"\n | \"microsoft.traffic.absolute.main\"\n | \"microsoft.traffic.relative\"\n | \"microsoft.traffic.relative.main\"\n | \"microsoft.traffic.relative.dark\"\n | \"microsoft.traffic.delay\"\n | \"microsoft.traffic.delay.main\"\n | \"microsoft.traffic.reduced.main\"\n | \"microsoft.traffic.incident\";\n}\n\nexport interface RenderGetMapTilesetQueryParam {\n queryParameters: RenderGetMapTilesetQueryParamProperties;\n}\n\nexport type RenderGetMapTilesetParameters = RenderGetMapTilesetQueryParam &\n RequestParameters;\n\nexport interface RenderGetMapAttributionQueryParamProperties {\n /** 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. */\n tilesetId:\n | \"microsoft.base\"\n | \"microsoft.base.labels\"\n | \"microsoft.base.hybrid\"\n | \"microsoft.terra.main\"\n | \"microsoft.base.road\"\n | \"microsoft.base.darkgrey\"\n | \"microsoft.base.labels.road\"\n | \"microsoft.base.labels.darkgrey\"\n | \"microsoft.base.hybrid.road\"\n | \"microsoft.base.hybrid.darkgrey\"\n | \"microsoft.imagery\"\n | \"microsoft.weather.radar.main\"\n | \"microsoft.weather.infrared.main\"\n | \"microsoft.traffic.absolute\"\n | \"microsoft.traffic.absolute.main\"\n | \"microsoft.traffic.relative\"\n | \"microsoft.traffic.relative.main\"\n | \"microsoft.traffic.relative.dark\"\n | \"microsoft.traffic.delay\"\n | \"microsoft.traffic.delay.main\"\n | \"microsoft.traffic.reduced.main\"\n | \"microsoft.traffic.incident\";\n /** Zoom level for the desired map attribution. */\n zoom: number;\n /** 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]`. */\n bounds: Array<number>;\n}\n\nexport interface RenderGetMapAttributionQueryParam {\n queryParameters: RenderGetMapAttributionQueryParamProperties;\n}\n\nexport type RenderGetMapAttributionParameters =\n RenderGetMapAttributionQueryParam & RequestParameters;\n\nexport interface RenderGetMapStateTileQueryParamProperties {\n /**\n * Zoom level for the desired tile.\n *\n * Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.\n */\n zoom: number;\n /**\n * X coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].\n *\n * Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.\n */\n x: number;\n /**\n * Y coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].\n *\n * Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.\n */\n y: number;\n /** The stateset id. */\n statesetId: string;\n}\n\nexport interface RenderGetMapStateTileQueryParam {\n queryParameters: RenderGetMapStateTileQueryParamProperties;\n}\n\nexport type RenderGetMapStateTileParameters = RenderGetMapStateTileQueryParam &\n RequestParameters;\nexport type RenderGetCopyrightCaptionParameters = RequestParameters;\n\nexport interface RenderGetMapStaticImageQueryParamProperties {\n /** 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). */\n tilesetId?:\n | \"microsoft.base\"\n | \"microsoft.base.labels\"\n | \"microsoft.base.hybrid\"\n | \"microsoft.terra.main\"\n | \"microsoft.base.road\"\n | \"microsoft.base.darkgrey\"\n | \"microsoft.base.labels.road\"\n | \"microsoft.base.labels.darkgrey\"\n | \"microsoft.base.hybrid.road\"\n | \"microsoft.base.hybrid.darkgrey\"\n | \"microsoft.imagery\"\n | \"microsoft.weather.radar.main\"\n | \"microsoft.weather.infrared.main\"\n | \"microsoft.traffic.absolute\"\n | \"microsoft.traffic.absolute.main\"\n | \"microsoft.traffic.relative\"\n | \"microsoft.traffic.relative.main\"\n | \"microsoft.traffic.relative.dark\"\n | \"microsoft.traffic.delay\"\n | \"microsoft.traffic.delay.main\"\n | \"microsoft.traffic.reduced.main\"\n | \"microsoft.traffic.incident\";\n /** 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). */\n trafficLayer?: \"microsoft.traffic.relative.main\" | \"none\";\n /** 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). */\n zoom?: number;\n /**\n * Coordinates of the center point in double. Format: 'lon,lat'. Longitude range: -180 to 180. Latitude range: -90 to 90.\n *\n * Note: Either center or bbox are required parameters. They are\n * mutually exclusive.\n */\n center?: Array<number>;\n /**\n * 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,\n * maxLon, maxLat' (in double).\n *\n * Note: Either bbox or center are required\n * parameters. They are mutually exclusive. bbox shouldn’t be used with\n * height or width.\n *\n * The maximum and minimum allowed ranges for Lat and Lon are defined for each zoom level\n * in the table at the top of this page.\n */\n bbox?: Array<number>;\n /**\n * Height of the resulting image in pixels. Range from 80 to 1500. Default\n * is 512. It shouldn’t be used with bbox.\n */\n height?: number;\n /** Width of the resulting image in pixels. Range from 80 to 2000. Default is 512. It should not be used with bbox. */\n width?: number;\n /**\n * 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.\n *\n * Please refer to [Supported Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for details.\n */\n language?: string;\n /**\n * 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.\n *\n * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views.\n */\n view?:\n | \"AE\"\n | \"AR\"\n | \"BH\"\n | \"IN\"\n | \"IQ\"\n | \"JO\"\n | \"KW\"\n | \"LB\"\n | \"MA\"\n | \"OM\"\n | \"PK\"\n | \"PS\"\n | \"QA\"\n | \"SA\"\n | \"SY\"\n | \"YE\"\n | \"Auto\"\n | \"Unified\";\n /**\n * Pushpin style and instances. Use this parameter to optionally add pushpins to the image.\n * The pushpin style describes the appearance of the pushpins, and the instances specify\n * the coordinates of the pushpins (in double) and optional labels for each pin. (Be sure to properly URL-encode values of this\n * parameter since it will contain reserved characters such as pipes and punctuation.)\n *\n * 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\n * 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.\n *\n * To render a pushpin at latitude 45°N and longitude 122°W using the default built-in pushpin style, add the\n * querystring parameter\n *\n * `pins=default||-122 45`\n *\n * Note that the longitude comes before the latitude.\n * After URL encoding this will look like\n *\n * `pins=default%7C%7C-122+45`\n *\n * All of the examples here show the pins\n * parameter without URL encoding, for clarity.\n *\n * To render a pin at multiple locations, separate each location with a pipe character. For example, use\n *\n * `pins=default||-122 45|-119.5 43.2|-121.67 47.12`\n *\n * The S0 Azure Maps account SKU only allows five pushpins. Other account SKUs do not have this limitation.\n *\n * ### Style Modifiers\n *\n * You can modify the appearance of the pins by adding style modifiers. These are added after the style but before\n * the locations and labels. Style modifiers each have a two-letter name. These abbreviated names are used to help\n * reduce the length of the URL.\n *\n * To change the color of the pushpin, use the 'co' style modifier and specify the color using the HTML/CSS RGB color\n * format which is a six-digit hexadecimal number (the three-digit form is not supported). For example, to use\n * a deep pink color which you would specify as #FF1493 in CSS, use\n *\n * `pins=default|coFF1493||-122 45`\n *\n * ### Pushpin Labels\n *\n * 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\n * three pins with the values '1', '2', and '3', use\n *\n * `pins=default||'1'-122 45|'2'-119.5 43.2|'3'-121.67 47.12`\n *\n * There is a built-in pushpin style called 'none' that does not display a pushpin image. You can use this if\n * you want to display labels without any pin image. For example,\n *\n * `pins=none||'A'-122 45|'B'-119.5 43.2`\n *\n * To change the color of the pushpin labels, use the 'lc' label color style modifier. For example, to use pink\n * pushpins with black labels, use\n *\n * `pins=default|coFF1493|lc000000||-122 45`\n *\n * To change the size of the labels, use the 'ls' label size style modifier. The label size represents the approximate\n * height of the label text in pixels. For example, to increase the label size to 12, use\n *\n * `pins=default|ls12||'A'-122 45|'B'-119 43`\n *\n * The labels are centered at the pushpin 'label anchor.' The anchor location is predefined for built-in pushpins and\n * is at the top center of custom pushpins (see below). To override the label anchor, using the 'la' style modifier\n * and provide X and Y pixel coordinates for the anchor. These coordinates are relative to the top left corner of the\n * pushpin image. Positive X values move the anchor to the right, and positive Y values move the anchor down. For example,\n * to position the label anchor 10 pixels right and 4 pixels above the top left corner of the pushpin image,\n * use\n *\n * `pins=default|la10 -4||'A'-122 45|'B'-119 43`\n *\n * ### Custom Pushpins\n *\n * To use a custom pushpin image, use the word 'custom' as the pin style name, and then specify a URL after the\n * 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\n * starting the URL. For example,\n *\n * `pins=custom||-122 45||http://contoso.com/pushpins/red.png`\n *\n * After URL encoding, this would look like\n *\n * `pins=custom%7C%7C-122+45%7C%7Chttp%3A%2F%2Fcontoso.com%2Fpushpins%2Fred.png`\n *\n * By default, custom pushpin images are drawn centered at the pin coordinates. This usually isn't ideal as it obscures\n * the location that you're trying to highlight. To override the anchor location of the pin image, use the 'an'\n * style modifier. This uses the same format as the 'la' label anchor style modifier. For example, if your custom\n * 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\n * using\n *\n * `pins=custom|an0 0||-122 45||http://contoso.com/pushpins/red.png`\n *\n * Note: If you use the 'co' color modifier with a custom pushpin image, the specified color will replace the RGB\n * channels of the pixels in the image but will leave the alpha (opacity) channel unchanged. This would usually\n * only be done with a solid-color custom image.\n *\n * ### Scale, Rotation, and Opacity\n *\n * You can make pushpins and their labels larger or smaller by using the 'sc' scale style modifier. This is a\n * value greater than zero. A value of 1 is the standard scale. Values larger than 1 will make the pins larger, and\n * values smaller than 1 will make them smaller. For example, to draw the pushpins 50% larger than normal, use\n *\n * `pins=default|sc1.5||-122 45`\n *\n * You can rotate pushpins and their labels by using the 'ro' rotation style modifier. This is a number of degrees\n * of clockwise rotation. Use a negative number to rotate counter-clockwise. For example, to rotate the pushpins\n * 90 degrees clockwise and double their size, use\n *\n * `pins=default|ro90|sc2||-122 45`\n *\n * You can make pushpins and their labels partially transparent by specifying the 'al' alpha style modifier.\n * This is a number between 0 and 1 indicating the opacity of the pushpins. Zero makes them completely transparent\n * (and not visible) and 1 makes them completely opaque (which is the default). For example, to make pushpins\n * and their labels only 67% opaque, use\n *\n * `pins=default|al.67||-122 45`\n *\n * ### Style Modifier Summary\n *\n * Modifier | Description | Type | Range\n * :--------:|---------------|--------|----------\n * al | Alpha (opacity) | float | 0 to 1\n * an | Pin anchor | <int32, int32> | *\n * co | Pin color | string | 000000 to FFFFFF\n * la | Label anchor | <int32, int32> | *\n * lc | Label color | string | 000000 to FFFFFF\n * ls | Label size | float | Greater than 0\n * ro | Rotation | float | -360 to 360\n * sc | Scale | float | Greater than 0\n *\n * * X and Y coordinates can be anywhere within pin image or a margin around it.\n * The margin size is the minimum of the pin width and height.\n */\n pins?: string;\n /**\n * Path style and locations (in double). Use this parameter to optionally add lines, polygons or circles to the image.\n * The path style describes the appearance of the line and fill. (Be sure to properly URL-encode values of this\n * parameter since it will contain reserved characters such as pipes and punctuation.)\n *\n * Path parameter is supported in Azure Maps account SKU starting with S1. Multiple instances of the path parameter\n * allow to specify multiple geometries with their styles. Number of parameters per request is limited to 10 and\n * number of locations is limited to 100 per path.\n *\n * 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\n * querystring parameter\n *\n * `path=ra100||-122 45`\n *\n * Note that the longitude comes before the latitude.\n * After URL encoding this will look like\n *\n * `path=ra100%7C%7C-122+45`\n *\n * All of the examples here show the path parameter without URL encoding, for clarity.\n *\n * To render a line, separate each location with a pipe character. For example, use\n *\n * `path=||-122 45|-119.5 43.2|-121.67 47.12`\n *\n * A polygon is specified with a closed path, where the first and last points are equal. For example, use\n *\n * `path=||-122 45|-119.5 43.2|-121.67 47.12|-122 45`\n *\n * 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.\n *\n * ### Style Modifiers\n *\n * You can modify the appearance of the path by adding style modifiers. These are added before the locations.\n * Style modifiers each have a two-letter name. These abbreviated names are used to help reduce the length\n * of the URL.\n *\n * To change the color of the outline, use the 'lc' style modifier and specify the color using the HTML/CSS RGB color\n * format which is a six-digit hexadecimal number (the three-digit form is not supported). For example, to use\n * a deep pink color which you would specify as #FF1493 in CSS, use\n *\n * `path=lcFF1493||-122 45|-119.5 43.2`\n *\n * Multiple style modifiers may be combined to create a more complex visual style.\n *\n * `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`\n *\n * ### Style Modifier Summary\n *\n * Modifier | Description | Type | Range\n * :--------:|---------------|--------|----------\n * lc | Line color | string | 000000 to FFFFFF\n * fc | Fill color | string | 000000 to FFFFFF\n * la | Line alpha (opacity) | float | 0 to 1\n * fa | Fill alpha (opacity) | float | 0 to 1\n * lw | Line width |int32 | (0, 50]\n * ra | Circle radius (meters) | float | Greater than 0\n */\n path?: string;\n}\n\nexport interface RenderGetMapStaticImageQueryParam {\n queryParameters?: RenderGetMapStaticImageQueryParamProperties;\n}\n\nexport type RenderGetMapStaticImageParameters =\n RenderGetMapStaticImageQueryParam & RequestParameters;\n\nexport interface RenderGetCopyrightFromBoundingBoxQueryParamProperties {\n /** Minimum coordinates (south-west point) of bounding box in latitude longitude coordinate system. E.g. 52.41064,4.84228 */\n mincoordinates: Array<number>;\n /** Maximum coordinates (north-east point) of bounding box in latitude longitude coordinate system. E.g. 52.41064,4.84228 */\n maxcoordinates: Array<number>;\n /** Yes/no value to exclude textual data from response. Only images and country/region names will be in response. */\n text?: \"yes\" | \"no\";\n}\n\nexport interface RenderGetCopyrightFromBoundingBoxQueryParam {\n queryParameters: RenderGetCopyrightFromBoundingBoxQueryParamProperties;\n}\n\nexport type RenderGetCopyrightFromBoundingBoxParameters =\n RenderGetCopyrightFromBoundingBoxQueryParam & RequestParameters;\n\nexport interface RenderGetCopyrightForTileQueryParamProperties {\n /**\n * Zoom level for the desired tile.\n *\n * Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.\n */\n zoom: number;\n /**\n * X coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].\n *\n * Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.\n */\n x: number;\n /**\n * Y coordinate of the tile on zoom grid. Value must be in the range [0, 2<sup>`zoom`</sup> -1].\n *\n * Please see [Zoom Levels and Tile Grid](https://docs.microsoft.com/azure/location-based-services/zoom-levels-and-tile-grid) for details.\n */\n y: number;\n /** Yes/no value to exclude textual data from response. Only images and country/region names will be in response. */\n text?: \"yes\" | \"no\";\n}\n\nexport interface RenderGetCopyrightForTileQueryParam {\n queryParameters: RenderGetCopyrightForTileQueryParamProperties;\n}\n\nexport type RenderGetCopyrightForTileParameters =\n RenderGetCopyrightForTileQueryParam & RequestParameters;\n\nexport interface RenderGetCopyrightForWorldQueryParamProperties {\n /** Yes/no value to exclude textual data from response. Only images and country/region names will be in response. */\n text?: \"yes\" | \"no\";\n}\n\nexport interface RenderGetCopyrightForWorldQueryParam {\n queryParameters?: RenderGetCopyrightForWorldQueryParamProperties;\n}\n\nexport type RenderGetCopyrightForWorldParameters =\n RenderGetCopyrightForWorldQueryParam & RequestParameters;\n"]}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { RawHttpHeaders } from "@azure/core-rest-pipeline";
|
|
2
|
+
import { HttpResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { ErrorResponseOutput, MapTilesetOutput, MapAttributionOutput, CopyrightCaptionOutput, CopyrightOutput } from "./outputModels.js";
|
|
4
|
+
export interface RenderGetMapTile200Headers {
|
|
5
|
+
/** The content-type for the response. */
|
|
6
|
+
"content-type"?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* 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).
|
|
11
|
+
*/
|
|
12
|
+
export interface RenderGetMapTile200Response extends HttpResponse {
|
|
13
|
+
status: "200";
|
|
14
|
+
/** Value may contain any sequence of octets */
|
|
15
|
+
body: Uint8Array;
|
|
16
|
+
headers: RawHttpHeaders & RenderGetMapTile200Headers;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* 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).
|
|
21
|
+
*/
|
|
22
|
+
export interface RenderGetMapTileDefaultResponse extends HttpResponse {
|
|
23
|
+
status: string;
|
|
24
|
+
body: ErrorResponseOutput;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* The Get Map Tileset API allows users to request metadata for a tileset.
|
|
29
|
+
*/
|
|
30
|
+
export interface RenderGetMapTileset200Response extends HttpResponse {
|
|
31
|
+
status: "200";
|
|
32
|
+
body: MapTilesetOutput;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* The Get Map Tileset API allows users to request metadata for a tileset.
|
|
37
|
+
*/
|
|
38
|
+
export interface RenderGetMapTilesetDefaultResponse extends HttpResponse {
|
|
39
|
+
status: string;
|
|
40
|
+
body: ErrorResponseOutput;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset.
|
|
45
|
+
*/
|
|
46
|
+
export interface RenderGetMapAttribution200Response extends HttpResponse {
|
|
47
|
+
status: "200";
|
|
48
|
+
body: MapAttributionOutput;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset.
|
|
53
|
+
*/
|
|
54
|
+
export interface RenderGetMapAttributionDefaultResponse extends HttpResponse {
|
|
55
|
+
status: string;
|
|
56
|
+
body: ErrorResponseOutput;
|
|
57
|
+
}
|
|
58
|
+
export interface RenderGetMapStateTile200Headers {
|
|
59
|
+
/** The content-type for the response. */
|
|
60
|
+
"content-type"?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* 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).
|
|
65
|
+
*/
|
|
66
|
+
export interface RenderGetMapStateTile200Response extends HttpResponse {
|
|
67
|
+
status: "200";
|
|
68
|
+
/** Value may contain any sequence of octets */
|
|
69
|
+
body: Uint8Array;
|
|
70
|
+
headers: RawHttpHeaders & RenderGetMapStateTile200Headers;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* 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).
|
|
75
|
+
*/
|
|
76
|
+
export interface RenderGetMapStateTileDefaultResponse extends HttpResponse {
|
|
77
|
+
status: string;
|
|
78
|
+
body: ErrorResponseOutput;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* 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.
|
|
83
|
+
*
|
|
84
|
+
* As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map.
|
|
85
|
+
*/
|
|
86
|
+
export interface RenderGetCopyrightCaption200Response extends HttpResponse {
|
|
87
|
+
status: "200";
|
|
88
|
+
body: CopyrightCaptionOutput;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* 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.
|
|
93
|
+
*
|
|
94
|
+
* As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map.
|
|
95
|
+
*/
|
|
96
|
+
export interface RenderGetCopyrightCaptionDefaultResponse extends HttpResponse {
|
|
97
|
+
status: string;
|
|
98
|
+
body: ErrorResponseOutput;
|
|
99
|
+
}
|
|
100
|
+
export interface RenderGetMapStaticImage200Headers {
|
|
101
|
+
/** The content-type for the response. */
|
|
102
|
+
"content-type"?: string;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 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.
|
|
106
|
+
*
|
|
107
|
+
* This API includes parameters for basic data visualization:
|
|
108
|
+
*
|
|
109
|
+
* - Labeled pushpins in multiple styles.
|
|
110
|
+
* - Render circle, path, and polygon geometry types.
|
|
111
|
+
*
|
|
112
|
+
* For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data).
|
|
113
|
+
* <br><br>
|
|
114
|
+
* The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail.
|
|
115
|
+
* <br><br>
|
|
116
|
+
*
|
|
117
|
+
* |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range|
|
|
118
|
+
* |:----------|:----------------|:----------------|:----------------|:-------------|
|
|
119
|
+
* |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 |
|
|
120
|
+
* |1 | 28.125 | 360.0 | 14.87468995 | 180.0 |
|
|
121
|
+
* |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 |
|
|
122
|
+
* |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 |
|
|
123
|
+
* |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 |
|
|
124
|
+
* |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 |
|
|
125
|
+
* |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 |
|
|
126
|
+
* |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 |
|
|
127
|
+
* |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 |
|
|
128
|
+
* |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 |
|
|
129
|
+
* |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 |
|
|
130
|
+
* |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 |
|
|
131
|
+
* |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 |
|
|
132
|
+
* |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 |
|
|
133
|
+
* |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 |
|
|
134
|
+
* |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 |
|
|
135
|
+
* |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 |
|
|
136
|
+
* |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 |
|
|
137
|
+
* |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 |
|
|
138
|
+
* |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 |
|
|
139
|
+
* |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 |
|
|
140
|
+
*
|
|
141
|
+
* _Note_ : Either **center** or **bbox** parameter must be supplied to the API.
|
|
142
|
+
*/
|
|
143
|
+
export interface RenderGetMapStaticImage200Response extends HttpResponse {
|
|
144
|
+
status: "200";
|
|
145
|
+
/** Value may contain any sequence of octets */
|
|
146
|
+
body: Uint8Array;
|
|
147
|
+
headers: RawHttpHeaders & RenderGetMapStaticImage200Headers;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* 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.
|
|
151
|
+
*
|
|
152
|
+
* This API includes parameters for basic data visualization:
|
|
153
|
+
*
|
|
154
|
+
* - Labeled pushpins in multiple styles.
|
|
155
|
+
* - Render circle, path, and polygon geometry types.
|
|
156
|
+
*
|
|
157
|
+
* For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data).
|
|
158
|
+
* <br><br>
|
|
159
|
+
* The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail.
|
|
160
|
+
* <br><br>
|
|
161
|
+
*
|
|
162
|
+
* |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range|
|
|
163
|
+
* |:----------|:----------------|:----------------|:----------------|:-------------|
|
|
164
|
+
* |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 |
|
|
165
|
+
* |1 | 28.125 | 360.0 | 14.87468995 | 180.0 |
|
|
166
|
+
* |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 |
|
|
167
|
+
* |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 |
|
|
168
|
+
* |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 |
|
|
169
|
+
* |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 |
|
|
170
|
+
* |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 |
|
|
171
|
+
* |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 |
|
|
172
|
+
* |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 |
|
|
173
|
+
* |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 |
|
|
174
|
+
* |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 |
|
|
175
|
+
* |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 |
|
|
176
|
+
* |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 |
|
|
177
|
+
* |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 |
|
|
178
|
+
* |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 |
|
|
179
|
+
* |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 |
|
|
180
|
+
* |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 |
|
|
181
|
+
* |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 |
|
|
182
|
+
* |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 |
|
|
183
|
+
* |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 |
|
|
184
|
+
* |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 |
|
|
185
|
+
*
|
|
186
|
+
* _Note_ : Either **center** or **bbox** parameter must be supplied to the API.
|
|
187
|
+
*/
|
|
188
|
+
export interface RenderGetMapStaticImageDefaultResponse extends HttpResponse {
|
|
189
|
+
status: string;
|
|
190
|
+
body: ErrorResponseOutput;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates
|
|
195
|
+
*/
|
|
196
|
+
export interface RenderGetCopyrightFromBoundingBox200Response extends HttpResponse {
|
|
197
|
+
status: "200";
|
|
198
|
+
body: CopyrightOutput;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates
|
|
203
|
+
*/
|
|
204
|
+
export interface RenderGetCopyrightFromBoundingBoxDefaultResponse extends HttpResponse {
|
|
205
|
+
status: string;
|
|
206
|
+
body: ErrorResponseOutput;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* 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).
|
|
211
|
+
*
|
|
212
|
+
* 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.
|
|
213
|
+
*/
|
|
214
|
+
export interface RenderGetCopyrightForTile200Response extends HttpResponse {
|
|
215
|
+
status: "200";
|
|
216
|
+
body: CopyrightOutput;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* 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).
|
|
221
|
+
*
|
|
222
|
+
* 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.
|
|
223
|
+
*/
|
|
224
|
+
export interface RenderGetCopyrightForTileDefaultResponse extends HttpResponse {
|
|
225
|
+
status: string;
|
|
226
|
+
body: ErrorResponseOutput;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* 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.
|
|
231
|
+
*
|
|
232
|
+
* 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.
|
|
233
|
+
*/
|
|
234
|
+
export interface RenderGetCopyrightForWorld200Response extends HttpResponse {
|
|
235
|
+
status: "200";
|
|
236
|
+
body: CopyrightOutput;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* 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.
|
|
241
|
+
*
|
|
242
|
+
* 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.
|
|
243
|
+
*/
|
|
244
|
+
export interface RenderGetCopyrightForWorldDefaultResponse extends HttpResponse {
|
|
245
|
+
status: string;
|
|
246
|
+
body: ErrorResponseOutput;
|
|
247
|
+
}
|
|
248
|
+
//# sourceMappingURL=responses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/generated/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,0BAA0B;IACzC,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,KAAK,CAAC;IACd,+CAA+C;IAC/C,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,cAAc,GAAG,0BAA0B,CAAC;CACtD;AAED;;;GAGG;AACH,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA+B,SAAQ,YAAY;IAClE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,kCAAmC,SAAQ,YAAY;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,kCAAmC,SAAQ,YAAY;IACtE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,+BAA+B;IAC9C,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,gCAAiC,SAAQ,YAAY;IACpE,MAAM,EAAE,KAAK,CAAC;IACd,+CAA+C;IAC/C,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,cAAc,GAAG,+BAA+B,CAAC;CAC3D;AAED;;;GAGG;AACH,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,sBAAsB,CAAC;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,wCAAyC,SAAQ,YAAY;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAiC;IAChD,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,kCAAmC,SAAQ,YAAY;IACtE,MAAM,EAAE,KAAK,CAAC;IACd,+CAA+C;IAC/C,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,cAAc,GAAG,iCAAiC,CAAC;CAC7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,4CACf,SAAQ,YAAY;IACpB,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,gDACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,wCAAyC,SAAQ,YAAY;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,qCAAsC,SAAQ,YAAY;IACzE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,yCACf,SAAQ,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/generated/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n ErrorResponseOutput,\n MapTilesetOutput,\n MapAttributionOutput,\n CopyrightCaptionOutput,\n CopyrightOutput,\n} from \"./outputModels.js\";\n\nexport interface RenderGetMapTile200Headers {\n /** The content-type for the response. */\n \"content-type\"?: string;\n}\n\n/**\n *\n * 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).\n */\nexport interface RenderGetMapTile200Response extends HttpResponse {\n status: \"200\";\n /** Value may contain any sequence of octets */\n body: Uint8Array;\n headers: RawHttpHeaders & RenderGetMapTile200Headers;\n}\n\n/**\n *\n * 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).\n */\nexport interface RenderGetMapTileDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The Get Map Tileset API allows users to request metadata for a tileset.\n */\nexport interface RenderGetMapTileset200Response extends HttpResponse {\n status: \"200\";\n body: MapTilesetOutput;\n}\n\n/**\n *\n * The Get Map Tileset API allows users to request metadata for a tileset.\n */\nexport interface RenderGetMapTilesetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset.\n */\nexport interface RenderGetMapAttribution200Response extends HttpResponse {\n status: \"200\";\n body: MapAttributionOutput;\n}\n\n/**\n *\n * The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset.\n */\nexport interface RenderGetMapAttributionDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\nexport interface RenderGetMapStateTile200Headers {\n /** The content-type for the response. */\n \"content-type\"?: string;\n}\n\n/**\n *\n * 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).\n */\nexport interface RenderGetMapStateTile200Response extends HttpResponse {\n status: \"200\";\n /** Value may contain any sequence of octets */\n body: Uint8Array;\n headers: RawHttpHeaders & RenderGetMapStateTile200Headers;\n}\n\n/**\n *\n * 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).\n */\nexport interface RenderGetMapStateTileDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * 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.\n *\n * As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map.\n */\nexport interface RenderGetCopyrightCaption200Response extends HttpResponse {\n status: \"200\";\n body: CopyrightCaptionOutput;\n}\n\n/**\n *\n * 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.\n *\n * As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map.\n */\nexport interface RenderGetCopyrightCaptionDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\nexport interface RenderGetMapStaticImage200Headers {\n /** The content-type for the response. */\n \"content-type\"?: string;\n}\n\n/**\n * 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.\n *\n * This API includes parameters for basic data visualization:\n *\n * - Labeled pushpins in multiple styles.\n * - Render circle, path, and polygon geometry types.\n *\n * For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data).\n * <br><br>\n * The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail.\n * <br><br>\n *\n * |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range|\n * |:----------|:----------------|:----------------|:----------------|:-------------|\n * |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 |\n * |1 | 28.125 | 360.0 | 14.87468995 | 180.0 |\n * |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 |\n * |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 |\n * |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 |\n * |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 |\n * |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 |\n * |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 |\n * |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 |\n * |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 |\n * |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 |\n * |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 |\n * |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 |\n * |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 |\n * |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 |\n * |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 |\n * |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 |\n * |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 |\n * |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 |\n * |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 |\n * |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 |\n *\n * _Note_ : Either **center** or **bbox** parameter must be supplied to the API.\n */\nexport interface RenderGetMapStaticImage200Response extends HttpResponse {\n status: \"200\";\n /** Value may contain any sequence of octets */\n body: Uint8Array;\n headers: RawHttpHeaders & RenderGetMapStaticImage200Headers;\n}\n\n/**\n * 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.\n *\n * This API includes parameters for basic data visualization:\n *\n * - Labeled pushpins in multiple styles.\n * - Render circle, path, and polygon geometry types.\n *\n * For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data).\n * <br><br>\n * The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail.\n * <br><br>\n *\n * |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range|\n * |:----------|:----------------|:----------------|:----------------|:-------------|\n * |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 |\n * |1 | 28.125 | 360.0 | 14.87468995 | 180.0 |\n * |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 |\n * |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 |\n * |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 |\n * |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 |\n * |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 |\n * |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 |\n * |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 |\n * |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 |\n * |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 |\n * |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 |\n * |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 |\n * |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 |\n * |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 |\n * |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 |\n * |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 |\n * |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 |\n * |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 |\n * |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 |\n * |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 |\n *\n * _Note_ : Either **center** or **bbox** parameter must be supplied to the API.\n */\nexport interface RenderGetMapStaticImageDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates\n */\nexport interface RenderGetCopyrightFromBoundingBox200Response\n extends HttpResponse {\n status: \"200\";\n body: CopyrightOutput;\n}\n\n/**\n *\n * Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates\n */\nexport interface RenderGetCopyrightFromBoundingBoxDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * 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).\n *\n * 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.\n */\nexport interface RenderGetCopyrightForTile200Response extends HttpResponse {\n status: \"200\";\n body: CopyrightOutput;\n}\n\n/**\n *\n * 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).\n *\n * 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.\n */\nexport interface RenderGetCopyrightForTileDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/**\n *\n * 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.\n *\n * 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.\n */\nexport interface RenderGetCopyrightForWorld200Response extends HttpResponse {\n status: \"200\";\n body: CopyrightOutput;\n}\n\n/**\n *\n * 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.\n *\n * 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.\n */\nexport interface RenderGetCopyrightForWorldDefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import MapsRender from "./mapsRender.js";
|
|
2
|
+
export * from "./generated/index.js";
|
|
3
|
+
export * from "./positionToTileXY.js";
|
|
4
|
+
export * from "./createPinsQuery.js";
|
|
5
|
+
export * from "./createPathQuery.js";
|
|
6
|
+
export default MapsRender;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AAErC,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import MapsRender from "./mapsRender.js";
|
|
4
|
+
export * from "./generated/index.js";
|
|
5
|
+
export * from "./positionToTileXY.js";
|
|
6
|
+
export * from "./createPinsQuery.js";
|
|
7
|
+
export * from "./createPathQuery.js";
|
|
8
|
+
export default MapsRender;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AAErC,eAAe,UAAU,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport MapsRender from \"./mapsRender.js\";\n\nexport * from \"./generated/index.js\";\nexport * from \"./positionToTileXY.js\";\nexport * from \"./createPinsQuery.js\";\nexport * from \"./createPathQuery.js\";\n\nexport default MapsRender;\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ClientOptions } from "@azure-rest/core-client";
|
|
2
|
+
import type { AzureKeyCredential, AzureSASCredential, TokenCredential } from "@azure/core-auth";
|
|
3
|
+
import type { MapsRenderClient } from "./generated/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* Creates an instance of MapsRenderClient from a subscription key.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import MapsRender from "@azure-rest/maps-Render";
|
|
10
|
+
*
|
|
11
|
+
* const credential = new AzureKeyCredential("<subscription-key>");
|
|
12
|
+
* const client = MapsRender(credential);
|
|
13
|
+
*```
|
|
14
|
+
*
|
|
15
|
+
* @param credential - An AzureKeyCredential instance used to authenticate requests to the service
|
|
16
|
+
* @param options - Options used to configure the Render Client
|
|
17
|
+
*/
|
|
18
|
+
export default function MapsRender(credential: AzureKeyCredential, options?: ClientOptions): MapsRenderClient;
|
|
19
|
+
/**
|
|
20
|
+
* Creates an instance of MapsRender from an Azure Identity `TokenCredential`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* import MapsRenderClient from "@azure-rest/maps-render";
|
|
25
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
26
|
+
*
|
|
27
|
+
* const credential = new DefaultAzureCredential();
|
|
28
|
+
* const client = MapsRender(credential, "<maps-account-client-id>");
|
|
29
|
+
*```
|
|
30
|
+
*
|
|
31
|
+
* @param credential - An TokenCredential instance used to authenticate requests to the service
|
|
32
|
+
* @param mapsAccountClientId - The Azure Maps client id of a specific map resource
|
|
33
|
+
* @param options - Options used to configure the Render Client
|
|
34
|
+
*/
|
|
35
|
+
export default function MapsRender(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsRenderClient;
|
|
36
|
+
/**
|
|
37
|
+
* Creates an instance of MapsRender from an Azure Identity `AzureSASCredential`.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* import MapsRender from "@azure-rest/maps-render";
|
|
42
|
+
* import { AzureSASCredential } from "@azure/core-auth";
|
|
43
|
+
*
|
|
44
|
+
* const credential = new AzureSASCredential("<SAS Token>");
|
|
45
|
+
* const client = MapsRender(credential);
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param credential - An AzureSASCredential instance used to authenticate requests to the service
|
|
49
|
+
* @param options - Options used to configure the Render Client
|
|
50
|
+
*/
|
|
51
|
+
export default function MapsRender(credential: AzureSASCredential, options?: ClientOptions): MapsRenderClient;
|
|
52
|
+
//# sourceMappingURL=mapsRender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapsRender.d.ts","sourceRoot":"","sources":["../../src/mapsRender.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,UAAU,EAAE,kBAAkB,EAC9B,OAAO,CAAC,EAAE,aAAa,GACtB,gBAAgB,CAAC;AACpB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,UAAU,EAAE,eAAe,EAC3B,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,gBAAgB,CAAC;AACpB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,UAAU,EAAE,kBAAkB,EAC9B,OAAO,CAAC,EAAE,aAAa,GACtB,gBAAgB,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { isSASCredential, isTokenCredential } from "@azure/core-auth";
|
|
4
4
|
import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline";
|
|
5
5
|
import { createMapsClientIdPolicy } from "@azure/maps-common";
|
|
6
|
-
import createClient from "
|
|
6
|
+
import createClient from "./generated/mapsRenderClient.js";
|
|
7
7
|
export default function MapsRender(credential, clientIdOrOptions = {}, maybeOptions = {}) {
|
|
8
8
|
const options = typeof clientIdOrOptions === "string" ? maybeOptions : clientIdOrOptions;
|
|
9
9
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapsRender.js","sourceRoot":"","sources":["../../src/mapsRender.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,YAAY,MAAM,iCAAiC,CAAC;AA4D3D,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,UAAqE,EACrE,oBAA4C,EAAE,EAC9C,eAA8B,EAAE;IAEhC,MAAM,OAAO,GAAG,OAAO,iBAAiB,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAEzF;;;;OAIG;IACH,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAAE,CAAC;QAClC,MAAM,QAAQ,GAAG,OAAO,iBAAiB,KAAK,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC;QAChF,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,KAAK,CAAC,yCAAyC,CAAC,CAAC;QACzD,CAAC;QACD,MAAM,MAAM,GAAG,YAAY,CAAC,SAAgB,EAAE,OAAO,CAAC,CAAC;QACvD,MAAM,CAAC,QAAQ,CAAC,SAAS,CACvB,+BAA+B,CAAC;YAC9B,UAAU;YACV,MAAM,EAAE,sCAAsC;SAC/C,CAAC,CACH,CAAC;QACF,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAI,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC;QAChC,MAAM,MAAM,GAAG,YAAY,CAAC,SAAgB,EAAE,OAAO,CAAC,CAAC;QACvD,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;YACxB,IAAI,EAAE,yBAAyB;YAC/B,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI;gBAC7B,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,WAAW,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxE,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport type { AzureKeyCredential, AzureSASCredential, TokenCredential } from \"@azure/core-auth\";\nimport { isSASCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport { createMapsClientIdPolicy } from \"@azure/maps-common\";\nimport type { MapsRenderClient } from \"./generated/index.js\";\nimport createClient from \"./generated/mapsRenderClient.js\";\n\n/**\n * Creates an instance of MapsRenderClient from a subscription key.\n *\n * @example\n * ```ts\n * import MapsRender from \"@azure-rest/maps-Render\";\n *\n * const credential = new AzureKeyCredential(\"<subscription-key>\");\n * const client = MapsRender(credential);\n *```\n *\n * @param credential - An AzureKeyCredential instance used to authenticate requests to the service\n * @param options - Options used to configure the Render Client\n */\nexport default function MapsRender(\n credential: AzureKeyCredential,\n options?: ClientOptions,\n): MapsRenderClient;\n/**\n * Creates an instance of MapsRender from an Azure Identity `TokenCredential`.\n *\n * @example\n * ```ts\n * import MapsRenderClient from \"@azure-rest/maps-render\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const credential = new DefaultAzureCredential();\n * const client = MapsRender(credential, \"<maps-account-client-id>\");\n *```\n *\n * @param credential - An TokenCredential instance used to authenticate requests to the service\n * @param mapsAccountClientId - The Azure Maps client id of a specific map resource\n * @param options - Options used to configure the Render Client\n */\nexport default function MapsRender(\n credential: TokenCredential,\n mapsAccountClientId: string,\n options?: ClientOptions,\n): MapsRenderClient;\n/**\n * Creates an instance of MapsRender from an Azure Identity `AzureSASCredential`.\n *\n * @example\n * ```ts\n * import MapsRender from \"@azure-rest/maps-render\";\n * import { AzureSASCredential } from \"@azure/core-auth\";\n *\n * const credential = new AzureSASCredential(\"<SAS Token>\");\n * const client = MapsRender(credential);\n * ```\n *\n * @param credential - An AzureSASCredential instance used to authenticate requests to the service\n * @param options - Options used to configure the Render Client\n */\nexport default function MapsRender(\n credential: AzureSASCredential,\n options?: ClientOptions,\n): MapsRenderClient;\nexport default function MapsRender(\n credential: TokenCredential | AzureKeyCredential | AzureSASCredential,\n clientIdOrOptions: string | ClientOptions = {},\n maybeOptions: ClientOptions = {},\n): MapsRenderClient {\n const options = typeof clientIdOrOptions === \"string\" ? maybeOptions : clientIdOrOptions;\n\n /**\n * maps service requires a header \"ms-x-client-id\", which is different from the standard Microsoft Entra ID.\n * So we need to do our own implementation.\n * This customized authentication is following by this guide: https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/RLC-customization.md#custom-authentication\n */\n if (isTokenCredential(credential)) {\n const clientId = typeof clientIdOrOptions === \"string\" ? clientIdOrOptions : \"\";\n if (!clientId) {\n throw Error(\"Client id is needed for TokenCredential\");\n }\n const client = createClient(undefined as any, options);\n client.pipeline.addPolicy(\n bearerTokenAuthenticationPolicy({\n credential,\n scopes: \"https://atlas.microsoft.com/.default\",\n }),\n );\n client.pipeline.addPolicy(createMapsClientIdPolicy(clientId));\n return client;\n }\n\n if (isSASCredential(credential)) {\n const client = createClient(undefined as any, options);\n client.pipeline.addPolicy({\n name: \"mapsSASCredentialPolicy\",\n async sendRequest(request, next) {\n request.headers.set(\"Authorization\", `jwt-sas ${credential.signature}`);\n return next(request);\n },\n });\n return client;\n }\n\n return createClient(credential, options);\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { LatLon } from "@azure/maps-common";
|
|
2
|
+
/**
|
|
3
|
+
* Calculates the XY tile coordinates that a coordinate falls into for a specific zoom level.
|
|
4
|
+
* Reference: https://learn.microsoft.com/en-us/azure/azure-maps/zoom-levels-and-tile-grid?tabs=typescript#tile-math-source-code
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* const zoom = 6;
|
|
9
|
+
* const { x, y } = positionToTileXY([47.61559, -122.33817], 6, "256");
|
|
10
|
+
* const response = await client
|
|
11
|
+
* .path("/map/tile")
|
|
12
|
+
* .get({
|
|
13
|
+
* queryParameters: { tilesetId: "microsoft.base.road", zoom, x, y },
|
|
14
|
+
* })
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param position - Position coordinate in the format [latitude, longitude].
|
|
18
|
+
* @param zoom - Zoom level.
|
|
19
|
+
* @param tileSize - The size of the tiles in the tile pyramid.
|
|
20
|
+
* @returns Tile XY coordinates.
|
|
21
|
+
*/
|
|
22
|
+
export declare function positionToTileXY(position: LatLon, zoom: number, tileSize: "512" | "256"): {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=positionToTileXY.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positionToTileXY.d.ts","sourceRoot":"","sources":["../../src/positionToTileXY.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAUjD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,KAAK,GAAG,KAAK,GACtB;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAgB1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
* Workaround to create a path query string for [ collectionFormat: multi ](https://swagger.io/docs/specification/2-0/describing-parameters/#:~:text=csv%20(-,default,-)).
|
|
4
|
+
* This should be removed once the core-client support collectionFormat: multi.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createMultiCollection(key: string, values: string[]): string;
|
|
7
|
+
//# sourceMappingURL=createMultiCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createMultiCollection.d.ts","sourceRoot":"","sources":["../../src/createMultiCollection.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAI3E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.createMultiCollection = createMultiCollection;
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
* Workaround to create a path query string for [ collectionFormat: multi ](https://swagger.io/docs/specification/2-0/describing-parameters/#:~:text=csv%20(-,default,-)).
|
|
9
|
+
* This should be removed once the core-client support collectionFormat: multi.
|
|
10
|
+
*/
|
|
11
|
+
function createMultiCollection(key, values) {
|
|
12
|
+
return values.slice(1).reduce((acc, value) => {
|
|
13
|
+
return `${acc}&${key}=${value}`;
|
|
14
|
+
}, values[0] || "");
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=createMultiCollection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createMultiCollection.js","sourceRoot":"","sources":["../../src/createMultiCollection.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAOlC,sDAIC;AATD;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,GAAW,EAAE,MAAgB;IACjE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QAC3C,OAAO,GAAG,GAAG,IAAI,GAAG,IAAI,KAAK,EAAE,CAAC;IAClC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AACtB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * @internal\n * Workaround to create a path query string for [ collectionFormat: multi ](https://swagger.io/docs/specification/2-0/describing-parameters/#:~:text=csv%20(-,default,-)).\n * This should be removed once the core-client support collectionFormat: multi.\n */\nexport function createMultiCollection(key: string, values: string[]): string {\n return values.slice(1).reduce((acc, value) => {\n return `${acc}&${key}=${value}`;\n }, values[0] || \"\");\n}\n"]}
|