Sha256: 5a11d362fa1718cfefbc035aef9b613310c7e12f5badf908a852628c459e3312
Contents?: true
Size: 867 Bytes
Versions: 8
Compression:
Stored size: 867 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[Settings.FIELDS.WXS_IDENTIFIER], 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