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 13
def initialize(document, options = {})
  request_params = GEOJSON_DOWNLOAD_PARAMS.merge(typeName: document[Settings.FIELDS.WXS_IDENTIFIER])
  super(document, {
    type: "geojson",
    extension: "json",
    request_params: request_params,
    content_type: "application/json",
    service_type: "wfs"
  }.merge(options))
end