lib/geoblacklight/download/shapefile_download.rb in geoblacklight-4.0.0 vs lib/geoblacklight/download/shapefile_download.rb in geoblacklight-4.1.0

- old
+ new

@@ -1,21 +1,22 @@ # frozen_string_literal: true + module Geoblacklight class ShapefileDownload < Geoblacklight::Download - SHAPEFILE_DOWNLOAD_PARAMS = { service: 'wfs', - version: '2.0.0', - request: 'GetFeature', - srsName: 'EPSG:4326', - outputformat: 'SHAPE-ZIP' }.freeze + SHAPEFILE_DOWNLOAD_PARAMS = {service: "wfs", + version: "2.0.0", + request: "GetFeature", + srsName: "EPSG:4326", + outputformat: "SHAPE-ZIP"}.freeze def initialize(document, options = {}) request_params = SHAPEFILE_DOWNLOAD_PARAMS.merge(typeName: document[Settings.FIELDS.WXS_IDENTIFIER]) super(document, { - type: 'shapefile', - extension: 'zip', + type: "shapefile", + extension: "zip", request_params: request_params, - content_type: 'application/zip', - service_type: 'wfs' + content_type: "application/zip", + service_type: "wfs" }.merge(options)) end end end