X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bfe51197429c9436034bb4d25931ad4d687d09c8..9f7844ec7a8fe4426eb8a34165158ca6712760e3:/lib/template/details-html.php diff --git a/lib/template/details-html.php b/lib/template/details-html.php index c438659b..3eaca8ad 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 '
OSM: '.$sOSMType.' '.$aPointDetails['osm_id'].'
'; + if ($aPointDetails['wikipedia']) + { + list($sWikipediaLanguage,$sWikipediaArticle) = explode(':',$aPointDetails['wikipedia']); + echo '
Wikipedia Calculated: '.$aPointDetails['wikipedia'].'
'; + } echo '
Extra Tags: '; foreach($aPointDetails['aExtraTags'] as $sKey => $sValue) { @@ -194,7 +200,7 @@ if (isset($aPolyPoints)) if (sizeof($aParentOfLines)) { - echo '

Parent Of (named features only):

'; + echo '

Parent Of:

'; $aGroupedAddressLines = array(); foreach($aParentOfLines as $aAddressLine)