From 79c32ae41496ffa850cdf0ec01bdc051596a4389 Mon Sep 17 00:00:00 2001 From: Alexander Kulikovskiy Date: Thu, 3 Nov 2022 13:05:11 +0200 Subject: [PATCH] update docs expression and vector source (#1795) --- .../style/expressions/dsl/generated/ExpressionDsl.kt | 2 +- .../extension/style/expressions/generated/Expression.kt | 6 ++---- .../maps/extension/style/sources/generated/VectorSource.kt | 6 ++++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/extension-style/src/main/java/com/mapbox/maps/extension/style/expressions/dsl/generated/ExpressionDsl.kt b/extension-style/src/main/java/com/mapbox/maps/extension/style/expressions/dsl/generated/ExpressionDsl.kt index fa1630b343..bcdc005c88 100644 --- a/extension-style/src/main/java/com/mapbox/maps/extension/style/expressions/dsl/generated/ExpressionDsl.kt +++ b/extension-style/src/main/java/com/mapbox/maps/extension/style/expressions/dsl/generated/ExpressionDsl.kt @@ -192,7 +192,7 @@ fun floor(block: Expression.ExpressionBuilder.() -> Unit) = Expression.floor(blo fun format(block: Expression.FormatBuilder.() -> Unit) = Expression.format(block) /** - * Returns the feature's geometry type: `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`. `Multi*` feature types are only returned in GeoJSON sources. When working with vector tile sources, use the singular forms. + * Returns the feature's geometry type: `Point`, `LineString` or `Polygon`. `Multi*` feature types return the singular forms. */ fun geometryType() = Expression.geometryType() diff --git a/extension-style/src/main/java/com/mapbox/maps/extension/style/expressions/generated/Expression.kt b/extension-style/src/main/java/com/mapbox/maps/extension/style/expressions/generated/Expression.kt index 088bacfda9..08e8d7c4c1 100644 --- a/extension-style/src/main/java/com/mapbox/maps/extension/style/expressions/generated/Expression.kt +++ b/extension-style/src/main/java/com/mapbox/maps/extension/style/expressions/generated/Expression.kt @@ -479,8 +479,7 @@ class Expression : Value { } /** - * Returns the feature's geometry type: `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`. `Multi-` feature types are only - * returned in GeoJSON sources. When working with vector tile sources, use the singular forms. + * Returns the feature's geometry type: `Point`, `LineString` or `Polygon`. `Multi-` feature types return the singular forms. */ fun geometryType() { this@ExpressionBuilder.arguments.add(Expression.geometryType()) @@ -2423,8 +2422,7 @@ class Expression : Value { FormatBuilder().apply(block).build() /** - * Returns the feature's geometry type: `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`. `Multi-` feature types are only - * returned in GeoJSON sources. When working with vector tile sources, use the singular forms. + * Returns the feature's geometry type: `Point`, `LineString` or `Polygon`. `Multi-` feature types return the singular forms. */ @JvmStatic fun geometryType() = ExpressionBuilder("geometry-type").build() diff --git a/extension-style/src/main/java/com/mapbox/maps/extension/style/sources/generated/VectorSource.kt b/extension-style/src/main/java/com/mapbox/maps/extension/style/sources/generated/VectorSource.kt index 2ddeeb6723..3b4e6c72c3 100644 --- a/extension-style/src/main/java/com/mapbox/maps/extension/style/sources/generated/VectorSource.kt +++ b/extension-style/src/main/java/com/mapbox/maps/extension/style/sources/generated/VectorSource.kt @@ -155,7 +155,8 @@ class VectorSource(builder: Builder) : Source(builder.sourceId) { /** * A property to use as a feature id (for feature state). Either a property name, or * an object of the form `{: }`. If specified as a string for a vector tile - * source, the same property is used across all its source layers. + * source, the same property is used across all its source layers. If specified as an object + * only specified source layers will have id overriden, others will fallback to original feature id */ val promoteId: PromoteId? /** @@ -390,7 +391,8 @@ class VectorSource(builder: Builder) : Source(builder.sourceId) { /** * A property to use as a feature id (for feature state). Either a property name, or * an object of the form `{: }`. If specified as a string for a vector tile - * source, the same property is used across all its source layers. + * source, the same property is used across all its source layers. If specified as an object + * only specified source layers will have id overriden, others will fallback to original feature id */ fun promoteId(value: PromoteId) = apply { val propertyValue = PropertyValue("promoteId", value.toValue())