Skip to content

Conversation

@hiddewie
Copy link
Owner

@hiddewie hiddewie commented Oct 5, 2025

Part of #495

Related to #246 and #336.

There are requests to be able to render abandoned and razed railways, together with the existing infrastructure. This pull request makes that possible, either by including the OpenHistoricalMap data in the main infrastructure layer, or by showing the abandoned and razed railways. For future railways, the same can be chosen: railways under construction or also those proposed.

Changes:

  • Configuration screen for historical and future railways
  • Map style adapts to using OpenHistoricalMap or OpenStreetMap as historical data source
  • Map style hides abandoned lines / stations if disabled in the configuration
  • Map style hides construction or proposed lines / stations if disabled in the configuration
  • Include note that it is discouraged to map dismantled railway features in OpenStreetMap, with link to documentation.

Work in progress, needs more work to make the UI logical for integrating historical railways with or without date.

Depends on maplibre/maplibre-gl-js#6495 to ensure source data is not loaded if the layer is disabled through global-state.

Configuration

image

Future infrastructure

(http://localhost:8000/#view=14.87/50.94355/10.99233)

Enabled:
image

Disabled:
image

Historical infrastructure

(http://localhost:8000/#view=12/50.62073/12.34528)

OpenStreetMap:
image

OpenHistoricalMap:
image

(http://localhost:8000/#view=12/50.62073/12.34528)

OpenStreetMap:
image

OpenHistoricalMap:
image

(http://localhost:8000/#view=17.53/51.178254/12.389887)

OpenStreetMap:
image

OpenHistoricalMap:
image

@hiddewie
Copy link
Owner Author

hiddewie commented Oct 6, 2025

Depends on maplibre/maplibre-gl-js#6495 to ensure source data is not loaded if the layer is disabled through global-state.

</div>
<small class="form-text">
Control how historical railway infrastructure should be shown on the map.<br>
<b>Note:</b> Tagging and non-existing features in OpenStreetMap like demolished railways is <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Demolished_railways">discouraged</a>. It is encouraged instead to use the OpenHistoricalMap to create and maintain historical data.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "and" shouldn't be here or a word is missing.

@hiddewie
Copy link
Owner Author

hiddewie commented Nov 5, 2025

This will become possible with the work in maplibre/maplibre-style-spec#1359 and maplibre/maplibre-gl-js#6659.

@hiddewie
Copy link
Owner Author

hiddewie commented Nov 8, 2025

Design proposal for MapLibre style specification to support expressions for visibility, including global-state: maplibre/maplibre-style-spec#1364.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants