Skip to content

Commit 8bc85f2

Browse files
committed
fix basemap?
1 parent 29cbaa7 commit 8bc85f2

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

js/chapters.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,17 @@ $(function() {
1111
data = {{ site.data.chapters | jsonify }},
1212
html = '';
1313

14-
L.mapbox.accessToken = 'pk.eyJ1IjoiZ3JhZmEiLCJhIjoiM1YxTmFBZyJ9.tMBS3sNJGvS9awMVzMrNjA';
15-
var map = L.mapbox.map('map', 'grafa.88128171', {
16-
touchZoom: false,
14+
var map = L.map('map', {
15+
touchZoom: false,
1716
scrollWheelZoom: false,
1817
zoomControl: false,
1918
worldCopyJump: true
2019
}).setView([39.774769485295465,-84.55078125], 3);
2120

22-
//map.attributionControl.addAttribution("Earthquake data © GeoNames");
23-
24-
25-
// swap out layers and token periodically
26-
// var myLayer = L.tileLayer('http://api.tiles.mapbox.com/v4/grafa.88128171/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoiZ3JhZmEiLCJhIjoiU2U2QnIzUSJ9.4LnG05Ptvi1sUQ8t68rfgw')
27-
// .addTo(map);
21+
L.tileLayer('https://watercolormaps.collection.cooperhewitt.org/tile/watercolor/{z}/{x}/{y}.jpg', {
22+
attribution: 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.',
23+
maxZoom: 18
24+
}).addTo(map);
2825

2926
L.control.zoom()
3027
.setPosition('bottomleft')
@@ -76,4 +73,4 @@ $(function() {
7673
data.features.sort(sortAlphabetically);
7774
html = template(data);
7875
$output.append(template(data));
79-
});
76+
});

0 commit comments

Comments
 (0)