• JMap.Map.setMouseCursor

    Set the map mouse cursor.

    If cursor is an empty string will unset the cursor (the map default cursor will be used).

    Parameters

    • cursor: string

      the mouse cursor

    Returns void

    Throws

    if the map is not ready

    Example

    // set the map mouse cursor as "move"
    JMap.Map.setMouseCursor("move")

    // set the map mouse cursor as "default"
    JMap.Map.setMouseCursor("default")

    // unset map mouse cursor (a hand will be displayed)
    JMap.Map.setMouseCursor("")