-
Notifications
You must be signed in to change notification settings - Fork 476
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
Styling - helper expressions #226
Comments
For the spec, please note the scope of the created identifiers in the Also, is |
If I'm following - are you suggesting that an array can just be implicitly considered a I would not suggest this since it prevents, for example, things like this in the future: "color" : [255, 0, 0, 255] |
Yeah that's what I was suggesting. That's a good future case. |
I think it is fine for the expression to have any name and always have precedence. It can even reference a feature's property within, like |
The concept of variables already exists (https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/Styling#variables) - so I would go with defines. So overall... a variable can reference either a property or a define. |
#226 (comment) - these constraints sound fine to me, make they explicit in the spec. |
Sounds good. |
Initial implementation: #226 |
Before, a style with a conditions list would be able to store a single
expression
to make the style more concise:This idea can be broadened to work for any types of styles. An
expressions
object can exist at the top level of the style for use by any of the styles within:If this seems like a good change, one question I have is whether there needs to be a
conditions
object any more. It could just be:This was implemented in Cesium here CesiumGS/cesium#5232 and I'll have a spec PR in a bit.
The text was updated successfully, but these errors were encountered: