Adapt examples to new signature for ol.Attribution

This commit is contained in:
Éric Lemoine
2013-08-30 16:48:25 +02:00
parent 38ab64c3c3
commit 729039ba04
5 changed files with 45 additions and 31 deletions

View File

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