Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting expression directly #3

Merged
merged 3 commits into from
May 3, 2024

Conversation

hactar
Copy link
Contributor

@hactar hactar commented Apr 26, 2024

For more advanced use cases, developers may wish to specify NSExpressions directly, for example to show the number of clustered pins in a symbol layer.

This PR allows the setting of NSExpressions directly for advanced use cases, while keeping the convenience of value based modifiers.

This will allow use cases like the one below (separate PR for clustering and text symbol support coming up for Maplibre DSL)

Screenshot 2024-04-25 at 19 09 43

Copy link
Contributor

@ianthetechie ianthetechie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay in getting around to this! I think that this is the best path forward for now.

I actually had considered writing a higher-level DSL for expressions too. It looks like that's going from "nice to have" to "will end up in core" sooner, since there is a move to replace NSExpressions entirely (since they are fairly broken at the moment). See maplibre/maplibre-native#331 for discussion upstream.

@ianthetechie ianthetechie merged commit d52adbc into stadiamaps:main May 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants