diff --git a/examples/localized-openstreetmap.js b/examples/localized-openstreetmap.js
index e8053c83d1..21571eb09a 100644
--- a/examples/localized-openstreetmap.js
+++ b/examples/localized-openstreetmap.js
@@ -11,9 +11,10 @@ var map = new ol.Map({
new ol.layer.TileLayer({
source: new ol.source.OSM({
attributions: [
- new ol.Attribution(
- 'All maps © ' +
- 'OpenCycleMap'),
+ new ol.Attribution({
+ html: 'All maps © ' +
+ 'OpenCycleMap'
+ }),
ol.source.OSM.DATA_ATTRIBUTION
],
url: 'http://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png'
diff --git a/examples/wms-custom-proj.js b/examples/wms-custom-proj.js
index 2d71383205..7926d4ec7e 100644
--- a/examples/wms-custom-proj.js
+++ b/examples/wms-custom-proj.js
@@ -21,10 +21,12 @@ var layers = [
source: new ol.source.TiledWMS({
url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
- attributions: [new ol.Attribution(
- '© ' +
- '' +
- 'Pixelmap 1:1000000 / geo.admin.ch')],
+ attributions: [new ol.Attribution({
+ html: '© ' +
+ '' +
+ 'Pixelmap 1:1000000 / geo.admin.ch'
+ })],
params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
'FORMAT': 'image/jpeg'
@@ -36,10 +38,12 @@ var layers = [
source: new ol.source.TiledWMS({
url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
- attributions: [new ol.Attribution(
- '© ' +
- '' +
- 'National parks / geo.admin.ch')],
+ attributions: [new ol.Attribution({
+ html: '© ' +
+ '' +
+ 'National parks / geo.admin.ch'
+ })],
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
extent: extent
})
diff --git a/examples/wms-no-proj.js b/examples/wms-no-proj.js
index 1bb50d5454..4d5db23199 100644
--- a/examples/wms-no-proj.js
+++ b/examples/wms-no-proj.js
@@ -13,10 +13,12 @@ goog.require('ol.source.TiledWMS');
var layers = [
new ol.layer.TileLayer({
source: new ol.source.TiledWMS({
- attributions: [new ol.Attribution(
- '© ' +
- '' +
- 'Pixelmap 1:1000000 / geo.admin.ch')],
+ attributions: [new ol.Attribution({
+ html: '© ' +
+ '' +
+ 'Pixelmap 1:1000000 / geo.admin.ch'
+ })],
crossOrigin: 'anonymous',
params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
@@ -27,10 +29,12 @@ var layers = [
}),
new ol.layer.ImageLayer({
source: new ol.source.SingleImageWMS({
- attributions: [new ol.Attribution(
- '© ' +
- '' +
- 'National parks / geo.admin.ch')],
+ attributions: [new ol.Attribution({
+ html: '© ' +
+ '' +
+ 'National parks / geo.admin.ch'
+ })],
crossOrigin: 'anonymous',
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
url: 'http://wms.geo.admin.ch/'
diff --git a/examples/wms-single-image-custom-proj.js b/examples/wms-single-image-custom-proj.js
index 8e4ed4ce4f..6e97b8cab3 100644
--- a/examples/wms-single-image-custom-proj.js
+++ b/examples/wms-single-image-custom-proj.js
@@ -18,10 +18,12 @@ var layers = [
source: new ol.source.SingleImageWMS({
url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
- attributions: [new ol.Attribution(
- '© ' +
- '' +
- 'Pixelmap 1:1000000 / geo.admin.ch')],
+ attributions: [new ol.Attribution({
+ html: '© ' +
+ '' +
+ 'Pixelmap 1:1000000 / geo.admin.ch'
+ })],
params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
'FORMAT': 'image/jpeg'
@@ -33,10 +35,12 @@ var layers = [
source: new ol.source.SingleImageWMS({
url: 'http://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
- attributions: [new ol.Attribution(
- '© ' +
- '' +
- 'National parks / geo.admin.ch')],
+ attributions: [new ol.Attribution({
+ html: '© ' +
+ '' +
+ 'National parks / geo.admin.ch'
+ })],
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
extent: extent
})
diff --git a/examples/wmts-ign.js b/examples/wmts-ign.js
index 7a0f17c43e..d54d2730bb 100644
--- a/examples/wmts-ign.js
+++ b/examples/wmts-ign.js
@@ -51,10 +51,11 @@ xhr.onload = function() {
'http://gpp3-wxs.ign.fr/static/logos/IGN/IGN.gif'
];
- var attribution = new ol.Attribution(
- '' +
- '
');
+ var attribution = new ol.Attribution({
+ html: '' +
+ '
'
+ });
var sourceOptions;
var source;