Class: Georeference::Leaflet

Inherits:
Georeference
  • Object
show all
Defined in:
app/models/georeference/leaflet.rb

Overview

A Georeference derived from the Leaflet plugin

Instance Method Summary collapse

Instance Method Details

#dwc_georeference_attributesObject



5
6
7
8
9
10
11
12
13
# File 'app/models/georeference/leaflet.rb', line 5

def dwc_georeference_attributes
  h = {}
  super(h)
  h.merge!(
    georeferenceSources: 'Leaflet',
    georeferenceRemarks: 'Created from a TaxonWorks interface that integrates Leaflet.')
  h[:georeferenceProtocol] =  'Shape "drawn" on a Leaflet map.' if h[:georeferenceProtocol].blank? 
  h
end