X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/82e4970766d1493a8ee4088c0d9867b42e9f7558..9a05a7ba490cbf2ed7fdc50ef5ae203dc5cbfd18:/app/controllers/geocoder_controller.rb?ds=sidebyside diff --git a/app/controllers/geocoder_controller.rb b/app/controllers/geocoder_controller.rb index 6db70a6f3..692ae24dd 100644 --- a/app/controllers/geocoder_controller.rb +++ b/app/controllers/geocoder_controller.rb @@ -7,6 +7,7 @@ class GeocoderController < ApplicationController before_filter :authorize_web before_filter :set_locale + before_filter :require_oauth, :only => [:search] def search normalize_params @@ -29,6 +30,8 @@ class GeocoderController < ApplicationController @sources.push "osm_nominatim" @sources.push "geonames" if defined?(GEONAMES_USERNAME) end + + render :layout => map_layout end def search_latlon