I'm using leaflet to create a world map with geojson. Now I need to add some additional information as popup for each country but I'm not sure how should I proceed it. Been finding solution for hours.
- Should I modify geojson file to add 1 more field since it already listed coordinates of all the countries. Can I achieve this by php or js?
- Should I just store the information in SQL ("US" -> "US's text", "Canada" -> "Canada's text,...) & use switch case to compare string in onEachFeature function?