Sha256: e22fc651390a5c8a426df5a52add9b00f725bc49bbf89745afd8b7e5e9ce3fee
Contents?: true
Size: 848 Bytes
Versions: 8
Compression:
Stored size: 848 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.geometry.bounding_box 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
8 entries across 8 versions & 1 rubygems