Skip to content

Commit ad249af

Browse files
committed
[EDIT] -mapstyle
1 parent f98b069 commit ad249af

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

herkunftcheck/herkunftcheck2/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<script src="https://unpkg.com/leaflet-providers@latest/leaflet-providers.js"></script>
3737

3838

39-
<script src="script/map_1.1.5.js"></script>
39+
<script src="script/map_1.1.6.js"></script>
4040

4141

4242
<script>

herkunftcheck/herkunftcheck2/script/map_1.1.5.js renamed to herkunftcheck/herkunftcheck2/script/map_1.1.6.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ function InitializeMapAndData() {
55

66
var map = L.map('map', { zoomControl: false });
77

8-
/* L.tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}{r}.png', {
9-
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>',
10-
subdomains: 'abcd',
11-
maxZoom: 20
12-
}).addTo(map);
13-
*/
148

9+
/*
1510
L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
1611
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OSM</a> & CartoDB',
1712
subdomains: 'abcd',
@@ -24,6 +19,16 @@ function InitializeMapAndData() {
2419
subdomains: 'abcd',
2520
maxZoom: 20,
2621
}).addTo(map);
22+
*/mapbox://styles/kobers/cm9e2m79p00fx01r3ahud1s52mapbox://styles/kobers/cm9e2m79p00fx01r3ahud1s52
23+
24+
25+
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/512/{z}/{x}/{y}@2x?access_token={accessToken}', {
26+
id: 'kobers/cm9e2m79p00fx01r3ahud1s52',
27+
accessToken: 'pk.eyJ1Ijoia29iZXJzIiwiYSI6ImNsNjUwNTIzZzAxbmMzYm5vZGsxaTF2OTEifQ.dsJnTEm6J2YYWTN1W7ZvYA',
28+
tileSize: 512,
29+
zoomOffset: -1,
30+
attribution: '© <a href="https://www.mapbox.com/">Mapbox</a>'
31+
}).addTo(map);
2732

2833

2934
// Create bounds object

0 commit comments

Comments
 (0)