| | |
| | | if (highRiskGrid != null) { |
| | | factorValue = highRiskGrid!!.data.getByFactorType(f) |
| | | if (highRiskGrid!!.cell.longitude != null && highRiskGrid!!.cell.latitude != null) { |
| | | Thread.sleep(50) |
| | | Thread.sleep(100) |
| | | val address = AMapService.reGeo(MapUtil.wgs84ToGcj02( |
| | | highRiskGrid!!.cell.longitude.toDouble() |
| | | to highRiskGrid!!.cell.latitude.toDouble() |
| | | )) |
| | | town = address.township + address.street |
| | | town = address.township + address.address |
| | | } |
| | | val polygon = listOf( |
| | | highRiskGrid!!.cell.point1Lon.toDouble() to highRiskGrid!!.cell.point1Lat.toDouble(), |