Skip to content

Commit

Permalink
Update Compose Guide. (#1939)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Kulikovskiy <[email protected]>
Co-authored-by: Ramon <[email protected]>
  • Loading branch information
3 people committed Aug 10, 2023
1 parent 4fcd250 commit d18c106
Show file tree
Hide file tree
Showing 3 changed files with 346 additions and 31 deletions.
5 changes: 5 additions & 0 deletions docs/Migrate to v11.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ This document is a guide for migrating from v10 of the Mapbox Maps SDK for Andro
- [LineLayer occlusion visibility](#linelayer-occlusion-visibility)
- [Icon cross-fading for the SymbolLayer](#icon-cross-fading-for-the-symbollayer)
- [ModelLayer](#modellayer)
- [Jetpack Compose Extension](#jetpack-compose-extension)
- [Query Rendered Features and Feature State API improvements](#query-rendered-features-and-feature-state-api-improvements)
- [Camera API improvements](#camera-api-improvements)
- [Style API and expressions improvements](#style-api-and-expressions-improvements)
Expand Down Expand Up @@ -663,6 +664,10 @@ For the FillExtrusionLayer, you have control over various properties, such as am

We've also introduced an experimental `ModelLayer` that allows you to render 3D models on the map. Try it out, and let us know your feedback!

### Jetpack Compose Extension

With Android Maps SDK v11, we also released an optional compose extension, to make it easier to integrate Mapbox Maps to your app using [Jetpack Compose](https://developer.android.com/jetpack/compose). For more details, please check out our [Jetpack Compose Extension Guide](../extension-compose/README.md) and our [compose example application](../compose-app).

### Query Rendered Features and Feature State API improvements

- Added `suspend` variants for the async `MapboxMap` methods: `queryRenderedFeatures`, `querySourceFeatures`, `setFeatureState`, `getFeatureState`, `removeFeatureState`,`resetFeatureStates`,
Expand Down
16 changes: 9 additions & 7 deletions extension-compose/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ Mapbox welcomes participation and contributions from everyone.

# main

* Add `MapboxMap` composable function as the entry point to inject a MapboxMap to the app.
* Add `MapEffect` to expose the raw `MapView` controller, so that user can use it to access the full
# 0.1.0 August 10, 2023
## Features ✨ and improvements 🏁
* Add experimental `MapboxMap` composable function as the entry point to inject a MapboxMap to the app.
* Add experimental `MapEffect` to expose the raw `MapView` controller, so that user can use it to access the full
Maps SDK API surface.
* Add plugin settings classes(i.e. `AttributionSettings`, `CompassSettings`, `GesturesSettings`
* Add experimental plugin settings classes(i.e. `AttributionSettings`, `CompassSettings`, `GesturesSettings`
, `LocationComponentSettings`, `LogoSettings`, `ScaleBarSettings`) as the input state
of `MapboxMap` composable function.
* Add `PointAnnotation`, `CircleAnnotation`, `PolylineAnnotation` and `PolygonAnnotation` composable
* Add experimental `PointAnnotation`, `CircleAnnotation`, `PolylineAnnotation` and `PolygonAnnotation` composable
functions to add an annotation to the map.
* Add `PointAnnotationGroup`, `CircleAnnotationGroup`, `PolylineAnnotationGroup`and
* Add experimental `PointAnnotationGroup`, `CircleAnnotationGroup`, `PolylineAnnotationGroup`and
`PolygonAnnotationGroup` composable functions to add an annotation group to the
map; `PointAnnotationGroup` and `CircleAnnotationGroup` can be clustered based on configuration.
* Add `ViewAnnotation` composable function to add a view annotation to the map.
* Add `MapViewportState` API hat can be hoisted to control and observe the map's camera state.
* Add experimental `ViewAnnotation` composable function to add a view annotation to the map.
* Add experimental `MapViewportState` API hat can be hoisted to control and observe the map's camera state.
Loading

0 comments on commit d18c106

Please sign in to comment.