Sha256: 206253f6e252d5a237336fc63c7c06e34383c42216c43d0d20ce3007f447399d
Contents?: true
Size: 869 Bytes
Versions: 4
Compression:
Stored size: 869 Bytes
Contents
# frozen_string_literal: true module Geoblacklight class KmzDownload < Geoblacklight::Download KMZ_DOWNLOAD_PARAMS = { service: 'wms', version: '1.1.0', request: 'GetMap', srsName: 'EPSG:3857', format: 'application/vnd.google-earth.kmz', width: 2000, height: 2000 }.freeze def initialize(document, options = {}) bbox_wsen = document.bounding_box_as_wsen.split(' ').join(', ') request_params = KMZ_DOWNLOAD_PARAMS.merge(layers: document[:layer_id_s], bbox: bbox_wsen) super(document, { type: 'kmz', extension: 'kmz', request_params: request_params, content_type: 'application/vnd.google-earth.kmz', service_type: 'wms' }.merge(options)) end end end
Version data entries
4 entries across 4 versions & 1 rubygems