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.

Remove mgl_ prefix from built-in expression variables #11683

Closed

Description

@1ec5

In #11528 (comment), I suggested prepending an mgl_ prefix to built-in expression variables, that is $mgl_geometryType and $mgl_featureType. However, I didn’t fully consider that $zoomLevel and $heatmapDensity are already unprefixed and probably should remain that way for ergonomic reasons. #11472 introduced an MGL_FUNCTION() syntax, offering a way out in case there do happen to be conflicts with style-defined variables.

We should remove the mgl_ prefix from $mgl_geometryType and $mgl_featureType and also document MGL_FUNCTION('zoom') etc. as alternative syntax for $zoomLevel and the like.

/ref #11010
/cc @fabian-guerra @jmkiley

Activity

  1. added
    iOS
    macOS
    on Apr 14, 2018
  2. added this to the milestone on Apr 14, 2018
  3. fabian-guerra commented on Apr 16, 2018

    @fabian-guerra
    Contributor

    Fixed in #11689

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

    documentationiOSmacOSrefactorruntime styling

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions