Skip to content

Commit

Permalink
Expose all MapOptions properties (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
evil159 authored Aug 1, 2024
1 parent b89c07d commit 81e47c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Mapbox welcomes participation and contributions from everyone.

* Expose new Standard Satellite style. Add new parameters to the Standard Style.
* Fix bug where updating MapStyle didn't update the configuration properties.
* Expose getters for `MapOptions.orientation`, `MapOptions.constrainMode` and `MapOptions.viewportMode`.

## 11.6.0-beta.1 - 19 July, 2024

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@ extension MapOptions {

/// The map constrain mode. This can be used to limit the map to wrap around
/// the globe horizontally. Default is `.heightOnly`.
var constrainMode: ConstrainMode {
public var constrainMode: ConstrainMode {
return __constrainMode?.intValueAsRawRepresentable() ?? .heightOnly
}

/// The viewport mode. This can be used to flip the vertical orientation of
/// the map as some devices may use inverted orientation.
var viewportMode: ViewportMode? {
public var viewportMode: ViewportMode? {
return __viewportMode?.intValueAsRawRepresentable()
}

/// The orientation of the Map. Default is `.upwards`.
var orientation: NorthOrientation {
public var orientation: NorthOrientation {
return __orientation?.intValueAsRawRepresentable() ?? .upwards
}

Expand Down

0 comments on commit 81e47c7

Please sign in to comment.