[3.4.0-map-sdk]
This commit is contained in:
@@ -1025,7 +1025,7 @@ class MapController(private var context: Context?, private val mMapView: IMapVie
|
||||
val data = polylineOptions.lonLats
|
||||
var polyline: Polyline? = null
|
||||
try {
|
||||
if (data == null || data.size <= 1) {
|
||||
if (data.size <= 1) {
|
||||
throw RuntimeException("传入的坐标数必须大于1")
|
||||
}
|
||||
val strOptionsJson = JSON.toJSONString(polylineOptions)
|
||||
@@ -1054,7 +1054,7 @@ class MapController(private var context: Context?, private val mMapView: IMapVie
|
||||
val colorSize = colorValues?.size ?: 0
|
||||
var polyline: Polyline? = null
|
||||
try {
|
||||
if (data == null || data.size <= 1) {
|
||||
if (data.size <= 1) {
|
||||
throw RuntimeException("传入的坐标数必须大于1")
|
||||
}
|
||||
if (polylineOptions.getIsGradient() && colorSize > data.size) {
|
||||
@@ -1090,7 +1090,7 @@ class MapController(private var context: Context?, private val mMapView: IMapVie
|
||||
val data = deadZoneOptions.getPosition()
|
||||
var deadZone: DeadZone? = null
|
||||
try {
|
||||
if (data == null || data.size <= 1) {
|
||||
if (data.size <= 1) {
|
||||
throw RuntimeException("传入的坐标数必须大于1")
|
||||
}
|
||||
val strOptionsJson = JSON.toJSONString(deadZoneOptions)
|
||||
|
||||
Reference in New Issue
Block a user