X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/aed9d9c85e30b45f3e0ce4d9e3639b8ab0875e77..383fa4f34fae75a73fd892486f6e4b809467321f:/lib/template/details-html.php?ds=sidebyside
diff --git a/lib/template/details-html.php b/lib/template/details-html.php
index c043e9b7..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 = Nominatim\ClassTypes\getIconFile($aPlace);
+ if (isset($sIcon)) {
+ $sLabel = Nominatim\ClassTypes\getIcon($aPlace);
+ echo '
';
}
}
@@ -70,7 +72,13 @@
echo '