Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighten major buildings fill and outline #3659

Merged
merged 3 commits into from
Feb 6, 2019

Conversation

jeisenbe
Copy link
Collaborator

@jeisenbe jeisenbe commented Jan 28, 2019

Related to #3071
Related to #2532
Related to #3589
Also see discussion in #3426

Changes proposed in this pull request:

  • Lighten major-building-fill color: currently it is 20% darker than @building. With this PR it will be changed to 10% darker
  • Lighten major-building-outline color: currently this is 25% darker than @major-building-fill. With this PR it will be changed to 15% darker.

Explanation:

  • The dark major-building-fill color is fine for black icons, such as those used for place_of_worship, but it does not work will with brown, purple and orange icons
  • The brown squares for building entrances are the same color as @building-outline, currently 15% darker than @building, so this is lighter than the major building color.
  • The new color for major-buildings-fill is significantly lighter. Due to the way that darken works in the HSL color space, this also means that the color is less saturated and the hue is more similar to @building as well.
  • With these changes, icons are better visible in train stations and airports. The one issue is places of worship are not as visible at z15 and z14, however this may be preferable.

Test rendering with links to the example places:

Hamburg Airport
https://www.openstreetmap.org/#map=17/53.63323/10.00529

  • Also see the churches nearby on lower zoom levels
    z19 Before
    z19-terminal-master
    After
    terminal-z19-after-19 53 63323 10 00529

z17 Before
z17-terminal-master
After
terminal-z17-after-17 53 63323 10 00529

z15 Before
z15-hamburg-airport-master
After
z15-airport-after

Hamburg train station and downtown churches
https://www.openstreetmap.org/#map=16/53.5477/10.0028

z18 Before
z18-hamburg-station-master
After
z18-train-station

z16 Before
z16-hamburg-station-master
After
z16-train-station-after

z14 Before
z14-hamburg-station-master
After
z14-hamburg-station-after

@jeisenbe
Copy link
Collaborator Author

New building colors:
building-colors-new-hex

LCH values:
building-colors-new-lch

Deltas between colors:
building-colors-new-delta

new-buildings-delta-2

@kocio-pl
Copy link
Collaborator

What about proposed progressive major buildings color lightning? I don't remember the ticket where it was proposed.

@jeisenbe
Copy link
Collaborator Author

jeisenbe commented Jan 28, 2019 via email

@kocio-pl
Copy link
Collaborator

Yes, exactly. Both ideas are OK for me, I have no clear preference, I just want to know what others think.

@jeisenbe
Copy link
Collaborator Author

Ok. I'm not sure if it is worth increasing the code complexity, but here is an example of what it could look like with a transition from z14 to 16:

z14 major-building-fill darkened 20% (same as master)
z14-hamburg-station-master

z15 major-building-fill darkened 15% (intermediate step)
z15-hamburg-station-15

z16 major-building-fill darkened 10% (same as this PR):
z16-train-station-after

@imagico
Copy link
Collaborator

imagico commented Jan 28, 2019

For better understanding of the color environment you are working in here - these are the medium lightness low chroma colors you have around:

http://davidjohnstone.net/pages/lch-lab-colour-gradient-picker#d9d0c9,d2c7bf,c8c8b5,cfcfcf,c4b6ab,b6b592,bbbbbb

In order: building, building-lowzoom, construction, place-of-worship, your major building idea, landfill, platform.

@jeisenbe
Copy link
Collaborator Author

jeisenbe commented Jan 28, 2019 via email

@imagico
Copy link
Collaborator

imagico commented Jan 28, 2019

Well - i have not said the colors are indistinguishable - i just wanted you to be aware of the color context you are working in here.

By the way - i forgot the quarry color:

http://davidjohnstone.net/pages/lch-lab-colour-gradient-picker#d9d0c9,d2c7bf,c8c8b5,cfcfcf,c4b6ab,b6b592,bbbbbb,c5c3c3

Past discussion that might also be helpful: #2353, #2905, #2515.

@meased
Copy link
Contributor

meased commented Jan 28, 2019

For reference, the original discussion was in #3426. Lightening of major buildings was originally a part of that PR, but the discussion focused mainly on minor buildings. The PR was renamed and merged with no visual changes, it only moved major/minor building selection from SQL to CSS.

@jragusa
Copy link
Contributor

jragusa commented Jan 28, 2019

I agree with progressive major buildings colour lightning. Darken colour at low zoom emphasizes major building and lighten colour help to distinguish icon at high zoom.
It's off topic with regard to the PR, when looking to the colour panel provided by @imagico, I think that colour of landfill, construction and quarry could be unified.

@jeisenbe
Copy link
Collaborator Author

jeisenbe commented Jan 29, 2019

http://davidjohnstone.net/pages/lch-lab-colour-gradient-picker#d9d0c9,d2c7bf,c8c8b5,cfcfcf,c4b6ab,b6b592,bbbbbb,c5c3c3

According to the deltas based on Lab/LCH, the closest to the new buildings fill would be quarry, place_of_worship/religious landuse, and platform. All of these are neutral gray instead of brown, but the lightness levels are similar, especially for platform, though also for quarry.

New major-building-fill #c4b6ab vs @place_of_worship #d0d0d0: delta 11.7 (L8, c8)
New major-building #c4b6ab vs @quarry #c5c3c3: delta 8.6 (L4, c7)
New major-building #c4b6ab vs highway_platform #bbbbbb: delta 8.1 (L1, c8)

Looking at the test images from the train station at z16 and z18 above, the platforms look quite different from the major building color. In this case I think that the calculated delta underestimates the difference between neutral gray and brown, even though the lightness level is close.

Browns:
New major-building-fill #c4b6ab vs @construction #c7c7b4: delta 8.3 (L5, c2, h52)
New major-building-fill #c4b6ab vs @landfill #b6b592: delta 13.8 (L2, c11, h40)

The closest brown colors are landuse=construction/brownfield and landuse=landfill; the former is more likely to be found with buildings. This is probably the most difficult case. I'd consider this difference to be sufficiently large, if just barely.

@imagico has suggested combing the colors for quarry, landfill, construction (and brownfield), with #c5bea6 for all of these. This would be slightly closer than the current construction color:

New major-building-fill #c4b6ab vs alt-colors #c5bea6: delta 7.6 (L2, c5, h30)

Also, the delta between the current building-fill and the new major-building-fill would be Δ: 9.6 for comparison. But since this is mainly a difference in lightness, it's sufficiently visible on most computer screens.
New major-building-fill #c4b6ab vs building-fill #d9d0c9: delta 9.6 (L9, c3, h1)

I check the new major-building-line color, and it doesn't appear to be very close to any colors. The closest is the current building-line, unsurprisingly, followed by landfill.

New major-building-line #a48f7f vs building-line #b9a99d;: Δ 10 (L9, c4, h1)
New major-building-fill #a48f7f vs @landfill #b6b592: Δ: 17.5 (L12, c6, h42)

None of the icon colors is very close. The difference with @amenity-brown is delta 40.2 (improved from delta 32.8 with the current major-building-line), and @gastronomy-icon has delta 56.5 with the new outline color.

@jeisenbe
Copy link
Collaborator Author

Looking back at the discussion in #3426, here are some more examples:

Master:

Major buildings 10% darker (same as current commit)

Major buildings 15% darker (could be used at lower zoom levels?)

Hamburg station again, 15% darker major-buildings-fill:
z14 Master again
z14-hamburg-station-master
z14 - darker 15%
z14-hamburg-station-15

z15 - darker 15%
z15-hamburg-station-15

z16 - Master

z16 - darker 15%
z16-hamburg-station-15

z17 - darker 15%
z17-station-15

z18 master

z18 - -darker 15%
z18-hamburg-station-15

@jeisenbe
Copy link
Collaborator Author

@meased in these test images -- #3426 (comment) -- what were the levels used at different zoom levels?

I'm guessing 20% (current) at z14 and 10% at high zoom, but not certain where you changed the levels.

@jeisenbe
Copy link
Collaborator Author

jeisenbe commented Jan 29, 2019

I've pushed a new commit that adds a major-building-low-zoom color for z14, which is 5% darker than the major-buildings-fill color (i.e. 15% darker than @building-fill). This matches the increased darkness of building-low-zoom, which is 4% darker than building-fill.

I also made some tests that would keep the current fill color at z14 (20% darker), with an intermediate color at z15 (15% darker) and then the proposed color at z16 and higher (10% darker).

Major-building on religious/place_of_worship color background:
https://www.openstreetmap.org/#map=17/53.57747/9.82394
z17 before
z17-mlk-master
z17 after
z17-mlk-10percent

z16 before
z16-mlk-master
z16 after
z16-mlk-10percent

z15 before
z15-mlk-master
z15 after 10%
z15-mlk-10percent
after 15%
z15-mlk-15percent

z14 before / 20%
z14-mlk-master
z14 15%
z14-mkl-15percent

Major-building on landuse=construction
https://www.openstreetmap.org/#map=17/53.68447/9.99037
z17 before
z17-shalom-master
z17 after
z17-schalom-after

z16 before
z16-schalom-master
z16 after
z16-schalom-after

z15 before
z15-shalom-master
z15 10%
z15-schalom-10percent
z15 15%
z15-schalom-15percent

z14 before / 20%
z14-schalom-20percent
z14 15%
z14-schalom-15percent

Major-building on graveyard/cemetery
https://www.openstreetmap.org/#map=17/53.6820/10.0479
z17 before
z17-glashutten-master
after
z17-glashutte-after

z16 before
z16-glashutten-master
after
z16-glashutte-after

z15 before
z15-glashutten-master
after 10%
z15-glashutten-after
15 percent
z15-glashutten-15percent

z14 before / 20%
z14-glashutten-master
z14 after 15%
z14-glashutten-15percent

Harburg train station
https://www.openstreetmap.org/#map=18/53.45665/9.99172
Before z18, z19
z18-harburg-station-master
z19-harburg-station-master

After
z18-harburg-station-after
z19-harburg-station-after

@jragusa
Copy link
Contributor

jragusa commented Jan 29, 2019

#3647 convinces me to not support lighten colour at low zoom

@meased
Copy link
Contributor

meased commented Jan 29, 2019

@meased in these test images -- #3426 (comment) -- what were the levels used at different zoom levels?

That was just a test that I never committed, but I believe it started with building-color at z17, then darkened it by a constant amount each zoom level (3% maybe?).

@jeisenbe
Copy link
Collaborator Author

Are others in favor of keeping the major buildings darker and more distinct at lower zoom levels?

Do the high zoom levels (z17, z18, z19) need to be darker, or is darken(@building-fill, 10%) enough?

More tests near the equator, in Yogyakarta, Indonesia:

Yogyakarta Airport:
https://www.openstreetmap.org/#map=16/-7.7855/110.4273
z16 before
yogya-airport-z16-master
z16 current commit - 10 percent
yogya-airport-z16-10per
z16 - 15 percent darker and slightly stronger line color
yogya-airport-z16-15per-darkerline

z15 before
yogya-airport-z15-master
z15 current commit - 10 percent
yogya-airport-z15-10per
z15 - 15 percent
yogya-airport-z15-15per
z15 - 15 percent, darker line
yogya-airport-z15-15per-darkerline

z14 before
yogya-airport-z14-20per
z14 current commit - 15 percent
yogya-airport-z14-15per

National University, Yogyakarta
https://www.openstreetmap.org/#map=15/-7.7735/110.3966
z14 before
yogya-univ-z14-master
z14 current commit - 15 percent
yogya-univ-z14-15per

z15 before
yogya-univ-z15-master
z15 current commit - 10 percent
yogya-univ-z15-10per
z15 - 15 percent
yogya-univ-z15-15per

z16 before
yogya-univ-z16-master
z16 current commit - 10 percent
yogya-univ-z16-10per
z16 - 15 percent, darker line
yogya-univ-z16-15per-darkerline

z17 before
yogya-univ-z17-master
z17 current commit - 10 percent
yogya-univ-z17-10per

z18 before
yogya-univ-z18-master
z18 current commit - 10 percent
yogya-univ-z18-10per

@jeisenbe
Copy link
Collaborator Author

jeisenbe commented Jan 30, 2019

Singapore, Chiang Airport:

  • Large airport terminals such as these are very visible, even after lightening the color and at low zoom levels near the equator, so they won't be a problem.

z18 Before
z18-chiangi-master
After 10%
z18-chiangit1-10per

z17 before
z17-chiangi-master
After 10%
z17-chiangiti-10per

z16
z16-chiangi-master
15%
z16-chiangi-15per
10%
z16-chiangi-10per

z15
z15-chiangi-master
15%
z15-changi-15percent
10%
z15-chiangi-10per

z14 before
z14-chiangi-20per
after 15%
z14-chiangi-15per

Central Singapore

  • There are at least 6 different types of place_of_worship here.
  • It looks like the major-building-fill color doesn't need to be very dark at z16 and above, because the symbol is sufficient to highlight the location of the place_of_worship. But at z15 it's helpful to have a slightly darker fill color (15% instead of 10%) and line color.

z17 Chinatown before
z17-chinatown-singapore-master
After 10%
z17-chinatown-singapore-10per

z17 Bugis, Before
z17-bugis-singapore-master
after 10%
z17-bugis-signapore-10per

z16 Chinatown, before
z16-chinatown-singapore-master
15%
z16-chinatown-singapore-15per
10%
z16-chinatown-singapore-10per

z16 Bugis before
z16-bugis-singapore-master
15%
z16-bugis-singapore-15per
10%
z16-bugis-singapore-10per

z15 before
z15-singapore-buildings-master
15%
z15-singapore-buildings-15per
10%
z15-singapore-buildings-10per

@kocio-pl
Copy link
Collaborator

kocio-pl commented Feb 5, 2019

Are others in favor of keeping the major buildings darker and more distinct at lower zoom levels?

Yes, I would like to have them the same as in master. On z14 and z15 they are hard to notice and also look close to the construction when they are small.

Do the high zoom levels (z17, z18, z19) need to be darker, or is darken(@building-fill, 10%) enough?

I'm happy with high zoom appearance.

@jeisenbe
Copy link
Collaborator Author

jeisenbe commented Feb 6, 2019

OK, I've pushed a new commit to render major-buildings fill as darken(@building-fill: 20%) at z14 (same as the current rendering) and darken(@building-fill: 15%) at z15, as shown in the most recent test images.

Examples:
Major-building on religious/place_of_worship color background:
https://www.openstreetmap.org/#map=17/53.57747/9.82394
z17 after (10%)
z17-mlk-10percent

z16 after (10%)
z16-mlk-10percent

z15 after 15%
z15-mlk-15percent

z14 (unchanged)
z14-mlk-master

Singapore central city
z17 after 10%
z17-bugis-signapore-10per

z16 After 10%
z16-bugis-singapore-10per

z15 After 15%
z15-singapore-buildings-15per

@kocio-pl kocio-pl merged commit c1fe3c7 into gravitystorm:master Feb 6, 2019
@kocio-pl
Copy link
Collaborator

kocio-pl commented Feb 6, 2019

Thanks, that works for me too.

I hope now we can find some solution for minor (and underground) buildings too.

@danieldegroot2
Copy link
Contributor

Whisper PR to #3641.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants