]> git.openstreetmap.org Git - rails.git/commitdiff
Merge branch 'master' into openstreetbugs
authorTom Hughes <tom@compton.nu>
Sun, 16 May 2010 13:50:06 +0000 (14:50 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 16 May 2010 13:50:06 +0000 (14:50 +0100)
100 files changed:
app/helpers/browse_helper.rb
app/views/browse/_changeset_details.html.erb
app/views/browse/_node_details.html.erb
app/views/browse/_relation_member.html.erb
app/views/browse/_way_details.html.erb
app/views/browse/changeset.html.erb
app/views/browse/node.html.erb
app/views/browse/relation.html.erb
app/views/browse/way.html.erb
public/images/browse/allotments.png [new file with mode: 0644]
public/images/browse/alpinehut.p.16.png [new file with mode: 0644]
public/images/browse/atm2.p.16.png [new file with mode: 0644]
public/images/browse/bank2.p.16.png [new file with mode: 0644]
public/images/browse/bar.p.16.png [new file with mode: 0644]
public/images/browse/bridge.20.png [new file with mode: 0644]
public/images/browse/bridleway.20.png [new file with mode: 0644]
public/images/browse/brownfield.png [new file with mode: 0644]
public/images/browse/building.png [new file with mode: 0644]
public/images/browse/bus_station.n.16.png [new file with mode: 0644]
public/images/browse/bus_stop.p.16.png [new file with mode: 0644]
public/images/browse/byway.20.png [new file with mode: 0644]
public/images/browse/cafe.p.16.png [new file with mode: 0644]
public/images/browse/camping.n.16.png [new file with mode: 0644]
public/images/browse/car_share.p.16.png [new file with mode: 0644]
public/images/browse/caravan_park.p.24.png [new file with mode: 0644]
public/images/browse/cemetery.png [new file with mode: 0644]
public/images/browse/centre.png [new file with mode: 0644]
public/images/browse/cinema.p.16.png [new file with mode: 0644]
public/images/browse/commercial.png [new file with mode: 0644]
public/images/browse/common.png [new file with mode: 0644]
public/images/browse/cycleway.20.png [new file with mode: 0644]
public/images/browse/drinkingtap.p.16.png [new file with mode: 0644]
public/images/browse/farm.png [new file with mode: 0644]
public/images/browse/fast_food.p.16.png [new file with mode: 0644]
public/images/browse/firestation.p.16.png [new file with mode: 0644]
public/images/browse/footway.20.png [new file with mode: 0644]
public/images/browse/forest.png [new file with mode: 0644]
public/images/browse/fuel.p.16.png [new file with mode: 0644]
public/images/browse/gate2.p.16.png [new file with mode: 0644]
public/images/browse/golf.png [new file with mode: 0644]
public/images/browse/halt.p.16.png [new file with mode: 0644]
public/images/browse/heathland.png [new file with mode: 0644]
public/images/browse/hospital.p.16.png [new file with mode: 0644]
public/images/browse/hostel.p.16.png [new file with mode: 0644]
public/images/browse/hotel.p.16.png [new file with mode: 0644]
public/images/browse/industrial.png [new file with mode: 0644]
public/images/browse/lake.png [new file with mode: 0644]
public/images/browse/level_crossing.p.16.png [new file with mode: 0644]
public/images/browse/library.p.16.png [new file with mode: 0644]
public/images/browse/light_rail.20.png [new file with mode: 0644]
public/images/browse/lighthouse.p.16.png [new file with mode: 0644]
public/images/browse/military.png [new file with mode: 0644]
public/images/browse/mini_round.p.16.png [new file with mode: 0644]
public/images/browse/motorway.20.png [new file with mode: 0644]
public/images/browse/museum.p.16.png [new file with mode: 0644]
public/images/browse/park.png [new file with mode: 0644]
public/images/browse/parking.p.16.png [new file with mode: 0644]
public/images/browse/pharmacy.p.16.png [new file with mode: 0644]
public/images/browse/pitch.png [new file with mode: 0644]
public/images/browse/place_of_worship.png [new file with mode: 0644]
public/images/browse/police.p.16.png [new file with mode: 0644]
public/images/browse/post_box.p.16.png [new file with mode: 0644]
public/images/browse/post_office.p.16.png [new file with mode: 0644]
public/images/browse/primary.20.png [new file with mode: 0644]
public/images/browse/prison.p.16.png [new file with mode: 0644]
public/images/browse/pub.p.16.png [new file with mode: 0644]
public/images/browse/rail.20.png [new file with mode: 0644]
public/images/browse/recycling.p.16.png [new file with mode: 0644]
public/images/browse/rental_bicycle.p.20.png [new file with mode: 0644]
public/images/browse/reserve.png [new file with mode: 0644]
public/images/browse/residential.png [new file with mode: 0644]
public/images/browse/restaurant.p.16.png [new file with mode: 0644]
public/images/browse/retail.png [new file with mode: 0644]
public/images/browse/runway.20.png [new file with mode: 0644]
public/images/browse/school.png [new file with mode: 0644]
public/images/browse/secondary.20.png [new file with mode: 0644]
public/images/browse/shelter2.p.16.png [new file with mode: 0644]
public/images/browse/shop_bakery.p.16.png [new file with mode: 0644]
public/images/browse/shop_clothes.p.16.png [new file with mode: 0644]
public/images/browse/shop_convenience.p.16.png [new file with mode: 0644]
public/images/browse/shop_diy.p.16.png [new file with mode: 0644]
public/images/browse/shop_hairdresser.p.16.png [new file with mode: 0644]
public/images/browse/shop_supermarket.p.16.png [new file with mode: 0644]
public/images/browse/station.p.16.png [new file with mode: 0644]
public/images/browse/subway.20.png [new file with mode: 0644]
public/images/browse/taxiway.20.png [new file with mode: 0644]
public/images/browse/telephone.p.16.png [new file with mode: 0644]
public/images/browse/theatre.p.16.png [new file with mode: 0644]
public/images/browse/toilets.p.16.png [new file with mode: 0644]
public/images/browse/tourist.png [new file with mode: 0644]
public/images/browse/traffic_light.png [new file with mode: 0644]
public/images/browse/tram.20.png [new file with mode: 0644]
public/images/browse/tree.p.16.png [new file with mode: 0644]
public/images/browse/trunk.20.png [new file with mode: 0644]
public/images/browse/tunnel.20.png [new file with mode: 0644]
public/images/browse/turning_circle.p.16.png [new file with mode: 0644]
public/images/browse/unclassified.20.png [new file with mode: 0644]
public/images/browse/view_point.p.16.png [new file with mode: 0644]
public/images/browse/wood.png [new file with mode: 0644]
public/stylesheets/browse.css [new file with mode: 0644]

index ff702aed11f7a0ac04a0d284c604b4d3f467c9d8..f121f2f0bb3cd61a5e0ea9c89e29e7f13340cdc4 100644 (file)
@@ -2,7 +2,7 @@ module BrowseHelper
   def link_to_page(page, page_param)
     return link_to(page, page_param => page)
   end
-  
+
   def printable_name(object, version=false)
     name = t 'printable_name.with_id', :id => object.id.to_s
     if version
@@ -16,6 +16,14 @@ module BrowseHelper
     return name
   end
 
+  def link_class(type, object)
+    return type + " " + h(icon_tags(object).join(' '))
+  end
+
+  def link_title(object)
+    return h(icon_tags(object).map { |k,v| k + '=' + v }.to_sentence)
+  end
+
   def format_key(key)
     if url = wiki_link("key", key)
       link_to h(key), url, :title => t('browse.tag_details.wiki_link.key', :key => key)
@@ -36,6 +44,15 @@ module BrowseHelper
 
 private
 
+  ICON_TAGS = [ 
+    "aeroway", "amenity", "barrier", "building", "highway", "landuse",
+    "leisure", "man_made", "natural", "railway", "shop", "tourism", "waterway"
+  ]
+
+  def icon_tags(object)
+    object.tags.find_all { |k,v| ICON_TAGS.include? k }
+  end
+
   def wiki_link(type, lookup)
     locale = I18n.locale.to_s
 
index 24d5da08c3c00d4bb5b2adda0ed15cf24f677a42..6e3cbdb2ee0c2cd37247bb18194bfd449ddc01c2 100644 (file)
@@ -53,7 +53,7 @@
       <td>
         <table cellpadding="0">
           <% @nodes.each do |node| %>
-            <tr><td><%= link_to h(printable_name(node, true)), :action => "node", :id => node.id.to_s %></td></tr>
+            <tr><td><%= link_to h(printable_name(node, true)), { :action => "node", :id => node.id.to_s }, :class => link_class('node', node), :title => link_title(node) %></td></tr>
           <% end %>
         </table>
       </td>
@@ -67,7 +67,7 @@
       <td>
         <table cellpadding="0">
           <% @ways.each do |way| %>
-          <tr><td><%= link_to h(printable_name(way, true)), :action => "way", :id => way.id.to_s %></td></tr>
+          <tr><td><%= link_to h(printable_name(way, true)), { :action => "way", :id => way.id.to_s }, :class => link_class('way', way), :title => link_title(way) %></td></tr>
           <% end %>
           <%=
           #render :partial => "containing_relation", :collection => changeset_details.containing_relation_members 
@@ -84,7 +84,7 @@
       <td>
         <table cellpadding="0">
           <% @relations.each do |relation| %>
-          <tr><td><%= link_to h(printable_name(relation, true)), :action => "relation", :id => relation.id.to_s %></td></tr>
+          <tr><td><%= link_to h(printable_name(relation, true)), { :action => "relation", :id => relation.id.to_s }, :class => "relation " %></td></tr>
           <% end %>
         </table>
       </td>
index 7982e68052b448a2d69cccaa73f8e90d8b5c617c..80df2cd8589802507e0cf58717579aa2c45106ae 100644 (file)
@@ -13,7 +13,7 @@
       <td>
         <table cellpadding="0">
           <% node_details.ways.each do |way| %>
-            <tr><td><%= link_to h(printable_name(way)), :action => "way", :id => way.id.to_s %></td></tr>
+            <tr><td><%= link_to h(printable_name(way)), { :action => "way", :id => way.id.to_s }, :class => link_class('way', way), :title => link_title(way) %></td></tr>
           <% end %>
           <%= render :partial => "containing_relation", :collection => node_details.containing_relation_members %>
         </table>
index cee2e0e75b7157aeb7fcf1f95d0d525aab3c2c06..b797081da679d71e7f49233e7df91c4f9f9d69b3 100644 (file)
@@ -1,8 +1,10 @@
+<%
+  member_class = link_class(relation_member.member_type.downcase, relation_member.member)
+  linked_name = link_to h(printable_name(relation_member.member)), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, :title => link_title(relation_member.member)
+  type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase 
+%>
 <tr>
-  <td><%=
-    linked_name = link_to h(printable_name(relation_member.member)), :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s
-    type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase
-
+  <td class="<%= member_class %>"><%=
     if relation_member.member_role.blank?
       t'browse.relation_member.entry', :type => type_str, :name => linked_name
     else
index 917582f8244ec5ec3f67ee3b06ea5f19d0e1bbf9..0344ebf64bd8c94c38f2dd5eb54a123c59c878d8 100644 (file)
@@ -8,10 +8,10 @@
       <table cellpadding="0">
         <% way_details.way_nodes.each do |wn| %>
           <tr><td>
-            <%= link_to h(printable_name(wn.node)), :action => "node", :id => wn.node_id.to_s %>
+            <%= link_to h(printable_name(wn.node)), { :action => "node", :id => wn.node_id.to_s }, :class => link_class('node', wn.node), :title => link_title(wn.node) %>
             <% related_ways = wn.node.ways.reject { |w| w.id == way_details.id } %>
            <% if related_ways.size > 0 then %>
-              (<%= t 'browse.way_details.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(h(printable_name(w)), :action => "way", :id => w.id.to_s) }.to_sentence %>)
+              (<%= t 'browse.way_details.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(h(printable_name(w)), { :action => "way", :id => w.id.to_s }, :class => link_class('way', w), :title => link_title(w) ) }.to_sentence %>)
             <% end %>
          </td></tr>
         <% end %>
index bd93708e0785ee82e4e24906c73374b71d8e5740..97f57e41c56f6c15eba8cdab23c1961305103475 100644 (file)
@@ -1,3 +1,6 @@
+<% content_for :head do %>
+<%= stylesheet_link_tag 'browse' %>
+<% end %>
 <%= render :partial => "navigation" %>
 <h2><%= t 'browse.changeset.changeset', :id => @changeset.id %></h2>
 <% if @changeset.has_valid_bbox? %>
index 95176ab04305610c1a34159b42d1202932589cd3..d9faaf478423c7deb6ee2e881cf92bf30d645698 100644 (file)
@@ -2,6 +2,9 @@
 @name = printable_name @node
 @title = t('browse.node.node') + ' | ' + @name
 %>
+<% content_for :head do %>
+<%= stylesheet_link_tag 'browse' %>
+<% end %>
 <%= render :partial => "navigation" %>
 <h2><%= t'browse.node.node_title', :node_name => h(@name) %></h2>
 <%= render :partial => "map", :object => @node %>
index b1184d647b8ba19654c9a76945aa4e9baf0befa4..b8d0bc3b527ae9af04619265115e984051b2d4f3 100644 (file)
@@ -2,6 +2,9 @@
 @name = printable_name @relation
 @title = t('browse.relation.relation') + ' | ' + @name
 %>
+<% content_for :head do %>
+<%= stylesheet_link_tag 'browse' %>
+<% end %>
 <%= render :partial => "navigation" %>
 <h2><%= t'browse.relation.relation_title', :relation_name => h(@name) %></h2>
 <%= render :partial => "map", :object => @relation %>
index 55618247fccd524c055f0d18e770ae28a11ae721..3489d7c2348b816467edd18914ffeb743ac218f1 100644 (file)
@@ -2,6 +2,9 @@
 @name = printable_name @way
 @title = t('browse.way.way') + ' | ' + @name
 %>
+<% content_for :head do %>
+<%= stylesheet_link_tag 'browse' %>
+<% end %>
 <%= render :partial => "navigation" %>
 <h2><%= t'browse.way.way_title', :way_name => h(@name) %></h2>
 <%= render :partial => "map", :object => @way %>
diff --git a/public/images/browse/allotments.png b/public/images/browse/allotments.png
new file mode 100644 (file)
index 0000000..bc8d3fe
Binary files /dev/null and b/public/images/browse/allotments.png differ
diff --git a/public/images/browse/alpinehut.p.16.png b/public/images/browse/alpinehut.p.16.png
new file mode 100644 (file)
index 0000000..84b0977
Binary files /dev/null and b/public/images/browse/alpinehut.p.16.png differ
diff --git a/public/images/browse/atm2.p.16.png b/public/images/browse/atm2.p.16.png
new file mode 100644 (file)
index 0000000..62caf20
Binary files /dev/null and b/public/images/browse/atm2.p.16.png differ
diff --git a/public/images/browse/bank2.p.16.png b/public/images/browse/bank2.p.16.png
new file mode 100644 (file)
index 0000000..a7d30e8
Binary files /dev/null and b/public/images/browse/bank2.p.16.png differ
diff --git a/public/images/browse/bar.p.16.png b/public/images/browse/bar.p.16.png
new file mode 100644 (file)
index 0000000..201d66a
Binary files /dev/null and b/public/images/browse/bar.p.16.png differ
diff --git a/public/images/browse/bridge.20.png b/public/images/browse/bridge.20.png
new file mode 100644 (file)
index 0000000..ed48084
Binary files /dev/null and b/public/images/browse/bridge.20.png differ
diff --git a/public/images/browse/bridleway.20.png b/public/images/browse/bridleway.20.png
new file mode 100644 (file)
index 0000000..bb46bcb
Binary files /dev/null and b/public/images/browse/bridleway.20.png differ
diff --git a/public/images/browse/brownfield.png b/public/images/browse/brownfield.png
new file mode 100644 (file)
index 0000000..76d94cc
Binary files /dev/null and b/public/images/browse/brownfield.png differ
diff --git a/public/images/browse/building.png b/public/images/browse/building.png
new file mode 100644 (file)
index 0000000..189bbe9
Binary files /dev/null and b/public/images/browse/building.png differ
diff --git a/public/images/browse/bus_station.n.16.png b/public/images/browse/bus_station.n.16.png
new file mode 100644 (file)
index 0000000..5224dd1
Binary files /dev/null and b/public/images/browse/bus_station.n.16.png differ
diff --git a/public/images/browse/bus_stop.p.16.png b/public/images/browse/bus_stop.p.16.png
new file mode 100644 (file)
index 0000000..7d9d5e8
Binary files /dev/null and b/public/images/browse/bus_stop.p.16.png differ
diff --git a/public/images/browse/byway.20.png b/public/images/browse/byway.20.png
new file mode 100644 (file)
index 0000000..fb98d24
Binary files /dev/null and b/public/images/browse/byway.20.png differ
diff --git a/public/images/browse/cafe.p.16.png b/public/images/browse/cafe.p.16.png
new file mode 100644 (file)
index 0000000..836f8a5
Binary files /dev/null and b/public/images/browse/cafe.p.16.png differ
diff --git a/public/images/browse/camping.n.16.png b/public/images/browse/camping.n.16.png
new file mode 100644 (file)
index 0000000..b769125
Binary files /dev/null and b/public/images/browse/camping.n.16.png differ
diff --git a/public/images/browse/car_share.p.16.png b/public/images/browse/car_share.p.16.png
new file mode 100644 (file)
index 0000000..1dcc537
Binary files /dev/null and b/public/images/browse/car_share.p.16.png differ
diff --git a/public/images/browse/caravan_park.p.24.png b/public/images/browse/caravan_park.p.24.png
new file mode 100644 (file)
index 0000000..751f520
Binary files /dev/null and b/public/images/browse/caravan_park.p.24.png differ
diff --git a/public/images/browse/cemetery.png b/public/images/browse/cemetery.png
new file mode 100644 (file)
index 0000000..6d6d072
Binary files /dev/null and b/public/images/browse/cemetery.png differ
diff --git a/public/images/browse/centre.png b/public/images/browse/centre.png
new file mode 100644 (file)
index 0000000..10661ae
Binary files /dev/null and b/public/images/browse/centre.png differ
diff --git a/public/images/browse/cinema.p.16.png b/public/images/browse/cinema.p.16.png
new file mode 100644 (file)
index 0000000..21f7dcb
Binary files /dev/null and b/public/images/browse/cinema.p.16.png differ
diff --git a/public/images/browse/commercial.png b/public/images/browse/commercial.png
new file mode 100644 (file)
index 0000000..0d2d27c
Binary files /dev/null and b/public/images/browse/commercial.png differ
diff --git a/public/images/browse/common.png b/public/images/browse/common.png
new file mode 100644 (file)
index 0000000..b2c4de8
Binary files /dev/null and b/public/images/browse/common.png differ
diff --git a/public/images/browse/cycleway.20.png b/public/images/browse/cycleway.20.png
new file mode 100644 (file)
index 0000000..a752550
Binary files /dev/null and b/public/images/browse/cycleway.20.png differ
diff --git a/public/images/browse/drinkingtap.p.16.png b/public/images/browse/drinkingtap.p.16.png
new file mode 100644 (file)
index 0000000..b9baef7
Binary files /dev/null and b/public/images/browse/drinkingtap.p.16.png differ
diff --git a/public/images/browse/farm.png b/public/images/browse/farm.png
new file mode 100644 (file)
index 0000000..5b6f0bc
Binary files /dev/null and b/public/images/browse/farm.png differ
diff --git a/public/images/browse/fast_food.p.16.png b/public/images/browse/fast_food.p.16.png
new file mode 100644 (file)
index 0000000..28e78bf
Binary files /dev/null and b/public/images/browse/fast_food.p.16.png differ
diff --git a/public/images/browse/firestation.p.16.png b/public/images/browse/firestation.p.16.png
new file mode 100644 (file)
index 0000000..cf24559
Binary files /dev/null and b/public/images/browse/firestation.p.16.png differ
diff --git a/public/images/browse/footway.20.png b/public/images/browse/footway.20.png
new file mode 100644 (file)
index 0000000..5f69d00
Binary files /dev/null and b/public/images/browse/footway.20.png differ
diff --git a/public/images/browse/forest.png b/public/images/browse/forest.png
new file mode 100644 (file)
index 0000000..7e37c5d
Binary files /dev/null and b/public/images/browse/forest.png differ
diff --git a/public/images/browse/fuel.p.16.png b/public/images/browse/fuel.p.16.png
new file mode 100644 (file)
index 0000000..7bab32a
Binary files /dev/null and b/public/images/browse/fuel.p.16.png differ
diff --git a/public/images/browse/gate2.p.16.png b/public/images/browse/gate2.p.16.png
new file mode 100644 (file)
index 0000000..cee412c
Binary files /dev/null and b/public/images/browse/gate2.p.16.png differ
diff --git a/public/images/browse/golf.png b/public/images/browse/golf.png
new file mode 100644 (file)
index 0000000..f05ff25
Binary files /dev/null and b/public/images/browse/golf.png differ
diff --git a/public/images/browse/halt.p.16.png b/public/images/browse/halt.p.16.png
new file mode 100644 (file)
index 0000000..fbea173
Binary files /dev/null and b/public/images/browse/halt.p.16.png differ
diff --git a/public/images/browse/heathland.png b/public/images/browse/heathland.png
new file mode 100644 (file)
index 0000000..9342b56
Binary files /dev/null and b/public/images/browse/heathland.png differ
diff --git a/public/images/browse/hospital.p.16.png b/public/images/browse/hospital.p.16.png
new file mode 100644 (file)
index 0000000..dd4febf
Binary files /dev/null and b/public/images/browse/hospital.p.16.png differ
diff --git a/public/images/browse/hostel.p.16.png b/public/images/browse/hostel.p.16.png
new file mode 100644 (file)
index 0000000..ddab301
Binary files /dev/null and b/public/images/browse/hostel.p.16.png differ
diff --git a/public/images/browse/hotel.p.16.png b/public/images/browse/hotel.p.16.png
new file mode 100644 (file)
index 0000000..cd2ba16
Binary files /dev/null and b/public/images/browse/hotel.p.16.png differ
diff --git a/public/images/browse/industrial.png b/public/images/browse/industrial.png
new file mode 100644 (file)
index 0000000..e90e463
Binary files /dev/null and b/public/images/browse/industrial.png differ
diff --git a/public/images/browse/lake.png b/public/images/browse/lake.png
new file mode 100644 (file)
index 0000000..78cdd02
Binary files /dev/null and b/public/images/browse/lake.png differ
diff --git a/public/images/browse/level_crossing.p.16.png b/public/images/browse/level_crossing.p.16.png
new file mode 100644 (file)
index 0000000..2744835
Binary files /dev/null and b/public/images/browse/level_crossing.p.16.png differ
diff --git a/public/images/browse/library.p.16.png b/public/images/browse/library.p.16.png
new file mode 100644 (file)
index 0000000..4e42a73
Binary files /dev/null and b/public/images/browse/library.p.16.png differ
diff --git a/public/images/browse/light_rail.20.png b/public/images/browse/light_rail.20.png
new file mode 100644 (file)
index 0000000..7f65a62
Binary files /dev/null and b/public/images/browse/light_rail.20.png differ
diff --git a/public/images/browse/lighthouse.p.16.png b/public/images/browse/lighthouse.p.16.png
new file mode 100644 (file)
index 0000000..96ffd44
Binary files /dev/null and b/public/images/browse/lighthouse.p.16.png differ
diff --git a/public/images/browse/military.png b/public/images/browse/military.png
new file mode 100644 (file)
index 0000000..54741f3
Binary files /dev/null and b/public/images/browse/military.png differ
diff --git a/public/images/browse/mini_round.p.16.png b/public/images/browse/mini_round.p.16.png
new file mode 100644 (file)
index 0000000..1448b3e
Binary files /dev/null and b/public/images/browse/mini_round.p.16.png differ
diff --git a/public/images/browse/motorway.20.png b/public/images/browse/motorway.20.png
new file mode 100644 (file)
index 0000000..c89fa12
Binary files /dev/null and b/public/images/browse/motorway.20.png differ
diff --git a/public/images/browse/museum.p.16.png b/public/images/browse/museum.p.16.png
new file mode 100644 (file)
index 0000000..c58d306
Binary files /dev/null and b/public/images/browse/museum.p.16.png differ
diff --git a/public/images/browse/park.png b/public/images/browse/park.png
new file mode 100644 (file)
index 0000000..fac6f1f
Binary files /dev/null and b/public/images/browse/park.png differ
diff --git a/public/images/browse/parking.p.16.png b/public/images/browse/parking.p.16.png
new file mode 100644 (file)
index 0000000..5860900
Binary files /dev/null and b/public/images/browse/parking.p.16.png differ
diff --git a/public/images/browse/pharmacy.p.16.png b/public/images/browse/pharmacy.p.16.png
new file mode 100644 (file)
index 0000000..fb1c56c
Binary files /dev/null and b/public/images/browse/pharmacy.p.16.png differ
diff --git a/public/images/browse/pitch.png b/public/images/browse/pitch.png
new file mode 100644 (file)
index 0000000..68333b7
Binary files /dev/null and b/public/images/browse/pitch.png differ
diff --git a/public/images/browse/place_of_worship.png b/public/images/browse/place_of_worship.png
new file mode 100644 (file)
index 0000000..95494f5
Binary files /dev/null and b/public/images/browse/place_of_worship.png differ
diff --git a/public/images/browse/police.p.16.png b/public/images/browse/police.p.16.png
new file mode 100644 (file)
index 0000000..2dd87aa
Binary files /dev/null and b/public/images/browse/police.p.16.png differ
diff --git a/public/images/browse/post_box.p.16.png b/public/images/browse/post_box.p.16.png
new file mode 100644 (file)
index 0000000..3119cc1
Binary files /dev/null and b/public/images/browse/post_box.p.16.png differ
diff --git a/public/images/browse/post_office.p.16.png b/public/images/browse/post_office.p.16.png
new file mode 100644 (file)
index 0000000..743255e
Binary files /dev/null and b/public/images/browse/post_office.p.16.png differ
diff --git a/public/images/browse/primary.20.png b/public/images/browse/primary.20.png
new file mode 100644 (file)
index 0000000..668e25d
Binary files /dev/null and b/public/images/browse/primary.20.png differ
diff --git a/public/images/browse/prison.p.16.png b/public/images/browse/prison.p.16.png
new file mode 100644 (file)
index 0000000..4b2fc40
Binary files /dev/null and b/public/images/browse/prison.p.16.png differ
diff --git a/public/images/browse/pub.p.16.png b/public/images/browse/pub.p.16.png
new file mode 100644 (file)
index 0000000..b452a7e
Binary files /dev/null and b/public/images/browse/pub.p.16.png differ
diff --git a/public/images/browse/rail.20.png b/public/images/browse/rail.20.png
new file mode 100644 (file)
index 0000000..f93a6ef
Binary files /dev/null and b/public/images/browse/rail.20.png differ
diff --git a/public/images/browse/recycling.p.16.png b/public/images/browse/recycling.p.16.png
new file mode 100644 (file)
index 0000000..59eb331
Binary files /dev/null and b/public/images/browse/recycling.p.16.png differ
diff --git a/public/images/browse/rental_bicycle.p.20.png b/public/images/browse/rental_bicycle.p.20.png
new file mode 100644 (file)
index 0000000..4bb10e0
Binary files /dev/null and b/public/images/browse/rental_bicycle.p.20.png differ
diff --git a/public/images/browse/reserve.png b/public/images/browse/reserve.png
new file mode 100644 (file)
index 0000000..cf16376
Binary files /dev/null and b/public/images/browse/reserve.png differ
diff --git a/public/images/browse/residential.png b/public/images/browse/residential.png
new file mode 100644 (file)
index 0000000..67c2e34
Binary files /dev/null and b/public/images/browse/residential.png differ
diff --git a/public/images/browse/restaurant.p.16.png b/public/images/browse/restaurant.p.16.png
new file mode 100644 (file)
index 0000000..5c41008
Binary files /dev/null and b/public/images/browse/restaurant.p.16.png differ
diff --git a/public/images/browse/retail.png b/public/images/browse/retail.png
new file mode 100644 (file)
index 0000000..cc96211
Binary files /dev/null and b/public/images/browse/retail.png differ
diff --git a/public/images/browse/runway.20.png b/public/images/browse/runway.20.png
new file mode 100644 (file)
index 0000000..dac187f
Binary files /dev/null and b/public/images/browse/runway.20.png differ
diff --git a/public/images/browse/school.png b/public/images/browse/school.png
new file mode 100644 (file)
index 0000000..ea35d02
Binary files /dev/null and b/public/images/browse/school.png differ
diff --git a/public/images/browse/secondary.20.png b/public/images/browse/secondary.20.png
new file mode 100644 (file)
index 0000000..f6a758e
Binary files /dev/null and b/public/images/browse/secondary.20.png differ
diff --git a/public/images/browse/shelter2.p.16.png b/public/images/browse/shelter2.p.16.png
new file mode 100644 (file)
index 0000000..09ea530
Binary files /dev/null and b/public/images/browse/shelter2.p.16.png differ
diff --git a/public/images/browse/shop_bakery.p.16.png b/public/images/browse/shop_bakery.p.16.png
new file mode 100644 (file)
index 0000000..89de12e
Binary files /dev/null and b/public/images/browse/shop_bakery.p.16.png differ
diff --git a/public/images/browse/shop_clothes.p.16.png b/public/images/browse/shop_clothes.p.16.png
new file mode 100644 (file)
index 0000000..b028a1c
Binary files /dev/null and b/public/images/browse/shop_clothes.p.16.png differ
diff --git a/public/images/browse/shop_convenience.p.16.png b/public/images/browse/shop_convenience.p.16.png
new file mode 100644 (file)
index 0000000..2fc7584
Binary files /dev/null and b/public/images/browse/shop_convenience.p.16.png differ
diff --git a/public/images/browse/shop_diy.p.16.png b/public/images/browse/shop_diy.p.16.png
new file mode 100644 (file)
index 0000000..b1954ab
Binary files /dev/null and b/public/images/browse/shop_diy.p.16.png differ
diff --git a/public/images/browse/shop_hairdresser.p.16.png b/public/images/browse/shop_hairdresser.p.16.png
new file mode 100644 (file)
index 0000000..aa783f2
Binary files /dev/null and b/public/images/browse/shop_hairdresser.p.16.png differ
diff --git a/public/images/browse/shop_supermarket.p.16.png b/public/images/browse/shop_supermarket.p.16.png
new file mode 100644 (file)
index 0000000..3b4338a
Binary files /dev/null and b/public/images/browse/shop_supermarket.p.16.png differ
diff --git a/public/images/browse/station.p.16.png b/public/images/browse/station.p.16.png
new file mode 100644 (file)
index 0000000..f10492d
Binary files /dev/null and b/public/images/browse/station.p.16.png differ
diff --git a/public/images/browse/subway.20.png b/public/images/browse/subway.20.png
new file mode 100644 (file)
index 0000000..56b89b0
Binary files /dev/null and b/public/images/browse/subway.20.png differ
diff --git a/public/images/browse/taxiway.20.png b/public/images/browse/taxiway.20.png
new file mode 100644 (file)
index 0000000..3fb1dba
Binary files /dev/null and b/public/images/browse/taxiway.20.png differ
diff --git a/public/images/browse/telephone.p.16.png b/public/images/browse/telephone.p.16.png
new file mode 100644 (file)
index 0000000..29378e4
Binary files /dev/null and b/public/images/browse/telephone.p.16.png differ
diff --git a/public/images/browse/theatre.p.16.png b/public/images/browse/theatre.p.16.png
new file mode 100644 (file)
index 0000000..6e0feab
Binary files /dev/null and b/public/images/browse/theatre.p.16.png differ
diff --git a/public/images/browse/toilets.p.16.png b/public/images/browse/toilets.p.16.png
new file mode 100644 (file)
index 0000000..353208c
Binary files /dev/null and b/public/images/browse/toilets.p.16.png differ
diff --git a/public/images/browse/tourist.png b/public/images/browse/tourist.png
new file mode 100644 (file)
index 0000000..c70be84
Binary files /dev/null and b/public/images/browse/tourist.png differ
diff --git a/public/images/browse/traffic_light.png b/public/images/browse/traffic_light.png
new file mode 100644 (file)
index 0000000..1c2b3ca
Binary files /dev/null and b/public/images/browse/traffic_light.png differ
diff --git a/public/images/browse/tram.20.png b/public/images/browse/tram.20.png
new file mode 100644 (file)
index 0000000..092ec65
Binary files /dev/null and b/public/images/browse/tram.20.png differ
diff --git a/public/images/browse/tree.p.16.png b/public/images/browse/tree.p.16.png
new file mode 100644 (file)
index 0000000..c8c3067
Binary files /dev/null and b/public/images/browse/tree.p.16.png differ
diff --git a/public/images/browse/trunk.20.png b/public/images/browse/trunk.20.png
new file mode 100644 (file)
index 0000000..25b374f
Binary files /dev/null and b/public/images/browse/trunk.20.png differ
diff --git a/public/images/browse/tunnel.20.png b/public/images/browse/tunnel.20.png
new file mode 100644 (file)
index 0000000..49cd98f
Binary files /dev/null and b/public/images/browse/tunnel.20.png differ
diff --git a/public/images/browse/turning_circle.p.16.png b/public/images/browse/turning_circle.p.16.png
new file mode 100644 (file)
index 0000000..d29def0
Binary files /dev/null and b/public/images/browse/turning_circle.p.16.png differ
diff --git a/public/images/browse/unclassified.20.png b/public/images/browse/unclassified.20.png
new file mode 100644 (file)
index 0000000..2f687c1
Binary files /dev/null and b/public/images/browse/unclassified.20.png differ
diff --git a/public/images/browse/view_point.p.16.png b/public/images/browse/view_point.p.16.png
new file mode 100644 (file)
index 0000000..b18660c
Binary files /dev/null and b/public/images/browse/view_point.p.16.png differ
diff --git a/public/images/browse/wood.png b/public/images/browse/wood.png
new file mode 100644 (file)
index 0000000..1bebdfa
Binary files /dev/null and b/public/images/browse/wood.png differ
diff --git a/public/stylesheets/browse.css b/public/stylesheets/browse.css
new file mode 100644 (file)
index 0000000..2ca44bc
--- /dev/null
@@ -0,0 +1,109 @@
+.node { padding-left: 25px; }
+.way { padding-left: 25px; }
+
+/* Nodes */
+
+.aeroway.aerodrome { background: url(/images/browse/aerodrome.p.16.png) no-repeat center left; }
+
+.amenity.atm { background: url(/images/browse/atm2.p.16.png) no-repeat center left; }
+.amenity.bank { background: url(/images/browse/bank2.p.16.png) no-repeat center left; }
+.amenity.bar { background: url(/images/browse/bar.p.16.png) no-repeat center left; }
+.amenity.bicycle_rental { background: url(/images/browse/rental_bicycle.p.20.png) no-repeat center left; }
+.amenity.bus_station { background: url(/images/browse/bus_station.n.16.png) no-repeat center left; }
+.amenity.cafe { background: url(/images/browse/cafe.p.16.png) no-repeat center left; }
+.amenity.car_sharing { background: url(/images/browse/car_share.p.16.png) no-repeat center left; }
+.amenity.cinema { background: url(/images/browse/cinema.p.16.png) no-repeat center left; }
+.amenity.drinking_water { background: url(/images/browse/drinkingtap.p.16.png) no-repeat center left; }
+.amenity.fast_food { background: url(/images/browse/fast_food.p.16.png) no-repeat center left; }
+.amenity.fire_station { background: url(/images/browse/firestation.p.16.png) no-repeat center left; }
+.amenity.fuel { background: url(/images/browse/fuel.p.16.png) no-repeat center left; }
+.amenity.hospital { background: url(/images/browse/hospital.p.16.png) no-repeat center left; }
+.amenity.library { background: url(/images/browse/library.p.16.png) no-repeat center left; }
+.amenity.parking { background: url(/images/browse/parking.p.16.png) no-repeat center left; }
+.amenity.pharmacy { background: url(/images/browse/pharmacy.p.16.png) no-repeat center left; }
+.amenity.place_of_worship { background: url(/images/browse/place_of_worship.png) no-repeat center left; }
+.amenity.police { background: url(/images/browse/police.p.16.png) no-repeat center left; }
+.amenity.post_box { background: url(/images/browse/post_box.p.16.png) no-repeat center left; }
+.amenity.post_office { background: url(/images/browse/post_office.p.16.png) no-repeat center left; }
+.amenity.prison { background: url(/images/browse/prison.p.16.png) no-repeat center left; }
+.amenity.pub { background: url(/images/browse/pub.p.16.png) no-repeat center left; }
+.amenity.restaurant { background: url(/images/browse/restaurant.p.16.png) no-repeat center left; }
+.amenity.recycling { background: url(/images/browse/recycling.p.16.png) no-repeat center left; }
+.amenity.shelter { background: url(/images/browse/shelter2.p.16.png) no-repeat center left; }
+.amenity.telephone { background: url(/images/browse/telephone.p.16.png) no-repeat center left; }
+.amenity.theatre { background: url(/images/browse/theatre.p.16.png) no-repeat center left; }
+.amenity.toilets { background: url(/images/browse/toilets.p.16.png) no-repeat center left; }
+
+.barrier.gate { background: url(/images/browse/gate2.p.16.png) no-repeat center left; }
+
+.highway.bus_stop { background: url(/images/browse/bus_stop.p.16.png) no-repeat center left; }
+.highway.mini_roundabout { background: url(/images/browse/mini_round.p.16.png) no-repeat center left; }
+.highway.traffic_signals { background: url(/images/browse/traffic_light.png) no-repeat center left; }
+.highway.turning_circle { background: url(/images/browse/turning_circle.p.16.png) no-repeat center left; }
+
+.man_made.lighthouse { background: url(/images/browse/lighthouse.p.16.png) no-repeat center left; }
+
+.natural.tree { background: url(/images/browse/tree.p.16.png) no-repeat center left; }
+
+.railway.halt { background: url(/images/browse/halt.p.16.png) no-repeat center left; }
+.railway.station { background: url(/images/browse/station.p.16.png) no-repeat center left; }
+.railway.level_crossing { background: url(/images/browse/level_crossing.p.16.png) no-repeat center left; }
+
+.shop { background: url(/images/browse/shop_convenience.p.16.png) no-repeat center left; }
+.shop.bakery { background: url(/images/browse/shop_bakery.p.16.png) no-repeat center left; }
+.shop.clothes { background: url(/images/browse/shop_clothes.p.16.png) no-repeat center left; }
+.shop.convenience { background: url(/images/browse/shop_convenience.p.16.png) no-repeat center left; }
+.shop.diy { background: url(/images/browse/shop_diy.p.16.png) no-repeat center left; }
+.shop.hairdresser { background: url(/images/browse/shop_hairdresser.p.16.png) no-repeat center left; }
+.shop.supermarket { background: url(/images/browse/shop_supermarket.p.16.png) no-repeat center left; }
+
+.tourism.alpine_hut { background: url(/images/browse/alpinehut.p.16.png) no-repeat center left; }
+.tourism.camp_site { background: url(/images/browse/camping.n.16.png) no-repeat center left; }
+.tourism.caravan_site { background: url(/images/browse/caravan_park.n.16.png) no-repeat center left; }
+.tourism.hostel { background: url(/images/browse/hostel.p.16.png) no-repeat center left; }
+.tourism.hotel { background: url(/images/browse/hotel.p.16.png) no-repeat center left; }
+.tourism.museum { background: url(/images/browse/museum.p.16.png) no-repeat center left; }
+.tourism.viewpoint { background: url(/images/browse/view_point.p.16.png) no-repeat center left; }
+
+/* Ways */
+
+.aeroway.runway { background: url(/images/browse/runway.20.png) no-repeat center left; }
+.aeroway.taxiway { background: url(/images/browse/taxiway.20.png) no-repeat center left; }
+
+.building { background: url(/images/browse/building.png) no-repeat center left; }
+
+.highway.bridleway { background: url(/images/browse/bridleway.20.png) no-repeat center left; }
+.highway.byway { background: url(/images/browse/byway.20.png) no-repeat center left; }
+.highway.cycleway { background: url(/images/browse/cycleway.20.png) no-repeat center left; }
+.highway.footway { background: url(/images/browse/footway.20.png) no-repeat center left; }
+.highway.motorway { background: url(/images/browse/motorway.20.png) no-repeat center left; }
+.highway.primary { background: url(/images/browse/primary.20.png) no-repeat center left; }
+.highway.residential { background: url(/images/browse/unclassified.20.png) no-repeat center left; }
+.highway.secondary { background: url(/images/browse/secondary.20.png) no-repeat center left; }
+.highway.trunk { background: url(/images/browse/trunk.20.png) no-repeat center left; }
+.highway.unclassified { background: url(/images/browse/unclassified.20.png) no-repeat center left; }
+
+.landuse.brownfield { background: url(/images/browse/brownfield.png) no-repeat center left; }
+.landuse.cemetery { background: url(/images/browse/cemetery.png) no-repeat center left; }
+.landuse.commercial { background: url(/images/browse/commercial.png) no-repeat center left; }
+.landuse.farm { background: url(/images/browse/farm.png) no-repeat center left; }
+.landuse.forest { background: url(/images/browse/forest.png) no-repeat center left; }
+.landuse.industrial { background: url(/images/browse/industrial.png) no-repeat center left; }
+.landuse.military { background: url(/images/browse/military.png) no-repeat center left; }
+.landuse.residential { background: url(/images/browse/residential.png) no-repeat center left; }
+.landuse.retail { background: url(/images/browse/retail.png) no-repeat center left; }
+.landuse.tourism { background: url(/images/browse/tourism.png) no-repeat center left; }
+.landuse.wood { background: url(/images/browse/wood.png) no-repeat center left; }
+
+.leisure.golf_course { background: url(/images/browse/golf.png) no-repeat center left; }
+.leisure.park { background: url(/images/browse/park.png) no-repeat center left; }
+.leisure.pitch { background: url(/images/browse/pitch.png) no-repeat center left; }
+.leisure.nature_reserve { background: url(/images/browse/reserve.png) no-repeat center left; }
+
+.natural.heath { background: url(/images/browse/heathland.png) no-repeat center left; }
+.natural.water { background: url(/images/browse/lake.png) no-repeat center left; }
+
+.railway.light_rail { background: url(/images/browse/light_rail.20.png) no-repeat center left; }
+.railway.rail { background: url(/images/browse/rail.20.png) no-repeat center left; }
+.railway.subway { background: url(/images/browse/subway.20.png) no-repeat center left; }
+.railway.tram { background: url(/images/browse/tram.20.png) no-repeat center left; }