X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e9e54ec8046cf74d6d6f1c1ae04ca746aa3fefc2..d3f7465ccad9cce6c84f0b089282c5ece550c5ed:/lib/template/details-html.php diff --git a/lib/template/details-html.php b/lib/template/details-html.php index 43ec1266..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) { - if ($sIcon){ - echo ''.$sIcon.''; + $sIcon = Nominatim\ClassTypes\getIconFile($aPlace); + if (isset($sIcon)) { + $sLabel = Nominatim\ClassTypes\getIcon($aPlace); + echo ''.$sLabel.''; } } @@ -112,7 +114,7 @@
- +