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
-
#carto_reference ⇒ String
Returns a url to a file that should be used with CartoDB integration.
Instance Method Details
#carto_reference ⇒ String
Returns a url to a file that should be used with CartoDB integration
11 12 13 14 |
# File 'app/models/concerns/geoblacklight/solr_document/carto.rb', line 11 def carto_reference return unless public? && download_types.try(:[], :geojson).present? Geoblacklight::GeojsonDownload.new(self).url_with_params end |