Skip to content

Commit

Permalink
[ADD] crossOrigin on GeoImages
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Oct 30, 2023
1 parent 1fc315b commit 30d9629
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions format/layer/GeoImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ GeoImage.prototype.read = function (options) {
"imageCenter": options.imageCenter,
"imageRotate": options.imageRotate,
"imageScale": options.imageScale,
"imageMask": options.imageMask
"imageMask": options.imageMask,
crossOrigin: options.crossOrigin
});
var layer = new ol_layer_Image({
source: source
Expand All @@ -55,7 +56,8 @@ GeoImage.prototype.write = function (layer) {
imageCenter: layer.getSource().getCenter(),
imageRotate: layer.getSource().getRotation(),
imageScale: layer.getSource().getScale(),
imageMask: layer.getSource().getMask()
imageMask: layer.getSource().getMask(),
crossOrigin: layer.getSource().getGeoImage().crossOrigin
});
};

Expand Down

0 comments on commit 30d9629

Please sign in to comment.