JSPolyLineStyle
API for creating and modifying Line style objects.
Create a API with Module.JSPolyLineStyle.
JSPolyLineStyle allows for the bulk specification of styles for multiple line objects.
var objectStyle = new Module.JSPolyLineStyle();Getter / Setter
getColor(), setColor(color) → JSColor
Sets the color of the line.
var color = polyline.getStyle().getColor();
// ... or ...
polyline.getStyle().setColor(new Module.JSColor(255, 255, 255, 255));getWidth(), setWidth(width) → number
Sets the thickness of the line.
Name
Type
Description
width
number
The thickness of the line.
- Return - number: The thickness of the line. 
 
var width = polyline.getStyle().getWidth();
// ... or ...
polyline.getStyle().setWidth(10.0);Last updated
