MapShape.IsHandCursor

Syntax

IsHandCursor: Boolean;

Description

The IsHandCursor property determines whether to show mouse pointer in the Link Selection mode on hovering over a map layer area.

Comments

Use JSON or the setIsHandCursor method to set the property value and the getIsHandCursor method to get the property value.

If the property is set to True, on hovering over a map layer area the mouse pointer is shown in the Link Selection mode (), if the property is False (default), the pointer is shown in the basic mode ().

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Enable switching to the Link Selection mode for the mouse pointer on hovering over the map layer area with the RU-KYA identifier:

// Define function for refreshing the mouse pointer
var refreshCursor = function (shape) {
    if (shape.getIsHandCursor()) {
        // Link Selection mode
        shape.getDomNode().style.cursor = 'pointer';
    } else {
        // Basic mode of the mouse pointer
        shape.getDomNode().style.cursor = 'default';
    }
};
// Get map layer area with the RU-KYA identifier
var shape = map.getShape("RU-KYA");
// Enable displaying mouse pointer in the Link Selection mode
shape.setIsHandCursor(true);
// Refresh the mouse pointer
this.refreshCursor(shape);

After executing the example on hovering over the map layer area with the RU-KYA identifier the mouse pointer is shown in the Link Selection mode:

See also:

MapShape