Skip to content
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

Allow specifying request headers in RasterOverlayOptions #1076

Closed
wants to merge 3 commits into from

Conversation

azrogers
Copy link
Contributor

Fixes #1067. This is a companion to #1057, applying a similar change to raster overlays. One wrinkle in the implementation is that some raster overlays already accept headers in their constructor. Not only would it be best to avoid changing the public API, but IonRasterOverlay in particular relies on this functionality being present so it can pass the Authorization header to the underlying TileMapServiceRasterOverlay. To support this, I've added a mergeHeaders method that allows the headers specified in the constructor to override any headers with the same name specified in the RasterOverlayOptions.

Base automatically changed from request-headers-tileset to main January 22, 2025 04:30
@azrogers
Copy link
Contributor Author

Closing in favor of using the existing constructor parameters for headers, as used in CesiumGS/cesium-unreal#1597.

@azrogers azrogers closed this Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow request headers to be specified in RasterOverlayOptions
1 participant