getToolTipArea() : PP.Rect;
The getToolTipArea method returns an area available to display tooltips.
The method returns a value with PP.Rect type.
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: