|
5 | 5 | "sources": {
|
6 | 6 | "osm": {
|
7 | 7 | "type": "vector",
|
8 |
| - "tiles": [ |
9 |
| - "https://vtiles.staging.openhistoricalmap.org/maps/osm/{z}/{x}/{y}.pbf" |
10 |
| - ] |
| 8 | + "tiles": ["https://vtiles.openhistoricalmap.org/maps/osm/{z}/{x}/{y}.pbf"] |
11 | 9 | },
|
12 | 10 | "ohm_landcover_hillshade": {
|
13 | 11 | "type": "raster",
|
|
490 | 488 | "wood",
|
491 | 489 | "rgba(193, 208, 158, 1)",
|
492 | 490 | "nature_reserve",
|
493 |
| - "rgba(212, 225, 211, 0.3)", |
| 491 | + "rgba(212, 225, 211, 1)", |
494 | 492 | "landfill",
|
495 | 493 | "rgba(194, 170, 175, 1)",
|
496 | 494 | "transparent"
|
|
503 | 501 | "type": "fill",
|
504 | 502 | "source": "osm",
|
505 | 503 | "source-layer": "landuse_areas",
|
506 |
| - "minzoom": 7, |
| 504 | + "minzoom": 5, |
507 | 505 | "maxzoom": 10,
|
508 | 506 | "filter": [
|
509 | 507 | "all",
|
|
515 | 513 | "interpolate",
|
516 | 514 | ["linear"],
|
517 | 515 | ["zoom"],
|
518 |
| - 6, |
519 |
| - "rgba(178, 194, 157, 0.2)", |
520 |
| - 9, |
521 |
| - "rgba(212, 225, 211, 0.3)" |
522 |
| - ] |
| 516 | + 0, |
| 517 | + [ |
| 518 | + "match", |
| 519 | + ["get", "type"], |
| 520 | + "park", |
| 521 | + "#dce4ca", |
| 522 | + "forest", |
| 523 | + "#dce4ca", |
| 524 | + "wood", |
| 525 | + "#dce4ca", |
| 526 | + "nature_reserve", |
| 527 | + "#dce4ca", |
| 528 | + "landfill", |
| 529 | + "rgba(194, 170, 175, 1)", |
| 530 | + "transparent" |
| 531 | + ] |
| 532 | + ], |
| 533 | + "fill-opacity": 0.85 |
523 | 534 | }
|
524 | 535 | },
|
525 | 536 | {
|
|
534 | 545 | ["in", "type", "forest", "wood"],
|
535 | 546 | [">", "area", 50000000]
|
536 | 547 | ],
|
537 |
| - "layout": {"visibility": "visible"}, |
538 |
| - "paint": {"fill-color": "rgba(178, 194, 157, 1)"} |
| 548 | + "layout": {"visibility": "none"}, |
| 549 | + "paint": { |
| 550 | + "fill-color": [ |
| 551 | + "interpolate", |
| 552 | + ["linear"], |
| 553 | + ["zoom"], |
| 554 | + 0, |
| 555 | + [ |
| 556 | + "match", |
| 557 | + ["get", "type"], |
| 558 | + "park", |
| 559 | + "#dce4ca", |
| 560 | + "forest", |
| 561 | + "#dce4ca", |
| 562 | + "wood", |
| 563 | + "#dce4ca", |
| 564 | + "nature_reserve", |
| 565 | + "#dce4ca", |
| 566 | + "landfill", |
| 567 | + "rgba(194, 170, 175, 1)", |
| 568 | + "transparent" |
| 569 | + ] |
| 570 | + ], |
| 571 | + "fill-opacity": 0.65 |
| 572 | + } |
539 | 573 | },
|
540 | 574 | {
|
541 | 575 | "id": "landuse_areas_z3",
|
|
550 | 584 | [">", "area", 500000000]
|
551 | 585 | ],
|
552 | 586 | "layout": {"visibility": "visible"},
|
553 |
| - "paint": {"fill-color": "rgba(178, 194, 157, 1)"} |
| 587 | + "paint": { |
| 588 | + "fill-color": [ |
| 589 | + "interpolate", |
| 590 | + ["linear"], |
| 591 | + ["zoom"], |
| 592 | + 0, |
| 593 | + [ |
| 594 | + "match", |
| 595 | + ["get", "type"], |
| 596 | + "park", |
| 597 | + "#dce4ca", |
| 598 | + "forest", |
| 599 | + "#dce4ca", |
| 600 | + "wood", |
| 601 | + "#dce4ca", |
| 602 | + "nature_reserve", |
| 603 | + "#dce4ca", |
| 604 | + "landfill", |
| 605 | + "rgba(194, 170, 175, 1)", |
| 606 | + "transparent" |
| 607 | + ] |
| 608 | + ], |
| 609 | + "fill-opacity": 0.25 |
| 610 | + } |
554 | 611 | },
|
555 | 612 | {
|
556 | 613 | "id": "parking_lots",
|
|
0 commit comments