Skip to content

Commit 3b933b7

Browse files
Improve fetch times massively by changing from https to http (#112)
256px tile fetch/decode from ~350-500 ms to ~75–90 ms
1 parent 8ff43b2 commit 3b933b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/TileProvider.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,31 @@ struct TileProvider
3838

3939
const TileProvider osmStandard = {
4040
"OSM Standard",
41-
"https://tile.openstreetmap.org/{z}/{x}/{y}.png",
41+
"http://tile.openstreetmap.org/{z}/{x}/{y}.png",
4242
"© OpenStreetMap contributors",
4343
false,
4444
"",
4545
19, 0, 256};
4646

4747
const TileProvider ThunderTransportDark256 = {
4848
"Thunderforest Transport Dark 256px",
49-
"https://tile.thunderforest.com/transport-dark/{z}/{x}/{y}.png?apikey={apiKey}",
49+
"http://tile.thunderforest.com/transport-dark/{z}/{x}/{y}.png?apikey={apiKey}",
5050
"© Thunderforest, OpenStreetMap contributors",
5151
true,
5252
"YOUR_THUNDERFOREST_KEY",
5353
22, 0, 256};
5454

5555
const TileProvider ThunderForestCycle512 = {
5656
"Thunderforest Cycle 512px",
57-
"https://tile.thunderforest.com/cycle/{z}/{x}/{y}@2x.png?apikey={apiKey}",
57+
"http://tile.thunderforest.com/cycle/{z}/{x}/{y}@2x.png?apikey={apiKey}",
5858
"© Thunderforest, OpenStreetMap contributors",
5959
true,
6060
"YOUR_THUNDERFOREST_KEY",
6161
22, 0, 512};
6262

6363
const TileProvider ThunderForestCycle256 = {
6464
"Thunderforest Cycle 256px",
65-
"https://tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey={apiKey}",
65+
"http://tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey={apiKey}",
6666
"© Thunderforest, OpenStreetMap contributors",
6767
true,
6868
"YOUR_THUNDERFOREST_KEY",

0 commit comments

Comments
 (0)