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

Google maps clustering don't work in 4.3.1 version #1309

Closed
xdelvalle opened this issue Nov 29, 2022 · 5 comments
Closed

Google maps clustering don't work in 4.3.1 version #1309

xdelvalle opened this issue Nov 29, 2022 · 5 comments

Comments

@xdelvalle
Copy link

xdelvalle commented Nov 29, 2022

Bug Report

Plugin(s)

@capacitor/google-maps

Capacitor Version

Latest Dependencies:

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

Installed Dependencies:

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

Platform(s)

Android

Current Behavior

When enableClustering() is called, the markers are clustered, but when zoom in, is not possible to see individual markers again (always clustered).
Alto, neither works the custom marker icon (iconUrl)

Expected Behavior

When zoom in, the individual markers are displayed.

Code Reproduction

This is a minimal Github project.
https://github.com/xdelvalle/test-maps.git

await this.addCustomMarkers();
await this.map.enableClustering();

  async addCustomMarkers() {
    for (const element of this.elements) {
      const marker: Marker = {
        coordinate: {
          lat: element.latitude,
          lng: element.longitude
        },
        title: element.name,
        snippet: element.name,
        iconUrl: 'assets/icon/markers/marker.png',
      };
      this.markers.push(marker);
    }
    await this.map.addMarkers(this.markers);
  }

Other Technical Details

"@capacitor/android": "^4.5.0",
"@capacitor/app": "^4.1.1",
"@capacitor/core": "^4.5.0",
"@capacitor/geolocation": "^4.1.0",
"@capacitor/google-maps": "4.3.1",
"@capacitor/haptics": "4.1.0",
"@capacitor/ios": "^4.5.0",
"@capacitor/keyboard": "^4.1.0",
"@capacitor/status-bar": "^4.1.0",

Additional Context

@Ionitron
Copy link
Collaborator

This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.

Please see the Contributing Guide for how to create a Code Reproduction.

Thanks!
Ionitron 💙

@xdelvalle
Copy link
Author

Minimal Github project

https://github.com/xdelvalle/test-maps.git

@jcesarmobile jcesarmobile added type: bug A confirmed bug report and removed needs reproduction labels Nov 30, 2022
@jcesarmobile
Copy link
Member

In your sample app, the markers are not getting clustered, but that's an issue too.
If I reload the app then they get clustered and don'g get unclustered if I zoom out.

@jcesarmobile
Copy link
Member

fixed by #1398

@ionitron-bot
Copy link

ionitron-bot bot commented Mar 28, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Mar 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants