mapbox-gl-native-android icon indicating copy to clipboard operation
mapbox-gl-native-android copied to clipboard

Format expressions broken in 9.6.0

Open florianPOLARSTEPS opened this issue 5 years ago • 1 comments

I have tried to upgrade to the latest Mapbox Android SDK Version 9.6.0 recently and have noticed that all my format expressions have started to not show anymore on the map.

Tested on: Android 10.0 Xiaomi Mi A2

9.5.0 9 5 0 9.6.0 9 6 0

The relevant information from the style I am using

{
      "id": "polarsteps_guides_city_names_future_timeline",
      "type": "symbol",
      "source": "guides-source",
      "minzoom": 3,
      "filter": [
        "match",
        [
          "get",
          "data_type"
        ],
        [
          "guide"
        ],
        true,
        false
      ],
      "layout": {
        "text-field": [
          "format",
          [
            "to-string",
            [
              "get",
              "name"
            ]
          ],
          {},
          "\n",
          {},
          [
            "to-string",
            [
              "get",
              "tooltip"
            ]
          ],
          {
            "text-font": [
              "literal",
              [
                "Lato Italic",
                "Arial Unicode MS Regular"
              ]
            ],
            "font-scale": 0.9,
            "text-color": [
              "rgba",
              255,
              255,
              255,
              0.9
            ]
          }
        ],
        "text-font": [
          "literal",
          [
            "Lato Bold",
            "Arial Unicode MS Regular"
          ]
        ],
        "text-variable-anchor": [
          "top"
        ],
        "text-radial-offset": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          1,
          0.7,
          6.5,
          1.4
        ],
        "text-size": [
          "interpolate",
          [
            "linear"
          ],
          [
            "zoom"
          ],
          6.5,
          12,
          15,
          18
        ],
        "text-padding": 0
      }

florianPOLARSTEPS avatar Nov 11 '20 18:11 florianPOLARSTEPS

I am still investigating this issue. And it seems that after some amount of zooming out and zooming in, the format expressions appear as expected. I have tried to create a test project but was not able to reproduce it in an isolated environment yet. I believe it could be related to some overlap logic that might have changed?

florianPOLARSTEPS avatar Nov 18 '20 10:11 florianPOLARSTEPS