From ddd0d11c252c39820e5f149f472409886b72caab Mon Sep 17 00:00:00 2001
From: Glenn Vorhes <gavorhes@wisc.edu>
Date: Wed, 22 Jun 2016 20:35:50 -0500
Subject: [PATCH] added cross origin to icon styel

---
 src/layers/LayerItsInventory.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/layers/LayerItsInventory.js b/src/layers/LayerItsInventory.js
index 3ade679..de5f15e 100644
--- a/src/layers/LayerItsInventory.js
+++ b/src/layers/LayerItsInventory.js
@@ -114,7 +114,12 @@ function defineStyle(itsIcon, itsLineStyle, itsIconConfig, itsLineConfig) {
             }
 
             return [new ol.style.Style({
-                image: new ol.style.Icon({src: iconUrl})
+                image: new ol.style.Icon(
+                    {
+                        src: iconUrl,
+                        crossOrigin: 'anonymous'
+                    }
+                )
             })];
         };
     } else if (itsLineConfig) {
@@ -280,7 +285,7 @@ class LayerItsInventory extends LayerBaseVectorGeoJson {
         $.extend(options.params, {format: 'JSON', resource: options.itsType});
 
         super('http://transportal.cee.wisc.edu/its/inventory/', options);
-        
+
         //add any additional content to the legend
         this.addLegendContent(addToLegend);
 
-- 
GitLab