From cf7bed7887661f8abd07ccf68c09d4a0b8476be6 Mon Sep 17 00:00:00 2001 From: Petr Sloup Date: Tue, 23 Aug 2016 12:49:00 +0200 Subject: [PATCH] Fix protocol in examples tileserver.maptiler.com now uses HTTPS --- examples/reprojection.js | 4 ++-- examples/xyz-retina.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/reprojection.js b/examples/reprojection.js index 3f34180b04..f2c8a487d6 100644 --- a/examples/reprojection.js +++ b/examples/reprojection.js @@ -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, diff --git a/examples/xyz-retina.js b/examples/xyz-retina.js index 86043a47b6..930052342f 100644 --- a/examples/xyz-retina.js +++ b/examples/xyz-retina.js @@ -20,7 +20,7 @@ var map = new ol.Map({ source: new ol.source.XYZ({ attributions: 'Tiles © USGS, rendered with ' + 'MapTiler', - 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