Skip to content

Commit 54f0b55

Browse files
author
farah-alyasari
committed
switching branch
1 parent 27ae132 commit 54f0b55

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/azure-maps/data-driven-style-expressions-web-sdk.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ ms.custom: codepen
1313

1414
# Data-driven Style Expressions (Web SDK)
1515

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.
1717

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.
1919

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.
2121

2222
<br/>
2323

2424
<iframe src="https://channel9.msdn.com/Shows/Internet-of-Things-Show/Data-Driven-Styling-with-Azure-Maps/player" width="960" height="540" allowFullScreen frameBorder="0"></iframe>
2525

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 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.
2727

2828
```javascript
2929
[
@@ -34,11 +34,11 @@ Expressions are represented as JSON arrays. The first element of an expression i
3434
]
3535
```
3636

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.
3838

3939
| Type of expressions | Description |
4040
|---------------------|-------------|
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`. |
4242
| [Boolean expressions](#boolean-expressions) | Boolean expressions provide a set of boolean operators expressions for evaluating boolean comparisons. |
4343
| [Color expressions](#color-expressions) | Color expressions make it easier to create and manipulate color values. |
4444
| [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
5151
| [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. |
5252
| [Zoom expression](#zoom-expression) | Retrieves the current zoom level of the map at render time. |
5353

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.
5555

5656
```javascript
5757
{

0 commit comments

Comments
 (0)