DEV Community

Hidenori FUJIMURA
Hidenori FUJIMURA

Posted on

3 2

What I learned from GSI Maps Vector style.json

Here are quick notes from what I learned from GSI Maps Vector style.json.

Sources

Fonts used

NotoSansCJKjp-Regular. Because they are using a relatively old version of the Mapbox GL JS, the font data are downloaded and then rendered.

Layers

A lot of layers are there.

Style

They are not using modern expressions. With modern expressions, you can rewrite filters like

filter: [
  "all",
  [
    "==",
    "ftCode",
    7541
  ]
]

Enter fullscreen mode Exit fullscreen mode

into

filter: [
  "match",
  [
    "get",
    "ftCode"
  ]
  [
    7541
  ]
  true
  false
]
Enter fullscreen mode Exit fullscreen mode

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)