修改数据上传
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.navinfo.collect.library.map.layers
|
||||
|
||||
import android.graphics.Color
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
import com.navinfo.collect.library.R
|
||||
import com.navinfo.collect.library.data.entity.HadLinkDvoBean
|
||||
import com.navinfo.collect.library.utils.GeometryTools
|
||||
@@ -31,7 +33,7 @@ class OmdbTaskLinkLayer(map: Map, private var style: Style) : VectorLayer(map) {
|
||||
}
|
||||
}
|
||||
|
||||
fun removeLine(linkPid: String):Boolean {
|
||||
fun removeLine(linkPid: String): Boolean {
|
||||
if (lineMap.containsKey(linkPid)) {
|
||||
super.remove(lineMap[linkPid])
|
||||
lineMap.remove(linkPid)
|
||||
@@ -43,6 +45,7 @@ class OmdbTaskLinkLayer(map: Map, private var style: Style) : VectorLayer(map) {
|
||||
super.remove(geometry)
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.O)
|
||||
fun setLineColor(color: Color) {
|
||||
this.style = Style.builder()
|
||||
.fillColor(color.toArgb())
|
||||
@@ -51,4 +54,11 @@ class OmdbTaskLinkLayer(map: Map, private var style: Style) : VectorLayer(map) {
|
||||
.strokeWidth(4f)
|
||||
.fixed(true).build()
|
||||
}
|
||||
|
||||
fun removeAll() {
|
||||
for ((key, value) in lineMap) {
|
||||
super.remove(value)
|
||||
}
|
||||
lineMap.clear()
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@ public class MapLifeNiLocationTileDataSource implements ITileDataSource {
|
||||
list = TraceDataBase.getDatabase(mCon, dbName).getNiLocationDao().findAll();
|
||||
}
|
||||
|
||||
Log.e("qj","query"+(list==null?0:list.size())+"==="+xStart+"==="+xEnd+"==="+yStart+"==="+yEnd);
|
||||
// Log.e("qj","query"+(list==null?0:list.size())+"==="+xStart+"==="+xEnd+"==="+yStart+"==="+yEnd);
|
||||
mThreadLocalDecoders.get().decode(tile, mapDataSink, "MapLifeNiLocationTile", list);
|
||||
|
||||
mapDataSink.completed(QueryResult.SUCCESS);
|
||||
|
||||
Reference in New Issue
Block a user