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
Map overlays missing when viewing raster layer #915
Any map overlay, such as a highlighted feature or changeset bounding box, fails to appear when viewing a raster layer and only appears upon switching to a vector layer.
Problem
Steps to reproduce:
On openhistoricalmap.org, open the Layers sidebar and switch to an OpenStreetMap-based raster layer (Standard, CyclOSM, or Humanitarian).
Expected results: The map immediately highlights Bullfrog County and zooms it to fit the viewport.
Actual results: No highlight. However, switching to an OpenHistoricalMap-based vector layer (Historical, Railway, Woodblock, Japanese Scroll) causes the map to highlight Bullfrog County and zoom it to fit the viewport – even if you’ve intentionally panned somewhere else by then.
Diagnosis
As far as I can tell, the code to add the overlay to the map is blocked on first loading the time slider. However, in an OSM-based layer, there’s no time slider, so the overlay code never runs:
I suppose the missing overlays aren’t so surprising against an OSM basemap, but belatedly zooming to the overlay after switching layers does feel a bit jarring. It would probably be better to consistently show the overlays regardless of the basemap data source, since the overlays aren’t filtered by time anyways.
Activity
1ec5 commentedon Nov 23, 2024
I suppose the missing overlays aren’t so surprising against an OSM basemap, but belatedly zooming to the overlay after switching layers does feel a bit jarring. It would probably be better to consistently show the overlays regardless of the basemap data source, since the overlays aren’t filtered by time anyways.