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:

Members

(static) TYPE

List of available type for the polygon style.
Properties:
Name Type Description
DASH
PLANE
DOT
DOT_DASH
Source:

(protected) borderColor :Object

Border color.
Type:
  • Object
Source:

(protected) borderType :String

Border type.
Type:
  • String
Source:

(protected) borderWidth :int

Border width.
Type:
  • int
Source:

(protected) fillColor :Object

Fill color.
Type:
  • Object
Source:

(protected) native :Object

Type:
  • Object
Source:

Methods

getBorderColor() → {bemap.Color}

Return the bemap.Color which set the border color of the polygon.
Source:
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:
Returns:
the border type of the polygon.
Type
String

getBorderWidth() → {int}

Return the border width of the polygon.
Source:
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:
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:
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:
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:
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:
Returns:
Return this.
Type
bemap.PolygonStyle