# Class: LineStyle

## bemap.LineStyle(options)

Base class for LineStyle.

## Constructor

#### new LineStyle(options)

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | Object | See below the available values. ###### Properties
Name | Type | Description
--- | --- | ---
`color` | bemap.Color | Set the color of the line with a bemap.Color.
`width` | int | Set the width of the line in pixels.
`type` | bemap.LineStyle.TYPE | define the type of the line.

Source:
  - bemap-model/bemap-lineStyle.js, line 15

### Members

#### (static) TYPE

List of available type for the line style.

##### Properties:

Name | Type | Description
--- | --- | ---
`DASH` |  |
`PLANE` |  |
`DOT` |  |
`DOT_DASH` |  |

Source:
  - bemap-model/bemap-lineStyle.js, line 48

#### (protected) color :Object

##### Type:

- Object

Source:
  - bemap-model/bemap-lineStyle.js, line 28

#### (protected) native :Object

##### Type:

- Object

Source:
  - bemap-model/bemap-lineStyle.js, line 22

#### (protected) type :String

##### Type:

- String

Source:
  - bemap-model/bemap-lineStyle.js, line 40

#### (protected) width :int

##### Type:

- int

Source:
  - bemap-model/bemap-lineStyle.js, line 34

### Methods

#### getColor() → {bemap.Color}

Return the bemap.Color which set the color of the line.

Source:
  - bemap-model/bemap-lineStyle.js, line 67

##### Returns:

Return the Bemap.Color which set the color of the line.

Type
  bemap.Color

#### getType() → {String}

Get the type of the line style.

Source:
  - bemap-model/bemap-lineStyle.js, line 59

##### Returns:

the type og the polyline.

Type
  String

#### getWidth() → {int}

Return the width of the line.

Source:
  - bemap-model/bemap-lineStyle.js, line 75

##### Returns:

Return the width of the line.

Type
  int

#### setColor(Color) → {bemap.LineStyle}

Set the bemap.Color which set the color of the line.

##### Parameters:

Name | Type | Description
--- | --- | ---
`Color` | bemap.Color | the new bemap.Color to set.

Source:
  - bemap-model/bemap-lineStyle.js, line 84

##### Returns:

Return this.

Type
  bemap.LineStyle

#### setType(type) → {bemap.LineStyle}

Set the type of the polyline.

##### Parameters:

Name | Type | Description
--- | --- | ---
`type` | String | the new type to set.

Source:
  - bemap-model/bemap-lineStyle.js, line 104

##### Returns:

return this.

Type
  bemap.LineStyle

#### setWidth(width) → {bemap.LineStyle}

Set the width of the line.

##### Parameters:

Name | Type | Description
--- | --- | ---
`width` | double | the new width of the line to set.

Source:
  - bemap-model/bemap-lineStyle.js, line 94

##### Returns:

Return this.

Type
  bemap.LineStyle