You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Add alternative variable reference syntax for NSExpression #11010
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.
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.
Activity
1ec5 commentedon Apr 14, 2018
As of #11472,
MGL_FUNCTION('var', 'zoom')is available in case the developer needs to refer to a variable namedzoomLevelrather than the actual zoom level.