]> git.openstreetmap.org Git - rails.git/blob - app/controllers/layers_panes_controller.rb
Fix new rubocop warnings
[rails.git] / app / controllers / layers_panes_controller.rb
1 class LayersPanesController < ApplicationController
2   before_action :authorize_web
3   before_action :set_locale
4   authorize_resource :class => false
5
6   def show
7     @base_layers = MapLayers.full_definitions("config/layers.yml")
8     @overlay_layers = [{ :layer_id => "noteLayer", :name => "notes", :max_area => Settings.max_note_request_area },
9                        { :layer_id => "dataLayer", :name => "data", :max_area => Settings.max_request_area },
10                        { :layer_id => "gpsLayer", :name => "gps" }]
11     render :layout => false
12   end
13 end