Sha256: 36f2becc48a02efc22f3068b6ee6f1eb4566420332b6257357aeccef602ed1dd

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

class KmzDownload < 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 }
  
  def initialize(document)
    request_params = KMZ_DOWNLOAD_PARAMS.merge(layers: document[:layer_id_s], bbox: document.bounding_box_as_wsen.split(' ').join(', '))
    super(document, {
      type: 'kmz',
      extension: 'kmz',
      request_params: request_params,
      content_type: 'application/vnd.google-earth.kmz',
      service_type: 'wms'
    })
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geoblacklight-0.7.0 lib/geoblacklight/download/kmz_download.rb