Author Topic: Overlay map color schemes  (Read 57014 times)

0 Members and 6 Guests are viewing this topic.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Overlay map color schemes
« Reply #45 on: January 08, 2021, 01:27:42 pm »
The Legend box does not get updated with user-specified colors.

Yes, already an Issue: https://github.com/TravelMapping/Web/issues/579

Fix should be live on the main site.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Overlay map color schemes
« Reply #46 on: January 14, 2021, 10:14:08 am »
The colors have been renamed in systems.csv and the main site's code has been updated to use the new color names.  I don't expect anyone to notice any difference, but let me know if you do (but please force reload any page that gives you problems first because you might have a cached old version of tmjsfuncs.js).

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Overlay map color schemes
« Reply #47 on: January 14, 2021, 11:03:36 am »
And https://github.com/TravelMapping/Web/issues/581 is now implemented and on the main site.

For the colors= QS param, you can still specify a pair of CSS colors for clinched and unclinched (even the same one and rely on the opacity difference to indicate clinched vs. unclinched), but also now can specify a single TM predefined color (ones used in systems.csv, now with a "TM" prefix).

Here's an example that results in a fairly bad-looking color combination:

https://travelmapping.net/user/mapview.php?units=miles&u=terescoj&v&colors=usany:black:black;usai:TMlightsalmon;tier2:rgb(150,0,200):rgb(200,0,225);usavt:TMgreen

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Overlay map color schemes
« Reply #48 on: January 14, 2021, 01:40:32 pm »
I'm adding TMgray to the colorCodes array, will be up soon and available for use in colors=.

Code: [Select]
colorCodes[8] = { name: "TMgray", unclinched: "rgb(75,75,75)", clinched: "rgb(75,75,75)" };
What are the actual color definitions for some of the other people have discussed here?  I'm looking at one that was referred to as orange and another dark green.  I'd like to add those as options, even if they don't become the default for any systems at this point.

Offline si404

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2067
  • Last Login:Today at 12:54:41 am
Re: Overlay map color schemes
« Reply #49 on: January 14, 2021, 03:15:49 pm »
It would be nice to have variants for the whole wheel of colours, even if we don't use them all.

(colours here are approximate, using forum software equivalents, with bold being the ones we don't have)
Blue-Teal
Green-Dark Green
Yellow-Orange-Brown
Red-Lightsalmon
Magenta-Purple
White-Gray-Black

TLDR: Purple please, as well as the Orange and Dark Green. And Black and White just because.

Offline vdeane

  • Sr. Member
  • ****
  • Posts: 425
  • Gender: Female
  • Last Login:Yesterday at 10:09:08 pm
    • New York State Roads
Re: Overlay map color schemes
« Reply #50 on: January 14, 2021, 05:50:31 pm »
I'm adding TMgray to the colorCodes array, will be up soon and available for use in colors=.

Code: [Select]
colorCodes[8] = { name: "TMgray", unclinched: "rgb(75,75,75)", clinched: "rgb(75,75,75)" };
What are the actual color definitions for some of the other people have discussed here?  I'm looking at one that was referred to as orange and another dark green.  I'd like to add those as options, even if they don't become the default for any systems at this point.

FYI, the gray I used in my test rendering (which seemed to get rave reviews) used 100,100,100 for both clinched and unclinched gray.

The dark green used in that rendering was 61,94,77 and 24,132,70.  If I remember right, unclinched goes first in the URL, so that would be unclinched, clinched, respectively.  I didn't get far enough along with the orange to have firm RGB values (I just eyeballed something in GIMP and drew over a screenshot).

FYI: One of the recent updates changed the order the URL is parsed for colors; as a result, the tiers now need to be defined last rather than first in the test renderings I posted.
Please note: All comments here represent my own personal opinion and do not reflect the official position of NYSDOT or its affiliates.

Offline mapcat

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1767
  • Last Login:Yesterday at 09:47:09 pm
Re: Overlay map color schemes
« Reply #51 on: January 16, 2021, 01:45:10 pm »
I like the current TMgray but would not complain if you switch to 100,100,100.

Will there eventually be a cookie or something to preserve the colors param? For example, it resets when following the link from region.php & mapview.php.
Clinched:

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Overlay map color schemes
« Reply #52 on: January 16, 2021, 03:45:44 pm »
Will there eventually be a cookie or something to preserve the colors param? For example, it resets when following the link from region.php & mapview.php.

Eventually there will be something, probably a combination of a UI that lets you specify colors and a way to remember them.  Not likely in the near future, however.

Offline vdeane

  • Sr. Member
  • ****
  • Posts: 425
  • Gender: Female
  • Last Login:Yesterday at 10:09:08 pm
    • New York State Roads
Re: Overlay map color schemes
« Reply #53 on: January 16, 2021, 05:12:13 pm »
I like the current TMgray but would not complain if you switch to 100,100,100.
That gray actually looks like black on my monitor.  It's even darker than the color used for "plain".
Please note: All comments here represent my own personal opinion and do not reflect the official position of NYSDOT or its affiliates.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2856
  • Last Login:Yesterday at 09:42:37 pm
Re: Overlay map color schemes
« Reply #54 on: January 16, 2021, 09:36:39 pm »
I've lightened up TMgray and added 3 more for everyone's comment.

Code: [Select]
colorCodes[8] = { name: "TMgray", unclinched: "rgb(100,100,100)", clinched: "rgb(100,100,100)" };
colorCodes[9] = { name: "TMdarkgreen", unclinched: "rgb(61,94,77)", clinched: "rgb(24,132,70)" };
colorCodes[10] = { name: "TMpurple", unclinched: "rgb(128,0,128)", clinched: "rgb(150,28,220)" };
colorCodes[11] = { name: "TMorange", unclinched: "rgb(255,180,50)", clinched: "rgb(255,165,0)" };

Offline vdeane

  • Sr. Member
  • ****
  • Posts: 425
  • Gender: Female
  • Last Login:Yesterday at 10:09:08 pm
    • New York State Roads
Re: Overlay map color schemes
« Reply #55 on: January 16, 2021, 11:20:40 pm »
So I just noticed an issue: whenever I try to specify a TM color in Mapview, it comes out instead as black.  CSS colors and RGB values work OK, but not TM colors.  Oddly enough, your sample "bad-looking combination" link works fine, so I'm not sure what's going on.
Please note: All comments here represent my own personal opinion and do not reflect the official position of NYSDOT or its affiliates.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4849
  • Last Login:November 20, 2024, 11:21:09 am
Re: Overlay map color schemes
« Reply #56 on: January 17, 2021, 02:02:02 am »
I like the current TMgray but would not complain if you switch to 100,100,100.
That gray actually looks like black on my monitor.  It's even darker than the color used for "plain".

Agree, see Finland: https://travelmapping.net/user/mapview.php?rg=FIN (use "Highlight All / None" to check how it looks like for traveled / not traveled routes).

I suggest two default colors: TMgrey = 75,75,75 and TMdarkgrey = 100,100,100.

Offline si404

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2067
  • Last Login:Today at 12:54:41 am
Re: Overlay map color schemes
« Reply #57 on: January 17, 2021, 04:21:45 am »
I've lightened up TMgray and added 3 more for everyone's comment.
Thanks.
I suggest two default colors: TMgrey = 75,75,75 and TMdarkgrey = 100,100,100.
75,75,75 is the darker, previous, variant.

The current grey is fine for me, but I could understand using a 50% variant (128,128,128).

PS: nice En-GB spelling of grey, but in the US-of-A they spell 'grey' with an 'a'.  :P

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4849
  • Last Login:November 20, 2024, 11:21:09 am
Re: Overlay map color schemes
« Reply #58 on: January 17, 2021, 04:31:53 am »
I suggest two default colors: TMgrey = 75,75,75 and TMdarkgrey = 100,100,100.
75,75,75 is the darker, previous, variant.

I think that it always depends on the background. The tiles with its colors. They also depend on the surroundings of the region where you test it. What I had in mind from KY was brighter than what I see in FIN now :)

PS: I prefer AE. But I think both usually work. TMgrey + TMgray with same params?

Code: [Select]
PS: [color=grey]I prefer AE[/Color]. But I think [color=gray]both usually work[/color].

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4422
  • Last Login:November 11, 2024, 12:50:03 pm
  • I like C++
Re: Overlay map color schemes
« Reply #59 on: January 17, 2021, 11:21:35 am »
PS: nice En-GB spelling of grey, but in the US-of-A they spell 'grey' with an 'a'.  :P
Both spellings are used & accepted in fact.
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca