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

Add a location listener #2549

Closed
ljbade opened this issue Oct 6, 2015 · 3 comments
Closed

Add a location listener #2549

ljbade opened this issue Oct 6, 2015 · 3 comments
Assignees
Labels
Android Mapbox Maps SDK for Android

Comments

@ljbade
Copy link
Contributor

ljbade commented Oct 6, 2015

Currently the app can poll getMyLocation but we should have a location listener.

@ljbade ljbade added the Android Mapbox Maps SDK for Android label Oct 6, 2015
@ljbade ljbade added this to the android-v2.2.0 milestone Oct 6, 2015
@tobrun
Copy link
Member

tobrun commented Oct 12, 2015

I need to this for User tracking sample.

Location is always null in onCreate method.

Location location = mMapView.getMyLocation();
if (location != null) {
    mMapView.setZoomLevel(8);
    mMapView.setCenterCoordinate(new LatLng(location));
}

Required to listen async to location updates.

@ljbade
Copy link
Contributor Author

ljbade commented Oct 12, 2015

@tobrun should be easy to whip up then, move this to 2.1.0?

@ljbade
Copy link
Contributor Author

ljbade commented Oct 20, 2015

@tobrun this will be in my UserLocationView refactor

@ljbade ljbade self-assigned this Oct 22, 2015
ljbade pushed a commit that referenced this issue Oct 22, 2015
Draws animated and synced GPS marker.
Inlcudes direction arrow and accuracy ring.
Fade out the compass after a delay when reset to north.
Lots of other performance and memory improvements.
add OnMyLocationChangeListener
Move FAB with snackbar
Fix getMetersPerPixelAtLatitude
Fix some incorrect annotations
Fixes #2668
Fixes #2411
Fixes #2678
Fixes #2675
Fixes #2566
Fixes #2549
Fixes #2692
Fixes #2572
AndwareSsj pushed a commit to AndwareSsj/mapbox-gl-native that referenced this issue Nov 6, 2015
Draws animated and synced GPS marker.
Inlcudes direction arrow and accuracy ring.
Fade out the compass after a delay when reset to north.
Lots of other performance and memory improvements.
add OnMyLocationChangeListener
Move FAB with snackbar
Fix getMetersPerPixelAtLatitude
Fix some incorrect annotations
Fixes mapbox#2668
Fixes mapbox#2411
Fixes mapbox#2678
Fixes mapbox#2675
Fixes mapbox#2566
Fixes mapbox#2549
Fixes mapbox#2692
Fixes mapbox#2572
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

2 participants