Example
let newBookmarkId = null
api.bookmarks.add('new bookmark').then(id => newBookmarkId = id)
// or, using async/await
let newBookmarkId = await api.bookmarks.add('new bookmark')
a promise with the new bookmark ID.
Deletes the bookmark specified by the ID
Get the IDs of all bookmarks loaded into the viewer
Get the current number of bookmarks loaded into the viewer
Get the description of the bookmark with this ID.
The description of the specified bookmark, or undefined if id does not match any loaded bookmarks.
Get the name of the bookmark with this ID.
Name of the bookmark, or undefined if a bookmark with this id is not found.
Applies the properties stored in the bookmark to the current viewer session.
Use this method if you update bookmarks external to the viewer (e.g. use the Pointerra REST API to add new Bookmarks to the point cloud). This will refresh the bookmarks from the database into the viewer.
Sets the description for the specified bookmark. Has no effect if the ID does not match any loaded bookmarks.
Sets the display name for the specified bookmark. Has no effect if the ID does not match any loaded bookmarks.
api.bookmarks
Bookmarks are the way to save the state of the viewer session, including both the scene properties and the user interface layout.. Bookmarks are associated with a point cloud and are automatically loaded when a point cloud is loaded into the viewer.
The
bookmarks
namespace is where you interact with bookmarks in the viewer. Most methods and events will require, or return, an ID for each bookmark. The ID is auto-generated when the bookmark is saved to the Pointerra service. It is a unique identifier for a bookmark, and the value can be persisted across sessions.