Use simple forms to create attributions in examples

This commit is contained in:
Marc Jansen
2016-03-10 11:14:59 +01:00
parent df4f1c1389
commit 5b43e8a31e
17 changed files with 41 additions and 113 deletions

View File

@@ -86,10 +86,7 @@ var map = new ol.Map({
new ol.layer.Tile({
source: new ol.source.OSM({
attributions: [
new ol.Attribution({
html: 'All maps © ' +
'<a href="http://www.opencyclemap.org/">OpenCycleMap</a>'
}),
'All maps © <a href="http://www.opencyclemap.org/">OpenCycleMap</a>',
ol.source.OSM.ATTRIBUTION
],
url: 'http://{a-c}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png'