Skip to content

Commit

Permalink
Rearranging layers in style JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
tsinn committed Feb 5, 2025
1 parent 5f0c7fd commit c5cbd54
Showing 1 changed file with 48 additions and 57 deletions.
105 changes: 48 additions & 57 deletions main/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,54 @@
]
}
},
{
"id": "landuse_areas_z12_watercover",
"type": "fill",
"source": "osm",
"source-layer": "landuse_areas",
"minzoom": 11,
"maxzoom": 24,
"layout": {"visibility": "visible"},
"paint": {
"fill-color": [
"interpolate",
["linear"],
["zoom"],
12,
[
"match",
["get", "type"],
"salt_pond",
"rgba(236, 240, 241, 1)",
"glacier",
"rgba(219, 244, 249, 1)",
"reservoir",
"rgba(144, 204, 203, 1)",
"swimming_pool",
"rgba(144, 204, 203, 1)",
"wetland",
"rgba(228, 242, 227, 1)",
"transparent"
]
]
}
},
{
"id": "wetlands_z11-pattern",
"type": "fill",
"source": "osm",
"source-layer": "landuse_areas",
"minzoom": 11,
"maxzoom": 24,
"filter": ["==", ["get", "type"], "wetland"],
"layout": {"visibility": "visible"},
"paint": {
"fill-color": "rgba(255, 255, 255, 1)",
"fill-pattern": {
"stops": [[12, "cattails_space_60px"], [14, "cattails_space_70px"]]
}
}
},
{
"id": "landuse_areas_z12_glacier-outline",
"type": "line",
Expand Down Expand Up @@ -574,47 +622,6 @@
]
}
},
{
"id": "landuse_areas_z12_watercover",
"type": "fill",
"source": "osm",
"source-layer": "landuse_areas",
"minzoom": 11,
"maxzoom": 24,
"layout": {"visibility": "visible"},
"paint": {
"fill-color": [
"interpolate",
["linear"],
["zoom"],
12,
[
"match",
["get", "type"],
"salt_pond",
"rgba(236, 240, 241, 1)",
"glacier",
"rgba(219, 244, 249, 1)",
"reservoir",
"rgba(144, 204, 203, 1)",
"swimming_pool",
"rgba(144, 204, 203, 1)",
"transparent"
]
]
}
},
{
"id": "landuse_areas_z11_wetland_watercover",
"type": "fill",
"source": "osm",
"source-layer": "landuse_areas",
"minzoom": 11,
"maxzoom": 24,
"filter": ["all", ["==", "type", "wetland"]],
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(228, 242, 227, 1)"}
},
{
"id": "water_areas-ne",
"type": "fill",
Expand Down Expand Up @@ -671,22 +678,6 @@
"fill-outline-color": "rgba(226, 223, 215, 1)"
}
},
{
"id": "wetlands_z11-pattern",
"type": "fill",
"source": "osm",
"source-layer": "landuse_areas",
"minzoom": 11,
"maxzoom": 24,
"filter": ["==", ["get", "type"], "wetland"],
"layout": {"visibility": "visible"},
"paint": {
"fill-color": "rgba(255, 255, 255, 1)",
"fill-pattern": {
"stops": [[12, "cattails_space_60px"], [14, "cattails_space_70px"]]
}
}
},
{
"id": "water_lines_stream_no_name",
"type": "line",
Expand Down

0 comments on commit c5cbd54

Please sign in to comment.