[android] - deselect marker on infowindow click (#7784)

This commit is contained in:
Tobrun
2017-01-19 17:05:27 +01:00
committed by GitHub
parent 99942558b2
commit de3ef6f070

View File

@@ -72,7 +72,7 @@ public class InfoWindow {
if (!handledDefaultClick) {
// default behavior: close it when clicking on the tooltip:
close();
closeInfoWindow();
}
}
}
@@ -93,6 +93,14 @@ public class InfoWindow {
});
}
private void closeInfoWindow() {
MapboxMap mapbox = mapboxMap.get();
Marker marker = boundMarker.get();
if (marker != null && mapbox != null) {
mapbox.deselectMarker(marker);
}
close();
}
/**
* Open the info window at the specified position.