Module: Shared::Maps

Extended by:
ActiveSupport::Concern
Included in:
AssertedDistribution, Georeference
Defined in:
app/models/concerns/shared/maps.rb

Overview

Shared code for extending models that impact CachedMap creation (at present AssertedDistribution, Georeference).

TODO:

  • callbacks in all potentially altering models, e.g.:

    • AssertedDistribution (geographic_area_id change, otu_id change)

    • GeographicItem (shape change) ?! necessary or we destroy/update !?

    • CollectionObject (collecting_event_id change)

    • Georeference (geographic_item change, position_change, collecting_event_id change)

    • OTU change (taxon_name_id change)

    • TaxonDetermination (otu_id change, position change)

    • GeographicArea - !?!@# (new/altered gazetters)

  • provide 2 shapes, absent/present when both there

  • resolve “untranslated” when rendering