Sha256: 30d9d2660baca12c6e060e40283c4d1c8101de37dce7efe81df6c56930507e84

Contents?: true

Size: 401 Bytes

Versions: 10

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

module GeoblacklightAdmin
  class ImageService
    module DynamicMapLayer
      ##
      # Formats and returns a thumbnail url from an ESRI Dynamic Map Layer endpoint.
      # @param [SolrDocument]
      # @return [String] image url
      def self.image_url(document, _size)
        "#{document.viewer_endpoint}/info/thumbnail/thumbnail.png"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
geoblacklight_admin-0.7.0 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb
geoblacklight_admin-0.6.3 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb
geoblacklight_admin-0.6.2 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb
geoblacklight_admin-0.6.1 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb
geoblacklight_admin-0.6.0 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb
geoblacklight_admin-0.5.1 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb
geoblacklight_admin-0.5.0 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb
geoblacklight_admin-0.4.2 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb
geoblacklight_admin-0.4.1 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb
geoblacklight_admin-0.4.0 app/services/geoblacklight_admin/image_service/dynamic_map_layer.rb