[android] Addresses marker view flat bug

Fixes #5427
This commit is contained in:
Tobrun Van Nuland
2016-06-23 10:18:19 +02:00
committed by Antonio Zugaldia
parent b37de9f8f4
commit 64da7fa684
2 changed files with 6 additions and 2 deletions

View File

@@ -332,6 +332,12 @@ public class MarkerView extends Marker {
@Override
public void setMapboxMap(MapboxMap mapboxMap) {
super.setMapboxMap(mapboxMap);
if(isFlat()) {
// initial tilt value if MapboxMap is started with a tilt attribute
tiltValue = (float) mapboxMap.getCameraPosition().tilt;
}
markerViewManager = mapboxMap.getMarkerViewManager();
}