bsudekum / MapTab

Tab Chrome extension for viewing local date, time and location on a map.
62 stars 34 forks source link

Difference between a white background and map is too big #11

Closed muan closed 8 years ago

muan commented 9 years ago

The transition between the white background and the map is not very smooth as demonstrated here: http://cl.ly/2s1F2s1r3h1e

I think it'd be nice to have the tab start with a dark background so when the map loads, the difference won't be as drastic, and you'd also be able to see the time clearly. Kind of like what y'all have on https://www.mapbox.com/design/ ->

image

(Obviously here, it'd be better if we can use the same color palette as the map, and not just #000. You'd probably have a better idea how to achieve that.)

bsudekum commented 9 years ago

What do you think about dynamically changing the background of the map container dependent on the mapid that is loaded. This could be accomplished by:

  1. finding the most prominent color in each map. I'd say go by the land color
  2. Adding each color to https://github.com/bsudekum/MapTab/blob/master/lib/mapids.js as a key
  3. For each id that is loaded, change the background of the map container accordingly

Thoughts?

muan commented 9 years ago

Hi! sorry for the late reply. I couldn't find a way to get the most prominent color, is that exposed through the API or do you mean just load all the maps and find the color by eye? Also then what about Satellite maps?