• JMap.Application.Print.setOrientation

    Sets the print layout orientation as portrait or landscape.

    Parameters

    • isPortrait: boolean

      true to display as portrait, false as landscape

    Returns void

    Throws

    if isPortrait is not a boolean

    Example

    // set the layout as portrait
    JMap.Application.Print.setOrientation(true)

    // set the layout as landscape
    JMap.Application.Print.setOrientation(false)