Home > @magiclane/maps-sdk > RouteBookmarks > create

RouteBookmarks.create() method

Open or create a bookmarks collection with the provided name.

The factory creates or opens the underlying bookmarks database for the given name and returns a RouteBookmarks instance that operates on that collection.

Signature:

static create(name: string): RouteBookmarks;

Parameters

Parameter

Type

Description

name

string

The name (path) of the bookmarks collection to open or create.

Returns:

RouteBookmarks

A new RouteBookmarks instance.