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
We should publish a plugin for MapLibre GL JS that adds a time slider UI to the map. openstreetmap-embed needs an optional UI that users can easily manipulate on screen instead of fiddling with a URL, especially given that the embed site is usually embedded in an iframe. In general, third-party sites would benefit from a premade control.
The target site for a plugin would be one built using at most a simple framework like Bootstrap, but it shouldn’t require a heavier framework such as Material Design or React. The UI in leaflet-ohm-timeslider-v2 has some known issues (https://github.com/OpenHistoricalMap/issues/labels/timeslider-v2), so maybe we should consider starting the implementation and/or the design from scratch. At least to start out with, this plugin doesn’t need to include all the functionality of the time slider on the openhistoricalmap.org homepage. However, we should ensure mobile support and localization upfront.
Like mbgl-timeslider and mbgltimeslider-leaflet-control but unlike leaflet-ohm-timeslider-v2, the plugin should be available on NPM as a package that any project can integrate without any copy-pasting or ad hoc scripts. Ideally, it would rely on maplibre-gl-dates to perform the actual filtering. I’m unsure whether the UI should be part of maplibre-gl-dates or a separate plugin. I’m assuming a separate plugin for now, since some developers may need a bare-bones date filtering plugin without dependencies.
I recently came across Timescope, a general-purpose widget for charting and adjusting time series data. It isn’t a MapLibre plugin per se but can easily hook into maplibre-gl-dates via events. It comes with adapters for several UI frameworks and can be used on its own without any UI framework.
Taking inspiration from this interactive tectonic plate map, I cobbled together a proof of concept for an OHM-based map using Timescope and maplibre-gl-dates as part of osm-americana/openstreetmap-americana#1330. It requires just enough setup that we could still make a dedicated plugin out of it. It’ll also need further customization for parity with our existing time slider control. For example, we’ll want to provide a control for setting a specific date and a mode for setting the animation range.
Timescope solves #911 and the thorny decision of how far back to extend the default slider range. We don’t need to trade off precision and breadth, because it supports multiple logarithmic “zoom levels” (#1208), and setting a range further back in time doesn’t necessarily make the scope less granular. I’m confident that we’d be able to design a more mobile-friendly UI around this widget (#913), even if for now it doesn’t work on MobileSafari for some reason. One of Timescope’s key features is charting, which we could use to visualize temporal coverage distribution: #649.
Timescope is designed to also work with chunked time series data. It would let us shard our vector tiles by time period, maybe by multiple levels of detail, and rely on Timescope to load time-appropriate tiles on the fly. This would drastically cut down bandwidth usage and improve client-side performance. However, such a dramatic change to our vector tile architecture would need to be a separate effort.
Activity
1ec5 commentedon Jan 30, 2026
I recently came across Timescope, a general-purpose widget for charting and adjusting time series data. It isn’t a MapLibre plugin per se but can easily hook into maplibre-gl-dates via events. It comes with adapters for several UI frameworks and can be used on its own without any UI framework.
Taking inspiration from this interactive tectonic plate map, I cobbled together a proof of concept for an OHM-based map using Timescope and maplibre-gl-dates as part of osm-americana/openstreetmap-americana#1330. It requires just enough setup that we could still make a dedicated plugin out of it. It’ll also need further customization for parity with our existing time slider control. For example, we’ll want to provide a control for setting a specific date and a mode for setting the animation range.
Timescope solves #911 and the thorny decision of how far back to extend the default slider range. We don’t need to trade off precision and breadth, because it supports multiple logarithmic “zoom levels” (#1208), and setting a range further back in time doesn’t necessarily make the scope less granular. I’m confident that we’d be able to design a more mobile-friendly UI around this widget (#913), even if for now it doesn’t work on MobileSafari for some reason. One of Timescope’s key features is charting, which we could use to visualize temporal coverage distribution: #649.
Timescope is designed to also work with chunked time series data. It would let us shard our vector tiles by time period, maybe by multiple levels of detail, and rely on Timescope to load time-appropriate tiles on the fly. This would drastically cut down bandwidth usage and improve client-side performance. However, such a dramatic change to our vector tile architecture would need to be a separate effort.