Default CORS request mode for tiles used in WebGL rendering
This commit is contained in:
@@ -175,6 +175,12 @@ class TileTexture extends EventTarget {
|
||||
if (this.loaded) {
|
||||
this.uploadTile_();
|
||||
} else {
|
||||
if (tile instanceof ImageTile) {
|
||||
const image = tile.getImage();
|
||||
if (image instanceof Image && !image.crossOrigin) {
|
||||
image.crossOrigin = 'anonymous';
|
||||
}
|
||||
}
|
||||
tile.addEventListener(EventType.CHANGE, this.handleTileChange_);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user