@@ -46,7 +46,7 @@ example03markers/
4646├── MarkerToolbar.kt # Horizontal toolbar with prev/next navigation buttons
4747├── StatusToolbar.kt # Status overlay showing selection index and camera state
4848├── MarkerData.kt # Marker data class and Bochum POI locations
49- └── Constants .kt # Colors, dimensions, and durations
49+ └── Colors .kt # OSM-inspired colors and shared dimensions
5050```
5151
5252## Code Highlights
@@ -68,8 +68,8 @@ fun MapViewScreen() {
6868 OpenMapView (ctx).apply {
6969 lifecycleOwner.lifecycle.addObserver(this )
7070 setCenter(initialLocation)
71- setZoom(13 .0f )
72- getUiSettings().infoWindowAutoDismiss = 10 .seconds
71+ setZoom(15 .0f )
72+ getUiSettings().infoWindowAutoDismiss = 5 .seconds
7373
7474 setOnMarkerClickListener { marker ->
7575 selectedMarker = marker
@@ -98,7 +98,7 @@ addMarker(
9898 Marker (
9999 position = LatLng (51.4783 , 7.2231 ),
100100 title = " Bochum Hauptbahnhof" ,
101- snippet = " Main railway station " ,
101+ snippet = " Main Railway Station " ,
102102 icon = BitmapDescriptorFactory .defaultMarker(BitmapDescriptorFactory .HUE_RED ),
103103 )
104104)
@@ -116,14 +116,6 @@ addMarker(
116116)
117117```
118118
119- ### OSM-Inspired Colors (Constants.kt)
120-
121- ``` kotlin
122- val OsmParkGreen = Color (0xFFAAD3A2 ) // Navigation buttons (prev/next)
123- val OsmHighwayPink = Color (0xFFE892A2 ) // Info window toggle FAB
124- val OsmWaterBlue = Color (0xFFAAD3DF ) // Reserved for future use
125- ```
126-
127119### Key Concepts
128120
129121- ** Marker** : Data class with position, title, snippet, icon, anchor, and tag
@@ -132,7 +124,6 @@ val OsmWaterBlue = Color(0xFFAAD3DF) // Reserved for future use
132124- ** setOnMarkerClickListener()** : Handle marker click events
133125- ** setOnInfoWindowClickListener()** : Handle info window click events
134126- ** setOnInfoWindowCloseListener()** : Handle info window close events (manual or auto-dismiss)
135- - ** infoWindowAutoDismiss** : Auto-dismiss info windows after a duration
136127
137128## What to Test
138129
@@ -145,19 +136,6 @@ val OsmWaterBlue = Color(0xFFAAD3DF) // Reserved for future use
1451367 . ** Wait 10 seconds** - info window auto-dismisses, status text turns black
1461378 . ** Pan/zoom the map** - markers stay at correct geographic positions
147138
148- ## Marker Locations
149-
150- This example displays 6 markers at notable Bochum landmarks:
151-
152- | Location | Coordinates | Description |
153- | ----------------- | ------------------- | -------------------- |
154- | Hauptbahnhof | 51.4783°N, 7.2231°E | Main railway station |
155- | Ruhr University | 51.4452°N, 7.2622°E | Ruhr-Universitat |
156- | Rathaus | 51.4816°N, 7.2166°E | City Hall |
157- | Bermuda3eck | 51.4807°N, 7.2222°E | Entertainment dist. |
158- | Bergbau-Museum | 51.4892°N, 7.2174°E | Mining Museum |
159- | Starlight Express | 51.4649°N, 7.2043°E | Musical theater |
160-
161139## Custom Marker Icons
162140
163141To use custom marker icons instead of the default teardrop:
@@ -211,4 +189,5 @@ Click detection uses:
211189
212190** Default Center:** Calculated from marker positions (~ 51.47°N, 7.22°E) at zoom 13.0
213191
214- All 6 markers are positioned around Bochum at real landmark locations.
192+ All 8 markers are positioned around Bochum at real landmark locations.
193+
0 commit comments