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: lib/samples/show_device_location_history/README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,15 +10,14 @@ You can track device location history and display it as lines and points on the
10
10
11
11
## How to use the sample
12
12
13
-
Tap 'Start tracking' to start tracking your location, which will appear as points on the map. A line will connect the points for easier visualization. Tap 'Stop tracking' to stop updating the location history. This sample uses a simulated data source to allow the sample to be useful on desktop/non-mobile devices. To track a user's real position, use the `LocationDataSource` instead.
13
+
Tap 'Start Tracking' to start tracking your location, which will appear as points on the map. A line will connect the points for easier visualization. Tap 'Stop Tracking' to stop updating the location history. This sample uses a simulated data source to allow the sample to be useful on desktop/non-mobile devices. To track a user's real position, use the `LocationDataSource` instead.
14
14
15
15
## How it works
16
16
17
-
18
17
1. Create a graphics overlay to show each point and another graphics overlay for displaying the route line.
19
18
2. Create a `SimulatedLocationDataSource` and initialize it with a polyline. Start the `SimulatedLocationDataSource` to begin receiving location updates.
20
19
- NOTE: To track a user's real position, use `LocationDataSource` instead.
21
-
3. Subscribe to the `LocationChanged` event to handle location updates.
20
+
3. Subscribe to the `onLocationChanged` event to handle location updates.
22
21
4. Every time the location updates, store that location, display a point on the map, and recreate the route line.
0 commit comments