favll/pogom

map.js - spot removal issue

Opened this issue · 0 comments

Checklist

  • [*] I have read the FAQ
  • [*] I have checked if this issue already exists (both open and closed issues)
  • [*] I am using the most recent version of pogom from the master branch
  • [] If this is an installation issue, I am posting my OS, OS version, python version, pip version
  • I'm posting the complete log
  • [*] I'm using a descriptive title for this issue

I discovered a potential issue when using a custom process to add and remove spots.

I can add a spot like so:
curl --data "lat=$lat&lng=$lon&radius=$radius" https://mystuff.org/location

After a moment a new area pops up on the map. Very cool.

However, when I remove that area:

curl -X DELETE --data "$lat&lng=$lon" https://mystuff.org/location

The command is received, and the spot is removed. But the web interface does not show it's removed, even after a updateScanLocations() executes.