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
[geographic information system (GIS)]: https://www.usgs.gov/faqs/what-geographic-information-system-gis
198
-
[datasets]: creator-indoor-maps.md#datasets
199
197
[dataset]: creator-indoor-maps.md#datasets
198
+
[datasets]: creator-indoor-maps.md#datasets
199
+
[Digitizing an existing layer]: https://docs.qgis.org/3.28/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html?highlight=digitizing%20toolbar#digitizing-an-existing-layer
[geographic information system (GIS)]: https://www.usgs.gov/faqs/what-geographic-information-system-gis
204
202
[Installing New Plugins]: https://docs.qgis.org/3.28/en/docs/training_manual/qgis_plugins/fetching_plugins.html#basic-fa-installing-new-plugins
205
-
[Digitizing an existing layer]: https://docs.qgis.org/3.28/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html?highlight=digitizing%20toolbar#digitizing-an-existing-layer
Copy file name to clipboardExpand all lines: articles/azure-maps/data-driven-style-expressions-android-sdk.md
+45-22Lines changed: 45 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,22 +17,22 @@ Expressions enable you to apply business logic to styling options that observe t
17
17
18
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 Azure Maps Android SDK supports nearly all the same style expressions as the Azure Maps Web SDK, so all the same concepts outlined in the [Data-driven Style Expressions (Web SDK)](data-driven-style-expressions-web-sdk.md) can be carried over into an Android app. All style expressions in the Azure Maps Android SDK are available under the `com.microsoft.azure.maps.mapcontrol.options.Expression` namespace. There are many different types of style expressions.
20
+
The Azure Maps Android SDK supports nearly all the same style expressions as the Azure Maps Web SDK, so all the same concepts outlined in the [Data-driven Style Expressions (Web SDK)] can be carried over into an Android app. All style expressions in the Azure Maps Android SDK are available under the `com.microsoft.azure.maps.mapcontrol.options.Expression` namespace. There are many different types of style expressions.
21
21
22
22
| Type of expressions | Description |
23
23
|---------------------|-------------|
24
-
|[Boolean expressions](#boolean-expressions)| Boolean expressions provide a set of boolean operators expressions for evaluating boolean comparisons. |
25
-
|[Color expressions](#color-expressions)| Color expressions make it easier to create and manipulate color values. |
26
-
|[Conditional expressions](#conditional-expressions)| Conditional expressions provide logic operations that are like if-statements. |
27
-
|[Data expressions](#data-expressions)| Provides access to the property data in a feature. |
28
-
|[Interpolate and Step expressions](#interpolate-and-step-expressions)| Interpolate and step expressions can be used to calculate values along an interpolated curve or step function. |
29
-
|[JSON-based expressions](#json-based-expressions)| Makes it easy to reuse style raw JSON-based expressions created for the Web SDK with the Android SDK. |
30
-
|[Layer specific expressions](#layer-specific-expressions)| Special expressions that are only applicable to a single layer. |
31
-
|[Math expressions](#math-expressions)| Provides mathematical operators to perform data-driven calculations within the expression framework. |
32
-
|[String operator expressions](#string-operator-expressions)| String operator expressions perform conversion operations on strings such as concatenating and converting the case. |
33
-
|[Type expressions](#type-expressions)| Type expressions provide tools for testing and converting different data types like strings, numbers, and boolean values. |
34
-
|[Variable binding expressions](#variable-binding-expressions)| Variable binding expressions store the results of a calculation in a variable and referenced elsewhere in an expression multiple times without having to recalculate the stored value. |
35
-
|[Zoom expression](#zoom-expression)| Retrieves the current zoom level of the map at render time. |
24
+
|[Boolean expressions]| Boolean expressions provide a set of boolean operators expressions for evaluating boolean comparisons. |
25
+
|[Color expressions]| Color expressions make it easier to create and manipulate color values. |
26
+
|[Conditional expressions]| Conditional expressions provide logic operations that are like if-statements. |
27
+
|[Data expressions]| Provides access to the property data in a feature. |
28
+
|[Interpolate and Step expressions]| Interpolate and step expressions can be used to calculate values along an interpolated curve or step function. |
29
+
|[JSON-based expressions]| Makes it easy to reuse style raw JSON-based expressions created for the Web SDK with the Android SDK. |
30
+
|[Layer specific expressions]| Special expressions that are only applicable to a single layer. |
31
+
|[Math expressions]| Provides mathematical operators to perform data-driven calculations within the expression framework. |
32
+
|[String operator expressions]| String operator expressions perform conversion operations on strings such as concatenating and converting the case. |
33
+
|[Type expressions]| Type expressions provide tools for testing and converting different data types like strings, numbers, and boolean values. |
34
+
|[Variable binding expressions]| Variable binding expressions store the results of a calculation in a variable and referenced elsewhere in an expression multiple times without having to recalculate the stored value. |
35
+
|[Zoom expression]| Retrieves the current zoom level of the map at render time. |
36
36
37
37
> [!NOTE]
38
38
> The syntax for expressions is largely identical in Java and Kotlin. If you have the documentation set to Kotlin, but see code blocks for Java, the code is identical in both languages.
@@ -873,7 +873,7 @@ There are three types of interpolation methods that can be used in an `interpola
873
873
|------|-------------|
874
874
|`linear()`| Interpolates linearly between the pair of stops. |
875
875
|`exponential(number)`\|`exponential(Expression)`| Interpolates exponentially between the stops. A "base" is specified and controls the rate at which the output increases. Higher values make the output increase more towards the high end of the range. A "base" value close to 1 produces an output that increases more linearly.|
876
-
|`cubicBezier(number x1, number y1, number x2, number y2)`\|`cubicBezier(Expression x1, Expression y1, Expression x2, Expression y2)`| Interpolates using a [cubic Bezier curve](https://developer.mozilla.org/docs/Web/CSS/timing-function) defined by the given control points. |
876
+
|`cubicBezier(number x1, number y1, number x2, number y2)`\|`cubicBezier(Expression x1, Expression y1, Expression x2, Expression y2)`| Interpolates using a [cubic Bezier curve] defined by the given control points. |
877
877
878
878
The `stop` expression has the format `stop(stop, value)`.
879
879
@@ -931,7 +931,7 @@ The following image demonstrates how the colors are chosen for the above express
931
931
932
932
### Step expression
933
933
934
-
A `step` expression can be used to calculate discrete, stepped result values by evaluating a [piecewise-constant function](https://mathworld.wolfram.com/PiecewiseConstantFunction.html) defined by stops.
934
+
A `step` expression can be used to calculate discrete, stepped result values by evaluating a [piecewise-constant function] defined by stops.
935
935
936
936
The `interpolate` expression has the following formats:
937
937
@@ -1094,7 +1094,7 @@ val layer = HeatMapLayer(source,
1094
1094
1095
1095
::: zone-end
1096
1096
1097
-
For more information, see the [Add a heat map layer](map-add-heat-map-layer-android.md) documentation.
1097
+
For more information, see the [Add a heat map layer] documentation.
1098
1098
1099
1099
### Line progress expression
1100
1100
@@ -1149,7 +1149,7 @@ val layer = LineLayer(source,
1149
1149
1150
1150
::: zone-end
1151
1151
1152
-
[See live example](map-add-line-layer.md#line-stroke-gradient)
1152
+
[See live example]
1153
1153
1154
1154
### Text field format expression
1155
1155
@@ -1349,16 +1349,39 @@ val layer = BubbleLayer(source,
1349
1349
Learn more about the layers that support expressions:
1350
1350
1351
1351
> [!div class="nextstepaction"]
1352
-
> [Add a symbol layer](how-to-add-symbol-to-android-map.md)
1352
+
> [Add a symbol layer]
1353
1353
1354
1354
> [!div class="nextstepaction"]
1355
-
> [Add a bubble layer](map-add-bubble-layer-android.md)
1355
+
> [Add a bubble layer]
1356
1356
1357
1357
> [!div class="nextstepaction"]
1358
-
> [Add a line layer](android-map-add-line-layer.md)
1358
+
> [Add a line layer]
1359
1359
1360
1360
> [!div class="nextstepaction"]
1361
-
> [Add a polygon layer](how-to-add-shapes-to-android-map.md)
1361
+
> [Add a polygon layer]
1362
1362
1363
1363
> [!div class="nextstepaction"]
1364
-
> [Add a heat map](map-add-heat-map-layer-android.md)
1364
+
> [Add a heat map]
1365
+
1366
+
[Add a bubble layer]: map-add-bubble-layer-android.md
1367
+
[Add a heat map layer]: map-add-heat-map-layer-android.md
1368
+
[Add a heat map]: map-add-heat-map-layer-android.md
1369
+
[Add a line layer]: android-map-add-line-layer.md
1370
+
[Add a polygon layer]: how-to-add-shapes-to-android-map.md
1371
+
[Add a symbol layer]: how-to-add-symbol-to-android-map.md
0 commit comments