Sha256: 25374980418cbb8f6a9baeb5e0a559401fc990835aa3f87fb2b5b522687521b2
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
# encoding: utf-8 module ArcServer module REST class MapServer attr_reader :url def initialize(url) @url = url end def export(opts = {}) query = { :bbox => opts[:bbox], :f => opts[:f] || :image, :format => opts[:format] || :png24, :transparent => opts[:transparent] || true, :size => opts[:size], :dpi => opts[:dpi] } HTTParty.get("#{url}/export", :query => query) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems