Skip to content

Localization should also change function textfields. #301

Closed

Description

@cammace

Originally from @1ec5

As tail work, consider making this plugin also affect layers whose text-field property is set to a function. In the Mapbox Streets style, for example, U.S. state labels are a function with stops for either {name_en} or {abbr} based on the zoom level.

Without accounting for functions, there will be some inconsistency in state and country labels at low zoom levels. However, expressions will be available in the next release, so it might not be worth spending much effort accommodating functions in the meantime.

Activity

  1. 1ec5 commented on Feb 24, 2018

    @1ec5
    Contributor

    This is equivalent to mapbox/mapbox-gl-native#9902 for iOS and macOS.

  2. 1ec5 commented on Mar 19, 2018

    @1ec5
    Contributor

    However, expressions will be available in the next release, so it might not be worth spending much effort accommodating functions in the meantime.

    Closing in favor of #374, which is about supporting expressions instead of style functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions