use https tiles (from maps.stamen.com)
This commit is contained in:
parent
7e150c8eca
commit
d8ecc53782
|
@ -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('');
|
||||
|
|
Reference in New Issue