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