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 01a33906d3
commit d179b5c7dc

View File

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