Skip to content

Format properties don't work for symbol layers #71

@kelsey-taylor

Description

@kelsey-taylor

Describe the issue

We used a format expression for a set of styles recently that caused some odd rendering with Maplibre in Chartographer:

Image

The expressions for these look like this:

Image

...but with fields to pull from, so really more like:

[
      "case",
      ["any", 
        ["!", ["has", "name"]],
        ["==", ["get", "name"], ""]
      ],
      ["get", "name:en"],
      ["any", 
        ["!", ["has", "name:en"]],
        ["==", ["get", "name:en"], ""]
      ],
      ["get", "name"],
      [
        "format",
        ["get", "name"],
        "\n",
        ["get", "name:en"],
        {
          "font-scale": 0.8
        },
      ],
    ],

It looks like Chartographer is converting these format expressions into step expressions for some reason. Not sure what's going on there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenablementallows us to something otherwise impossible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions