FiniteMonkeys / kerbal-maps-ui

The front end for Kerbal Maps.
0 stars 1 forks source link

Add biome legend #28

Open krisalyssa opened 4 years ago

LouisB3 commented 3 years ago

I don't know if there's a specific vision here already, but it would be great to have a mouseover text in the corner of the UI somewhere that displays the name of the biome currently under the cursor. Currently it can be hard to discern which biome is which even on the color-coded biome map.

krisalyssa commented 3 years ago

I don't know if that's possible. The biome data exists only in the map tiles -- there's nothing relating a lat/long pair to a specific biome.

I can think of three ways to get from where we are currently to here, and I don't think any of them are realistic solutions.

  1. Someone goes in manually and defines paths around each biome. That's a lot of work, and would likely have to be redone any time the map tiles are updated.
  2. Someone writes a program to process each map tile (at the highest zoom level), examining each pixel in the image and building regions for each biome.
  3. JS code running on the browser looks at the pixel color under the cursor and translates that to a biome. I don't think this one is physically possible -- as far as I know, this information is not available to scripts. However, I'm not the world's strongest front end coder, so I'm happy to be proven wrong.