From 75963efd82371f59bd7709479a56b9aea783427a Mon Sep 17 00:00:00 2001 From: lizijie <lzjiiie@163.com> Date: Tue, 08 Feb 2022 16:17:48 +0800 Subject: [PATCH] 热力图接口修改,经纬度集合末尾添加第一个经纬度 --- screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java b/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java index 76ed6f6..c2d9206 100644 --- a/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java +++ b/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java @@ -245,6 +245,9 @@ boundary_point_one.add(Double.parseDouble(boundary_point_one_array[1])); boundary_pointList.add(boundary_point_one); } + if (boundary_pointList.size()>0){ + boundary_pointList.add(boundary_pointList.get(0)); + } bound.add(boundary_pointList); resultMap.put("bound", bound); List centerPoint = new ArrayList(); @@ -418,6 +421,9 @@ boundary_point_one.add(Double.parseDouble(boundary_point_one_array[1])); boundary_pointList.add(boundary_point_one); } + if (boundary_pointList.size()>0){ + boundary_pointList.add(boundary_pointList.get(0)); + } bound.add(boundary_pointList); List centerPoint = new ArrayList(); centerPoint.add(servicesScope.getCenterLongitude()); -- Gitblit v1.8.0