]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-html.php
Merge pull request #1865 from mtmail/how-to-import-test-db
[nominatim.git] / lib / template / details-html.php
index 4ea5a258d5de6a58e832b59f91194957fb17e41c..c15e74c89ab928739942e599e4fc9a786ac5efae 100644 (file)
         return $sHTML;
     }
 
         return $sHTML;
     }
 
-    function map_icon($sIcon)
+    function map_icon($aPlace)
     {
     {
+        $sIcon = Nominatim\ClassTypes\getIconFile($aPlace);
         if (isset($sIcon)) {
         if (isset($sIcon)) {
-            echo '<img id="mapicon" src="'.CONST_Website_BaseURL.'images/mapicons/'.$sIcon.'.n.32.png'.'" alt="'.$sIcon.'" />';
+            $sLabel = Nominatim\ClassTypes\getIcon($aPlace);
+            echo '<img id="mapicon" src="'.$sIcon.'" alt="'.$sLabel.'" />';
         }
     }
 
         }
     }
 
                 </h1>
             </div>
             <div class="col-sm-2 text-right">
                 </h1>
             </div>
             <div class="col-sm-2 text-right">
-                <?php map_icon($aPointDetails['icon']) ?>
+                <?php map_icon($aPointDetails) ?>
             </div>
         </div>
         <div class="row">
             </div>
         </div>
         <div class="row">