Module: Geoblacklight::SolrDocument::Carto

Included in:
Geoblacklight::SolrDocument
Defined in:
app/models/concerns/geoblacklight/solr_document/carto.rb

Overview

Module for providing external Carto download references for a document

Instance Method Summary collapse

Instance Method Details

#carto_referenceString

Returns a url to a file that should be used with CartoDB integration

Returns:

  • (String)


10
11
12
13
# File 'app/models/concerns/geoblacklight/solr_document/carto.rb', line 10

def carto_reference
  return unless public? && download_types.try(:[], :geojson).present?
  Geoblacklight::GeojsonDownload.new(self).url_with_params
end