x1ongzhu 6 years ago
parent
commit
014dec6497
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/izouma/walkchina/service/MapService.java

+ 1 - 1
src/main/java/com/izouma/walkchina/service/MapService.java

@@ -74,7 +74,7 @@ public class MapService {
         southwest.setLongitude(southwest.getLongitude() - dLng);
 
         List<UserMarker> list = userInfoRepository.findInRegion(userId, mapRegion.getSouthwest().getLatitude(), mapRegion.getSouthwest().getLongitude(),
-                                                                mapRegion.getNortheast().getLongitude(), mapRegion.getNortheast().getLongitude(), PageRequest.of(0, 20));
+                                                                mapRegion.getNortheast().getLongitude(), mapRegion.getNortheast().getLongitude(), PageRequest.of(0, 50));
         for (UserMarker userMarker : list) {
             userMarker.setIcon(userMarker.getUserIcon());
             JourneyStage journeyStage = journeyStageRepository.findFirstByUserIdOrderByCreatedAtDesc(userMarker.getUserId()).orElse(null);