diff --git a/univcloud/static/js/univcloud.js b/univcloud/static/js/univcloud.js index 1614f7f..9122823 100644 --- a/univcloud/static/js/univcloud.js +++ b/univcloud/static/js/univcloud.js @@ -2,8 +2,6 @@ $(function() { var start_bounds = [[41.1, -5.53], [51.5, 9.91]]; var start_zoom = 6; -var mapstyle = '997'; -var mapkey = 'BC9A493B41014CAABB98F0471D759707' var start_lat = (start_bounds[0][0] + start_bounds[1][0])/2; var start_lon = (start_bounds[0][1] + start_bounds[1][1])/2; @@ -29,7 +27,12 @@ var map = L.map('map', { maxZoom: 16, }); -L.tileLayer('http://{s}.tile.cloudmade.com/' + mapkey + '/' + mapstyle + '/256/{z}/{x}/{y}.png', {}).addTo(map); +// var mapstyle = '997'; +// var mapkey = 'BC9A493B41014CAABB98F0471D759707' +// L.tileLayer('http://{s}.tile.cloudmade.com/' + mapkey + '/' + mapstyle + '/256/{z}/{x}/{y}.png', {}).addTo(map); + +L.tileLayer('https://stamen-tiles.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', {}).addTo(map); + L.control.scale( { 'imperial': false, 'updateWhenIdle': true } ).addTo(map); map.attributionControl.setPrefix('');