From 78185cd40d11ca82b504e316558cc523e7a8afa7 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Fri, 5 Aug 2022 22:32:28 -0400 Subject: [PATCH] Fix icon names --- ts-client/client.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ts-client/client.ts b/ts-client/client.ts index 89e819a..50b7866 100644 --- a/ts-client/client.ts +++ b/ts-client/client.ts @@ -80,16 +80,17 @@ async function setupMap(): Promise { /* Icons */ const icons = new Map(); 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]; }