This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Description
Reproduced with the demo sample :
- Add a button on activity_basic_simpe_mapview.xml
<Button
android:id="@+id/simple_map_change_padding"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Change padding" />
- Modify the SimpleMapActivity. At the end of the onCreate, add
findViewById(R.id.simple_map_change_padding).setOnClickListener(v -> {
mapView.getMapAsync(mapboxMap -> {
mapboxMap.setPadding(0, (int) (mapView.getMeasuredHeight() * 0.7), 0, 0);
});
});
-
Launch the sample and open the "Simple map view" activity
-
Zoom a little bit to see New York, and tilt at maximum level
-
Click on the "Change padding" button
Result : The tilt increases a lot, showing very distant tiles. As a result, the map is so slow it is no longer usable
Expected : The tilt should not be changed.
