diff --git a/src/layers/LayerItsInventory.js b/src/layers/LayerItsInventory.js index 3ade679ec31df3ca3d3ea1e7f84b0ceafc76eebd..de5f15efc39710d5806dbf44a419363ef362a6a9 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);