Module: ArcgisHelper

Defined in:
app/helpers/arcgis_helper.rb

Instance Method Summary collapse

Instance Method Details

Generates an ArcGIS.com viewer url with params that can open content directly See: doc.arcgis.com/en/arcgis-online/reference/use-url-parameters.htm



8
9
10
11
12
13
# File 'app/helpers/arcgis_helper.rb', line 8

def arcgis_link(arcgis_urls)
  params = URI.encode_www_form(
    urls: arcgis_urls
  )
  Settings.ARCGIS_BASE_URL + "?" + params
end