The JMap project id
a promise that is resolved when the project has been loaded successfully
Error missing project id or if project is not found
try {
// refresh project id=2
const project = JMap.Project.refreshById(2)
console.info(`Project id=${project.id} has been refreshed.`, project)
} catch (error) {
console.error(`Cannot refresh the project : ${error}`)
}
JMap.Project.refreshById
Refreshes a project. This will refresh the project information from the server, or add it to the list of projects in NG if not already present, but will not refresh the project's layers if the map is already loaded. This method is reserved for internal usage, you should not need to call it.
User session rigths are checked server side and an error is thrown if user doesn't have the access right for the project.