Skip to content

Commit cf63f46

Browse files
committed
Update README.md
1 parent 04c1d67 commit cf63f46

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

README.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Compose Maps Picker: Android Location Picker Library
22

3-
The Maps Picker library is a powerful Android tool that allows users to seamlessly pick their location on a map while providing customization options for map appearance and handling location permissions. This library simplifies the process of obtaining user location and offers numerous features for your Android app.
3+
The Maps Picker library is a powerful Android tool that allows users to seamlessly pick their
4+
location on a map while providing customization options for map appearance and handling location
5+
permissions. This library simplifies the process of obtaining user location and offers numerous
6+
features for your Android app.
47

58
## Screenshot
69

710
![How it looks](screenshots/sample.gif)
811

9-
1012
## Usage
1113

1214
You can refer to the sample under the app, Then navigate to MainActivity.kt.
@@ -30,17 +32,23 @@ You can refer to the sample under the app, Then navigate to MainActivity.kt.
3032
3133
</application>
3234
33-
//Usage of ComposeMapsPicker
34-
ComposeMapsPicker(
35-
moveToMyLocationIconRes = R.drawable.locate_me_icon,
36-
moveToMyLocationIconAlignment = IconAlignment.TOP_RIGHT,
37-
enableMyLocation = true,
38-
enableCompass = true
39-
) { location ->
40-
//location object contains data about selected location
41-
//This got called everytime user selects new location
42-
this@MainActivity.showToast("${location.lng}")
43-
}
35+
//Usage of ComposeMapsPicker
36+
ComposeMapsPicker(
37+
moveToMyLocationIconRes = R.drawable.locate_me_icon,
38+
moveToMyLocationIconAlignment = IconAlignment.TOP_RIGHT,
39+
enableMyLocation = true,
40+
enableCompass = true,
41+
enableAnimations = true,
42+
currentLocationIconTint = Color.Magenta,
43+
getLocationInfo = true,
44+
//Here you can pass any language you want, or use fromCodeToLocationInfoLanguage()
45+
//To select your device language, Please check LocationInfoLanguage to see supported languages
46+
locationInfoLanguage = LocationInfoLanguage.DE
47+
) { location ->
48+
//location object contains data about selected location
49+
//This got called everytime user selects new location
50+
this@MainActivity.showToast(location.getFormattedAddress())
51+
}
4452
4553
4654
```
@@ -72,7 +80,6 @@ Now let's walk through the available customizations:
7280
7381
```
7482

75-
7683
### That's it :).
7784

7885
## Sorry for any bad practices in the code, I will be happy for any suggestions to improve the code, Thank you.

0 commit comments

Comments
 (0)