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

Allow setting user location directly #4908

Closed
mkv123 opened this issue May 1, 2016 · 4 comments
Closed

Allow setting user location directly #4908

mkv123 opened this issue May 1, 2016 · 4 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@mkv123
Copy link

mkv123 commented May 1, 2016

Currently there is no way to set location of the user's position directly without GPS. This is useful for cases where there is an alternative location provider or finer grained control over updates are wanted (#3515, #3629). For most developers this would also make getting nice screenshots from interesting locations easier.

May be related to #4700

@1ec5 1ec5 added the Android Mapbox Maps SDK for Android label May 1, 2016
@LesSvant
Copy link

LesSvant commented May 4, 2016

I have the same request for iOS, see #4185 (and Android later if that project switches over to Mapbox as well)

@tobrun
Copy link
Member

tobrun commented May 4, 2016

Something we have been talking about is allowing developers to provide their own Location provider. We currently use Mapzen LOST in the background but developers should be able to provide their own implementation.

This feature is related to #4331 since that will result in exposing a mapboxMap.setLocationSource(LocationSource source) API. This should provide you with the flexibilty required for your use-case.

For most developers this would also make getting nice screenshots from interesting locations easier.

A workaround for now is to use a location mocking app. We use this internally to simulate driving.

@mkv123
Copy link
Author

mkv123 commented May 27, 2016

#4331 would be great. I'm fine with closing this one in favor of that approach. It would make the decoupling of the location provider from the map view nice and clean.

@tobrun
Copy link
Member

tobrun commented Jun 21, 2016

@mkv123 I'm going to take up your suggestion of closing this in favor of #4331. Thanks again for reaching out!

@tobrun tobrun closed this as completed Jun 21, 2016
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

No branches or pull requests

4 participants