Sha256: 081e28a1078e5ab00e190d35bbd0ce0deb98f09625b09c9a219060b7902fc12a
Contents?: true
Size: 841 Bytes
Versions: 28
Compression:
Stored size: 841 Bytes
Contents
module Geoblacklight class KmzDownload < Geoblacklight::Download KMZ_DOWNLOAD_PARAMS = { service: 'wms', version: '1.1.0', request: 'GetMap', srsName: 'EPSG:900913', 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
28 entries across 28 versions & 1 rubygems