Skip to content
Snippets Groups Projects
Commit ddd0d11c authored by Glenn Vorhes's avatar Glenn Vorhes
Browse files

added cross origin to icon styel

parent 080c873e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment