|
12 | 12 | @_spi(Experimental) |
13 | 13 | @_documentation(visibility: public) |
14 | 14 | public struct FeaturesetDescriptor<FeatureType: FeaturesetFeatureType>: Equatable { |
15 | | - private let featuresetId: String? |
16 | | - private let importId: String? |
17 | | - private let layerId: String? |
| 15 | + /// An optional unique identifier for the featureset within the style. |
| 16 | + /// This id is used to reference a specific featureset. |
| 17 | + /// |
| 18 | + /// * Note: If `featuresetId` is provided and valid, it takes precedence over `layerId`, |
| 19 | + /// meaning `layerId` will not be considered even if it has a valid value. |
| 20 | + @_documentation(visibility: public) |
| 21 | + public let featuresetId: String? |
| 22 | + |
| 23 | + /// An optional import id that is required if the featureset is defined within an imported style. |
| 24 | + /// If the featureset belongs to the current style, this field should be set to a null string. |
| 25 | + /// |
| 26 | + /// * Note: `importId` is only applicable when used in conjunction with `featuresetId` |
| 27 | + /// and has no effect when used with `layerId`. |
| 28 | + @_documentation(visibility: public) |
| 29 | + public let importId: String? |
| 30 | + |
| 31 | + /// An optional unique identifier for the layer within the current style. |
| 32 | + /// |
| 33 | + /// * Note: If `featuresetId` is valid, `layerId` will be ignored even if it has a valid value. |
| 34 | + /// Additionally, `importId` does not apply when using `layerId`. |
| 35 | + @_documentation(visibility: public) |
| 36 | + public let layerId: String? |
18 | 37 |
|
19 | 38 | private init(featuresetId: String? = nil, importId: String? = nil, layerId: String? = nil) { |
20 | 39 | self.featuresetId = featuresetId |
|
0 commit comments