hbz / oerworldmap

OER World Map
https://oerworldmap.org/
Other
30 stars 16 forks source link

Showing continents #1454

Open karindr opened 6 years ago

karindr commented 6 years ago

For some purposes is useful to be able to select whole continents on the OER World Map and show them on the map. As @acka said we don’t have this information. Two suggestions:

  1. Include this information from somewhere else
  2. Make choosing a list of countries easier

Let me explain Point 2: You open the list of countries in the filter section. Once you finished your selection of countries by clicking on “Apply filter” you aren’t able to add an additional country which you maybe forgot. You have to clear the filter and start new. We could think of showing a button: “Selecting more countries” in the moment when no more button is shown. (Yes, I know that I can do this by adding a phrase to the url.)

acka47 commented 6 years ago

There are lots of mappings from a country code to a continent but they can be quite different as the continental barriers aren't quite clear. I now used https://dev.maxmind.com/geoip/legacy/codes/country_continent/ to build the queries:

This might work for now. The best way to deal with this and to make querying more comfortable probably is to add the continent information to the JSON, e.g. like "containedInPlace": "AF". @literarymachine, what do you think?

trugwaldsaenger commented 6 years ago

I think Adrians queris are a good initial solution, which should work for the moment. We can come back to a more elaborated solution, when there is any customer interest in this. I added the prio 3 tag - @karindr, @acka47: Please comment, if you disagree!