MapChart.getSelectedShape

Syntax

getSelectedShape(x: Number, y: Number);

Parameters

x. Point abscissa.

y. Point ordinate.

Description

The getSelectedShape method returns map layer area by coordinates of a point belonging to this area or the most recently hovered over area.

Comments

The method returns a PP.MapShape value.

If values of both parameters are not defined when invoking the method, the method returns the most recently hovered over map area. Otherwise the method returns map layer area by coordinates of a point that belongs to this area.

Example

The example of use is given in the page with description of the MapChart.LastHoveredItem property.

See also:

MapChart