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

MyLocationTracking.TRACKING_FOLLOW does not cope well with map.setPadding #6768

Closed

Description

@eddieux

Doing map.setPadding while on user tracking mode (MyLocationTracking.TRACKING_FOLLOW) pushed the user dot away from the correct location.

Platform:
Android

Mapbox SDK version:
4.2.0-beta3

Steps to trigger behavior

Reproducible in the Mapbox Dev Preview app, try setting some map padding e.g. map.setPadding(0, 0, 0, 400) after the enableLocationTracking() method call.

Expected behavior

User dot stays in the correct location.

Actual behavior

User dot pushed away to map center, which IMO is wrong.

Activity

  1. added
    Android
    on Oct 20, 2016
  2. tobrun commented on Oct 20, 2016

    @tobrun
    Member

    Would you be able to retest with latest snapshot?
    We have fixed some bugs related to MyLocationView since beta.3.

    I tested MapPaddingActivity from master and added:

    MyLocationViewSettings myLocationViewSettings = mapboxMap.getMyLocationViewSettings();
    myLocationViewSettings.setPadding(0,250,0,0);

    device-2016-10-20-124812

    Closing as resolved, feel free to comment if there is still an issue with the snapshot.
    Thank you for reaching out and reporting your issue!

  3. eddieux commented on Oct 20, 2016

    @eddieux
    Author

    Thx for the quick reply. I just ran the demo app against the snapshot (com.mapbox.mapboxsdk:mapbox-android-sdk:4.2.0-SNAPSHOT), issue is unfortunately still there.

  4. reopened this on Oct 20, 2016
  5. tobrun commented on Jan 24, 2017

    @tobrun
    Member

    Haven't been able to reproduce this issue locally. Feel free to add more information if still reproducible from your end. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Android

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions