MapShape.Hover

Syntax

Hover: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The Hover event occurs on hovering over a map area.

Example

To execute the example the HTML page must contain the MapChart component (see Map Layout on HTML Page) named map, XML file that contains map settings, and the Russia.svg topobase.

Add a function executing which adds a handler of the Hover event for the map area with the RU-KHM ID.

function hover() {

                shape = map.getShape("RU-KHM");

                shape.Hover.add(function (sender, args) {

                    shape.draw(new PP.SolidColorBrush({ Color: "Red" }));

                })

            }

            map.Loaded.add(hover);

After executing the example on hovering over Khanty-Mansy Region the map area is highlighted in red.

See also:

MapShape