]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-html.php
finally fix adminitrative spelling error, disable fast_update on indexes by default...
[nominatim.git] / lib / template / details-html.php
index 0d5f6dc691ef60053b58da7caf4e0a7c77ec43e3..e536e202b21f0891a74d23ca84628f96ebf813a1 100644 (file)
@@ -19,7 +19,7 @@ body {
   font-weight: bold;
 }
 .notused{
-  color:#aaa;
+  color:#ddd;
 }
 .noname{
   color:#800;
@@ -31,8 +31,8 @@ body {
   float: right;
 }
     </style>
-       <script src="OpenLayers.js"></script>
-       <script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script>
+       <script src="js/OpenLayers.js"></script>
+       <script src="js/OpenStreetMap.js"></script>
        <script src="prototype-1.6.0.3.js"></script>
        <script type="text/javascript">
         
@@ -111,6 +111,12 @@ foreach($aPolyPoints as $aPolyPoint)
        echo ' <div>Coverage: <span class="area">'.($aPointDetails['isarea']=='t'?'Polygon':'Point').'</span></div>';
        $sOSMType = ($aPointDetails['osm_type'] == 'N'?'node':($aPointDetails['osm_type'] == 'W'?'way':($aPointDetails['osm_type'] == 'R'?'relation':'')));
        if ($sOSMType) echo ' <div>OSM: <span class="osm"><span class="label"></span>'.$sOSMType.' <a href="http://www.openstreetmap.org/browse/'.$sOSMType.'/'.$aPointDetails['osm_id'].'">'.$aPointDetails['osm_id'].'</a></span></div>';
+       echo ' <div>Extra Tags: ';
+       foreach($aPointDetails['aExtraTags'] as $sKey => $sValue)
+       {
+               echo ' <div class="line"><span class="name">'.$sValue.'</span> ('.$sKey.')</div>';
+       }
+       echo ' </div>';
        echo '</div>';
 
        echo '<h2>Address</h2>';
@@ -121,7 +127,7 @@ foreach($aPolyPoints as $aPolyPoint)
        {       
                $sOSMType = ($aAddressLine['osm_type'] == 'N'?'node':($aAddressLine['osm_type'] == 'W'?'way':($aAddressLine['osm_type'] == 'R'?'relation':'')));
 
-               echo '<div class="line'.($iPrevRank<=$aAddressLine['rank_address'] || $sPrevLocalName == $aAddressLine['localname']?' notused':'').'">';
+               echo '<div class="line'.($aAddressLine['isaddress']=='f'?' notused':'').'">';
                if (!($iPrevRank<=$aAddressLine['rank_address'] || $sPrevLocalName == $aAddressLine['localname']))
                {
                        $iPrevRank = $aAddressLine['rank_address'];