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
* - If `isDarkMode` is `false`, the normal color scheme (`normalMapColor`) is used.
62
63
* - If the `mapType` is `HYBRID` or `SATELLITE`, the satellite color scheme (`satelliteMapColor`) is used, regardless of the dark mode setting.
63
64
* @param mapColors [W3WMapDefaults.MapColor] Configuration for the map's color such as light, dark and satellite mode will based on mapType and state isDarkMode
64
-
* @param buttonColors [W3WMapButtonsDefault.ButtonColors] Configuration for the button's color which are applied according to the current theme
65
+
* @param locationButtonColor Color settings for the location button (the button to center on the user's current location).
65
66
* @param mapManager The [W3WMapManager] instance that manages the map's mapState and interactions.
66
67
* @param locationSource An optional [W3WLocationSource] used to fetch the user's location.
67
68
* @param content Optional composable content to be displayed on the map.
* - If `isDarkMode` is `false`, the normal color scheme (`normalMapColor`) is used.
185
186
* - If the `mapType` is `HYBRID` or `SATELLITE`, the satellite color scheme (`satelliteMapColor`) is used, regardless of the dark mode setting.
186
187
* @param mapColors [W3WMapDefaults.MapColor] Configuration for the map's color such as light, dark and satellite mode will based on mapType and state isDarkMode
187
-
* @param buttonColors [W3WMapButtonsDefault.ButtonColors] Configuration for the button's color which are applied according to the current theme
188
+
* @param locationButtonColor Color settings for the location button (the button to center on the user's current location).
188
189
* @param mapState The [W3WMapState] object that holds the mapState of the map.
189
190
* @param buttonState The [W3WButtonsState] object that holds the buttonState of the map.
190
191
* @param mapProvider An instance of enum [MapProvider] to define map provide: GoogleMap, MapBox.
* - If `isDarkMode` is `false`, the normal color scheme (`normalMapColor`) is used.
272
273
* - If the `mapType` is `HYBRID` or `SATELLITE`, the satellite color scheme (`satelliteMapColor`) is used, regardless of the dark mode setting.
273
274
* @param mapColors [W3WMapDefaults.MapColors] Configuration for the map's color such as light, dark and satellite mode will based on mapType and state isDarkMode
274
-
* @param buttonColors [W3WMapButtonsDefault.ButtonColors] Configuration for the button's color which are applied according to the current theme
275
+
* @param locationButtonColor Color settings for the location button (the button to center on the user's current location).
275
276
* @param mapState The [W3WMapState] object that holds the mapState of the map.
276
277
* @param buttonState The [W3WButtonsState] object that holds the buttonState of the map.
277
278
* @param mapProvider An instance of enum [MapProvider] to define map provide: GoogleMap, MapBox.
Copy file name to clipboardExpand all lines: lib-compose/src/main/java/com/what3words/components/compose/maps/buttons/MyLocationButton.kt
+13-12Lines changed: 13 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,8 @@ const val VISIBLE_TIME = 2000L
56
56
* @param isButtonEnabled Whether the location button is enabled or not.
57
57
* @param locationStatus The status of the location service.
58
58
* @param unitMetrics The unit of accuracy distance, default is "m".
59
-
* @param buttonConfig The configuration for the button, default is [W3WMapButtonsDefault.defaultLocationButtonConfig].
59
+
* @param layoutConfig Configuration for the button's layout, including positioning, size, and other layout properties. Defaults to [W3WMapButtonsDefault.defaultLocationButtonConfig].
60
+
* @param colors Defines the color scheme of the location button, such as background and icon colors. Defaults to [W3WMapButtonsDefault.defaultLocationButtonColor].
60
61
* @param resourceString The resource string for the button, default is [W3WMapButtonsDefault.defaultResourceString].
61
62
* @param contentDescription The content description for the button, default is [W3WMapButtonsDefault.defaultContentDescription].
62
63
* @param onMyLocationClicked The callback when the button is clicked.
0 commit comments