Пример #1
0
  public void findMe() {
    if (mapController.getLocation() != null) {
      addLocationDot();
      if (followMe || !initialRelocateHappened) {
        // TODO find ways to accomplish this without two flags ;(
        mapController.resetMapForUser();
        initialRelocateHappened = true;
        getMap().setMapPosition(getUserLocationPosition());
      }

      updateMap();
    }
  }
Пример #2
0
 public GeoPoint getUserLocationPoint() {
   Location userLocation = mapController.getLocation();
   return new GeoPoint(userLocation.getLatitude(), userLocation.getLongitude());
 }