MapBasicBrush

Description

The MapBasicBrush element defines a style for a filled object, such as a circle or region.

Elements

Table 1 lists the elements that can be contained by a MapBasicBrush element.

Table 1. Elements
Element Description

Pattern

An integer value from 1 to 8 and from 12 to 175 specifying the fill pattern.

Note: Pattern codes 9 to 11 are reserved.

The available fill patterns, and corresponding pattern codes, are shown in Fill Pattern Codes.

ForegroundColor

A string value specifying the foreground color.

The value can be any valid CSS color. (See http://www.w3.org/TR/REC-CSS1#color-units.)

BackgroundColor

A string value specifying the background color.

The value can be any valid CSS color. (See http://www.w3.org/TR/REC-CSS1#color-units.)

Note: Omitting this element will yield a transparent background.

Example

This example specifies a fill pattern of blue horizontal lines on a yellow background.


<ns6:MapBasicBrush> 
    <ns6:Pattern>3</ns6:Pattern>
    <ns6:ForegroundColor>blue</ns6:ForegroundColor>
    <ns6:BackgroundColor>yellow</ns6:BackgroundColor>
</ns6:MapBasicBrush>