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.

FocalPoint MyLocationView with padding #8415

Closed

Description

@tobrun

ezgif com-video-to-gif 20

Activity

  1. added
    Android
    on Mar 15, 2017
  2. giperwlad commented on Jul 14, 2017

    @giperwlad

    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

    videotogif_2017 07 14_10 24 06

  3. tobrun commented on Jul 14, 2017

    @tobrun
    MemberAuthor

    @giperwlad that is indeed the same issue, note that we will be deprecating MyLocationView in upcoming releases and will be replacing it with mapbox/mapbox-plugins-android#22. This implementation is build on runtime styling and doesn't have these transfrorm/synchronisation issues.

  4. tobrun commented on Aug 14, 2017

    @tobrun
    MemberAuthor

    MyLocationView is going to be replaced with LocationLayer. Feel free to recreate this ticket in that repo.

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

    Androidbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions