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:
Marc Jansen
2017-01-23 15:05:57 +01:00
committed by GitHub

View File

@@ -61,7 +61,7 @@ for (i = 0, ii = hereLayers.length; i < ii; ++i) {
preload: Infinity,
source: new ol.source.XYZ({
url: createUrl(urlTpl, layerDesc),
attributions: 'Map Tiles &copy; 2016 ' +
attributions: 'Map Tiles &copy; ' + new Date().getFullYear() + ' ' +
'<a href="http://developer.here.com">HERE</a>'
})
}));