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
Copy file name to clipboardExpand all lines: articles/azure-maps/data-driven-style-expressions-web-sdk.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,17 @@ ms.custom: codepen
13
13
14
14
# Data-driven Style Expressions (Web SDK)
15
15
16
-
Expressions enable you to apply business logic to styling options that observe the properties defined in each shape in a data source. Expressions can also be used to filter data in a data source or layer. Expressions can consist of conditional logic, like if-statements, and can also be used to manipulate data with; string, logical and mathematical operators.
16
+
Expressions enable you to apply business logic to styling options that observe the properties defined in each shape in a data source. Expressions can filter data in a data source or a layer. Expressions may consist of conditional logic, like if-statements. And, they can be used to manipulate data using: string operators, logical operators, and mathematical operators.
17
17
18
-
Data-driven styles can reduce the amount of code needed to implement business logic around styling. When used with layers, expressions are evaluated at render time on a separate thread that provides increased performance when compared to evaluating business logic on the UI thread.
18
+
Data-driven styles reduce the amount of code needed to implement business logic around styling. When used with layers, expressions are evaluated at render time on a separate thread. This functionality provides increased performance compared to evaluating business logic on the UI thread.
19
19
20
-
The following video provides an overview of data-driven styling in the Azure Maps Web SDK.
20
+
This video provides an overview of data-driven styling in the Azure Maps Web SDK.
Expressions are represented as JSON arrays. The first element of an expression in the array is a string that specifies the name of the expression operator. For example, "+" or "case". The next elements (if any) are the arguments to the expression. Each argument is either a literal value (a string, number, boolean, or `null`), or another expression array. The following pseudocode defines the basic structure an expression.
26
+
Expressions are represented as JSON arrays. The first element of an expression in the array is a string that specifies the name of the expression operator. For example, "+" or "case". The next elements (if any) are the arguments to the expression. Each argument is either a literal value (a string, number, boolean, or `null`), or another expression array. The following pseudocode defines the basic structure of an expression.
27
27
28
28
```javascript
29
29
[
@@ -34,11 +34,11 @@ Expressions are represented as JSON arrays. The first element of an expression i
34
34
]
35
35
```
36
36
37
-
The Azure Maps Web SDK supports many types of that can be used on their own or in combination with other expressions.
37
+
The Azure Maps Web SDK supports many types of expressions that can be used on their own or in combination with other expressions.
38
38
39
39
| Type of expressions | Description |
40
40
|---------------------|-------------|
41
-
|[Aggregate expression](#aggregate-expression)| An expression that defines a calculate that is processed over a set of data and can be used with the `clusterProperties` option of a `DataSource`. |
41
+
|[Aggregate expression](#aggregate-expression)| An expression that defines a calculation that is processed over a set of data and can be used with the `clusterProperties` option of a `DataSource`. |
42
42
|[Boolean expressions](#boolean-expressions)| Boolean expressions provide a set of boolean operators expressions for evaluating boolean comparisons. |
43
43
|[Color expressions](#color-expressions)| Color expressions make it easier to create and manipulate color values. |
44
44
|[Conditional expressions](#conditional-expressions)| Conditional expressions provide logic operations that are like if-statements. |
@@ -51,7 +51,7 @@ The Azure Maps Web SDK supports many types of that can be used on their own or i
51
51
|[Variable binding expressions](#variable-binding-expressions)| Variable binding expressions let the results of a calculation be stored in a variable and referenced elsewhere in an expression multiple times without having to recalculate the stored value. |
52
52
|[Zoom expression](#zoom-expression)| Retrieves the current zoom level of the map at render time. |
53
53
54
-
All examples in this document will use the following feature to demonstrate different ways in that the different types of expressions can be used.
54
+
All examples in this document will use the following feature to demonstrate different ways in which the different types of expressions can be used.
0 commit comments