Fix OpenStreetMap attributions
This commit is contained in:
@@ -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 © ' +
|
||||
'<a href="http://www.openstreetmap.org/">OpenStreetMap</a> ' +
|
||||
'(<a href="http://www.openstreetmap.org/copyright">ODbL</a>)'),
|
||||
attributions: [
|
||||
new ol.Attribution(
|
||||
'All maps © ' +
|
||||
'<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'
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user