Merge pull request #8844 from elemoine/ele_crossorigin
Set crossOrigin to anonymous in mapbox-streets-v6-style
This commit is contained in:
@@ -16,7 +16,8 @@ function createMapboxStreetsV6Style(Style, Fill, Stroke, Icon, Text) {
|
|||||||
if (!icon) {
|
if (!icon) {
|
||||||
icon = new Style({image: new Icon({
|
icon = new Style({image: new Icon({
|
||||||
src: 'https://unpkg.com/@mapbox/maki@4.0.0/icons/' + iconName + '-15.svg',
|
src: 'https://unpkg.com/@mapbox/maki@4.0.0/icons/' + iconName + '-15.svg',
|
||||||
imgSize: [15, 15]
|
imgSize: [15, 15],
|
||||||
|
crossOrigin: 'anonymous'
|
||||||
})});
|
})});
|
||||||
iconCache[iconName] = icon;
|
iconCache[iconName] = icon;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user