UseSelectOnRightClick: Boolean;
The UseSelectOnRightClick property determines whether item can be selected by means of the right mouse button.
The property value can be set from JSON or using the setUseSelectOnRightClick method.
The property is set to True if the item can be selected by means of the right mouse button, otherwise the value is False.
To execute the example, the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Handle the ItemSelecting event displaying to the browser console identifier of being selected map layer area:
// Enable selecting of map layer area by means of the right mouse button map.setUseSelectOnRightClick(true); // Handle the ItemSelecting event map.ItemSelecting.add(function (sender, args) { console.log("Selected area identifier: " + args.ItemId); });
Then select a region on the map of Russia by means of the right mouse button: Administrative Territory Krasnoyarsk. After that the browser console displays identifier of the selected map layer area:
Identifier of the area to select: RU-KYA
See also: