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
// Optionally add the Kotlin Extensions (KTX) for full Kotlin language support
51
51
// See latest version at https://github.com/googlemaps/android-maps-ktx
@@ -65,6 +65,27 @@ To run the demo app, ensure you've met the requirements above then:
65
65
1. Add a single line to `local.properties` that looks like `MAPS_API_KEY=YOUR_API_KEY`, where `YOUR_API_KEY` is the API key you obtained earlier
66
66
1. Build and run the `debug` variant for the Maps SDK for Android version
67
67
68
+
### Setting up the Map ID
69
+
70
+
Some of the features in the demo app, such as Advanced Markers, require a Map ID. You can learn more about map IDs in the [official documentation](https://developers.google.com/maps/documentation/android-sdk/map-ids/mapid-over). You can set the Map ID in one of the following ways:
71
+
72
+
1.**`secrets.properties`:** Add a line to your `secrets.properties` file with your Map ID:
73
+
```
74
+
MAP_ID=YOUR_MAP_ID
75
+
```
76
+
77
+
2. **`strings.xml`:** Alternatively, you can set the Map ID in the `demo/src/main/res/values/strings.xml` file:
78
+
```xml
79
+
<string name="map_id">YOUR_MAP_ID</string>
80
+
```
81
+
82
+
3. **XML Layout Files:** You can also hardcode the Map ID directly in the XML layout files where a map is defined, by setting the `map:mapId` attribute:
83
+
```xml
84
+
<androidx.fragment.app.FragmentContainerView
85
+
map:mapId="YOUR_MAP_ID"
86
+
/>
87
+
```
88
+
68
89
## Documentation
69
90
70
91
See the [documentation] for a full list of classes and their methods.
@@ -74,6 +95,7 @@ Full guides for using the utilities are published in
74
95
75
96
## Usage
76
97
98
+
<details>
77
99
<summary>Marker utilities</summary>
78
100
79
101
### Marker utilities
@@ -82,7 +104,6 @@ Full guides for using the utilities are published in
0 commit comments