diff --git a/examples/side-by-side.js b/examples/side-by-side.js
index 31596fee95..3c8883e3e1 100644
--- a/examples/side-by-side.js
+++ b/examples/side-by-side.js
@@ -1,21 +1,26 @@
import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
-import BingMaps from '../src/ol/source/BingMaps.js';
+import XYZ from '../src/ol/source/XYZ.js';
+
+const key = 'get_your_own_D6rA4zTHduk6KOKTXzGB';
+const attributions = '
© MapTiler ' +
+ '
© OpenStreetMap contributors';
const roadLayer = new TileLayer({
- source: new BingMaps({
- key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
- imagerySet: 'RoadOnDemand',
- maxZoom: 19
+ source: new XYZ({
+ attributions: attributions,
+ url: 'https://api.maptiler.com/maps/streets/{z}/{x}/{y}.png?key=' + key,
+ tileSize: 512,
+ maxZoom: 22
})
});
const aerialLayer = new TileLayer({
- source: new BingMaps({
- key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
- imagerySet: 'Aerial',
- maxZoom: 19
+ source: new XYZ({
+ attributions: attributions,
+ url: 'https://api.maptiler.com/tiles/satellite/{z}/{x}/{y}.jpg?key=' + key,
+ maxZoom: 20
})
});
diff --git a/examples/zoom-constrained.html b/examples/zoom-constrained.html
index 091d56c107..71d9e32094 100644
--- a/examples/zoom-constrained.html
+++ b/examples/zoom-constrained.html
@@ -4,9 +4,9 @@ title: Constrained Zoom
shortdesc: Example of a zoom constrained view.
docs: >
This map has a view that is constrained between zoom levels 9 and 13. This is done using the `minZoom` and `maxZoom` view options.
-tags: "bing, zoom, minZoom, maxZoom"
+tags: "maptiler, zoom, minZoom, maxZoom"
cloak:
- - key: As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5
- value: Your Bing Maps Key from http://www.bingmapsportal.com/ here
+ - key: get_your_own_D6rA4zTHduk6KOKTXzGB
+ value: Get your own API key at https://www.maptiler.com/cloud/
---
diff --git a/examples/zoom-constrained.js b/examples/zoom-constrained.js
index fbb628ed83..dab35e096e 100644
--- a/examples/zoom-constrained.js
+++ b/examples/zoom-constrained.js
@@ -1,16 +1,20 @@
import Map from '../src/ol/Map.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
-import BingMaps from '../src/ol/source/BingMaps.js';
+import XYZ from '../src/ol/source/XYZ.js';
+const key = 'get_your_own_D6rA4zTHduk6KOKTXzGB';
+const attributions = '
© MapTiler ' +
+ '
© OpenStreetMap contributors';
+
const map = new Map({
target: 'map',
layers: [
new TileLayer({
- source: new BingMaps({
- key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',
- imagerySet: 'Aerial'
+ source: new XYZ({
+ attributions: attributions,
+ url: 'https://api.maptiler.com/tiles/satellite/{z}/{x}/{y}.jpg?key=' + key
})
})
],