Skip to content

Expose map view's time state to other OHM widgets #187

Closed

Description

@jeffreyameyer

What's your idea for a cool feature that would help you use OHM better.
Research how to expose the map display pane's current time to other apps/widgets, so the slider controls more than just the map? e.g. how do you make the inspector time-aware to show the most time-appropriate pictures by default? (that's not in this ticket, but a question)

Current workarounds
No current workarounds.

Additional info
Please add any other context, comparables, screenshots, pictures of drawings on napkins about the feature request here.

Activity

  1. danrademacher commented on Jan 25, 2021

    @danrademacher

    Thinking about this some more, I think we have two parts of the problem, one easy and one hard:

    1. Expose the timeslider setting to other elements on the page -- duh, Dan, once we're writing that into the URL hash, it is then available to anything that can read the hash. Very easy to do that in Javascript.
    2. Harder: Actually have the other things on the page respond to that setting.

    I think the second item is a challenge because there are lots of different services at play here: iD works one way, Nominatim another.

    But more fundamentally, the issue I mentioned here in iD integration will apply elsewhere: #93 (comment)

    Right now, nonambiguous, sortable dates exist only in the vector tiles, so any services that interacts with OHM data directly (eg, Nominatim, iD) has no access to those sortable dates.

    So it seems like we need to somehow make decimaldate a thing that is accessible to other services, without also making it editable in OHM itself. I am not really sure how to do that. The overall OSM approach seems to be for each services to do its own processing on the data, consuming diffs and doing whatever it needs to do to optimize for its own purposes. Maybe that's the best way here too, though it also seems prone to error and manual sync issues as our doate handling changes over time.

  2. jeffreyameyer commented on Jan 25, 2021

    @jeffreyameyer
    MemberAuthor

    I think the catch is that even if the dates exist only in the tiles, that's fine, as there are dates in other places - e.g. Nominatim results, inspector-level data (which pulls it from the db, I think, right?).

    Yes... that URL as a "date state bus" seems quite useful!

  3. danrademacher commented on Jun 1, 2021

    @danrademacher

    Since we now have URL params with the selected date in it, I think that's as much as we'll need to let other elements on the site know what date is selected. Once we make some other elements! Or work on Nominatim results, etc

  4. added theissue type on Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions