PP.LinearGradientBrush(settings)
settings. JSON object that contains properties of class instance.
The LinearGradientBrush constructor creates an instance of the LinearGradientBrush class.
To execute the example the HTML page must contain the MapChart component named map (see Placing of Map on a HTML Page). Set a gradient fill as the map background:
map.setBackground(new PP.LinearGradientBrush({ EndPoint : "1, 1", StartPoint : "0, 0", GradientStops: { "GradientStop": [ {"Offset" : "0","Color" : "#ffdd00cc"}, {"Offset" : "1","Color" : "#ffaaffcc"} ] } }))
After executing the example the following background is set for the map:
See also: