cesium-native 0.53.0
Loading...
Searching...
No Matches
AzureMapsRasterOverlay.h
1#pragma once
2
3#include <CesiumAsync/IAssetRequest.h>
4#include <CesiumGeospatial/Ellipsoid.h>
5#include <CesiumRasterOverlays/Library.h>
6#include <CesiumRasterOverlays/RasterOverlay.h>
7
8#include <functional>
9#include <memory>
10
11namespace CesiumRasterOverlays {
12
24 inline static const std::string baseRoad = "microsoft.base.road";
25
29 inline static const std::string baseDarkGrey = "microsoft.base.darkgrey";
30
34 inline static const std::string baseLabelsRoad = "microsoft.base.labels.road";
35
39 inline static const std::string baseLabelsDarkGrey =
40 "microsoft.base.labels.darkgrey";
41
45 inline static const std::string baseHybridRoad = "microsoft.base.hybrid.road";
46
50 inline static const std::string baseHybridDarkGrey =
51 "microsoft.base.hybrid.darkgrey";
52
57 inline static const std::string imagery = "microsoft.imagery";
58
62 inline static const std::string terra = "microsoft.terra.main";
63
72 inline static const std::string weatherRadar = "microsoft.weather.radar.main";
73
82 inline static const std::string weatherInfrared =
83 "microsoft.weather.infrared.main";
84
88 inline static const std::string trafficAbsolute =
89 "microsoft.traffic.absolute.main";
90
94 inline static const std::string trafficRelativeMain =
95 "microsoft.traffic.relative.main";
96
100 inline static const std::string trafficRelativeDark =
101 "microsoft.traffic.relative.dark";
102
106 inline static const std::string trafficDelay = "microsoft.traffic.delay.main";
107
111 inline static const std::string trafficReduced =
112 "microsoft.traffic.reduced.main";
113};
114
122 std::string key;
123
127 std::string apiVersion{"2024-04-01"};
128
141
153 std::string language{"en-US"};
154
175 std::string view{"US"};
176
184 bool showLogo = true;
185
189 std::string apiBaseUrl{"https://atlas.microsoft.com/"};
190};
191
195class CESIUMRASTEROVERLAYS_API AzureMapsRasterOverlay final
196 : public RasterOverlay {
197public:
206 const std::string& name,
207 const AzureMapsSessionParameters& sessionParameters,
208 const RasterOverlayOptions& overlayOptions = {});
209 virtual ~AzureMapsRasterOverlay() override;
210
212 const CesiumAsync::AsyncSystem& asyncSystem,
213 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
214 const std::shared_ptr<CesiumUtility::CreditSystem>& pCreditSystem,
215 const std::shared_ptr<IPrepareRasterOverlayRendererResources>&
216 pPrepareRendererResources,
217 const std::shared_ptr<spdlog::logger>& pLogger,
219 const override;
220
221private:
222 AzureMapsSessionParameters _sessionParameters;
223};
224
225} // namespace CesiumRasterOverlays
A system for managing asynchronous requests and tasks.
Definition AsyncSystem.h:36
A value that will be available in the future, as produced by AsyncSystem.
Definition Future.h:29
A RasterOverlay that retrieves imagery from the Azure Maps API.
virtual CesiumAsync::Future< CreateTileProviderResult > createTileProvider(const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor, const std::shared_ptr< CesiumUtility::CreditSystem > &pCreditSystem, const std::shared_ptr< IPrepareRasterOverlayRendererResources > &pPrepareRendererResources, const std::shared_ptr< spdlog::logger > &pLogger, CesiumUtility::IntrusivePointer< const RasterOverlay > pOwner) const override
Begins asynchronous creation of a tile provider for this overlay and eventually returns it via a Futu...
AzureMapsRasterOverlay(const std::string &name, const AzureMapsSessionParameters &sessionParameters, const RasterOverlayOptions &overlayOptions={})
Creates a new instance.
RasterOverlay(const std::string &name, const RasterOverlayOptions &overlayOptions=RasterOverlayOptions())
Creates a new instance.
A smart pointer that calls addReference and releaseReference on the controlled object.
Classes for raster overlays, which allow draping massive 2D textures over a model.
Session parameters for an Azure Maps overlay.
std::string view
The view (also called the "user region") of a certain country/region for which to show the correct ma...
std::string key
The Azure Maps subscription key to use.
std::string tilesetId
A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at p...
std::string apiVersion
The version number of Azure Maps API.
std::string language
The language in which search results should be returned. Should be one of the supported IETF language...
std::string apiBaseUrl
The base URL for the Azure Maps API.
bool showLogo
Whether or not the AzureMapsRasterOverlay should show the Azure Maps logo.
Supported values for AzureMapsSessionParameters::tilesetId. See the official documentation for all st...
static const std::string trafficAbsolute
Absolute traffic tiles in Azure Maps' main style.
static const std::string baseHybridRoad
Road, boundary and label data in Azure Maps' main style.
static const std::string baseLabelsDarkGrey
Label data in Azure Maps' dark grey style.
static const std::string trafficRelativeDark
Relative traffic tiles in Azure Maps' dark style.
static const std::string trafficRelativeMain
Relative traffic tiles in Azure Maps' main style.
static const std::string imagery
A combination of satellite or aerial imagery. Only available in S1 and G2 pricing SKU.
static const std::string weatherInfrared
Weather infrared tiles. Latest Infrared Satellite images show clouds by their temperature....
static const std::string terra
Shaded relief and terra layers.
static const std::string weatherRadar
Weather radar tiles. Latest weather radar images including areas of rain, snow, ice and mixed conditi...
static const std::string trafficReduced
Reduced traffic tiles in Azure Maps' main style.
static const std::string baseHybridDarkGrey
Road, boundary and label data in Azure Maps' dark grey style.
static const std::string baseLabelsRoad
Label data in Azure Maps' main style.
static const std::string baseDarkGrey
All layers with Azure Maps' dark grey style.
static const std::string trafficDelay
Delay traffic tiles in Azure Maps' main style.
static const std::string baseRoad
All layers with Azure Maps' main style.
Options for loading raster overlays.