Skip to content

Commit

Permalink
Merge pull request #6 from OpenHistoricalMap/1ec5-staging-layers
Browse files Browse the repository at this point in the history
Add staging-specific layer options
  • Loading branch information
danrademacher authored Jul 26, 2024
2 parents 5d80bd2 + 378e67c commit e3a45aa
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions embed-map-single-year.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
var attribution = '<a href="https://www.openhistoricalmap.org/copyright">OpenHistoricalMap</a>';
var stylesByLayer = {
/* Historic */
/* Historic (production) */
O: 'https://www.openhistoricalmap.org/map-styles/main/main.json',
/* Railway */
/* Historic (staging) */
O_staging: 'https://openhistoricalmap.github.io/map-styles/main/main.json',
/* Railway (production) */
R: 'https://www.openhistoricalmap.org/map-styles/rail/rail.json',
/* Japanese Scroll */
/* Railway (staging) */
R_staging: 'https://openhistoricalmap.github.io/map-styles/rail/rail.json',
/* Japanese Scroll (production) */
J: 'https://www.openhistoricalmap.org/map-styles/japanese_scroll/ohm-japanese-scroll-map.json',
/* Woodblock */
/* Japanese Scroll (staging) */
J_staging: 'https://openhistoricalmap.github.io/map-styles/japanese_scroll/ohm-japanese-scroll-map.json',
/* Woodblock (production) */
W: 'https://www.openhistoricalmap.org/map-styles/woodblock/woodblock.json',
/* Woodblock (staging) */
W_staging: 'https://openhistoricalmap.github.io/map-styles/woodblock/woodblock.json',
};

addEventListener('load', function () {
Expand Down

0 comments on commit e3a45aa

Please sign in to comment.