Skip to content

Commit 97841c2

Browse files
committed
deploy: 4b25546
1 parent ab9123b commit 97841c2

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

theme/js/public-transport.js

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,22 @@ var scrolled=0;
44

55
function load_map(url_params) {
66

7-
var humanitarian = L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
8-
attribution: 'Geo datos © <a href="https://openstreetmap.org">OpenStreetMap</a>'
9-
});
10-
var osm = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
11-
attribution: '© Colaboradores de <a href="https://openstreetmap.org">OpenStreetMap</a>'
12-
});
13-
var pub_transport = L.tileLayer('https://tile.memomaps.de/tilegen/{z}/{x}/{y}.png', {
7+
var transport = L.tileLayer('https://tileserver.memomaps.de/tilegen/{z}/{x}/{y}.png?apikey=760b39ce3c124042844d03e0f935bae9', {
148
attribution: 'Geo datos © <a href="https://openstreetmap.org">OpenStreetMap</a>; Teselas © <a href="https://memomaps.de/">MeMoMaps</a>'
159
});
16-
var new_transport = L.tileLayer('https://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=760b39ce3c124042844d03e0f935bae9', {
17-
attribution: 'Geo datos © <a href="https://openstreetmap.org">OpenStreetMap</a>; Teselas © <a href="https://thunderforest.com/">Gravitystorm</a>'
18-
});
19-
var mapbox = L.tileLayer('https://{s}.tiles.mapbox.com/v3/jaakkoh.map-4ch3dsvl/{z}/{x}/{y}.png', {
20-
attribution: 'Geo datos © <a href="https://openstreetmap.org">OpenStreetMap</a>; Teselas © <a href="https://mapbox.com/">Mapbox</a>'
21-
});
22-
var osmsweden = L.tileLayer('https://{s}.tile.openstreetmap.se/hydda/full/{z}/{x}/{y}.png', {
23-
attribution: 'Geo datos © <a href="https://openstreetmap.org">OpenStreetMap</a>; Teselas © <a href="https://https://openstreetmap.se/">OSM Suecia</a>'
24-
});
25-
26-
27-
2810

2911
var baseLayers = {
30-
"Transporte público": pub_transport,
12+
"Transporte público": transport,
3113
"Humanitarian": humanitarian,
3214
"OpenStreetMap": osm,
33-
"Mapbox": mapbox,
34-
"OSM Sweden": osmsweden,
3515
};
3616

3717
// Initialize map
3818
map = new L.map('map', {
3919
center: [12.125,-86.25],
4020
zoom: 13,
4121
attributionControl: false,
42-
layers: baseLayers[url_params.layers] || new_transport
22+
layers: baseLayers[url_params.layers] || transport
4323
});
4424

4525
// Adding hash for position in url

0 commit comments

Comments
 (0)