From d8ecc537824f0be6ec0288ebe834fbffdc0d3ac3 Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Tue, 17 Sep 2013 12:08:29 +0200 Subject: [PATCH] use https tiles (from maps.stamen.com) --- univcloud/static/js/univcloud.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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('');