[android] #3746 - InfoWindowCloseListener

This commit is contained in:
Tobrun
2016-02-09 09:52:06 +01:00
parent b3f1e2ed2a
commit 61e63b718c
3 changed files with 43 additions and 1 deletions

View File

@@ -58,6 +58,13 @@ public class InfoWindowActivity extends AppCompatActivity {
.snippet("E St NW with 17th St NW")
.position(new LatLng(38.8954236, -77.0394623)));
mapboxMap.setOnInfoWindowCloseListener(new MapboxMap.OnInfoWindowCloseListener() {
@Override
public void onInfoWindowClose(Marker marker) {
Toast.makeText(getApplicationContext(),"OnClose: "+marker.getTitle(),Toast.LENGTH_LONG).show();
}
});
final DecimalFormat formatter = new DecimalFormat("#.#####");
mapboxMap.setOnMapLongClickListener(new MapboxMap.OnMapLongClickListener() {
@Override