Commit d179b5c7 authored by FpguDhk's avatar FpguDhk Committed by GitHub
Browse files

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

* Fix the Chinese messy code problem.

* Fix the decision statement of adding map marker.
parent 01a33906
...@@ -46,7 +46,7 @@ public class MapMarksManager { ...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment