Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current location button displaying on Android when enableCurrentLocation true #45

Open
DevMattersUK opened this issue Sep 22, 2024 · 0 comments · May be fixed by #46
Open

Current location button displaying on Android when enableCurrentLocation true #45

DevMattersUK opened this issue Sep 22, 2024 · 0 comments · May be fixed by #46
Labels

Comments

@DevMattersUK
Copy link

Bug Report

Plugin(s)

@capacitor/google-maps@6.0.1

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 6.1.2
  @capacitor/core: 6.1.2
  @capacitor/android: 6.1.2
  @capacitor/ios: 6.1.2

Installed Dependencies:

  @capacitor/cli: 6.1.2
  @capacitor/core: 6.1.2
  @capacitor/android: 6.1.2
  @capacitor/ios: 6.1.2

Platform(s)

Android

Current Behavior

Enabling current location on Android also enables the current location button, this does not display on web or iOS and there is no way to disable it.

Expected Behavior

Consistent behaviour between all device types (web/Android/iOS), disabling button or an option to toggle

Code Reproduction

import { GoogleMap } from '@capacitor/google-maps';

const apiKey = 'YOUR_API_KEY_HERE';

const mapRef = document.getElementById('map');

const newMap = await GoogleMap.create({
  id: 'my-map',
  element: mapRef,
  apiKey: apiKey,
  config: {
    center: {
      lat: 33.6,
      lng: -117.9,
    },
    zoom: 7,
  },
});

newMap.enableCurrentLocation(true);

Other Technical Details

Additional Context

@ionitron-bot ionitron-bot bot added the triage label Sep 22, 2024
@DevMattersUK DevMattersUK linked a pull request Sep 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant