# Class: PolygonStyle

## bemap.PolygonStyle(options)

Base class for PolygonStyle.

## Constructor

#### new PolygonStyle(options)

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | Object | See below the available values. ###### Properties
Name | Type | Description
--- | --- | ---
`fillColor` | bemap.Color | Set the fill color of the polygon with a bemap.Color.
`borderColor` | bemap.Color | Set the border color of the polygon with a bemap.Color.
`borderWidth` | int | Set the border width of the polygon in pixels.
`borderType` | bemap.PolygonStyle.TYPE | define the border type of the polygon.

Source:
  - bemap-model/bemap-polygonStyle.js, line 16

### Members

#### (static) TYPE

List of available type for the polygon style.

##### Properties:

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

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

#### (protected) borderColor :Object

Border color.

##### Type:

- Object

Source:
  - bemap-model/bemap-polygonStyle.js, line 37

#### (protected) borderType :String

Border type.

##### Type:

- String

Source:
  - bemap-model/bemap-polygonStyle.js, line 51

#### (protected) borderWidth :int

Border width.

##### Type:

- int

Source:
  - bemap-model/bemap-polygonStyle.js, line 44

#### (protected) fillColor :Object

Fill color.

##### Type:

- Object

Source:
  - bemap-model/bemap-polygonStyle.js, line 30

#### (protected) native :Object

##### Type:

- Object

Source:
  - bemap-model/bemap-polygonStyle.js, line 23

### Methods

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

Return the bemap.Color which set the border color of the polygon.

Source:
  - bemap-model/bemap-polygonStyle.js, line 96

##### Returns:

Return the Bemap.Color which set the border color of the polygon.

Type
  bemap.Color

#### getBorderType() → {String}

Get the border type of the polygon style.

Source:
  - bemap-model/bemap-polygonStyle.js, line 88

##### Returns:

the border type of the polygon.

Type
  String

#### getBorderWidth() → {int}

Return the border width of the polygon.

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

##### Returns:

Return the border width of the polygon.

Type
  int

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

Return the bemap.Color which set the fill color of the polygon.

Source:
  - bemap-model/bemap-polygonStyle.js, line 70

##### Returns:

Return the Bemap.Color which set the fill color of the polygon.

Type
  bemap.Color

#### setBorderColor(Color) → {bemap.PolygonStyle}

Set the bemap.Color which set the border color of the polygon.

##### Parameters:

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

Source:
  - bemap-model/bemap-polygonStyle.js, line 113

##### Returns:

Return this.

Type
  bemap.PolygonStyle

#### setBorderType(type) → {bemap.PolygonStyle}

Set the border type of the polygon.

##### Parameters:

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

Source:
  - bemap-model/bemap-polygonStyle.js, line 133

##### Returns:

return this.

Type
  bemap.PolygonStyle

#### setBorderWidth(width) → {bemap.PolygonStyle}

Set the border width of the polygon.

##### Parameters:

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

Source:
  - bemap-model/bemap-polygonStyle.js, line 123

##### Returns:

Return this.

Type
  bemap.PolygonStyle

#### setFillColor(fillColor) → {bemap.PolygonStyle}

Set the bemap.Color which set the fill color of the polygon.

##### Parameters:

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

Source:
  - bemap-model/bemap-polygonStyle.js, line 79

##### Returns:

Return this.

Type
  bemap.PolygonStyle