MapChart.getToolTipArea

Syntax

getToolTipArea() : PP.Rect;

Description

The getToolTipArea method returns an area available to display tooltips.

Comments

The method returns a value with PP.Rect type.

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Display to the console coordinates of the area available for the tooltip showing:

// Get area
area = map.getToolTipArea();
// Output area length and width to the console
console.debug("Height: " + area.getHeight() + "\n" + "Width: " + area.getWidth());
// -> Height: 432
// -> Width: 800

As a result of executing the example, the browser console displays width and height of the area available to display tooltips.

See also:

MapChart