-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RequestHeaders
properly to relevant raster overlays
#1597
Conversation
…unreal into request-headers-overlays
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I just have the same small suggestion repeated four time. It's a trivial one so I'll make that change myself and merge this.
|
||
std::vector<CesiumAsync::IAssetAccessor::THeader> headers; | ||
|
||
for (auto& [Key, Value] : this->RequestHeaders) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (auto& [Key, Value] : this->RequestHeaders) { | |
for (const auto& [Key, Value] : this->RequestHeaders) { |
@@ -55,10 +55,18 @@ UCesiumUrlTemplateRasterOverlay::CreateOverlay( | |||
RootTilesY); | |||
} | |||
|
|||
std::vector<CesiumAsync::IAssetAccessor::THeader> headers; | |||
|
|||
for (auto& [Key, Value] : this->RequestHeaders) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (auto& [Key, Value] : this->RequestHeaders) { | |
for (const auto& [Key, Value] : this->RequestHeaders) { |
|
||
std::vector<CesiumAsync::IAssetAccessor::THeader> headers; | ||
|
||
for (auto& [Key, Value] : this->RequestHeaders) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (auto& [Key, Value] : this->RequestHeaders) { | |
for (const auto& [Key, Value] : this->RequestHeaders) { |
|
||
std::vector<CesiumAsync::IAssetAccessor::THeader> headers; | ||
|
||
for (auto& [Key, Value] : this->RequestHeaders) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (auto& [Key, Value] : this->RequestHeaders) { | |
for (const auto& [Key, Value] : this->RequestHeaders) { |
Thanks @azrogers! |
Fixes CesiumGS/cesium-native#1067, at least for Unreal. This change adds
RequestHeaders
properties toCesiumTileMapServiceRasterOverlay
,CesiumUrlTemplateRasterOverlay
,CesiumWebMapServiceRasterOverlay
, andCesiumWebMapTileServiceRasterOverlay
, allowing custom HTTP request headers to be specified on each.