From 2a6ac0374becf9eb78e1fd7283f5d3835c2d6837 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 4 Dec 2023 11:42:12 +0100 Subject: [PATCH] Add prefecture ID to legend --- assets/js/sections/wajamap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/sections/wajamap.js b/assets/js/sections/wajamap.js index 172a916f..a89563d4 100644 --- a/assets/js/sections/wajamap.js +++ b/assets/js/sections/wajamap.js @@ -150,7 +150,7 @@ info.onAdd = function (map) { // method that we will use to update the control based on feature properties passed info.update = function (props) { this._div.innerHTML = '

Prefecture

' + (props ? - '' + props.name + '
' : 'Hover over a prefecture'); + '' + props.id.substring(3,5) + ' - ' + props.name + '
' : 'Hover over a prefecture'); }; info.addTo(map);