Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Add alternative variable reference syntax for NSExpression #11010

Closed

Description

@1ec5

The NSExpression-based property value implementation in #10726 uses the $dollar syntax to represent both references to variables and the built-in variables $zoomLevel and $heatmapDensity. (Natively, $dollar syntax is used for references to state that may change from one evaluation context to another.) In the unlikely event that a style needs to refer to a custom zoomLevel or heatmapDensity variable, we should have a fallback syntax, such as a custom variable function.

Activity

  1. added
    iOS
    macOS
    on Jan 24, 2018
  2. 1ec5 commented on Apr 14, 2018

    @1ec5
    ContributorAuthor

    As of #11472, MGL_FUNCTION('var', 'zoom') is available in case the developer needs to refer to a variable named zoomLevel rather than the actual zoom level.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    iOSmacOSruntime styling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions