PP.Ui.CircleMarker (settings);
settings. JSON object that contains values of component properties.
The CircleMarker constructor creates an instance of the CircleMarker class.
To execute the example, the page must contain the Speedometer component named speed1 (see Example of Creating a Fuel Gauge Unit). Add to the page a button, clicking which adds a circle marker to the speedometer center:
<input type="button" value=" OK " onclick="CMarks()"/> <script type="text/javascript"> function CMarks() { var cmark = new PP.Ui.CircleMarker( { Border: {PPType: PP.SolidColorBrush, Color: "#333333"}, Size:15, Offset: -5, BorderWidth: 5 }); speed1.setCenter(cmark); }</script>
After clicking OK the marker shown in speedometer center changes like follows:
See also: