diff --git a/demo/my-map.historic.html b/demo/my-map.historic.html index 00bbb99..9a5d4f5 100644 --- a/demo/my-map.historic.html +++ b/demo/my-map.historic.html @@ -32,7 +32,7 @@ @@ -47,7 +47,7 @@

Historic Maps

- Map: Great Britain, Ordnance Survey, One-Inch to the mile (1:63,360), 'Hills' edition, 1885-1903 + Map tiles: Great Britain, Ordnance Survey, One-Inch to the mile (1:63,360), 'Hills' edition, 1885-1903 (NLS)

diff --git a/src/components/MyMapElement.js b/src/components/MyMapElement.js index 9a59edc..c4ece4d 100644 --- a/src/components/MyMapElement.js +++ b/src/components/MyMapElement.js @@ -208,6 +208,7 @@ export class MyMapElement extends MyElement { } get attribution () { + const YEAR = new Date().getFullYear(); const ATTR = this.getAttribute('attribution') || 'Map data © {OSM} contributors, Imagery © {MB}'; return ATTR .replace('{OSM}', 'OpenStreetMap') @@ -216,6 +217,8 @@ export class MyMapElement extends MyElement { .replace('{MT}', 'MapTiler') .replace('{NLS}', 'National Library of Scotland') .replace('{gb1in}', 'GB 1in') + .replace('{OS}', 'Ordnance Survey') + .replace('{OSC}', `Contains OS data © Crown copyright and database rights ${YEAR}`) ; }