Sha256: 0ce6661a593eee88c541bee87a210139b8d5cbc5f38b783e8e6d91de1eff0491

Contents?: true

Size: 338 Bytes

Versions: 20

Compression:

Stored size: 338 Bytes

Contents

class WmsController < ApplicationController
  def handle
    response = Geoblacklight::WmsLayer.new(wms_params).feature_info

    respond_to do |format|
      format.json { render json: response }
    end
  end

  private

  def wms_params
    params.permit('URL', 'LAYERS', 'BBOX', 'WIDTH', 'HEIGHT', 'QUERY_LAYERS', 'X', 'Y')
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geoblacklight-2.4.0 app/controllers/wms_controller.rb
geoblacklight-2.3.0 app/controllers/wms_controller.rb
geoblacklight-2.2.1 app/controllers/wms_controller.rb
geoblacklight-2.2.0 app/controllers/wms_controller.rb
geoblacklight-2.1.2 app/controllers/wms_controller.rb
geoblacklight-2.1.1 app/controllers/wms_controller.rb
geoblacklight-2.1.0 app/controllers/wms_controller.rb
geoblacklight-2.0.0 app/controllers/wms_controller.rb
geoblacklight-1.9.1 app/controllers/wms_controller.rb
geoblacklight-1.9.0 app/controllers/wms_controller.rb
geoblacklight-1.8.0 app/controllers/wms_controller.rb
geoblacklight-1.7.1 app/controllers/wms_controller.rb
geoblacklight-1.7.0 app/controllers/wms_controller.rb
geoblacklight-1.6.0 app/controllers/wms_controller.rb
geoblacklight-1.5.1 app/controllers/wms_controller.rb
geoblacklight-1.5.0 app/controllers/wms_controller.rb
geoblacklight-1.4.0 app/controllers/wms_controller.rb
geoblacklight-1.3.0 app/controllers/wms_controller.rb
geoblacklight-1.2.0 app/controllers/wms_controller.rb
geoblacklight-1.1.2 app/controllers/wms_controller.rb