Fix the decision statement of adding map marker. (#763)

* Fix the Chinese messy code problem.

* Fix the decision statement of adding map marker.
This commit is contained in:
FpguDhk 2022-05-10 14:15:17 +08:00 committed by GitHub
parent e4df2813f1
commit 06be99fa15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ public class MapMarksManager {
public boolean addMapMark(MapMark mapMark) {
if (mapMarks.size() < mapMarkMaxCount) {
if (!mapMarks.containsKey(mapMark.getPosition())) {
if (!mapMarks.containsKey(getMapMarkKey(mapMark.getPosition()))) {
mapMarks.put(getMapMarkKey(mapMark.getPosition()), mapMark);
return true;
}