CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 22:12:30 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/googlemaps/android-maps-compose.git
etag: W/"a729586d8118128f337d34c1d8bf5c61"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=FH4OPk1r8ZoMiW90YcQ%2FK2jpxp132d4WwAldTwblA%2FZZ8wfvtPKD0hVx1WSRfYhRCJm0bf0IXUu4EdO1z323BOCHdOrUAWfqvhiG10BId%2Ba0dk%2FCKClJ5A5Xf5r9mBkce54RXvmM5k%2B%2BLBdy5%2BuDzMIRDDZHYcRhzGyDJZeORqTzJbMEm0k3d5ppPnr9YfIFswA7PyTR3Vy1m5315q1CPs7OYzjPPdhtMKyMwtfi41T9TKJGc6JKZ%2F9eIv3f4EVqnx9OdnYN6UJZuQkMOn072Q%3D%3D--eQ91cVhxjuSuU6hz--G8TtYUw6MhdAA0cvKpExDw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1061782425.1753222349; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 22:12:29 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 22:12:29 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 894C:33F9F4:17979F:1FA581:68800CCD
feat: navigation compose and delegation pattern (#670) · googlemaps/android-maps-compose@98fbd39 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: .github/workflows/lint-report.yml
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboardExpand all lines: maps-app/build.gradle.kts
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit 98fbd39
feat: navigation compose and delegation pattern (#670)
* experimenting with navcompose
* feature: creates a delegate that can wrap a MapView.
* feat(navigation-app): Add Navigation support to Maps Compose
Adds support for the Navigation SDK to Maps Compose. It just allows the user to replace a standard MapView with a NavigationView within a GoogleMap composable.
The following changes were made:
Added a new NavigationViewDelegate class to handle the integration between NavigationView and Maps Compose.
Added a new NavigationScreen composable function to display the navigation view.
Added a new MovableMarker composable function to display a draggable marker on the map.
Updated the GoogleMap composable function to support the use of NavigationView.
Added a new NavigationApplication class to initialize the Places SDK.
Added a new ApiKeyProvider class to provide API keys for the Maps and Places SDKs.
Added a new LocationProvider class to provide location data.
Added a new PermissionChecker class to check for location permissions.
Updated the build.gradle.kts files to include the necessary dependencies.
Updated the local.defaults.properties file to include the Places API key.
* feat: Add NavigationViewDelegate
Adds NavigationViewDelegate to support NavigationView in the navigation sample app.
This change allows the navigation sample app to use NavigationView, which provides turn-by-turn navigation functionality.
The NavigationViewDelegate handles the lifecycle and rendering of the NavigationView, ensuring that it is properly integrated into the Jetpack Compose UI.
Uses a MarkerComposable to demonstrate the map really is a composable
* experimenting with navcompose
* feature: creates a delegate that can wrap a MapView.
* feat(navigation-app): Add Navigation support to Maps Compose
Adds support for the Navigation SDK to Maps Compose. It just allows the user to replace a standard MapView with a NavigationView within a GoogleMap composable.
The following changes were made:
Added a new NavigationViewDelegate class to handle the integration between NavigationView and Maps Compose.
Added a new NavigationScreen composable function to display the navigation view.
Added a new MovableMarker composable function to display a draggable marker on the map.
Updated the GoogleMap composable function to support the use of NavigationView.
Added a new NavigationApplication class to initialize the Places SDK.
Added a new ApiKeyProvider class to provide API keys for the Maps and Places SDKs.
Added a new LocationProvider class to provide location data.
Added a new PermissionChecker class to check for location permissions.
Updated the build.gradle.kts files to include the necessary dependencies.
Updated the local.defaults.properties file to include the Places API key.
* feat: Add NavigationViewDelegate
Adds NavigationViewDelegate to support NavigationView in the navigation sample app.
This change allows the navigation sample app to use NavigationView, which provides turn-by-turn navigation functionality.
The NavigationViewDelegate handles the lifecycle and rendering of the NavigationView, ensuring that it is properly integrated into the Jetpack Compose UI.
Uses a MarkerComposable to demonstrate the map really is a composable
* chore: merge agpVersion with apg in the version catalog file
* feat: added LeakCanary, code clean
* feat: added some documentation
* build(deps): Upgrade navigation library to v6.1.0
Updates the navigation library dependency from v6.0.1 to v6.1.0.
This commit also the wording of the comment in `navigation-app/build.gradle.kts` to
clarify the reason for excluding `play-services-maps`.
* feat: renamed app module to maps-app
* feat: updated lint config
---------
Co-authored-by: Enrique López Mañas <eenriquelopez@gmail.com>1 parent 0ecc362 commit 98fbd39Copy full SHA for 98fbd39
File tree
Expand file treeCollapse file tree
95 files changed
+1360
-40
lines changedFilter options
- .github/workflows
- gradle
- maps-app
- src
- androidTest/java/com/google/maps/android/compose
- debug/screenshotTest/reference/com/google/maps/android/compose/ScaleBarTest
- main
- java/com/google/maps/android/compose
- markerexamples
- draggablemarkerscollectionwithpolygon
- markerdragevents
- markerscollection
- syncingdraggablemarkerwithdatamodel
- updatingnodragmarkerwithdatamodel
- theme
- res
- drawable-v24
- drawable
- mipmap-anydpi-v26
- mipmap-hdpi
- mipmap-mdpi
- mipmap-xhdpi
- mipmap-xxhdpi
- mipmap-xxxhdpi
- values
- screenshotTest/java/com/google/maps/android/compose
- maps-compose/src/main/java/com/google/maps/android/compose
- navigation-app
- src
- androidTest/java/com/google/maps/android/compose/navigation
- main
- java/com/google/maps/android/compose/navigation
- components
- repositories
- ui/theme
- res
- drawable
- mipmap-anydpi-v26
- mipmap-hdpi
- mipmap-mdpi
- mipmap-xhdpi
- mipmap-xxhdpi
- mipmap-xxxhdpi
- values
- test/java/com/google/maps/android/compose/navigation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
95 files changed
+1360
-40
lines changed.github/workflows/lint-report.yml
Copy file name to clipboardExpand all lines: .github/workflows/lint-report.yml+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
|
+20-2Lines changed: 20 additions & 2 deletions
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
| 23 | + | |
22 | 24 |
| |
23 | 25 |
| |
24 | 26 |
| |
|
+3-1Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
|
gradle/libs.versions.toml
Copy file name to clipboard+34-7Lines changed: 34 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 |
| - | |
5 | 5 |
| |
| 6 | + | |
| 7 | + | |
6 | 8 |
| |
7 | 9 |
| |
8 | 10 |
| |
9 | 11 |
| |
10 |
| - | |
11 | 12 |
| |
| 13 | + | |
| 14 | + | |
12 | 15 |
| |
13 | 16 |
| |
14 |
| - | |
| 17 | + | |
| 18 | + | |
15 | 19 |
| |
| 20 | + | |
| 21 | + | |
16 | 22 |
| |
17 |
| - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 |
| |
| 27 | + | |
| 28 | + | |
19 | 29 |
| |
20 | 30 |
| |
| 31 | + | |
| 32 | + | |
21 | 33 |
| |
22 | 34 |
| |
23 | 35 |
| |
| |||
27 | 39 |
| |
28 | 40 |
| |
29 | 41 |
| |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
30 | 47 |
| |
31 | 48 |
| |
32 | 49 |
| |
33 | 50 |
| |
34 | 51 |
| |
35 | 52 |
| |
| 53 | + | |
| 54 | + | |
36 | 55 |
| |
37 | 56 |
| |
38 | 57 |
| |
39 | 58 |
| |
40 |
| - | |
41 | 59 |
| |
| 60 | + | |
| 61 | + | |
42 | 62 |
| |
43 | 63 |
| |
44 | 64 |
| |
| 65 | + | |
45 | 66 |
| |
| 67 | + | |
| 68 | + | |
46 | 69 |
| |
| 70 | + | |
47 | 71 |
| |
48 | 72 |
| |
49 |
| - | |
| 73 | + | |
50 | 74 |
| |
51 |
| - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + |
+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
| 11 | + |
app/.gitignore renamed to maps-app/.gitignore
Copy file name to clipboardFile renamed without changes.
app/build.gradle.kts renamed to maps-app/build.gradle.kts
Copy file name to clipboardExpand all lines: maps-app/build.gradle.kts+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
| 69 | + | |
| 70 | + | |
69 | 71 |
| |
70 | 72 |
| |
71 | 73 |
| |
|
app/proguard-rules.pro renamed to maps-app/proguard-rules.pro
Copy file name to clipboardFile renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments