X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/6e68f11776a8f6f5a62b989f13ebf7438ef32476..ecea2eedea2d87492f28ca713c2c1a4b7382256c:/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