Skip to content

Commit

Permalink
Show current year in attribution in here-example
Browse files Browse the repository at this point in the history
This ensures that the current year is shown in the layer attribution in
the "HERE Map Tile API" example.
  • Loading branch information
chrismayer committed Jan 23, 2017
1 parent fdb6e31 commit 5a4cfb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/here-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>'
})
}));
Expand Down

0 comments on commit 5a4cfb2

Please sign in to comment.