Fix protocol in examples
tileserver.maptiler.com now uses HTTPS
This commit is contained in:
@@ -57,7 +57,7 @@ var layers = {};
|
||||
layers['bng'] = new ol.layer.Tile({
|
||||
source: new ol.source.XYZ({
|
||||
projection: 'EPSG:27700',
|
||||
url: 'http://tileserver.maptiler.com/miniscale/{z}/{x}/{y}.png',
|
||||
url: 'https://tileserver.maptiler.com/miniscale/{z}/{x}/{y}.png',
|
||||
crossOrigin: '',
|
||||
maxZoom: 6
|
||||
})
|
||||
@@ -111,7 +111,7 @@ fetch(url).then(function(response) {
|
||||
|
||||
layers['grandcanyon'] = new ol.layer.Tile({
|
||||
source: new ol.source.XYZ({
|
||||
url: 'http://tileserver.maptiler.com/grandcanyon@2x/{z}/{x}/{y}.png',
|
||||
url: 'https://tileserver.maptiler.com/grandcanyon@2x/{z}/{x}/{y}.png',
|
||||
crossOrigin: '',
|
||||
tilePixelRatio: 2,
|
||||
maxZoom: 15,
|
||||
|
||||
Reference in New Issue
Block a user