-
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
property to Cesium3DTileset
#1581
Conversation
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.
Works great, just a few nitpicky comments.
…unreal into request-headers-tileset
…o request-headers-tileset
…unreal into request-headers-tileset
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.
Just a tiny comment. I'm going to make this change myself to save a cycle and get this merged.
@@ -385,6 +385,31 @@ void ACesium3DTileset::SetTilesetSource(ETilesetSource InSource) { | |||
} | |||
} | |||
|
|||
bool CompareMaps( |
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.
This should go in the anonymous namespace.
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.
Also something like MapsAreEqual
would be a better name than CompareMaps
, because the latter doesn't indicate as clearly what it means when the function returns true or false.
Thanks @azrogers! |
To support use cases like #737, this change adds a
RequestHeaders
property to theCesium3DTileset
, which passes these headers through to the tileset loader for them to be attached to each request made. Depends on CesiumGS/cesium-native#1057.