feat: 添加当前位置Marker,显示实时设计高度,完善地形图代码
This commit is contained in:
17
android/src/main/java/com/icegps/geotools/ktx/GeoPoint.kt
Normal file
17
android/src/main/java/com/icegps/geotools/ktx/GeoPoint.kt
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.icegps.geotools.ktx
|
||||
|
||||
import com.icegps.shared.model.GeodeticCoordinate
|
||||
|
||||
/**
|
||||
* @author tabidachinokaze
|
||||
* @date 2025/11/27
|
||||
*/
|
||||
fun GeodeticCoordinate.niceStr(): String {
|
||||
return "[$longitude, $latitude, $altitude]".format(this)
|
||||
}
|
||||
|
||||
fun List<GeodeticCoordinate>.niceStr(): String {
|
||||
return joinToString(", ", "[", "]") {
|
||||
it.niceStr()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user