Use unpkg.com instead of rawgit.com

This commit is contained in:
Frederic Junod
2018-10-10 15:11:07 +02:00
parent db15bb0942
commit 6d1cc3ba88
4 changed files with 4 additions and 4 deletions

View File

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