MapBasicPen

Description

The MapBasicPen element defines a style for a linear object such as a line, polyline arc, or the border of a region.

Elements

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

Table 1. Elements
Element Description

Width

An integer value from 0 to 7 specifying the thickness of the line (in pixels).

To create an invisible line style, specify a width of 0 and a pattern value of 1.

Pattern

An integer value from 1 to 118 specifying the line pattern.

The available line patterns, and corresponding pattern codes, are shown in Line Pattern Codes.

Color

A string value specifying the color of the pen stroke.

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

Example

This example specifies a solid red line that is two pixels wide.

<ns6:MapBasicPen> 
    <ns6:Width>2</ns6:Width> 
    <ns6:Pattern>2</ns6:Pattern> 
    <ns6:Color>red</ns6:Color> 
</ns6:MapBasicPen>