X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/859347523fb2c7340b2df9980e52d5ea4543c82d..ff36d7d8df16d1a1d94656bda7b8b7d4b9422a3a:/lib/template/details-html.php?ds=sidebyside diff --git a/lib/template/details-html.php b/lib/template/details-html.php index 4ea5a258..c15e74c8 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -57,10 +57,12 @@ return $sHTML; } - function map_icon($sIcon) + function map_icon($aPlace) { + $sIcon = Nominatim\ClassTypes\getIconFile($aPlace); if (isset($sIcon)) { - echo ''.$sIcon.''; + $sLabel = Nominatim\ClassTypes\getIcon($aPlace); + echo ''.$sLabel.''; } } @@ -112,7 +114,7 @@
- +