Skip to content

Commit

Permalink
Expose StyleManager.lightProperty(for:property) also as StyleProperty…
Browse files Browse the repository at this point in the history
…Value (#1947)
  • Loading branch information
maios authored Dec 14, 2023
1 parent d689cf0 commit de35dcb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/MapboxMaps/Style/StyleManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,14 @@ public class StyleManager {
styleManager.getStyleLightProperty(forId: lightId, property: property).value
}

/// Gets the value of a style light property.
///
/// - Parameter light: The unique identifier of the style light in lights list.
/// - Parameter property: The style light property name.
public func lightPropertyValue(for lightId: String, property: String) -> StylePropertyValue {
styleManager.getStyleLightProperty(forId: lightId, property: property)
}

/// Set global directional lightning.
/// - Parameter flatLight: The flat light source.
public func setLights(_ flatLight: FlatLight) throws {
Expand Down

0 comments on commit de35dcb

Please sign in to comment.