geofirestore-js
geofirestore-js copied to clipboard
Bug double removed on a marker
[REQUIRED] Describe your environment
- Operating System version: macOs 11.3.1
- Browser version: Versión 98.0.4758.80
- Firebase library
firebase
and version: "^9.6.1" - GeoFirestore version: "^5.0.0"
[REQUIRED] Describe the problem
Hi guys, first of all, thank you for this amazing package.
The bug is that: I have a collection in a firebase project, which through a cloud function replicates the data to another collection in another project, I have an OnSnapshot pointing to the latter In the Geofirestore query I send the center and the radius that is 1 km, when a document leaves the range it is removed and an event such as "removed" appears, when I put the latitude and longitude again within the range "removed" appears again and its oldIndex is -1 and new index is -1 too, this only happens when the latitude and longitude is within 1 to 2 km, if the outside latitude is greater than 2 km, it works perfectly; I do not know if it is something in my code, but it does not seem to be so, if I change the location again within the range, it appears
Relevant Code
![Captura de Pantalla 2022-04-11 a la(s) 8 04 44 p m](https://user-images.githubusercontent.com/81056824/162858046-114c0988-0cf1-47ee-b050-aa1b4a401eca.png)
![Captura de Pantalla 2022-04-11 a la(s) 8 07 57 p m](https://user-images.githubusercontent.com/81056824/162858297-5070325b-7ba7-4478-8774-b5fb45828680.png)
thanks for everything, and sorry if i made a mistake posting this, it's my first post
Same problem over here dude :(