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