]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/ClassTypes.php
rename nominatim.admin to nominatim.tools
[nominatim.git] / lib / ClassTypes.php
index c8d37e5287d3097d429906ab832def1b96bbaf8f..bb7b0486cb628c687c342faa9faea86a8032ad5c 100644 (file)
@@ -252,13 +252,17 @@ function getIcon($aPlace)
  */
 function getIconFile($aPlace)
 {
+    if (CONST_MapIcon_URL === false) {
+        return null;
+    }
+
     $sIcon = getIcon($aPlace);
 
     if (!isset($sIcon)) {
         return null;
     }
 
-    return CONST_Website_BaseURL.'images/mapicons/'.$sIcon.'.p.20.png';
+    return CONST_MapIcon_URL.'/'.$sIcon.'.p.20.png';
 }
 
 /**
@@ -275,6 +279,7 @@ function getImportance($aPlace)
 
     if ($aWithImportance === null) {
         $aWithImportance = array_flip(array(
+                                           'boundary:administrative',
                                            'place:country',
                                            'place:state',
                                            'place:province',