From 5a4cfb2978ac13040a6bf4d8462f29d458dc3d9f Mon Sep 17 00:00:00 2001 From: Christian Mayer Date: Mon, 23 Jan 2017 13:26:47 +0100 Subject: [PATCH] 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. --- examples/here-maps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/here-maps.js b/examples/here-maps.js index 290f94c0c4..c9aa6b06c3 100644 --- a/examples/here-maps.js +++ b/examples/here-maps.js @@ -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() + ' ' + 'HERE' }) }));