You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose map view's time state to other OHM widgets #187
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.
Thinking about this some more, I think we have two parts of the problem, one easy and one hard:
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.
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.
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!
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
Activity
danrademacher commentedon Jan 25, 2021
Thinking about this some more, I think we have two parts of the problem, one easy and one hard:
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
decimaldatea 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.jeffreyameyer commentedon Jan 25, 2021
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!
danrademacher commentedon Jun 1, 2021
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