Show current year in attribution in here-example

This ensures that the current year is shown in the layer attribution in
the "HERE Map Tile API" example.
This commit is contained in:
Christian Mayer
2017-01-23 13:26:47 +01:00
parent fdb6e316b6
commit 5a4cfb2978

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>'
})
}));