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.

Raw expression support #11158

Closed
Closed

Description

@tobrun

Feedback from a user trying out expressions: It would have been nice being able to use raw expressions as used in the style-spec. This would allow for both using the current DSL approach in combination with approach taken in the style-spec.

eg.

iconImage(get("key"))

vs

iconImage("[\"get\", key]")

Activity

  1. added
    Android
    on Feb 9, 2018
  2. added this to the milestone on Feb 9, 2018
  3. jfirebaugh commented on Feb 12, 2018

    @jfirebaugh
    Contributor

    How would you distinguish a literal string value from an expression string?

  4. anandthakker commented on Feb 12, 2018

    @anandthakker
    Contributor

    @tobrun what about adding a raw() function to the DSL?

    iconImage(raw("[\"get\", key]"))
    
  5. modified the milestones: , android-v6.1.0 on Apr 13, 2018
  6. 1ec5 commented on Apr 30, 2018

    @1ec5
    Contributor

    This will significantly reduce the amount of work needed for nitaliano/react-native-mapbox-gl#1047, since the iOS map SDK already has something like this.

    Note that a similar conversion would be needed for filters as well.

    /cc @nitaliano

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

    Android

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions