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({
|
layers['bng'] = new ol.layer.Tile({
|
||||||
source: new ol.source.XYZ({
|
source: new ol.source.XYZ({
|
||||||
projection: 'EPSG:27700',
|
projection: 'EPSG:27700',
|
||||||
url: 'http://tileserver.maptiler.com/miniscale/{z}/{x}/{y}.png',
|
url: 'https://tileserver.maptiler.com/miniscale/{z}/{x}/{y}.png',
|
||||||
crossOrigin: '',
|
crossOrigin: '',
|
||||||
maxZoom: 6
|
maxZoom: 6
|
||||||
})
|
})
|
||||||
@@ -111,7 +111,7 @@ fetch(url).then(function(response) {
|
|||||||
|
|
||||||
layers['grandcanyon'] = new ol.layer.Tile({
|
layers['grandcanyon'] = new ol.layer.Tile({
|
||||||
source: new ol.source.XYZ({
|
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: '',
|
crossOrigin: '',
|
||||||
tilePixelRatio: 2,
|
tilePixelRatio: 2,
|
||||||
maxZoom: 15,
|
maxZoom: 15,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ var map = new ol.Map({
|
|||||||
source: new ol.source.XYZ({
|
source: new ol.source.XYZ({
|
||||||
attributions: 'Tiles © USGS, rendered with ' +
|
attributions: 'Tiles © USGS, rendered with ' +
|
||||||
'<a href="http://www.maptiler.com/">MapTiler</a>',
|
'<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
|
tilePixelRatio: 2, // THIS IS IMPORTANT
|
||||||
minZoom: mapMinZoom,
|
minZoom: mapMinZoom,
|
||||||
maxZoom: mapMaxZoom
|
maxZoom: mapMaxZoom
|
||||||
|
|||||||
Reference in New Issue
Block a user