Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] Fixes disappearing markers when crossing dateline, remove d…
Browse files Browse the repository at this point in the history
…ebug exception catch.

Fixes #5402
  • Loading branch information
tobrun authored and zugaldia committed Jun 27, 2016
1 parent 0d17bb1 commit 3456e08
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1136,13 +1136,13 @@ public List<MarkerView> getMarkerViewsInBounds(@NonNull LatLngBounds bbox) {
for (int i = 0; i < ids.length; i++) {
idsList.add(ids[i]);
}

List<MarkerView> annotations = new ArrayList<>(ids.length);
List<Annotation> annotationList = mMapboxMap.getAnnotations();
int count = annotationList.size();
for (int i = 0; i < count; i++) {
Annotation annotation = annotationList.get(i);
if (annotation instanceof MarkerView && idsList.contains(annotation.getId())) {
if (annotation instanceof MarkerView) {
annotations.add((MarkerView) annotation);
}
}
Expand Down Expand Up @@ -1395,15 +1395,10 @@ public void onSurfaceTextureUpdated(SurfaceTexture surface) {
if (mDestroyed) {
return;
}

mCompassView.update(getDirection());
mMyLocationView.update();
mMapboxMap.getMarkerViewManager().update();

try {
mMapboxMap.getMarkerViewManager().update();
}catch (NullPointerException e){

}
for (InfoWindow infoWindow : mMapboxMap.getInfoWindows()) {
infoWindow.update();
}
Expand Down

0 comments on commit 3456e08

Please sign in to comment.