Skip to content

Macrostrat unit legend and tag generation #866

@davenquinn

Description

@davenquinn

Several users have requested the ability to see a legend for the Macrostrat map layer and pre-populate known information for a geological region into a list of units Tags that can then be attached to spots. One potential implementation would be as a pop-up that shows a list of legend entries for a region, and gives the option to "Add as Tags".

Macrostrat has a development API route [OpenAPI documentation] that gives the legend entry for a map bounding box and zoom level. This should be synced to the units that are actually visible in a given viewport and can be the basis for creating unit tags.

  • These tags would ideally carry the source_id and unit_id from Macrostrat, allowing spots to be directly linked to the Macrostrat unit they describe (this will be valuable for filtering in Macrostrat's system).
  • Soon, we will add more information on lithology and ages to this API, potentially allowing for lithology tags to be pre-generated as well if desired (Legend API enhancements UW-Macrostrat/macrostrat#270)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions