Skip to content

Commit 0fb4445

Browse files
update demo style
1 parent 49e62b8 commit 0fb4445

File tree

1 file changed

+70
-13
lines changed

1 file changed

+70
-13
lines changed

main/main-draft.json

+70-13
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"sources": {
66
"osm": {
77
"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"]
119
},
1210
"ohm_landcover_hillshade": {
1311
"type": "raster",
@@ -490,7 +488,7 @@
490488
"wood",
491489
"rgba(193, 208, 158, 1)",
492490
"nature_reserve",
493-
"rgba(212, 225, 211, 0.3)",
491+
"rgba(212, 225, 211, 1)",
494492
"landfill",
495493
"rgba(194, 170, 175, 1)",
496494
"transparent"
@@ -503,7 +501,7 @@
503501
"type": "fill",
504502
"source": "osm",
505503
"source-layer": "landuse_areas",
506-
"minzoom": 7,
504+
"minzoom": 5,
507505
"maxzoom": 10,
508506
"filter": [
509507
"all",
@@ -515,11 +513,24 @@
515513
"interpolate",
516514
["linear"],
517515
["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
523534
}
524535
},
525536
{
@@ -534,8 +545,31 @@
534545
["in", "type", "forest", "wood"],
535546
[">", "area", 50000000]
536547
],
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+
}
539573
},
540574
{
541575
"id": "landuse_areas_z3",
@@ -550,7 +584,30 @@
550584
[">", "area", 500000000]
551585
],
552586
"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+
}
554611
},
555612
{
556613
"id": "parking_lots",

0 commit comments

Comments
 (0)