[6.7.0][HDMap][Overlay] 优化地图marker的处理逻辑;当地图控件从窗口中移除时,断开Java层与Marker之间的引用,规避内存泄露

This commit is contained in:
renwj
2024-10-29 22:29:39 +08:00
parent 3e41bb5fa0
commit 540763df8f
17 changed files with 24 additions and 62 deletions

View File

@@ -458,4 +458,13 @@ internal class MoGoOverlayManagerImpl: IMoGoOverlayManager {
override fun updateAnimPoint(options: Options, mapTag:String) {
mapInstance.getMogoMap(mapTag)?.addAnimPoint(options)
}
override fun clear() {
synchronized(points) {
points.clear()
}
synchronized(lines) {
lines.clear()
}
}
}