Skip to content

Commit

Permalink
test: reset crossOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVolland committed Dec 2, 2024
1 parent d1d9bfe commit 8a6efd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data/olStyles/unsupported_properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const unsupportedFill = new OlStyle({
});
const unsupportedImage = new OlStyle({
image: new OlStyleIcon({
src: 'peter.png'
src: 'peter.png',
crossOrigin: 'anonymous'
})
});

Expand Down
2 changes: 1 addition & 1 deletion src/OlStyleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ export class OlStyleParser implements StyleParser<OlStyleLike> {

const baseProps: OlStyleIconOptions = {
src: isSprite(symbolizer.image) ? symbolizer.image.source as string : symbolizer.image as string,
crossOrigin: null,
crossOrigin: 'anonymous',
opacity: symbolizer.opacity as number,
width: symbolizer.size as number,
// Rotation in openlayers is radians while we use degree
Expand Down

0 comments on commit 8a6efd6

Please sign in to comment.