Page Summary
-
FeatureStyle.Builderhelps configure the visual style of map features like points, lines, and polygons. -
You can customize fill color, point radius, stroke color, and stroke width using the builder's methods.
-
build()method creates aFeatureStyleinstance with the specified configurations. -
Point radius is applicable only to point geometries and ranges from 0 to 128 screen pixels.
-
Colors are set using ARGB format as defined by the Android
Colorclass.
A builder that helps configure an instance of FeatureStyle.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| FeatureStyle |
build()
|
| FeatureStyle.Builder |
fillColor(int fillColor)
Sets the fillColor of this
FeatureStyle in ARGB format as defined by the Color class. |
| FeatureStyle.Builder |
pointRadius(float pointRadius)
Sets the pointRadius between 0 and 128 of this
FeatureStyle in screen pixels. |
| FeatureStyle.Builder |
strokeColor(int strokeColor)
Sets the strokeColor of this
FeatureStyle in ARGB format as defined by the Color class. |
| FeatureStyle.Builder |
strokeWidth(float strokeWidth)
Sets the strokeWidth of this
FeatureStyle in screen pixels. |
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public FeatureStyle.Builder fillColor (int fillColor)
Sets the fillColor of this FeatureStyle in ARGB format as defined by the Color class.
Parameters
| fillColor |
|---|
public FeatureStyle.Builder pointRadius (float pointRadius)
Sets the pointRadius between 0 and 128 of this FeatureStyle in screen pixels. Only
applies to point geometries.
Parameters
| pointRadius |
|---|
public FeatureStyle.Builder strokeColor (int strokeColor)
Sets the strokeColor of this FeatureStyle in ARGB format as defined by the Color class.
Parameters
| strokeColor |
|---|
public FeatureStyle.Builder strokeWidth (float strokeWidth)
Sets the strokeWidth of this FeatureStyle in screen pixels. The default value is
2.
Parameters
| strokeWidth |
|---|