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 {
// activate project id=2
const project = JMap.Project.activateById(2)
console.info(`Project id=${project.id} has been activated.`, project)
} catch (error) {
console.error(`Cannot activate the project : ${error}`)
}
JMap.Project.activateById
Activate a project on the map, for a given project id.
User session rigths are checked server side and an error is thrown if user doesn't have the access right for the project.