修改了探路的引用共有类库的方式
This commit is contained in:
@@ -176,7 +176,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener, IMogoOnMessag
|
||||
|
||||
|
||||
// 对指定类型高亮处理
|
||||
public static void highlightedMarker(String typeTag) {
|
||||
public synchronized static void highlightedMarker(String typeTag) {
|
||||
try {
|
||||
Map<String, List<IMogoMarker>> allMarker = MarkerServiceHandler.getMarkerManager().getAllMarkers();
|
||||
for (Map.Entry<String, List<IMogoMarker>> entry : allMarker.entrySet()) {
|
||||
@@ -203,7 +203,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener, IMogoOnMessag
|
||||
*
|
||||
* @param marker 要关闭的Marker
|
||||
*/
|
||||
public void closeMarkerSelect(IMogoMarker marker) {
|
||||
public synchronized void closeMarkerSelect(IMogoMarker marker) {
|
||||
// 将上次选中 Marker 设置为未选中状态
|
||||
if (marker != null) {
|
||||
Logger.i(TAG, "closeMarkerSelect 将出Marker详情关闭:" + marker);
|
||||
@@ -223,7 +223,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener, IMogoOnMessag
|
||||
/**
|
||||
* 绘制Marker
|
||||
*/
|
||||
public void drawMapMarker(MarkerResponse response) {
|
||||
public synchronized void drawMapMarker(MarkerResponse response) {
|
||||
lastMarker = null;
|
||||
|
||||
JSONArray array = new JSONArray();
|
||||
@@ -401,7 +401,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener, IMogoOnMessag
|
||||
/**
|
||||
* 统计埋点
|
||||
*/
|
||||
private static void fillNumberTrackEventBody(JSONArray arr, int type, int size) {
|
||||
private synchronized static void fillNumberTrackEventBody(JSONArray arr, int type, int size) {
|
||||
JSONObject object = new JSONObject();
|
||||
try {
|
||||
object.put("type", type);
|
||||
@@ -419,7 +419,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener, IMogoOnMessag
|
||||
*
|
||||
* @param array 埋点数据
|
||||
*/
|
||||
private static void analyticData(JSONArray array) {
|
||||
private synchronized static void analyticData(JSONArray array) {
|
||||
try {
|
||||
if (array == null || array.length() == 0) {
|
||||
return;
|
||||
@@ -438,7 +438,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener, IMogoOnMessag
|
||||
* @param markerShowEntity marker 绘制数据实体
|
||||
* @return 绘制的Marker
|
||||
*/
|
||||
public IMogoMarker drawMapMarker(MarkerShowEntity markerShowEntity) {
|
||||
public synchronized IMogoMarker drawMapMarker(MarkerShowEntity markerShowEntity) {
|
||||
//Logger.i(TAG, "绘制Marker====drawMapMarker:" + markerShowEntity);
|
||||
try {
|
||||
if (markerShowEntity.getMarkerLocation() != null) {
|
||||
|
||||
Reference in New Issue
Block a user