Skip to content

Add clarifying example for variable substitution in styles #826

@javagl

Description

@javagl

As pointed out in CesiumGS/cesium#12906 :

The substitution of defines that are part of styling definitions involves the insertion of (...) brackets around the substituted value. This is for good reasons, because the value can be an expression, and the brackets are necessary for the expected evaluation order. But it can have confusing effects when the expressions involve (or are) strings.

Details and an example are in CesiumGS/cesium#12906 (comment) . A similar example could be added to the specification, to point out what could otherwise be a confusing behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions