Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

スタイルによる北方領土のロシア語削除 #57

Open
takamotobiz opened this issue Apr 20, 2021 · 2 comments
Open

スタイルによる北方領土のロシア語削除 #57

takamotobiz opened this issue Apr 20, 2021 · 2 comments

Comments

@takamotobiz
Copy link
Contributor

とりあえず、nameとname_enが不一致だったら非表示とすればよさそう。
image
image
image

@kamataryo
Copy link
Contributor

kamataryo commented Apr 21, 2021

例えば place レイヤで namename:en が違う時に表示しない方法:

    {
      "id": "place-town",
      "type": "symbol",
      "source": "geolonia",
      "source-layer": "place",
      "filter": [
        "all",
        [
          "==",
          "class",
          "town"
        ],
        [
          "==",
          "name",
          "name:en"
        ]
      ],
      "layout": {
        "text-font": [
          "Noto Sans Regular"
        ],
        "text-size": 14,
        "text-field": "{name}",
        "text-max-width": 8,
        "visibility": "visible"
      },
      "paint": {
        "text-color": "rgba(102, 102, 102, 1)",
        "text-halo-width": 1.2,
        "text-halo-color": "rgba(255,255,255,0.8)"
      }
    },

filter プロパティで制御できます。

@takamotobiz
Copy link
Contributor Author

ありがとうございます。
試してみます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants