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

Behavior of Tilt with top padding  #162

@philemonmerlet

Description

@philemonmerlet

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.

device-2020-01-29-120427

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions