class Geoblacklight::GeojsonDownload

Constants

GEOJSON_DOWNLOAD_PARAMS

Public Class Methods

new(document, options = {}) click to toggle source
Calls superclass method Geoblacklight::Download::new
# File lib/geoblacklight/download/geojson_download.rb, line 12
def initialize(document, options = {})
  request_params = GEOJSON_DOWNLOAD_PARAMS.merge(typeName: document[:layer_id_s])
  super(document, {
    type: 'geojson',
    extension: 'json',
    request_params: request_params,
    content_type: 'application/json',
    service_type: 'wfs'
  }.merge(options))
end