• JMap.Map.setScaleControlUnits

    Changes the scale control units.

    Parameters

    • units: "imperial" | "metric" | "nautical"

      possible values : "imperial", "metric", or "nautical"

    Returns void

    Example

    // Changes the scale control for imperial units
    JMap.Map.setScaleControlUnits("imperial")