• JMap.Project.loadAllProjectThumbnails

    Load all project thumbnails in the data store.

    Default width is 348 and height 190.

    Image is a base 64 formatted string.

    Parameters

    Returns Promise<void>

    Throws

    if params are not correct

    Example

    // Will load all projects thumbnail images
    JMap.Project
    .loadAllProjectThumbnails({
    width: 200,
    height: 200
    })
    .then(() => console.info("All project images has been loaded"))
    .catch(error => console.error("Cannot load project images"))

    // Then you can get current project thumnail like that
    const thumbnail = JMap.Project.getBase64ImageThumbnail()

    // Or you can get the project id=3 thumbnail like this
    const otherThumbnail = JMap.Project.getById(3).base64ImageThumbnail