Closed tobrun closed 7 years ago
I have a similar problem. When you set padding and change tilt (through gesture or animation) location moves to the wrong position.
Double topPadding = (mapboxMap.getHeight() * 0.80);
mapboxMap.getMyLocationViewSettings().setPadding(0, topPadding.intValue(), 0, 0);
mapboxMap.getUiSettings().setFocalPoint(new PointF(mapView.getWidth() / 2, topPadding.floatValue()));
SDK version 5.1.0-beta.4
@giperwlad that is indeed the same issue, note that we will be deprecating MyLocationView in upcoming releases and will be replacing it with https://github.com/mapbox/mapbox-plugins-android/pull/22. This implementation is build on runtime styling and doesn't have these transfrorm/synchronisation issues.
MyLocationView is going to be replaced with LocationLayer. Feel free to recreate this ticket in that repo.