Fix icon names
This commit is contained in:
parent
60bcf45134
commit
78185cd40d
1 changed files with 3 additions and 2 deletions
|
|
@ -80,16 +80,17 @@ async function setupMap(): Promise<void> {
|
|||
/* Icons */
|
||||
const icons = new Map<string, L.Icon>();
|
||||
icons.set('bar', new L.Icon({ iconUrl: 'icons/bar.svg' }));
|
||||
icons.set('coffe', new L.Icon({ iconUrl: 'icons/coffe.svg' }));
|
||||
icons.set('coffee', new L.Icon({ iconUrl: 'icons/coffee.svg' }));
|
||||
icons.set('dining', new L.Icon({ iconUrl: 'icons/dining.svg' }));
|
||||
icons.set('food', new L.Icon({ iconUrl: 'icons/food.svg' }));
|
||||
icons.set('jazz', new L.Icon({ iconUrl: 'icons/saxophone.svg' }));
|
||||
icons.set('library', new L.Icon({ iconUrl: 'icons/book.svg' }));
|
||||
icons.set('marker', new L.Icon({ iconUrl: 'icons/marker.svg' }));
|
||||
icons.set('mask', new L.Icon({ iconUrl: 'icons/mask.svg' }));
|
||||
icons.set('museum', new L.Icon({ iconUrl: 'icons/museum.svg' }));
|
||||
icons.set('shop', new L.Icon({ iconUrl: 'icons/store.svg' }));
|
||||
|
||||
for (let [name, icon] of icons) {
|
||||
for (let [_name, icon] of icons) {
|
||||
icon.options.iconSize = [36, 36];
|
||||
icon.options.popupAnchor = [0, -18];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue