Fix protocol in examples

tileserver.maptiler.com now uses HTTPS
This commit is contained in:
Petr Sloup
2016-08-23 12:49:00 +02:00
parent 17ebe82577
commit cf7bed7887
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -20,7 +20,7 @@ var map = new ol.Map({
source: new ol.source.XYZ({
attributions: 'Tiles © USGS, rendered with ' +
'<a href="http://www.maptiler.com/">MapTiler</a>',
url: 'http://tileserver.maptiler.com/grandcanyon@2x/{z}/{x}/{y}.png',
url: 'https://tileserver.maptiler.com/grandcanyon@2x/{z}/{x}/{y}.png',
tilePixelRatio: 2, // THIS IS IMPORTANT
minZoom: mapMinZoom,
maxZoom: mapMaxZoom