improve `class=path` styling (#1450)

This PR addresses that by:

* rendering oneway arrows on more than `subclass=cycleway`
* less opacity for path/footway casing
* adding the thin black casing to bridges
* adding `subclass=steps` & `subclass=bridleway` rendering
* render `bicycle=designated` as `subclass=cycleway` and `horse=designated` as `subclass=bridleway` (bike taking priority)
* improved tunnel rendering with double casing & adding main line
* made casing min zoom consistent across subclasses

All of these changes were made to mimic OSM Carto.
pull/1465/head
Daniel Schep 2023-01-06 04:08:03 -05:00 zatwierdzone przez GitHub
rodzic 4d5fa84184
commit cd77b07e46
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
13 zmienionych plików z 959 dodań i 265 usunięć

Wyświetl plik

@ -63,7 +63,7 @@
"iata" "iata"
] ]
], ],
"order": 181 "order": 190
} }
] ]
} }

Wyświetl plik

@ -157,7 +157,7 @@
"taxiway" "taxiway"
] ]
], ],
"order": 182 "order": 191
}, },
{ {
"id": "airport_gate", "id": "airport_gate",
@ -197,7 +197,7 @@
"gate" "gate"
] ]
], ],
"order": 183 "order": 192
} }
] ]
} }

Wyświetl plik

@ -61,7 +61,7 @@
0 0
] ]
], ],
"order": 137 "order": 146
}, },
{ {
"id": "boundary_2", "id": "boundary_2",
@ -114,7 +114,7 @@
0 0
] ]
], ],
"order": 138 "order": 147
}, },
{ {
"id": "boundary_2_disputed", "id": "boundary_2_disputed",
@ -171,7 +171,7 @@
0 0
] ]
], ],
"order": 139 "order": 148
}, },
{ {
"id": "boundary_2_disputed_maritime", "id": "boundary_2_disputed_maritime",
@ -228,7 +228,7 @@
1 1
] ]
], ],
"order": 140 "order": 149
}, },
{ {
"id": "boundary_2_maritime", "id": "boundary_2_maritime",
@ -281,7 +281,7 @@
1 1
] ]
], ],
"order": 141 "order": 150
} }
] ]
} }

Wyświetl plik

@ -34,7 +34,7 @@
"text-halo-color": "rgba(255,255,255,0.8)", "text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 1 "text-halo-width": 1
}, },
"order": 145 "order": 154
} }
] ]
} }

Wyświetl plik

@ -46,7 +46,7 @@
"cliff" "cliff"
] ]
], ],
"order": 188 "order": 197
} }
] ]
} }

Wyświetl plik

@ -105,7 +105,7 @@
2 2
] ]
], ],
"order": 186 "order": 195
} }
] ]
} }

Wyświetl plik

@ -85,7 +85,7 @@
"suburb" "suburb"
] ]
], ],
"order": 184 "order": 193
}, },
{ {
"id": "place_village", "id": "place_village",
@ -128,7 +128,7 @@
"village" "village"
] ]
], ],
"order": 189 "order": 198
}, },
{ {
"id": "place_town", "id": "place_town",
@ -176,7 +176,7 @@
"town" "town"
] ]
], ],
"order": 190 "order": 199
}, },
{ {
"id": "place_state", "id": "place_state",
@ -227,7 +227,7 @@
3 3
] ]
], ],
"order": 191 "order": 200
}, },
{ {
"id": "place_city", "id": "place_city",
@ -310,7 +310,7 @@
1 1
] ]
], ],
"order": 192 "order": 201
}, },
{ {
"id": "place_capital", "id": "place_capital",
@ -395,7 +395,7 @@
2 2
] ]
], ],
"order": 193 "order": 202
}, },
{ {
"id": "country_other", "id": "country_other",
@ -448,7 +448,7 @@
"iso_a2" "iso_a2"
] ]
], ],
"order": 194 "order": 203
}, },
{ {
"id": "country_3", "id": "country_3",
@ -517,7 +517,7 @@
"iso_a2" "iso_a2"
] ]
], ],
"order": 195 "order": 204
}, },
{ {
"id": "country_2", "id": "country_2",
@ -586,7 +586,7 @@
"iso_a2" "iso_a2"
] ]
], ],
"order": 196 "order": 205
}, },
{ {
"id": "country_1", "id": "country_1",
@ -655,7 +655,7 @@
"iso_a2" "iso_a2"
] ]
], ],
"order": 197 "order": 206
} }
] ]
} }

Wyświetl plik

@ -75,7 +75,7 @@
"artwork" "artwork"
] ]
], ],
"order": 146 "order": 155
}, },
{ {
"id": "poi_shop-z15", "id": "poi_shop-z15",
@ -139,7 +139,7 @@
"supermarket" "supermarket"
] ]
], ],
"order": 147 "order": 156
}, },
{ {
"id": "poi_waste", "id": "poi_waste",
@ -197,7 +197,7 @@
"toilets" "toilets"
] ]
], ],
"order": 148 "order": 157
}, },
{ {
"id": "poi_cemetery", "id": "poi_cemetery",
@ -253,7 +253,7 @@
"cemetery" "cemetery"
] ]
], ],
"order": 149 "order": 158
}, },
{ {
"id": "poi_school", "id": "poi_school",
@ -312,7 +312,7 @@
"school" "school"
] ]
], ],
"order": 150 "order": 159
}, },
{ {
"id": "poi_outdoor", "id": "poi_outdoor",
@ -367,7 +367,7 @@
"gate" "gate"
] ]
], ],
"order": 151 "order": 160
}, },
{ {
"id": "poi_parking", "id": "poi_parking",
@ -433,7 +433,7 @@
"parking" "parking"
] ]
], ],
"order": 152 "order": 161
}, },
{ {
"id": "poi_golf", "id": "poi_golf",
@ -488,7 +488,7 @@
"golf" "golf"
] ]
], ],
"order": 153 "order": 162
}, },
{ {
"id": "poi_sport", "id": "poi_sport",
@ -544,7 +544,7 @@
"water_park" "water_park"
] ]
], ],
"order": 154 "order": 163
}, },
{ {
"id": "poi_ferry", "id": "poi_ferry",
@ -604,7 +604,7 @@
"ferry_terminal" "ferry_terminal"
] ]
], ],
"order": 155 "order": 164
}, },
{ {
"id": "poi_food", "id": "poi_food",
@ -664,7 +664,7 @@
"restaurant" "restaurant"
] ]
], ],
"order": 156 "order": 165
}, },
{ {
"id": "poi_water", "id": "poi_water",
@ -719,7 +719,7 @@
"ice_rink" "ice_rink"
] ]
], ],
"order": 157 "order": 166
}, },
{ {
"id": "poi_public", "id": "poi_public",
@ -786,7 +786,7 @@
"books" "books"
] ]
], ],
"order": 158 "order": 167
}, },
{ {
"id": "poi_cultural", "id": "poi_cultural",
@ -855,7 +855,7 @@
"gallery" "gallery"
] ]
], ],
"order": 159 "order": 168
}, },
{ {
"id": "poi_attraction", "id": "poi_attraction",
@ -910,7 +910,7 @@
"attraction" "attraction"
] ]
], ],
"order": 160 "order": 169
}, },
{ {
"id": "poi_car", "id": "poi_car",
@ -979,7 +979,7 @@
"fuel" "fuel"
] ]
], ],
"order": 161 "order": 170
}, },
{ {
"id": "poi_health", "id": "poi_health",
@ -1037,7 +1037,7 @@
"veterinary" "veterinary"
] ]
], ],
"order": 162 "order": 171
}, },
{ {
"id": "poi_hospital", "id": "poi_hospital",
@ -1103,7 +1103,7 @@
"hospital" "hospital"
] ]
], ],
"order": 163 "order": 172
}, },
{ {
"id": "poi_campsite", "id": "poi_campsite",
@ -1158,7 +1158,7 @@
"campsite" "campsite"
] ]
], ],
"order": 164 "order": 173
}, },
{ {
"id": "poi_accommodation", "id": "poi_accommodation",
@ -1225,7 +1225,7 @@
"campsite" "campsite"
] ]
], ],
"order": 165 "order": 174
}, },
{ {
"id": "poi_place_of_worship", "id": "poi_place_of_worship",
@ -1289,7 +1289,7 @@
"place_of_worship" "place_of_worship"
] ]
], ],
"order": 166 "order": 175
}, },
{ {
"id": "poi_busstop", "id": "poi_busstop",
@ -1350,7 +1350,7 @@
"bus" "bus"
] ]
], ],
"order": 167 "order": 176
}, },
{ {
"id": "poi_bus", "id": "poi_bus",
@ -1410,7 +1410,7 @@
"bus_stop" "bus_stop"
] ]
], ],
"order": 168 "order": 177
}, },
{ {
"id": "poi_harbor", "id": "poi_harbor",
@ -1460,7 +1460,7 @@
"harbor" "harbor"
] ]
], ],
"order": 169 "order": 178
}, },
{ {
"id": "poi_mall", "id": "poi_mall",
@ -1519,7 +1519,7 @@
"mall" "mall"
] ]
], ],
"order": 170 "order": 179
}, },
{ {
"id": "poi_train", "id": "poi_train",
@ -1578,7 +1578,7 @@
"railway" "railway"
] ]
], ],
"order": 171 "order": 180
}, },
{ {
"id": "park-local", "id": "park-local",
@ -1638,7 +1638,7 @@
"park" "park"
] ]
], ],
"order": 185 "order": 194
}, },
{ {
"id": "poi_zoo", "id": "poi_zoo",
@ -1698,7 +1698,7 @@
"zoo" "zoo"
] ]
], ],
"order": 187 "order": 196
} }
] ]
} }

Wyświetl plik

@ -34,7 +34,7 @@
"ferry" "ferry"
] ]
], ],
"order": 175 "order": 184
}, },
{ {
"id": "road_label", "id": "road_label",
@ -81,7 +81,7 @@
"ferry" "ferry"
] ]
], ],
"order": 176 "order": 185
}, },
{ {
"id": "highway-shield-tertiary", "id": "highway-shield-tertiary",
@ -160,7 +160,7 @@
"ref" "ref"
] ]
], ],
"order": 177 "order": 186
}, },
{ {
"id": "highway-shield-secondary", "id": "highway-shield-secondary",
@ -239,7 +239,7 @@
"ref" "ref"
] ]
], ],
"order": 178 "order": 187
}, },
{ {
"id": "highway-shield-primary", "id": "highway-shield-primary",
@ -318,7 +318,7 @@
"ref" "ref"
] ]
], ],
"order": 179 "order": 188
}, },
{ {
"id": "highway-shield-motorway", "id": "highway-shield-motorway",
@ -400,7 +400,7 @@
"ref" "ref"
] ]
], ],
"order": 180 "order": 189
} }
] ]
} }

Wyświetl plik

@ -31,7 +31,7 @@
"LineString" "LineString"
] ]
], ],
"order": 143 "order": 152
}, },
{ {
"id": "water_name_point", "id": "water_name_point",
@ -68,7 +68,7 @@
"ocean" "ocean"
] ]
], ],
"order": 144 "order": 153
} }
] ]
} }

Wyświetl plik

@ -282,7 +282,7 @@
"bridge" "bridge"
] ]
], ],
"order": 103 "order": 111
}, },
{ {
"id": "waterway-bridge", "id": "waterway-bridge",
@ -322,7 +322,7 @@
"bridge" "bridge"
] ]
], ],
"order": 104 "order": 112
}, },
{ {
"id": "water_way_name", "id": "water_way_name",
@ -367,7 +367,7 @@
"LineString" "LineString"
] ]
], ],
"order": 142 "order": 151
} }
] ]
} }

Wyświetl plik

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 921 B

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 921 B