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
Copy file name to clipboardExpand all lines: examples/Example01Pan/README.md
+64-16Lines changed: 64 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,17 @@
2
2
3
3
[Back to README](../../README.md)
4
4
5
-
This example demonstrates the core functionality of OpenMapView: displaying OpenStreetMap tiles and responding to touch pan gestures.
5
+
This example demonstrates the core functionality of OpenMapView: displaying OpenStreetMap tiles, responding to touch pan gestures, and using camera controls with status display.
6
6
7
7
## Features Demonstrated
8
8
9
9
- Map tile rendering from OpenStreetMap
10
10
- Touch pan/drag gestures
11
-
- Smooth real-time map updates
12
-
- Basic OpenMapView setup
11
+
- Arrow button toolbar for programmatic panning
12
+
- Preset location buttons with animated camera moves
13
+
- Camera bounds constraints with visual polyline indicator
14
+
- Real-time camera state and position display
15
+
- Colored markers at preset locations
13
16
14
17
## Screenshot
15
18
@@ -34,38 +37,83 @@ This example demonstrates the core functionality of OpenMapView: displaying Open
34
37
adb shell am start -n de.afarber.openmapview.example01pan/.MainActivity
35
38
```
36
39
40
+
## Project Structure
41
+
42
+
```
43
+
example01pan/
44
+
├── MainActivity.kt # Main activity and MapViewScreen composable
45
+
├── ArrowToolbar.kt # Horizontal toolbar with pan arrow buttons
46
+
├── LocationToolbar.kt # Vertical toolbar with preset location buttons
47
+
├── ControlToolbar.kt # Vertical toolbar with bounds/reset controls
48
+
├── StatusToolbar.kt # Status overlay showing camera state
49
+
└── Colors.kt # OSM-inspired colors and shared dimensions
0 commit comments