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:
@@ -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 © 2016 ' +
|
||||
attributions: 'Map Tiles © ' + new Date().getFullYear() + ' ' +
|
||||
'<a href="http://developer.here.com">HERE</a>'
|
||||
})
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user