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

MyLocationView not showing anymore #8806

Closed

Description

@tobrun

MyLocationView implementation has regressed. When adding the implementation below in SimpleMapActivity, the MyLocationView is not showing anymore. Though I'm seeing the location request indicator activating in the notifications bar.

public class SimpleMapActivity extends AppCompatActivity {

  private MapView mapView;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_map_simple);

    mapView = (MapView) findViewById(R.id.mapView);
    mapView.onCreate(savedInstanceState);
    mapView.getMapAsync(new OnMapReadyCallback() {
      @Override
      public void onMapReady(MapboxMap mapboxMap) {
        mapboxMap.setMyLocationEnabled(true);
      }
    });
  }

cc @Guardiola31337

Activity

  1. added
    Android
    on Apr 24, 2017
  2. added this to the android-v5.1.0 milestone on Apr 24, 2017
  3. added
    release blocker
    on Apr 24, 2017
  4. tobrun commented on Apr 25, 2017

    @tobrun
    MemberAuthor

    After testing, I'm seeing it the MyLocationView not showing for User location drawable & User location tint color on Nexus 5 running Android 4.4. Other examples are working as expected.

  5. tobrun commented on Apr 25, 2017

    @tobrun
    MemberAuthor

    Capturing from @Guardiola31337 that these work on a Nexus 5 running Android 6.0

  6. removed
    release blocker
    on Apr 25, 2017
  7. self-assigned this
    on Apr 25, 2017
  8. tobrun commented on Apr 26, 2017

    @tobrun
    MemberAuthor

    The issue seems related to requesting runtime permissions on older devices. This explains why this wasn't reproducible on Android 6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Androidbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions