Skip to content

Commit

Permalink
crossOrigin is available _sometimes_ on ImageWMS for some reason.…
Browse files Browse the repository at this point in the history
… Weird... Closes #1442
  • Loading branch information
Hallbergs committed Dec 7, 2023
1 parent c95de71 commit 284deee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion new-client/src/plugins/Print/PrintModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ export default class PrintModel {
const imageSource = new ImageWMS({
...source.getProperties(),
projection: source.getProjection(),
crossOrigin: source.crossOrigin_ || "anonymous",
crossOrigin: source.crossOrigin || source.crossOrigin_ || "anonymous", // `crossOrigin` is not always publicly available for some reason... Had to use the private property as fallback
params: { ...source.getParams() },
ratio: 1,
hidpi: false,
Expand Down

0 comments on commit 284deee

Please sign in to comment.