Sha256: f0de898c6909f47fe2866438e2fd5434619a50881a6317752911b96a2c6a1010

Contents?: true

Size: 372 Bytes

Versions: 20

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true
module ArcgisHelper
  ##
  # Generates an ArcGIS.com viewer url with params that can open content
  # directly
  # See: https://doc.arcgis.com/en/arcgis-online/reference/use-url-parameters.htm
  def arcgis_link(arcgis_urls)
    params = URI.encode_www_form(
      urls: arcgis_urls
    )
    Settings.ARCGIS_BASE_URL + '?' + params
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 app/helpers/arcgis_helper.rb
geoblacklight-3.8.0 app/helpers/arcgis_helper.rb
geoblacklight-4.0.0 app/helpers/arcgis_helper.rb
geoblacklight-4.0.0.pre.rc3 app/helpers/arcgis_helper.rb
geoblacklight-3.7.0 app/helpers/arcgis_helper.rb
geoblacklight-4.0.0.pre.rc2 app/helpers/arcgis_helper.rb
geoblacklight-4.0.0.pre.rc1 app/helpers/arcgis_helper.rb
geoblacklight-3.6.0 app/helpers/arcgis_helper.rb
geoblacklight-3.5.0 app/helpers/arcgis_helper.rb
geoblacklight-4.0.0.pre.alpha.3 app/helpers/arcgis_helper.rb
geoblacklight-4.0.0.pre.alpha.2 app/helpers/arcgis_helper.rb
geoblacklight-4.0.0.pre.alpha.1 app/helpers/arcgis_helper.rb
geoblacklight-4.0.0.pre.alpha app/helpers/arcgis_helper.rb
geoblacklight-3.4.0 app/helpers/arcgis_helper.rb
geoblacklight-3.3.1 app/helpers/arcgis_helper.rb
geoblacklight-3.3.0 app/helpers/arcgis_helper.rb
geoblacklight-3.2.0 app/helpers/arcgis_helper.rb
geoblacklight-3.1.0 app/helpers/arcgis_helper.rb
geoblacklight-3.0.1 app/helpers/arcgis_helper.rb
geoblacklight-3.0.0 app/helpers/arcgis_helper.rb