cesium-native 0.43.0
Loading...
Searching...
No Matches
BingMapsRasterOverlay.h
1#pragma once
2
3#include "Library.h"
4#include "RasterOverlay.h"
5
6#include <CesiumAsync/IAssetRequest.h>
7#include <CesiumGeospatial/Ellipsoid.h>
8
9#include <functional>
10#include <memory>
11
12namespace CesiumRasterOverlays {
13
20struct BingMapsStyle final {
24 static const std::string AERIAL;
25
31 static const std::string AERIAL_WITH_LABELS;
32
36 static const std::string AERIAL_WITH_LABELS_ON_DEMAND;
37
43 static const std::string ROAD;
44
48 static const std::string ROAD_ON_DEMAND;
49
53 static const std::string CANVAS_DARK;
54
58 static const std::string CANVAS_LIGHT;
59
63 static const std::string CANVAS_GRAY;
64
70 static const std::string ORDNANCE_SURVEY;
71
75 static const std::string COLLINS_BART;
76};
77
82class CESIUMRASTEROVERLAYS_API BingMapsRasterOverlay final
83 : public RasterOverlay {
84public:
102 const std::string& name,
103 const std::string& url,
104 const std::string& key,
105 const std::string& mapStyle = BingMapsStyle::AERIAL,
106 const std::string& culture = "",
107 const RasterOverlayOptions& overlayOptions = {});
108 virtual ~BingMapsRasterOverlay() override;
109
111 const CesiumAsync::AsyncSystem& asyncSystem,
112 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor,
113 const std::shared_ptr<CesiumUtility::CreditSystem>& pCreditSystem,
114 const std::shared_ptr<IPrepareRasterOverlayRendererResources>&
115 pPrepareRendererResources,
116 const std::shared_ptr<spdlog::logger>& pLogger,
118 const override;
119
120private:
121 static const std::string BING_LOGO_HTML;
122
123 std::string _url;
124 std::string _key;
125 std::string _mapStyle;
126 std::string _culture;
127};
128
129} // 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 Promise.h:11
A RasterOverlay that uses Bing Maps as the source for the imagery data.
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...
BingMapsRasterOverlay(const std::string &name, const std::string &url, const std::string &key, const std::string &mapStyle=BingMapsStyle::AERIAL, const std::string &culture="", const RasterOverlayOptions &overlayOptions={})
Creates a new instance.
The base class for a rasterized image that can be draped over a Cesium3DTilesSelection::Tileset....
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.
static const std::string ROAD
Roads without additional imagery.
static const std::string ORDNANCE_SURVEY
Ordnance Survey imagery.
static const std::string CANVAS_LIGHT
A lighter version of the road maps.
static const std::string CANVAS_GRAY
A grayscale version of the road maps.
static const std::string COLLINS_BART
Collins Bart imagery.
static const std::string AERIAL_WITH_LABELS
Aerial imagery with a road overlay.
static const std::string CANVAS_DARK
A dark version of the road maps.
static const std::string AERIAL
Aerial imagery.
static const std::string ROAD_ON_DEMAND
Roads without additional imagery.
static const std::string AERIAL_WITH_LABELS_ON_DEMAND
Aerial imagery with a road overlay.
Options for loading raster overlays.