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', }), }),