Merge pull request #23 from phl0/prefIdToLegend

Pref id to legend
pull/2768/head
Andreas Kristiansen 2023-12-04 11:50:48 +01:00 zatwierdzone przez GitHub
commit 3459302899
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 = '<h4>Prefecture</h4>' + (props ?
'<b>' + props.name + '</b><br />' : 'Hover over a prefecture');
'<b>' + props.id.substring(3,5) + ' - ' + props.name + '</b><br />' : 'Hover over a prefecture');
};
info.addTo(map);