Skip to content

Commit

Permalink
Fix experimental properties generation, bump style spec (#2399)
Browse files Browse the repository at this point in the history
  • Loading branch information
persidskiy authored Jan 9, 2025
1 parent cfe53d0 commit 09260ff
Show file tree
Hide file tree
Showing 37 changed files with 1,036 additions and 350 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Mapbox welcomes participation and contributions from everyone.

## main

* Mark `SymbolElevationReference`, `FillExtrusionBaseAlignment`, `FillExtrusionHeightAlignment`, `ModelScaleMode`, `ModelType`, `ClipLayerTypes`, `BackgroundPitchAlignment` types as Experimental. Initially they were exposed as stable by mistake. If you use them, please import `MapboxMaps` with `Experimental` SPI:
```
@_spi(Experimental) import MapboxMaps
```

* Localize geofencing attribution dialog.
* Support dictionary expression literals.

Expand Down
2 changes: 2 additions & 0 deletions Sources/MapboxMaps/ContentBuilders/MapContent/Puck3D.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public struct Puck3D: MapContent, PrimitiveMapContent {
}

/// Defines scaling mode. Only applies to location-indicator type layers. Defaults to ``ModelScaleMode/viewport``.
@_documentation(visibility: public)
@_spi(Experimental)
public func modelScaleMode(_ modelScaleMode: ModelScaleMode) -> Puck3D {
copyAssigned(self, \.configuration.modelScaleMode, .constant(modelScaleMode))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
- ``BackgroundPitchAlignment``
- ``FillExtrusionBaseAlignment``
- ``FillExtrusionHeightAlignment``
- ``FillElevationReference``
- ``LineElevationReference``
- ``LineWidthUnit``

<!-- Next two are arguable regarding it's category -->
- ``ImageContent``
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions Sources/MapboxMaps/Style/Generated/Layers/BackgroundLayer.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions Sources/MapboxMaps/Style/Generated/Layers/CircleLayer.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions Sources/MapboxMaps/Style/Generated/Layers/FillExtrusionLayer.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 09260ff

Please sign in to comment.