React overlays on google map
So i have this google map with overlays.The positions for overlays are provided by a firebase realtime database.The database works but when it updates new overlays are created instead of moving old ones or deleting them.Maybe you guys can give me a hand.