capacitor-community / google-maps

Capacitor Plugin using native Google Maps SDK for Android and iOS.

Home Page:https://capacitor-community.github.io/google-maps/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Teeny Tiny bug in remove Polygon

MyTek opened this issue · comments

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.