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
On OSM World Discord, @CharliePlett noticed that the time slider on the homepage sometimes fails to initialize, breaking the map. Here’s the specific URL they loaded:
At a glance, I don’t see a reason why the style would have no sources, but it may be worth noting that, in general, individual fields deep within the result of getStyle() aren’t as reliable as some of the other accessors like getSource(). This particular statement would be simpler with a call to getSource() and probably less likely to throw an exception.
More broadly, this code is entirely redundant to the maplibre-gl-dates plugin that we publish. #914 tracks a rewrite of the time slider that would depend on this plugin instead of the current date filtering code.
Activity