Skip to content

Commit

Permalink
Merge pull request #4 from 1ec5/railway
Browse files Browse the repository at this point in the history
Add Railway style option
  • Loading branch information
1ec5 authored Jun 17, 2024
2 parents 448427f + 347a3c9 commit 0393b8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ Without a date parameter, the map shows everything in the OHM tiles for which th
OHM-specific parameters:

* `date` is a valid YYYY, YYYY-MM, or YYYY-MM-DD date, but we allow the year to be a variable number of digits or negative, unlike ISO 8601-1. So here is San Marino in the year 1500 `#map=10/43.9367/12.5528&date=1500`. [See this map.](https://embed.openhistoricalmap.org/#map=10/43.9367/12.5528&date=1500)
* `layer` is one of `O`, `W`, or `J`. This allows the selection of alternative OHM-compatible styles currently offered on openhistoricalmap.org. The default OHM style is `O`. The Japanese Scroll style is `J`. The Woodblock style is `W`. Here is a query string for San Marino in 1500 in the Woodblock style: `#map=10/43.9367/12.5528&date=1500&layer=W`. [See this map](https://embed.openhistoricalmap.org/#map=10/43.9367/12.5528&date=1500&layer=W)
* `layer` selects one of the OHM-compatible styles currently offered on openhistoricalmap.org:

Map layer | `layer` | Example
----|:--:|----
Historical | `O` | [New York in 1700](https://embed.openhistoricalmap.org/#map=18/40.70486/-74.01313&date=1700&layer=O)
Railway | `R` | [Sydney in 1924](https://embed.openhistoricalmap.org/#map=14/-33.8677/151.2105&date=1924&layer=R)
Woodblock | `W` | [San Marino in 1500](https://embed.openhistoricalmap.org/#map=10/43.9367/12.5528&date=1500&layer=W)
Japanese Scroll | `J` | [Osaka in 1970](https://embed.openhistoricalmap.org/#map=13/34.6914/135.5011&date=1970&layer=J)

## Embedding

Expand Down
2 changes: 2 additions & 0 deletions embed-map-single-year.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ var attribution = '<a href="https://www.openhistoricalmap.org/copyright">OpenHis
var stylesByLayer = {
/* Historic */
O: 'https://openhistoricalmap.github.io/map-styles/main/main.json',
/* Railway */
R: 'https://openhistoricalmap.github.io/map-styles/rail/rail.json',
/* Japanese Scroll */
J: 'https://openhistoricalmap.github.io/map-styles/japanese_scroll/ohm-japanese-scroll-map.json',
/* Woodblock */
Expand Down

0 comments on commit 0393b8e

Please sign in to comment.