Remove maki file name postfix "-11" after update
This commit is contained in:
parent
89d9e8763a
commit
e863e4188c
2 changed files with 27 additions and 28 deletions
|
|
@ -191,8 +191,7 @@ BR.LayersConfig = L.Class.extend({
|
||||||
|
|
||||||
if (icon && iconPrefix.test(icon)) {
|
if (icon && iconPrefix.test(icon)) {
|
||||||
const iconName = icon.replace(iconPrefix, '');
|
const iconName = icon.replace(iconPrefix, '');
|
||||||
const postfix = icon.startsWith('maki-') ? '-11' : '';
|
iconUrl = `dist/images/${iconName}.svg`;
|
||||||
iconUrl = `dist/images/${iconName}${postfix}.svg`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return iconUrl;
|
return iconUrl;
|
||||||
|
|
|
||||||
52
package.json
52
package.json
|
|
@ -303,32 +303,32 @@
|
||||||
},
|
},
|
||||||
"@mapbox/maki": {
|
"@mapbox/maki": {
|
||||||
"main": [
|
"main": [
|
||||||
"icons/art-gallery-11.svg",
|
"icons/art-gallery.svg",
|
||||||
"icons/bakery-11.svg",
|
"icons/bakery.svg",
|
||||||
"icons/bank-11.svg",
|
"icons/bank.svg",
|
||||||
"icons/bar-11.svg",
|
"icons/bar.svg",
|
||||||
"icons/bbq-11.svg",
|
"icons/bbq.svg",
|
||||||
"icons/beer-11.svg",
|
"icons/beer.svg",
|
||||||
"icons/bicycle-11.svg",
|
"icons/bicycle.svg",
|
||||||
"icons/cafe-11.svg",
|
"icons/cafe.svg",
|
||||||
"icons/campsite-11.svg",
|
"icons/campsite.svg",
|
||||||
"icons/car-11.svg",
|
"icons/car.svg",
|
||||||
"icons/car-rental-11.svg",
|
"icons/car-rental.svg",
|
||||||
"icons/drinking-water-11.svg",
|
"icons/drinking-water.svg",
|
||||||
"icons/entrance-alt1-11.svg",
|
"icons/entrance-alt1.svg",
|
||||||
"icons/fast-food-11.svg",
|
"icons/fast-food.svg",
|
||||||
"icons/fuel-11.svg",
|
"icons/fuel.svg",
|
||||||
"icons/grocery-11.svg",
|
"icons/grocery.svg",
|
||||||
"icons/hospital-11.svg",
|
"icons/hospital.svg",
|
||||||
"icons/information-11.svg",
|
"icons/information.svg",
|
||||||
"icons/lodging-11.svg",
|
"icons/lodging.svg",
|
||||||
"icons/picnic-site-11.svg",
|
"icons/picnic-site.svg",
|
||||||
"icons/restaurant-11.svg",
|
"icons/restaurant.svg",
|
||||||
"icons/shelter-11.svg",
|
"icons/shelter.svg",
|
||||||
"icons/shop-11.svg",
|
"icons/shop.svg",
|
||||||
"icons/star-11.svg",
|
"icons/star.svg",
|
||||||
"icons/toilet-11.svg",
|
"icons/toilet.svg",
|
||||||
"icons/water-11.svg"
|
"icons/water.svg"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"@ideditor/temaki": {
|
"@ideditor/temaki": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue