capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

[google-maps] marker click is changing the camera on IOS and Android devices

Open ngmiduc opened this issue 2 years ago • 0 comments

Bug Report

Plugin(s)

"@capacitor/google-maps": "^5.3.3"

Capacitor Version

Latest Dependencies:

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

Installed Dependencies:

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

Platform(s)

IOS, Android

Current Behavior

When a marker is clicked on the web, nothing will happen. But when the marker is clicked on an IOS or Android device, the camera of the google map changes. It will center the marker.

Expected Behavior

No camera change should happen

Code Reproduction

https://stackblitz.com/edit/angular-yz24zb-kffbvw?file=src%2Fapp%2Fexample.component.ts

  1. add API KEY to componentn: const apiKey = 'xxx';
  2. build app to IOS or android
  3. run on real device
  4. click on marker

Other Technical Details

Reproduction code can be downloaded from stackblitz

ngmiduc avatar Jan 22 '24 13:01 ngmiduc