JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.76k stars 426 forks source link

MarkerClusterer adds one more number to the marker count #3173

Closed pedrolaxe closed 1 year ago

pedrolaxe commented 1 year ago

MarkerClusterer adds one more number to the marker count

Hi, I implemented the MarkerClusterer in my code and realized that whenever I click on the MarkerClusterer it adds another number to the marker count

Your Environment

os: windows 10 Pro x64 node 14.17.0 react 18.2.0 @react-google-maps/api 2.17.1

How does it behave?

Before Click - Count 4

After Click - Only 3 - Correct

JustFly1984 commented 1 year ago

try use MarkerClustererF instead

Please provide minimal reproduction in codesandbox.io

pedrolaxe commented 1 year ago

I use MarkerClustererF and MarkerF but not fix

I include with

import { GoogleMap, useJsApiLoader, Marker, MarkerF, MarkerClustererF } from '@react-google-maps/api';

pedrolaxe commented 1 year ago

Thanks for support, i found 2 markers in same lat and lng.