class Geoblacklight::KmzDownload

Constants

KMZ_DOWNLOAD_PARAMS

Public Class Methods

new(document, options = {}) click to toggle source
Calls superclass method Geoblacklight::Download::new
# File lib/geoblacklight/download/kmz_download.rb, line 11
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