Add crossOrigin option
Co-Authored-By: Andreas Hocevar <andreas.hocevar@gmail.com>
This commit is contained in:
@@ -548,6 +548,8 @@ export function parseLiteralStyle(style) {
|
||||
|
||||
if (symbStyle.symbolType === 'image' && symbStyle.src) {
|
||||
const texture = new Image();
|
||||
texture.crossOrigin =
|
||||
symbStyle.crossOrigin === undefined ? 'anonymous' : symbStyle.crossOrigin;
|
||||
texture.src = symbStyle.src;
|
||||
builder
|
||||
.addUniform('sampler2D u_texture')
|
||||
|
||||
Reference in New Issue
Block a user