Open tjanowsk opened 4 years ago
Do we think we might ever want to colour code/shade countries?
If so we might want to add a layer on the leaflet map with GeoJSON data (like here) and respond to clicks on the country, instead of reverse searching the lat/long
If we can get a hold of GeoJSON data for the world map, then it indeed sounds like a better solution. We could e.g. colour-code the currently selected country.
Use reverse geolocation service e.g. https://www.npmjs.com/package/@ideditor/country-coder to convert the latitude/longitude coordinates of the clicked point to the country and update the country service accordingly.