View source: R/osm_delete_note.R
osm_delete_note | R Documentation |
Hide (delete) notes. This request needs to be done as an authenticated user with moderator role.
osm_delete_note(note_id, text)
note_id |
Note ids represented by a numeric or a character vector. |
text |
A non-mandatory comment as text. |
Use osm_reopen_note()
to make the note visible again.
Returns a data frame with the hided map notes (same format as osm_get_notes()
with format = "R"
).
Other edit notes' functions:
osm_close_note()
,
osm_create_comment_note()
,
osm_create_note()
Other functions for moderators:
osm_create_user_block()
,
osm_hide_comment_changeset_discussion()
,
osm_redaction_object()
## Not run:
set_osmapi_connection("testing") # use the testing server
note <- osm_create_note(lat = "40.7327375", lon = "0.1702526", text = "Test note to delete.")
del_note <- osm_delete_note(note_id = note$id, text = "Hide note")
del_note
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.