Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created April 21, 2016 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save here-devblog-gists/7dfb5851538591ec9633283c262497a1 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/7dfb5851538591ec9633283c262497a1 to your computer and use it in GitHub Desktop.
private PositioningManager posManager;
...
private void onMapFragmentInitializationCompleted() {
// retrieve a reference of the map from the map fragment
map = mapFragment.getMap();
// start the position manager
posManager = PositioningManager.getInstance();
PositioningManager.getInstance();
posManager.start(PositioningManager.LocationMethod.GPS_NETWORK);
// Display position indicator
map.getPositionIndicator().setVisible(true);
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment