|
@@ -82,7 +82,6 @@ public class CruiseShipMappingServiceImpl implements ICruiseShipMappingService
|
|
|
}
|
|
|
|
|
|
private List<String> color = Arrays.asList("white", "ivory", "lightyellow", "yellow", "snow", "floralwhite","red","blue","orange","wheat","lightgreen");
|
|
|
-
|
|
|
@Override
|
|
|
public List<Map<String, Object>> getShipRouteData() {
|
|
|
List<Map<String, Object>> combinedData = new ArrayList<>();
|
|
@@ -92,12 +91,14 @@ public class CruiseShipMappingServiceImpl implements ICruiseShipMappingService
|
|
|
Map<String, Object> data = new HashMap<>();
|
|
|
String[] lon = recentLocations.get(i).getLongitude().split(",");
|
|
|
String[] lat = recentLocations.get(i).getLatitude().split(",");
|
|
|
+ List<Map> data1 = new ArrayList<>();
|
|
|
for (int j = 0; j < lon.length; j++) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("lng", lon[j]);
|
|
|
map.put("lat", lat[j]);
|
|
|
- data.put("polylinePath",map);
|
|
|
+ data1.add(map);
|
|
|
}
|
|
|
+ data.put("polylinePath",data1);
|
|
|
data.put("color", color.get(i));
|
|
|
data.put("shipName", recentLocations.get(i).getShipName());
|
|
|
combinedData.add(data);
|