X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/9f280ac8ee3878fa1774be452a879e6d37b67510..b9f6288dcf815c29223180a81e52af5dc5a19bed:/src/components/MapIcon.svelte

diff --git a/src/components/MapIcon.svelte b/src/components/MapIcon.svelte
index 46c01a2..3892c32 100644
--- a/src/components/MapIcon.svelte
+++ b/src/components/MapIcon.svelte
@@ -2,10 +2,9 @@
 
   export let aPlace;
 
-  let sIcon = getIcon(aPlace.category, aPlace.type);
-
-  let title = 'icon for ' + aPlace.category + ' ' + aPlace.type;
-  let url = Nominatim_Config.Images_Base_Url + sIcon + '.p.20.png';
+  $: sIcon = getIcon(aPlace.category, aPlace.type);
+  $: title = 'icon for ' + aPlace.category + ' ' + aPlace.type;
+  $: url = Nominatim_Config.Images_Base_Url + sIcon + '.p.20.png';
 
   function getIcon(category, type) {
     // equivalent to PHP Nominatim::ClassTypes::getIcon
