Skip to content

Commit

Permalink
Make Featureset Descriptor properties public (#2344)
Browse files Browse the repository at this point in the history
Co-authored-by: Release SDK bot for Maps SDK team <[email protected]>
  • Loading branch information
pjleonard37 and Release SDK bot for Maps SDK team authored Oct 30, 2024
1 parent 5653c42 commit 22ed3eb
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions Sources/MapboxMaps/Interactions/FeaturesetDescriptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,28 @@
@_spi(Experimental)
@_documentation(visibility: public)
public struct FeaturesetDescriptor<FeatureType: FeaturesetFeatureType>: Equatable {
private let featuresetId: String?
private let importId: String?
private let layerId: String?
/// An optional unique identifier for the featureset within the style.
/// This id is used to reference a specific featureset.
///
/// * Note: If `featuresetId` is provided and valid, it takes precedence over `layerId`,
/// meaning `layerId` will not be considered even if it has a valid value.
@_documentation(visibility: public)
public let featuresetId: String?

/// An optional import id that is required if the featureset is defined within an imported style.
/// If the featureset belongs to the current style, this field should be set to a null string.
///
/// * Note: `importId` is only applicable when used in conjunction with `featuresetId`
/// and has no effect when used with `layerId`.
@_documentation(visibility: public)
public let importId: String?

/// An optional unique identifier for the layer within the current style.
///
/// * Note: If `featuresetId` is valid, `layerId` will be ignored even if it has a valid value.
/// Additionally, `importId` does not apply when using `layerId`.
@_documentation(visibility: public)
public let layerId: String?

private init(featuresetId: String? = nil, importId: String? = nil, layerId: String? = nil) {
self.featuresetId = featuresetId
Expand Down

0 comments on commit 22ed3eb

Please sign in to comment.