The function is to select points from the map and store the co-ordinates of the points in the database.
This is normal:
But there are some special cases, I don't know what caused it:
I don't know why this happened, please help me. Thanks.
The code of Screen coordinates converted to GPS coordinates(I use Kotlin):
override fun onSingleTap(v: Float, v1: Float) {
val center = mapView.toMapPoint(v, v1)
}
Then, i use center.x and center.y as lng and lat.
if (lat != 0.0) {
resultBean.setLat(lat);
}
if (lng != 0.0) {
resultBean.setLng(lng);
}
tPoiInfoDao.insert(resultBean);