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

FocalPoint MyLocationView with padding #8415

Closed
tobrun opened this issue Mar 15, 2017 · 3 comments
Closed

FocalPoint MyLocationView with padding #8415

tobrun opened this issue Mar 15, 2017 · 3 comments
Labels
Android Mapbox Maps SDK for Android bug

Comments

@tobrun
Copy link
Member

tobrun commented Mar 15, 2017

ezgif com-video-to-gif 20

@giperwlad
Copy link

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

@tobrun
Copy link
Member Author

tobrun commented Jul 14, 2017

@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.

@tobrun
Copy link
Member Author

tobrun commented Aug 14, 2017

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

@tobrun tobrun closed this as completed Aug 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android bug
Projects
None yet
Development

No branches or pull requests

2 participants