• JMap.MapContext.setContextDescription

    Updates a map context description, without changing the map data.

    The map-context description is persisted server-side.

    Parameters

    • contextId: JId

      the JMap map context id

    • description: string

      the new description

    Returns Promise<void>

    Throws

    if context not found, or empty title, or server request error

    Example

    // update the map-context id=3 description
    JMap.MapContext
    .setContextDescription(3, "My new description")
    .then(() => console.info(`Map context id=3 "description" updated`))
    .catch(error => console.error(error))