chronoscio / frontend

Frontend repository for the ChronoScio project
https://chronoscio.now.sh
GNU General Public License v3.0
3 stars 0 forks source link

Notify when color has been chosen by another political entity #15

Open amaury1093 opened 6 years ago

amaury1093 commented 6 years ago

From TurntSnacko:

do you think when uploading a shapefile to the new site and picking a color (from a color wheel i hope, but regardless) it could notify you if the same color (or i guess similar colors? ugh, why do colors have to be unsortable) is already being used

From Bapo:

Could it also be possible to detect the distance between the territory you're about to upload and the one that has a similar colour? Like Brunei has (close to) the same colour we'll want Belgium to have but it shouldn't really matter since they're on opposite sides of the globe and picking fully distinctive colours for every nation is impossible.

quorth0n commented 6 years ago

The color field in the database has a uniqueness constraint.

ataalik commented 6 years ago

While uniqueness constraint could be good it might end up tying some colours to really old political entities that cease to exist early in the history of man. Also I think we could implement some sort of color similarity filter and show a warning to the mapper if there is a political entity with similar colors in the same chunk of history. They can then decide if the similarity problematic enough and change the colour slightly.