Skip to content

Commit

Permalink
Display aeroway=gate by ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed May 22, 2024
1 parent eecb369 commit 5714bdf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ const commonPoi = {
],
"text-anchor": "top",
"text-field": [
"concat",
["get", "name:latin"],
"\n",
["get", "name:nonlatin"],
"case",
// aeroway=gate
["==", ["get", "class"], "aeroway"],
["get", "ref"],
// default
["concat",
["get", "name:latin"],
"\n",
["get", "name:nonlatin"]
],
],
"text-max-width": 9,
"text-offset": [
Expand Down

0 comments on commit 5714bdf

Please sign in to comment.