ionic-team / capacitor-google-maps

16 stars 24 forks source link

setOnMyLocationClickListener listener does not trigger in iOS #57

Open ari-lindari opened 1 week ago

ari-lindari commented 1 week ago

Bug Report

Plugin(s)

@capacitor/google-maps@5.4.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: 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