Skip to content

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

@ngmiduc

Description

@ngmiduc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions