]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Show OSM objects for Nominatim search results as map overlays
[rails.git] / app / controllers / browse_controller.rb
index 2c22a9b83af7bb121cf06b3ddfa624a7f0b25202..5526aacca05df6de55bb8c7087662dcaea829db2 100644 (file)
@@ -30,9 +30,6 @@ class BrowseController < ApplicationController
     @way = Way.find(params[:id], :include => [:way_tags, {:changeset => :user}, {:nodes => [:node_tags, {:ways => :way_tags}]}, :containing_relation_members])
     @next = Way.visible.where("id > ?", @way.id).order("id ASC").first
     @prev = Way.visible.where("id < ?", @way.id).order("id DESC").first
-
-    # Used for edit link, takes approx middle node of way
-    @midnode = @way.nodes[@way.nodes.length/2]
   rescue ActiveRecord::RecordNotFound
     render :action => "not_found", :status => :not_found
   end