From 8645dbc333f2c90cac615262e0aab46bff8f2aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Wed, 29 Jul 2020 21:14:49 +0200 Subject: [PATCH] Use https for mapbox tiles --- examples/custom-interactions.js | 2 +- examples/icon-color.js | 2 +- examples/icon-scale.js | 2 +- examples/icon.js | 2 +- examples/tilejson.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/custom-interactions.js b/examples/custom-interactions.js index ca75edf3ea..404e8f7f8d 100644 --- a/examples/custom-interactions.js +++ b/examples/custom-interactions.js @@ -139,7 +139,7 @@ const map = new Map({ new TileLayer({ source: new TileJSON({ url: - 'https://a.tiles.mapbox.com/v4/aj.1x1-degrees.json?access_token=' + + 'https://a.tiles.mapbox.com/v4/aj.1x1-degrees.json?secure&access_token=' + key, }), }), diff --git a/examples/icon-color.js b/examples/icon-color.js index cdb0412515..e5c583097c 100644 --- a/examples/icon-color.js +++ b/examples/icon-color.js @@ -91,7 +91,7 @@ const vectorLayer = new VectorLayer({ const rasterLayer = new TileLayer({ source: new TileJSON({ - url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json', + url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json?secure=1', crossOrigin: '', }), }); diff --git a/examples/icon-scale.js b/examples/icon-scale.js index 76ef000735..d783b300b7 100644 --- a/examples/icon-scale.js +++ b/examples/icon-scale.js @@ -12,7 +12,7 @@ import {getVectorContext} from '../src/ol/render.js'; const rasterLayer = new TileLayer({ source: new TileJSON({ - url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json', + url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json?secure=1', crossOrigin: '', }), }); diff --git a/examples/icon.js b/examples/icon.js index e6cc14f35c..62e8a40e67 100644 --- a/examples/icon.js +++ b/examples/icon.js @@ -36,7 +36,7 @@ const vectorLayer = new VectorLayer({ const rasterLayer = new TileLayer({ source: new TileJSON({ - url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json', + url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json?secure=1', crossOrigin: '', }), }); diff --git a/examples/tilejson.js b/examples/tilejson.js index 7b17267828..627c5555c5 100644 --- a/examples/tilejson.js +++ b/examples/tilejson.js @@ -7,7 +7,7 @@ const map = new Map({ layers: [ new TileLayer({ source: new TileJSON({ - url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json', + url: 'https://a.tiles.mapbox.com/v3/aj.1x1-degrees.json?secure=1', crossOrigin: 'anonymous', }), }),