🏠 back to Observable

Cannot get selected countries highlighted in world map

Dear all, I’m trying to highlight the selected country in green, but it didn’t work, I cannot find the bug currently. I think the error may occurs in the line 'if (label.includes(d.properties.name)) '? Thank you for your time!

The notebook is linked: https://observablehq.com/d/12f4a12c1c67daf7

Your d.properties.name does not contain any names

1 Like

I’ve sent you a suggestion to join countries with the data from “https://unpkg.com/world-atlas@1/world/50m.json

duplicate of Cannot hightlight the regions in a simple map code