|
2174 | 2174 | "minzoom": 10,
|
2175 | 2175 | "maxzoom": 16,
|
2176 | 2176 | "filter": ["all",
|
2177 |
| - ["match", ["get", "subclass"], ["motorway", "trunk", "primary", "secondary"], true, false], |
2178 |
| - ["match", ["get", "ref_prefix"], ["A", "B"], true, false], |
| 2177 | + ["any", |
| 2178 | + ["all", |
| 2179 | + ["==", ["get", "subclass"], "motorway"], |
| 2180 | + ["==", ["get", "ref_prefix"], "A"] |
| 2181 | + ], |
| 2182 | + ["all", |
| 2183 | + ["match", ["get", "subclass"], ["trunk", "primary", "secondary"], true, false], |
| 2184 | + ["==", ["get", "ref_prefix"], "B"] |
| 2185 | + ] |
| 2186 | + ], |
2179 | 2187 | ["!=", ["get", "ref_num"], ""],
|
2180 | 2188 | ["<=", ["length", ["get", "ref_num"]], 3]
|
2181 | 2189 | ],
|
|
2201 | 2209 | "type": "symbol",
|
2202 | 2210 | "source": "local",
|
2203 | 2211 | "source-layer": "poi",
|
2204 |
| - "filter": ["all", |
2205 |
| - ["match", ["get", "subclass"], ["station", "halt", "bus_stop", "tram_stop", "restaurant", "biergarten", "hotel"], false, true], |
2206 |
| - ["!=", ["get", "access"], 1] |
2207 |
| - ], |
| 2212 | + "filter": ["!=", ["get", "access"], 1], |
2208 | 2213 | "minzoom": 11,
|
2209 | 2214 | "maxzoom": 24,
|
2210 | 2215 | "paint": {
|
|
2220 | 2225 | "text-halo-blur": 1
|
2221 | 2226 | },
|
2222 | 2227 | "layout": {
|
| 2228 | + "symbol-sort-key": ["match", ["get", "subclass"], |
| 2229 | + ["station", "halt"], 10, |
| 2230 | + ["bus_stop", "tram_stop"], 20, |
| 2231 | + ["parking"], 30, |
| 2232 | + ["restaurant", "fast_food", "alpine_hut", "pub", "biergarten"], 40, |
| 2233 | + 255 |
| 2234 | + ], |
2223 | 2235 | "icon-padding": 10,
|
2224 | 2236 | "icon-allow-overlap": false,
|
2225 | 2237 | "icon-ignore-placement": false,
|
|
2304 | 2316 | "text-max-width": 9
|
2305 | 2317 | }
|
2306 | 2318 | },
|
2307 |
| - { |
2308 |
| - "id": "poi-prio", |
2309 |
| - "type": "symbol", |
2310 |
| - "source": "local", |
2311 |
| - "source-layer": "poi", |
2312 |
| - "filter": ["match", ["get", "subclass"], ["station", "halt", "bus_stop", "tram_stop", "restaurant", "biergarten", "hotel"], true, false], |
2313 |
| - "minzoom": 11, |
2314 |
| - "maxzoom": 24, |
2315 |
| - "paint": { |
2316 |
| - "text-color": ["match", ["get", "subclass"], |
2317 |
| - ["station", "halt"], "#008", |
2318 |
| - ["bus_stop", "tram_stop"], "#053", |
2319 |
| - ["restaurant", "fast_food", "alpine_hut", "pub", "biergarten", "hotel", "bar", "information"], "#631", |
2320 |
| - ["supermarket", "bicycle"], "#505", |
2321 |
| - ["hospital"], "#a22", |
2322 |
| - "#222"], |
2323 |
| - "text-halo-color": "rgba(255, 255, 255, 0.8)", |
2324 |
| - "text-halo-width": 2.5, |
2325 |
| - "text-halo-blur": 1 |
2326 |
| - }, |
2327 |
| - "layout": { |
2328 |
| - "icon-padding": 10, |
2329 |
| - "icon-allow-overlap": false, |
2330 |
| - "icon-ignore-placement": false, |
2331 |
| - "icon-image": ["match", ["get", "subclass"], |
2332 |
| - ["parking", "shelter", "supermarket", "bicycle", "hotel", "bar", "hospital", "caravan_site", "camp_site", "peak", "playground", "information", "viewpoint", "climbing"], ["get", "subclass"], |
2333 |
| - ["pub", "biergarten"], "pub", |
2334 |
| - ["bus_stop", "tram_stop"], "bus_stop", |
2335 |
| - ["tower", "antenna", "mast", "communications_tower"], "tower", |
2336 |
| - ["restaurant", "fast_food", "alpine_hut"], "restaurant", |
2337 |
| - ["station", "halt"], ["match", ["get", "subway"], 1, "subway", "station.red"], |
2338 |
| - "place_of_worship", ["match", ["get", "religion"], 1, "church", ""], |
2339 |
| - "attraction", "ring-black", |
2340 |
| - "star.white"], |
2341 |
| - "icon-size": ["interpolate", ["exponential", 2], ["zoom"], |
2342 |
| - 12, 0.5, |
2343 |
| - 14, 1 |
2344 |
| - ], |
2345 |
| - "text-allow-overlap": false, |
2346 |
| - "text-ignore-placement": false, |
2347 |
| - "text-optional": true, |
2348 |
| - "text-anchor": "top", |
2349 |
| - "text-field": ["step", ["zoom"], |
2350 |
| - "", |
2351 |
| - 12, ["match", ["get", "subclass"], ["station", "halt"], ["get", "name"], ""], |
2352 |
| - 14, ["case", |
2353 |
| - ["==", ["get", "count"], 1], |
2354 |
| - ["match", ["get", "subclass"], |
2355 |
| - ["station", "halt"], ["get", "name"], |
2356 |
| - ["peak", "restaurant", "fast_food", "alpine_hut", "pub", "biergarten", "hotel", "bar"], |
2357 |
| - ["case", |
2358 |
| - [">",["length", ["get", "name"]], 0], ["concat", ["get", "name"], "\n", ["get", "ele"]], |
2359 |
| - ["concat", ["get", "ele"]] |
2360 |
| - ], |
2361 |
| - "" |
2362 |
| - ], |
2363 |
| - ""], |
2364 |
| - 16, ["match", |
2365 |
| - ["get", "count"], |
2366 |
| - 1, ["match", ["get", "subclass"], |
2367 |
| - ["bus_stop", "parking"], "", |
2368 |
| - ["peak", "restaurant", "fast_food", "alpine_hut", "biergarten", "information"], |
2369 |
| - ["case", |
2370 |
| - [">",["length", ["get", "name"]], 0], ["concat", ["get", "name"], "\n", ["get", "ele"]], |
2371 |
| - ["concat", ["get", "ele"]] |
2372 |
| - ], |
2373 |
| - ["get", "name"] |
2374 |
| - ], |
2375 |
| - 2, ["match", ["get", "subclass"], |
2376 |
| - ["station", "halt"], ["get", "name"], |
2377 |
| - "" |
2378 |
| - ], |
2379 |
| - "" |
2380 |
| - ], |
2381 |
| - 17, ["match", |
2382 |
| - ["get", "count"], |
2383 |
| - 1, ["match", ["get", "subclass"], |
2384 |
| - ["peak", "restaurant", "fast_food", "alpine_hut", "biergarten", "information", "climbing"], |
2385 |
| - ["case", |
2386 |
| - [">",["length", ["get", "name"]], 0], ["concat", ["get", "name"], "\n", ["get", "ele"]], |
2387 |
| - ["concat", ["get", "ele"]] |
2388 |
| - ], |
2389 |
| - ["get", "name"] |
2390 |
| - ], |
2391 |
| - 2, ["match", ["get", "subclass"], |
2392 |
| - ["station", "halt", "bus_stop", "tram_stop"], ["get", "name"], |
2393 |
| - "" |
2394 |
| - ], |
2395 |
| - "" |
2396 |
| - ] |
2397 |
| - |
2398 |
| - ], |
2399 |
| - "text-font": ["match", ["get", "subclass"], |
2400 |
| - ["peak", "restaurant", "fast_food", "alpine_hut", "pub", "biergarten", "hotel", "bar", "hospital", "information"], ["literal", ["Open Sans Bold Italic"]], |
2401 |
| - ["literal",["Open Sans Italic"]] |
2402 |
| - ], |
2403 |
| - "text-size": ["match", |
2404 |
| - ["get", "subclass"], |
2405 |
| - ["peak", "restaurant", "fast_food", "alpine_hut", "pub", "biergarten", "hotel", "bar", "hospital", "information"], 18, |
2406 |
| - 16], |
2407 |
| - "text-offset": [0, 0.7], |
2408 |
| - "text-max-width": 9 |
2409 |
| - } |
2410 |
| - }, |
2411 | 2319 | {
|
2412 | 2320 | "id": "global-places",
|
2413 | 2321 | "type": "symbol",
|
|
2498 | 2406 | "text-padding": 20,
|
2499 | 2407 | "text-size": 24,
|
2500 | 2408 | "text-max-width": 5,
|
| 2409 | + "text-allow-overlap": false, |
| 2410 | + "text-ignore-placement": false, |
| 2411 | + |
2501 | 2412 | "text-letter-spacing": 0
|
2502 | 2413 | },
|
2503 | 2414 | "paint": {
|
|
0 commit comments