﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
15483	[RFC][PATCH] Small improvements in default style	naoliv	team	"Consider it as a proof of concept, please.

Have this area https://www.openstreetmap.org/#map=12/-21.4232/-45.9483 downloaded in JOSM, at zoom level 12.
We can see this:
[[Image(https://i.imgur.com/jOY3rdF.png)]]

And we can spot two problems:
**1)** `highway=residential` are on top of major highways (`primary` and `secondary`, for example)
**2)** a lot of blue nodes (for `traffic_calming`, `turning_loop`, etc) when we select to hide the nodes

Considering that the default `z-index` is `0`, for **1** I did test this:
{{{
#!patch
Index: styles/standard/elemstyles.mapcss
===================================================================
--- styles/standard/elemstyles.mapcss	(revisão 13035)
+++ styles/standard/elemstyles.mapcss	(cópia de trabalho)
@@ -476,46 +476,57 @@
     color: motorroad#3377ff;
 }
 way[highway=motorway] {
+    z-index: 1.3;
     width: 3;
     color: motorway#809bc0;
 }
 way[highway=motorway_link] {
+    z-index: 1.2;
     width: 3;
     color: motorway#809bc0;
 }
 way[highway=trunk] {
+    z-index: 1.1;
     width: 3;
     color: trunk#7fc97f;
 }
 way[highway=trunk_link] {
+    z-index: 1.0;
     width: 3;
     color: trunk#7fc97f;
 }
 way[highway=primary] {
+    z-index: 0.9;
     width: 3;
     color: primary#fb805f;
 }
 way[highway=primary_link] {
+    z-index: 0.8;
     width: 3;
     color: primary#fb805f;
 }
 way[highway=secondary] {
+    z-index: 0.7;
     width: 3;
     color: secondary#fdbf6f;
 }
 way[highway=secondary_link] {
+    z-index: 0.6;
     width: 3;
     color: secondary#fdbf6f;
 }
 way[highway=tertiary] {
+    z-index: 0.5;
     width: 2;
     color: tertiary#f7f496;
 }
 way[highway=tertiary_link] {
+    z-index: 0.4;
     width: 2;
     color: tertiary#f7f496;
 }
 way[highway=unclassified] {
+    z-index: 0.3;
     width: 2;
     color: street#c0c0c0;
 }
@@ -538,10 +549,12 @@
     color: highway_track#6e541c;
 }
 way[highway=residential] {
+    z-index: 0.2;
     width: 2;
     color: street#c0c0c0;
 }
 way[highway=living_street] {
+    z-index: 0.1;
     width: 2;
     dashes: 9,9;
     dashes-background-color: livingdashed#00ff00;
}}}

And got a nicer result:
[[Image(https://i.imgur.com/sM0gDnQ.png)]] [[Image(https://i.imgur.com/IScnCj4.gif)]]


Most probably a proper fix will need another values and/or `major-z-index` (or even something else) to achieve the result.

For **2** I did this:

{{{
#!patch
Index: styles/standard/elemstyles.mapcss
===================================================================
--- styles/standard/elemstyles.mapcss	(revisão 13035)
+++ styles/standard/elemstyles.mapcss	(cópia de trabalho)
@@ -4700,7 +4700,11 @@
 
 */
 
-node|z-16[setting(""hide_icons"")],
+node|z-14[setting(""hide_icons"")] {
+	symbol-size: 1;
+}
+
+node|z15-[setting(""hide_icons"")],
 node|z17-[!is_prop_set(""icon-image"")][setting(""hide_icons"")]!.maxspeedclass,
 node[!is_prop_set(""icon-image"")][!setting(""hide_icons"")]!.maxspeedclass {
     symbol-size: 2;
}}}

And got this (it doesn't have the z-layer part applied):
[[Image(https://i.imgur.com/JEu3BJV.png)]] [[Image(https://i.imgur.com/9diFoEp.gif)]]

ie, at zoom levels 16 and 15 we still see the small blue squares; 14 upwards we hide them."	enhancement	closed	normal	18.01	Internal mappaint style		fixed	mapcss	
