Skip to content

Commit

Permalink
misunderstood what sortKey does
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Dec 9, 2024
1 parent 590bab8 commit d0b12dc
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -451,21 +451,14 @@ fun createStyle(name: String, accessToken: String, languages: List<String>, colo
Layer("labels-housenumbers",
src = "housenum_label",
minZoom = 18.0,
paint = defaultTextStyle.copy(
text = "[\"get\", \"house_num\"]",
sortKey = "15",
)
paint = defaultTextStyle.copy(text = "[\"get\", \"house_num\"]")
),

Layer("labels-road",
src = "road",
minZoom = 14.0,
filter = listOf(isLines),
paint = defaultTextStyle.copy(
wrap = 25,
placement = "line-center",
sortKey = "10",
)
paint = defaultTextStyle.copy(wrap = 25, placement = "line-center")
),

Layer("labels-rivers",
Expand All @@ -475,10 +468,7 @@ fun createStyle(name: String, accessToken: String, languages: List<String>, colo
tagIsNot("structure", "tunnel"),
tagIn("class", "river", "canal")
),
paint = waterTextStyle.copy(
placement = "line-center",
sortKey = "11",
)
paint = waterTextStyle.copy(placement = "line-center",)
),

Layer("labels-streams",
Expand All @@ -488,10 +478,7 @@ fun createStyle(name: String, accessToken: String, languages: List<String>, colo
tagIsNot("structure", "tunnel"),
tagIn("class", "stream", "ditch", "drain")
),
paint = waterTextStyle.copy(
placement = "line-center",
sortKey = "12"
)
paint = waterTextStyle.copy(placement = "line-center")
),

/*
Expand Down

0 comments on commit d0b12dc

Please sign in to comment.