diff --git a/examples/icon-sprite-webgl.html b/examples/icon-sprite-webgl.html
index 2a6bce2201..66e83e231e 100644
--- a/examples/icon-sprite-webgl.html
+++ b/examples/icon-sprite-webgl.html
@@ -15,8 +15,8 @@ docs: >
tags: "webgl, icon, sprite, point, ufo"
experimental: true
cloak:
- - key: pk.eyJ1IjoidHNjaGF1YiIsImEiOiJjaW5zYW5lNHkxMTNmdWttM3JyOHZtMmNtIn0.CDIBD8H-G2Gf-cPkIuWtRg
- value: Your Mapbox access token from https://mapbox.com/ here
+ - key: get_your_own_D6rA4zTHduk6KOKTXzGB
+ value: Get your own API key at https://www.maptiler.com/cloud/
---
Current sighting:
diff --git a/examples/icon-sprite-webgl.js b/examples/icon-sprite-webgl.js
index 4a09fb18dc..6008e19a2a 100644
--- a/examples/icon-sprite-webgl.js
+++ b/examples/icon-sprite-webgl.js
@@ -1,24 +1,26 @@
import Feature from '../src/ol/Feature.js';
import Map from '../src/ol/Map.js';
import Point from '../src/ol/geom/Point.js';
-import TileJSON from '../src/ol/source/TileJSON.js';
import TileLayer from '../src/ol/layer/Tile.js';
import View from '../src/ol/View.js';
import WebGLPointsLayer from '../src/ol/layer/WebGLPoints.js';
+import XYZ from '../src/ol/source/XYZ.js';
import {Vector} from '../src/ol/source.js';
import {fromLonLat} from '../src/ol/proj.js';
-const key =
- 'pk.eyJ1IjoidHNjaGF1YiIsImEiOiJjaW5zYW5lNHkxMTNmdWttM3JyOHZtMmNtIn0.CDIBD8H-G2Gf-cPkIuWtRg';
+const key = 'get_your_own_D6rA4zTHduk6KOKTXzGB';
+const attributions =
+ '© MapTiler ' +
+ '© OpenStreetMap contributors';
const map = new Map({
layers: [
new TileLayer({
- source: new TileJSON({
+ source: new XYZ({
+ attributions: attributions,
url:
- 'https://api.tiles.mapbox.com/v4/mapbox.world-dark.json?secure&access_token=' +
- key,
- crossOrigin: 'anonymous',
+ 'https://api.maptiler.com/tiles/satellite/{z}/{x}/{y}.jpg?key=' + key,
+ tileSize: 512,
}),
}),
],
diff --git a/examples/popup.html b/examples/popup.html
index f7496b7081..b2126f5e1a 100644
--- a/examples/popup.html
+++ b/examples/popup.html
@@ -8,8 +8,8 @@ docs: >
tags: "overlay, popup"
cloak:
- - key: pk.eyJ1IjoidHNjaGF1YiIsImEiOiJjaW5zYW5lNHkxMTNmdWttM3JyOHZtMmNtIn0.CDIBD8H-G2Gf-cPkIuWtRg
- value: Your Mapbox access token from https://mapbox.com/ here
+ - key: get_your_own_D6rA4zTHduk6KOKTXzGB
+ value: Get your own API key at https://www.maptiler.com/cloud/
---