Skip to content

Commit

Permalink
make sure the landuses fade in smoothly
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Mar 7, 2024
1 parent ab29a68 commit 33b9f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ fun createStyle(name: String, accessToken: String, languages: List<String>, colo
"bog", "grassland", "heath", "marsh", "meadow", "string_bog", "wet_meadow",
)),
minZoom = 5.0,
paint = Fill(color = colors.green, opacity = byZoom(5, 0, 6, 1))
paint = Fill(color = colors.green, opacity = byZoom(11, 0, 12, 1))
),
Layer("landuse-forest",
src = "land",
Expand All @@ -331,7 +331,7 @@ fun createStyle(name: String, accessToken: String, languages: List<String>, colo
"swamp", // forest + water = swamp
)),
minZoom = 5.0,
paint = Fill(color = colors.forest, opacity = byZoom(5, 0, 6, 1))
paint = Fill(color = colors.forest, opacity = byZoom(7, 0, 8, 1))
),
// not rendered: shingle, scree, bare_rock, sand, beach,

Expand Down

0 comments on commit 33b9f77

Please sign in to comment.