Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Ls fixing customize user location example - #321

Merged
langsmith merged 9 commits into
masterfrom
ls-fixing-customize-user-location-example
May 4, 2017
Merged

langsmith merged 9 commits into
masterfrom
ls-fixing-customize-user-location-example

Conversation

@langsmith

Copy link
Copy Markdown
Contributor

Fixes #211

ezgif com-resize

@langsmith
langsmith requested a review from cammace May 2, 2017 21:48
private LocationEngine locationEngine;
private LocationEngineListener locationEngineListener;


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

map.getMyLocationViewSettings().setForegroundTintColor(Color.parseColor("#56B881"));
map.getMyLocationViewSettings().setAccuracyTintColor(Color.parseColor("#FBB03B"));


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

permissionsManager.onRequestPermissionsResult(requestCode, permissions, grantResults);
public void onRequestPermissionsResult(
int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
if (requestCode == PERMISSIONS_LOCATION) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for switching from using the PermissionsManager here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to switch back to using the PermissionsManager amongst my experimenting. Latest commit uses it.


locationEngine.addLocationEngineListener(locationEngineListener);


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

map.setMyLocationEnabled(true);
}


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

@langsmith

Copy link
Copy Markdown
Contributor Author

Requested changes have been fixed @cammace

private MapboxMap map;
private LocationEngine locationEngine;
private LocationEngineListener locationEngineListener;
private static final int PERMISSIONS_LOCATION = 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't look like this constants being used anymore

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@langsmith
langsmith merged commit c29f66d into master May 4, 2017
@langsmith
langsmith deleted the ls-fixing-customize-user-location-example branch May 4, 2017 14:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants