SL-edi / covid-visualisation

0 stars 0 forks source link

Select region by clicking on the map #25

Open tjanowsk opened 4 years ago

tjanowsk commented 4 years ago

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.

AdrianBorg commented 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

tjanowsk commented 4 years ago

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.