Merge pull request #8844 from elemoine/ele_crossorigin

Set crossOrigin to anonymous in mapbox-streets-v6-style
This commit is contained in:
Éric Lemoine
2018-10-23 11:04:38 +02:00
committed by GitHub

View File

@@ -16,7 +16,8 @@ function createMapboxStreetsV6Style(Style, Fill, Stroke, Icon, Text) {
if (!icon) {
icon = new Style({image: new Icon({
src: 'https://unpkg.com/@mapbox/maki@4.0.0/icons/' + iconName + '-15.svg',
imgSize: [15, 15]
imgSize: [15, 15],
crossOrigin: 'anonymous'
})});
iconCache[iconName] = icon;
}