Module style

Package com.here.mom.component.style

Parts

Enums


Font

part Font

Module style

Defines the font using various attributes (e.g. font family, font size, etc.).

Property Type Modifier Description
font-Family string optional Defines the font family (e.g. Times, Arial, etc.).
font-Size double optional Font size using em size unit.
font-Style FontStyle optional Defines the font style (e.g. NORMAL, ITALIC, OBLIQUE).
font-Variant double optional Defines the font variant.
font-Weight FontWeight optional Defines the font weight (e.g. NORMAL, BOLD).

FontStyle

enum FontStyle

Module style

Defines the font style (e.g. NORMAL, ITALIC, OBLIQUE).

Value Description
UNDEFINED
NORMAL
ITALIC
OBLIQUE

FontWeight

enum FontWeight

Module style

Defines the font weight (e.g. NORMAL, BOLD).

Value Description
UNDEFINED
NORMAL
BOLD

Style

abstract part Style

Module style

Simple rendering style information as understood by multiple geojson viewers.

Property Type Modifier Description
stroke CrgbHex optional Pen color for lines and outlines.
stroke-width double optional The stroke-width attribute is a presentation attribute defining the width of the stroke to be applied to

the shape.

The unit for stroke-width is in pixels.
stroke-opacity double optional The stroke-opacity attribute is a presentation attribute defining the opacity of the paint server (color,

gradient, pattern, etc) applied to the stroke of a shape.

Stroke-opacity: 0 = transparent, 1 = opaque.
fill CrgbHex optional Color RGB HEX code (e.g. #817F82).
fill-opacity double optional The fill-opacity property is used to set the opacity of the paint server that is applied to the shape.

Fill-opacity: 0 = transparent, 1 = opaque.
font Font optional Defines the font using various attributes (e.g. font family, font size, etc.).
Constraint Expression Description
strokeWidthMin0_0 (non-empty(.strokeWidth) -> (head(.strokeWidth) >= 0.0))
strokeOpacityMin0_0 (non-empty(.strokeOpacity) -> (head(.strokeOpacity) >= 0.0))
strokeOpacityMax1_0 (non-empty(.strokeOpacity) -> (head(.strokeOpacity) <= 1.0))
fillOpacityMin0_0 (non-empty(.fillOpacity) -> (head(.fillOpacity) >= 0.0))
fillOpacityMax1_0 (non-empty(.fillOpacity) -> (head(.fillOpacity) <= 1.0))

results matching ""

    No results matching ""