You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[maps-android] MAPSAND-2520 Create new LineCutoutExample in Compose (#15529)
Task: MAPSAND-2520
Similar iOS task: MAPSIOS-2096 was implemented in this PR:
mapbox/mapbox-sdk#15455
## Why is this PR needed?
The line cutout API (`lineCutoutOpacity`, `lineCutoutFadeWidth`) has no
dedicated example.
This PR adds one to the Experimental APIs section so developers can see
how to use it.
### Demo Video 📺
https://github.com/user-attachments/assets/18674a53-94f5-4e59-ab8c-1efa678e53c4
### Demo Comparison 🖼️
#### iOS VS Android
<img width="777" height="863" alt="Demo iOS:Android"
src="https://github.com/user-attachments/assets/93016e63-47ba-475a-89af-5f73657cccf9"
/>
## What changed?
- Added `LineCutoutActivity.kt` in `examples/experimental/` - new
Compose example showing a route line from BMW Headquarters through
Olympiapark in Munich.
- Two sliders let you interact with `lineCutoutOpacity` and
`lineCutoutFadeWidth` in real time.
- Registered `LineCutoutActivity` in `AndroidManifest.xml`.
- Logo and attribution ornaments are pushed above the controls panel
using `contentPadding` offset.
- Controls panel respects navigation bar insets via
`navigationBarsPadding()`.
cc @mapbox/maps-android
GitOrigin-RevId: 6efb7f4d74a578ca6a55b9a251bc53fd30f474d9
Copy file name to clipboardExpand all lines: compose-app/src/main/res/values/example_descriptions.xml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@
41
41
<stringname="description_3d_model_feature_state_interactions">Use a style-driven method for overriding the materials and orientation of model parts using the model layer and model-source.</string>
42
42
<stringname="description_animated_3d_model">Animate a 3D airplane model along a flight path with animated propellers, landing gear, and lights using feature state.</string>
43
43
<stringname="description_accessibility_scale">Automatic map symbol scaling based on system font size preferences</string>
44
+
<stringname="description_line_cutout">Make route lines visible through 3D buildings using the line cutout API.</string>
44
45
<stringname="description_edge_to_edge">Showcase edge-to-edge layout using Jetpack Compose with proper handling of system insets (system bars, navigation bars, and display cutouts).</string>
45
46
<stringname="description_lazy_column_map">Showcase MapboxMap inside a LazyColumn with correct scroll lifecycle management.</string>
46
47
<stringname="description_fling_mode">Toggle native OverScroller fling deceleration and scroll mode via GesturesSettings.</string>
0 commit comments