Fix OpenStreetMap attributions

This commit is contained in:
Tom Payne
2013-04-07 22:51:15 +02:00
parent 123e84de17
commit 0221998120
5 changed files with 49 additions and 27 deletions

View File

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