• JMap.Map.setScaleControlVisibility

    Changes the scale control panel visibility on the map.

    Parameters

    • isVisible: boolean

      true to display the scale control, false to hide

    • Optional position: JMAP_POSITIONS

      the position on the map where to display the scale control.

    Returns void

    Example

    // Displays the scale control on the map
    JMap.Map.setScaleControlVisibility(true)

    // Hides the scale control on the map
    JMap.Map.setScaleControlVisibility(false)