X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c636646759d9c541f7baf19812be18d002a8ce1d..c0d1fb859fee050373df1fa77d03cb2c1a8cde91:/src/components/MapIcon.svelte?ds=sidebyside

diff --git a/src/components/MapIcon.svelte b/src/components/MapIcon.svelte
index 8bdbe3b..3892c32 100644
--- a/src/components/MapIcon.svelte
+++ b/src/components/MapIcon.svelte
@@ -1,12 +1,10 @@
 <script>
 
   export let aPlace;
-  import { get_config_value } from '../lib/config_reader.js';
 
-  let sIcon = getIcon(aPlace.category, aPlace.type);
-
-  let title = 'icon for ' + aPlace.category + ' ' + aPlace.type;
-  let url = get_config_value('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
