Merge pull request #6396 from chrismayer/year-here-example-attribution
Show current year in attribution in "HERE Map Tile API" example
This commit is contained in:
@@ -61,7 +61,7 @@ for (i = 0, ii = hereLayers.length; i < ii; ++i) {
|
|||||||
preload: Infinity,
|
preload: Infinity,
|
||||||
source: new ol.source.XYZ({
|
source: new ol.source.XYZ({
|
||||||
url: createUrl(urlTpl, layerDesc),
|
url: createUrl(urlTpl, layerDesc),
|
||||||
attributions: 'Map Tiles © 2016 ' +
|
attributions: 'Map Tiles © ' + new Date().getFullYear() + ' ' +
|
||||||
'<a href="http://developer.here.com">HERE</a>'
|
'<a href="http://developer.here.com">HERE</a>'
|
||||||
})
|
})
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user