Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion import/openrailwaymap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ local railway_state_tags = {
disused = 'disused:railway',
abandoned = 'abandoned:railway',
preserved = 'preserved:railway',
-- Razed is not included
razed = 'razed:railway',
}
function railway_feature_and_state(tags, railway_value_func)
for state, railway_tag in pairs(railway_state_tags) do
Expand Down
51 changes: 46 additions & 5 deletions proxy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,21 @@ <h5 class="modal-title">Map configuration</h5>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<div class="mb-4">
<label for="backgroundSaturation" class="form-label">Background map saturation</label>
<input type="range" min="0.0" max="1.0" step="0.05" class="form-range" id="backgroundSaturation" onchange="updateConfiguration('backgroundSaturation', parseFloat(this.value)); updateBackgroundMapContainer();">
<small class="form-text">
Control the saturation of the background map. The smallest value makes the map grayscale, while the largest value makes the map full color.
</small>
</div>
<div class="mb-3">
<div class="mb-4">
<label for="backgroundOpacity" class="form-label" >Background map opacity</label>
<input type="range" min="0.0" max="1.0" step="0.05" class="form-range" id="backgroundOpacity" onchange="updateConfiguration('backgroundOpacity', parseFloat(this.value)); updateBackgroundMapContainer();">
<small class="form-text">
Control the opacity of the background map. The smallest value makes the map transparent, while the largest value makes the map opaque.
</small>
</div>
<div class="mb-3">
<div class="mb-4">
<label for="backgroundUrl" class="form-label" >Background map tile URL</label>
<div class="mb-1">
<div class="form-check form-check-inline">
Expand All @@ -136,7 +136,7 @@ <h5 class="modal-title">Map configuration</h5>
Vector tiles: A URL specifying a vector style. See <a href="https://wiki.openstreetmap.org/wiki/Vector_tiles#Providers" target="_blank">the wiki</a> for a list of vector tile providers, for example <code>https://tiles-eu.stadiamaps.com/styles/alidade_smooth.json?api_key=REGISTER_FOR_API_KEY</code> (<a href="https://client.stadiamaps.com/accounts/login/?next=/dashboard/" target="_blank">registration is required for Stadia Maps</a> to get an API key).
</small>
</div>
<div class="mb-3">
<div class="mb-4">
<label class="form-label">Theme</label>
<div>
<div class="form-check form-check-inline">
Expand All @@ -156,7 +156,48 @@ <h5 class="modal-title">Map configuration</h5>
Control the theme of OpenRailwayMap. The default is to follow the system and browser preferences. A light or dark theme can also be configured.
</small>
</div>
<div class="mb-3">
<div class="mb-4">
<label class="form-label">Future railway infrastructure</label>
<div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="future-infrastructure" id="futureInfrastructureNone" value="none" checked onchange="onFutureInfrastructureChange('none');">
<label class="form-check-label" for="futureInfrastructureNone">None</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="future-infrastructure" id="futureInfrastructureConstruction" value="construction" onchange="onFutureInfrastructureChange('construction');">
<label class="form-check-label" for="futureInfrastructureConstruction">Under construction</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="future-infrastructure" id="futureInfrastructureConstructionProposed" value="construction-proposed" onchange="onFutureInfrastructureChange('construction-proposed');">
<label class="form-check-label" for="futureInfrastructureConstructionProposed">Under construction and proposed</label>
</div>
</div>
<small class="form-text">
Control which future infrastructure should be shown on the map.
</small>
</div>
<div class="mb-4">
<label class="form-label">Historical railway infrastructure</label>
<div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="historical-infrastructure" id="historicalInfrastructureNone" value="none" checked onchange="onHistoricalInfrastructureChange('none');">
<label class="form-check-label" for="historicalInfrastructureNone">None</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="historical-infrastructure" id="historicalInfrastructureOpenHistoricalMap" value="openhistoricalmap" onchange="onHistoricalInfrastructureChange('openhistoricalmap');">
<label class="form-check-label" for="historicalInfrastructureOpenHistoricalMap">OpenHistoricalMap</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="historical-infrastructure" id="historicalInfrastructureOpenStreetMap" value="openstreetmap" onchange="onHistoricalInfrastructureChange('openstreetmap');">
<label class="form-check-label" for="historicalInfrastructureOpenStreetMap">OpenStreetMap</label>
</div>
</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.

</small>
</div>
<div class="mb-4">
<label class="form-label">Editor</label>
<div>
<div class="form-check form-check-inline">
Expand Down
Loading