X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b0ed31b6d48da40f90d3fd0e0aa71394984a6c76..d88778a561100db69ad439688698c673a2796bb6:/lib/template/search-html.php?ds=sidebyside diff --git a/lib/template/search-html.php b/lib/template/search-html.php index 986b4e4d..09b7021f 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -290,7 +290,7 @@ form{ projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), eventListeners: { - "moveend": mapEventMove, + "moveend": mapEventMove } } ); map.addLayer(new OpenLayers.Layer.OSM.("Default")); @@ -317,7 +317,7 @@ form{
-
+ @@ -372,7 +372,10 @@ target="_blank">FAQ echo ' '.$aResult['name'].''; echo ' '.round($aResult['lat'],3).','.round($aResult['lat'],3).''; echo ' '.$aResult['place_id'].''; - echo ' ('.ucwords(str_replace('_',' ',$aResult['type'])).')'; + if (isset($aResult['label'])) + echo ' ('.$aResult['label'].')'; + else + echo ' ('.ucwords(str_replace('_',' ',$aResult['type'])).')'; echo ' (details)'; echo ''; }