AreaStyle

Description

An AreaStyle element defines a composite style comprising a line style (as defined by a LineStyle element) and a fill style (as defined by an Interior element).

Context

Table 1 lists the elements that can contain, or be contained by, an AreaStyle element.

Table 1. Context
Contained by Element Contains

NamedStyle or CompositeStyle

AreaStyle

LineStyle and Interior

Attributes

Table 2 lists the attributes of an AreaStyle element.

Table 2. Attributes
Attribute Description

id

A unique identifier for the element.

name

A descriptive name for the element.

Example

This example specifies an area filled with a solid light green color, bounded by a 1-pixel dashed black line.


<?xml version="1.0" encoding="UTF-8"?>
<NamedStyle
    version="MXP_WorkSpace_1_5"
    xmlns="http://www.mapinfo.com/mxp"
    xmlns:gml="http://www.opengis.net/gml">
    <AreaStyle>
        <LineStyle
            width="1"
            width-unit="mapinfo:imagesize pixel">
            <Pen>mapinfo:pen 9</Pen>
        </LineStyle>
        <Interior fill-opacity="1" fill="(#id7)">
            <Defs>
                <Pattern id="id7">
                    <Bitmap uri="mapinfo:brush 2">
                        <ColorAdjustmentSet>
                            <ColorAdjustment
                                color-1="nonWhite"
                                color-2="rgb(224,255,176)"
                                opacity="1"/>
                            <ColorAdjustment
                                color-1="white"
                                color-2="white"
                                opacity="1"/>
                        </ColorAdjustmentSet>
                    </Bitmap>
                </Pattern>
            </Defs>
        </Interior>
    </AreaStyle>
</NamedStyle>