Skip to content

Commit

Permalink
Nearby pins now load starting from the center
Browse files Browse the repository at this point in the history
  • Loading branch information
savsch committed Dec 20, 2024
1 parent e70db14 commit 7a633ef
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1386,8 +1386,7 @@ private void populatePlacesForCurrentLocation(
setProgressBarVisibility(false);
presenter.lockUnlockNearby(false);
} else {
updateMapMarkers(nearbyPlacesInfo.placeList, nearbyPlacesInfo.currentLatLng,
true);
updateMapMarkers(nearbyPlacesInfo.placeList, searchLatLng, true);
lastFocusLocation = searchLatLng;
lastMapFocus = new GeoPoint(searchLatLng.getLatitude(),
searchLatLng.getLongitude());
Expand Down Expand Up @@ -1430,8 +1429,7 @@ private void populatePlacesForAnotherLocation(

// curLatLng is used to calculate distance from the current location to the place
// and distance is later on populated to the place
updateMapMarkers(nearbyPlacesInfo.placeList, nearbyPlacesInfo.currentLatLng,
false);
updateMapMarkers(nearbyPlacesInfo.placeList, searchLatLng, false);
lastMapFocus = new GeoPoint(searchLatLng.getLatitude(),
searchLatLng.getLongitude());
stopQuery();
Expand Down

0 comments on commit 7a633ef

Please sign in to comment.