Page MenuHomeGitPull.it

Add user position to the map!
ClosedPublic

Authored by fabio.mazza on Jul 12 2020, 19:27.
Referenced Files
Unknown Object (File)
Wed, Mar 20, 02:37
Unknown Object (File)
Wed, Mar 20, 02:37
Unknown Object (File)
Wed, Mar 20, 02:30
Unknown Object (File)
Wed, Mar 20, 02:26
Unknown Object (File)
Feb 23 2024, 23:46
Unknown Object (File)
Feb 17 2024, 21:25
Unknown Object (File)
Feb 17 2024, 21:25
Unknown Object (File)
Feb 17 2024, 21:25

Details

Summary

Add user position to the map:

  • I have used a FolderOverlay, which groups together all the stops Markers, so that only them get thrown away at each load, and the user position stays. It would be much better to just load them all on the map, but that probably takes too much memory.... Or well, manually decide which markers to throw away and which markers to create when the user moves the map around (which might be a LOT better for the performance)
  • Use app context for the AppLocationManager, so to avoid memory leaks
Test Plan

check if builds correctly

Diff Detail

Repository
R4 Libre BusTO
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 100
Build 144: BusTO Build Plan
Build 143: arc lint + arc unit

Event Timeline

Restricted Application added a reviewer: valerio.bozzolan. · View Herald Transcript
Restricted Application added subscribers: Libre BusTO , valerio.bozzolan. · View Herald Transcript
fabio.mazza edited the summary of this revision. (Show Details)

Just a question. Why every damn default feature introduced in OSMDroid must look like Android 3?

Anyway, good job man.

photo_2020-07-13_22-33-01.jpg (1×720 px, 91 KB)

This revision is now accepted and ready to land.Jul 13 2020, 22:39
This revision was automatically updated to reflect the committed changes.