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