BrushEffect Constructor

Syntax

PP.BlurEffect (settings)

Parameters

settings. JSON object that contains properties of class instance.

Description

The BrushEffect constructor creates an instance of the BrushEffect class.

Example

To execute the example the HTML page must contain the MapChart component named map (see Placing of Map on a HTML Page). To create this map, use the World.svg topobase and the MapData_World.xml file that contains JSON map settings. Add a handler for the MapChart.Loaded event - function for application of fill effect for a separate map area:

map.Loaded.add(function (sender, args) {

    map.getShape("AU").setEffect(new PP.BrushEffect({ Brush: { SolidColorBrush: { Color: "#FFF0F5"}} }));

})

After executing the example on hovering over the map area with the identifier AU (Australia), the fill color for this area is changed.

See also:

BrushEffect