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

MyLocationViewSettings#setPadding example #5977

Closed
zugaldia opened this issue Aug 12, 2016 · 1 comment · Fixed by #6108
Closed

MyLocationViewSettings#setPadding example #5977

zugaldia opened this issue Aug 12, 2016 · 1 comment · Fixed by #6108
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@zugaldia
Copy link
Member

We support setting a padding to the MyLocationView object via MyLocationViewSettings#setPadding (the settings object can be obtained from mapboxMap.getMyLocationViewSettings()). However, we don't have any examples about usage.

It'd be great if we could add an example about this feature to either the TestApp or the DemoApp.

/cc: @cammace @tobrun

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Aug 12, 2016
@cammace cammace self-assigned this Aug 15, 2016
@cammace
Copy link
Contributor

cammace commented Aug 15, 2016

I've been working on this example showing off how to use getMyLocationViewSettings to set the foreground/accuracy tint color and padding but when setting the value for padding, nothing is changing.

This gif uses a marker to show the current user location (without any padding) and then user location view with a padding of 500 and it doesn't seem to behave any different:

ezgif com-video-to-gif 2

tobrun added a commit that referenced this issue Aug 23, 2016
* [android] - don't auto tint drawables + formatting

* [android] - formatting

* [android] #6039 - fixes focal point when padding mylocationview

* [android] #5977 - MyLocationView.setPadding example + formatting Manifest

* [android] - Reset to default configuration, cleanup class
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants