geofirestore-js icon indicating copy to clipboard operation
geofirestore-js copied to clipboard

Bug double removed on a marker

Open Johnlike05 opened this issue 2 years ago • 1 comments

[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 Captura de Pantalla 2022-04-11 a la(s) 8 07 57 p  m

thanks for everything, and sorry if i made a mistake posting this, it's my first post

Johnlike05 avatar Apr 12 '22 01:04 Johnlike05

Same problem over here dude :(

Diego-Mike avatar Jun 23 '22 19:06 Diego-Mike