diff --git a/examples/icon-color.js b/examples/icon-color.js index 6a456a940c..62c6437f99 100644 --- a/examples/icon-color.js +++ b/examples/icon-color.js @@ -26,6 +26,7 @@ var madrid = new ol.Feature({ rome.setStyle(new ol.style.Style({ image: new ol.style.Icon(/** @type {olx.style.IconOptions} */ ({ color: '#8959A8', + crossOrigin: 'anonymous', src: 'data/dot.png' })) })); @@ -33,6 +34,7 @@ rome.setStyle(new ol.style.Style({ london.setStyle(new ol.style.Style({ image: new ol.style.Icon(/** @type {olx.style.IconOptions} */ ({ color: '#4271AE', + crossOrigin: 'anonymous', src: 'data/dot.png' })) })); @@ -40,6 +42,7 @@ london.setStyle(new ol.style.Style({ madrid.setStyle(new ol.style.Style({ image: new ol.style.Icon(/** @type {olx.style.IconOptions} */ ({ color: [113, 140, 0], + crossOrigin: 'anonymous', src: 'data/dot.png' })) })); diff --git a/examples/icon-negative.js b/examples/icon-negative.js index e85371216c..22e6f8b46d 100644 --- a/examples/icon-negative.js +++ b/examples/icon-negative.js @@ -15,6 +15,7 @@ function createStyle(src, img) { return new ol.style.Style({ image: new ol.style.Icon(/** @type {olx.style.IconOptions} */ ({ anchor: [0.5, 0.96], + crossOrigin: 'anonymous', src: src, img: img, imgSize: img ? [img.width, img.height] : undefined diff --git a/examples/icon-sprite-webgl.js b/examples/icon-sprite-webgl.js index 4eb89738d9..3f6ceaaf4e 100644 --- a/examples/icon-sprite-webgl.js +++ b/examples/icon-sprite-webgl.js @@ -51,6 +51,7 @@ for (i = 0; i < iconCount; ++i) { rotation: info.rotation, scale: info.scale, size: info.size, + crossOrigin: 'anonymous', src: 'data/Butterfly.png' }); }