The JMap project name
the project
if missing project name or if project not found
try {
// activate project name="My city"
const project = JMap.Project.activateByName("My city")
console.info(`Project id=${project.id} has been activated.`, project)
} catch (error) {
console.error(`Cannot activate the project : ${error}`)
}
JMap.Project.activateByName
Activate a project on the map, for a given project name.
User session rigths are checked server side and an error is thrown if user doesn't have the access right for the project.