X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b99a043c78f756f58b8e106ba60e999ea9538bb3..9c0ca064b833ad39eac8ffc2447331d732d1a7d0:/lib/template/details-html.php
diff --git a/lib/template/details-html.php b/lib/template/details-html.php
index aa27664b..3f416fca 100644
--- a/lib/template/details-html.php
+++ b/lib/template/details-html.php
@@ -53,7 +53,8 @@ body {
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326")
} );
- map.addLayer(new OpenLayers.Layer.OSM.("Default"));
+ map.addLayer(new OpenLayers.Layer.OSM.("Default",
+ { attribution : '© OpenStreetMap and contributors, under an open license'}));
var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);
layer_style.fillOpacity = 0.2;
@@ -114,6 +115,11 @@ if (isset($aPolyPoints))
echo '
Coverage: '.($aPointDetails['isarea']=='t'?'Polygon':'Point').'
';
$sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':'')));
if ($sOSMType) echo ' ';
+ if ($aPointDetails['wikipedia'])
+ {
+ list($sWikipediaLanguage,$sWikipediaArticle) = explode(':',$aPointDetails['wikipedia']);
+ echo ' ';
+ }
echo ' Extra Tags: ';
foreach($aPointDetails['aExtraTags'] as $sKey => $sValue)
{
@@ -142,7 +148,7 @@ if (isset($aPolyPoints))
if ($sOSMType) echo ',
'.$sOSMType.' '.$aAddressLine['osm_id'].'';
echo ',
'.$aAddressLine['admin_level'].'';
echo ',
'.$aAddressLine['rank_search_label'].'';
- echo ',
'.($aAddressLine['fromarea']=='t'?'Polygon':'Point').'';
+// echo ',
'.($aAddressLine['fromarea']=='t'?'Polygon':'Point').'';
echo ',
'.$aAddressLine['distance'].'';
echo '
GOTO';
echo ')';
@@ -150,6 +156,30 @@ if (isset($aPolyPoints))
}
echo '
';
+ if ($aLinkedLines)
+ {
+ echo 'Linked Places
';
+ echo '';
+ foreach($aLinkedLines as $aAddressLine)
+ {
+ $sOSMType = ($aAddressLine['osm_type'] == 'N'?'node':($aAddressLine['osm_type'] == 'W'?'way':($aAddressLine['osm_type'] == 'R'?'relation':'')));
+
+ echo '
';
+ echo '
'.(trim($aAddressLine['localname'])?$aAddressLine['localname']:'No Name').'';
+ echo ' (';
+ echo '
Type: '.$aAddressLine['class'].':'.$aAddressLine['type'].'';
+ if ($sOSMType) echo ',
'.$sOSMType.' '.$aAddressLine['osm_id'].'';
+ echo ',
'.$aAddressLine['admin_level'].'';
+ echo ',
'.$aAddressLine['rank_search_label'].'';
+// echo ',
'.($aAddressLine['fromarea']=='t'?'Polygon':'Point').'';
+ echo ',
'.$aAddressLine['distance'].'';
+ echo '
GOTO';
+ echo ')';
+ echo '
';
+ }
+ echo '
';
+ }
+
if ($aPlaceSearchNameKeywords)
{
echo 'Name Keywords
';