Load the examples resources with HTTPS

This commit is contained in:
Frederic Junod
2016-05-12 09:38:35 +02:00
parent 9eadf1505a
commit bd635ed01f
37 changed files with 45 additions and 51 deletions

View File

@@ -9,13 +9,13 @@ var key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiRk1kMWZaSSJ9.E5BkluenyWQMsBLsuByrmg';
var mapLayer = new ol.layer.Tile({
source: new ol.source.TileJSON({
url: 'http://api.tiles.mapbox.com/v4/mapbox.geography-class.json?access_token=' + key
url: 'https://api.tiles.mapbox.com/v4/mapbox.geography-class.json?secure&access_token=' + key
})
});
var gridSource = new ol.source.TileUTFGrid({
url: 'http://api.tiles.mapbox.com/v4/mapbox.geography-class.json?access_token=' + key
url: 'https://api.tiles.mapbox.com/v4/mapbox.geography-class.json?secure&access_token=' + key
});
var gridLayer = new ol.layer.Tile({source: gridSource});