X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e583ead8f8da3d730e1edf8f14db0d3cb0fb7eac..a549d33fdfdc3c79f549c99b57aa9baf46514926:/app/helpers/geocoder_helper.rb diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index f1b4e01dd..e7d0ddf6c 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -5,6 +5,7 @@ module GeocoderHelper html_options[:href] = "?mlat=#{result[:lat]}&mlon=#{result[:lon]}&zoom=#{result[:zoom]}" html = "" html << result[:prefix] if result[:prefix] + html << " " if result[:prefix] and result[:name] html << link_to_function(result[:name],"setPosition(#{result[:lat]}, #{result[:lon]}, #{result[:zoom]})", html_options) if result[:name] html << result[:suffix] if result[:suffix] return html