Hide/delete point over Locus API

Tetraowl shared this question 12 months ago
Answered

Is it possible to delete a point, wich is created over the api, later with another api call?

Replies (1)

photo
1

Hello,

such a feature is a little bit on the edge. Currently, API allows to "insert" data into the application, but not directly modify or even delete its data. To be true, I do not like the imagination that any 3rd party add-on will delete my data.

Why do you need this feature? Isn't the solution to display points only as temporary data without direct insert into the database?

Menion

photo
1

Hello,

I want to show temporaly points on the map and later than I want to change informations or set the points to invisible. I dont find any way in the api documentation how to do it.

photo
2

Ah, so we talk about temporary points, not stored in database.

What method are you using? "ActionDisplayPoints.sendPack(Silent)"?

If so, try to send "PackPoints" with the same "name" but empty list lf "points". "Name" is unique identifier and app internally replace visible pack with the new pack. So if new pack will be empty, only existing points will be removed.

Hope this helps, let me know.

Menion

photo
1

This works fine, Thank You! and sorry for the unclear question i didn't know how to describe it good

photo
1

Perfect! No need to say sorry. I should say sorry for unclear documentation for API. Feel free to ask if you find anything unclear or clearly missing!

Menion

photo
Leave a Comment
 
Attach a file