capacitor-community / google-maps

Capacitor Plugin using native Google Maps SDK for Android and iOS.
https://capacitor-community.github.io/google-maps/
MIT License
152 stars 64 forks source link

Teeny Tiny bug in remove Polygon #230

Open MyTek opened 9 months ago

MyTek commented 9 months ago

Describe the bug Removing a polygon doesnt work on android

To Reproduce

  1. Create a polygon.
  2. Try to remove it with the removePolygon() method.

Expected behavior The polygon should disappear

Additional context This fix is suuuuper minor. Here is the fix below: "^2.0.0-beta.7" @capacitor-community/google-maps/android/src/main/java/com/hemangkumar/capacitorgooglemaps/CustomPolygon.java

Line 111, change this: tag.put("id", this.polygonId);

to: tag.put("polygonId", this.polygonId);

NOTE: I also had a question i wanted to ask one of the devs here. Not sure where i can ask it. I was hoping to get someone to fix another bug and maybe add a disableClustering option. Right now if you select a marker more than once, and its close to another, it cycles through them like its clustered.