Skip to content

Commit

Permalink
Merge pull request #302 from cosmoscout/feature/fix-wms-jpg-support
Browse files Browse the repository at this point in the history
Fix jpg support in the wms-overlays plugin.
  • Loading branch information
JonasGilg authored Oct 4, 2022
2 parents 8327fd3 + 8fbd928 commit 19735eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

* Back-face culling of LOD-Bodies does now work properly.
* Fixed black LOD-Bodies if no image channel is selected initially.
* The `csp-wms-overlays` plugin now correctly uses jpeg instead of png, if an opaque layer is selected and jpeg is available.

## [v1.5.0](https://github.com/cosmoscout/cosmoscout-vr/releases)

Expand Down
2 changes: 1 addition & 1 deletion plugins/csp-wms-overlays/src/WebMapTextureLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ std::string WebMapTextureLoader::getRequestUrl(
std::string WebMapTextureLoader::getMimeType(WebMapService const& wms, WebMapLayer const& layer) {
if (layer.getSettings().mOpaque) {
if (wms.isFormatSupported("image/jpeg")) {
return "image/png";
return "image/jpeg";
}
}
// TODO Use other format if png is not supported
Expand Down

0 comments on commit 19735eb

Please sign in to comment.