Skip to content

Commit

Permalink
Potential fix for #1442
Browse files Browse the repository at this point in the history
For some reason the `crossOrigin` property is not exposed on `ImageWMS`... It feels wrong but i cannot find another way than checking the value of the private `crossOrigin_` property.

Tested the generic get:er (`source.get("crossOrigin")`) and it returns `undefined` as well.
  • Loading branch information
Hallbergs committed Dec 6, 2023
1 parent c3f01a9 commit 61fc5f4
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_ || "anonymous",
params: { ...source.getParams() },
ratio: 1,
hidpi: false,
Expand Down

0 comments on commit 61fc5f4

Please sign in to comment.