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

setOnMyLocationClickListener listener does not trigger in iOS #57

Open
ari-lindari opened this issue Nov 19, 2024 · 0 comments
Open

setOnMyLocationClickListener listener does not trigger in iOS #57

ari-lindari opened this issue Nov 19, 2024 · 0 comments
Labels

Comments

@ari-lindari
Copy link

Bug Report

Plugin(s)

@capacitor/[email protected]

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: 5.7.8
  @capacitor/core: 5.7.8
  @capacitor/android: 5.7.8
  @capacitor/ios: 5.7.8

Platform(s)

iOS only

Current Behavior

The listener does not trigger when clicking the my location blue dot.
Console logs do not print.
Does not trigger in iOS.
Works as expected in Android and web.

Expected Behavior

When the my location blue dot is clicked to execute the listener code.

Code Reproduction

console.log('Setting up setOnMyLocationClickListener listener');
await this.newMap.setOnMyLocationClickListener(async (event: any) => {
  console.log('My Location clicked at:', event);
  // Update marker location
  await this.updateMarkerLocation(event.latitude, event.longitude);
});

Other Technical Details

Additional Context

@ionitron-bot ionitron-bot bot added the triage label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant