Skip to content

Commit 67597d5

Browse files
authored
Merge pull request #429 from OpenHistoricalMap/style-minimpas
Fix layer minimaps in the Map Layers sidebar
2 parents 7ac5f9f + a9a92c5 commit 67597d5

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

config/initializers/content_security_policy.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
# https://guides.rubyonrails.org/security.html#content-security-policy-header
88

99
Rails.application.configure do
10-
connect_src = [:self, "*.openhistoricalmap.org", "openhistoricalmap.github.io", "*.amazonaws.com"]
11-
img_src = [:self, :data, "www.gravatar.com", "*.wp.com", "tile.openstreetmap.org", "gps.tile.openstreetmap.org", "api.thunderforest.com", "tile.tracestrack.com", "*.openstreetmap.fr"]
10+
tile_src = ["tile.openstreetmap.org", "gps.tile.openstreetmap.org", "api.thunderforest.com", "tile.tracestrack.com", "*.openstreetmap.fr"]
11+
connect_src = [:self, "*.openhistoricalmap.org", "openhistoricalmap.github.io", "*.amazonaws.com", *tile_src]
12+
img_src = [:self, :data, "www.gravatar.com", "*.wp.com", *tile_src]
1213
script_src = [:self, "openhistoricalmap.github.io"]
1314
style_src = [:self, "openhistoricalmap.github.io"]
1415
worker_src = [:self, :blob, "0.0.0.0:3000"]

config/layers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
canEmbed: true
66
source: openhistoricalmap
77
isVectorStyle: true
8-
styleUrl: "https://openhistoricalmap.org/map-styles/historical/historical.json"
8+
styleUrl: "/map-styles/historical/historical.json"
99
credit:
1010
id: 'make_a_donation'
1111
href: 'https://openstreetmap.app.neoncrm.com/forms/ohm'
@@ -18,7 +18,7 @@
1818
canEmbed: true
1919
source: openhistoricalmap
2020
isVectorStyle: true
21-
styleUrl: "https://openhistoricalmap.org/map-styles/railway/railway.json"
21+
styleUrl: "/map-styles/railway/railway.json"
2222
credit:
2323
id: 'make_a_donation'
2424
href: 'https://openstreetmap.app.neoncrm.com/forms/ohm'
@@ -31,7 +31,7 @@
3131
canEmbed: true
3232
source: openhistoricalmap
3333
isVectorStyle: true
34-
styleUrl: "https://openhistoricalmap.org/map-styles/woodblock/woodblock.json"
34+
styleUrl: "/map-styles/woodblock/woodblock.json"
3535
credit:
3636
id: 'make_a_donation'
3737
href: 'https://openstreetmap.app.neoncrm.com/forms/ohm'
@@ -44,7 +44,7 @@
4444
canEmbed: true
4545
source: openhistoricalmap
4646
isVectorStyle: true
47-
styleUrl: "https://openhistoricalmap.org/map-styles/japanese_scroll/japanese_scroll.json"
47+
styleUrl: "/map-styles/japanese_scroll/japanese_scroll.json"
4848
credit:
4949
id: 'make_a_donation'
5050
href: 'https://openstreetmap.app.neoncrm.com/forms/ohm'

0 commit comments

Comments
 (0)