• JMap.Project.hasTerrain

    Returns true if a project is loaded and if a terrain is associated with the project, false otherwise

    Returns boolean

    Example

    // get the elevation
    if (JMap.Project.hasTerrain()) {
    console.log("A terrain is associated with this project.")
    }else{
    console.log("there is no project loaded, or no terrain associated with this project.")
    }