PointStyle

Description

A PointStyle element defines a style for a point geometry.

Context

Table 1 lists the elements that can contain, or be contained by, a PointStyle element.

Table 1. Context
Contained by Element Contains

NamedStyle or CompositeStyle

PointStyle

Bitmap or FontSymbol

Attributes

Table 2 lists the attributes of a PointStyle element.

Table 2. Attributes
Attribute Description

id

A unique identifier for the element.

name

A descriptive name for the element.

Examples

This example specifies an 18-point red push-pin symbol from the MapInfo 3.0 Symbols set.

Note that the text attribute is set to C, which is decimal code 67 in the UTF-8 encoding, and the family attribute is set to MapInfo Symbols, which specifies the MapInfo 3.0 Symbols set. In the MapInfo 3.0 Symbols set, code 67 specifies a push-pin symbol.

<?xml version="1.0" encoding="UTF-8"?>
<NamedStyle
    version="MXP_WorkSpace_1_5"
    xmlns="http://www.mapinfo.com/mxp">
    <PointStyle>
        <FontSymbol
            size="18"
            size-unit="mapinfo:length pt"
            stroke="red"
            stroke-opacity="1"
            text="C"
            family="MapInfo Symbols"/>
    </PointStyle>
</NamedStyle>

This example specifies a 14-point blue star symbol from the MapInfo 3.0 Symbols set.

Note that the text attribute is set to #, which is decimal code 35 in the UTF-8 encoding, and the family attribute is set to MapInfo Symbols, which specifies the MapInfo 3.0 Symbols set. In the MapInfo 3.0 Symbols set, code 35 specifies a star symbol.

<?xml version="1.0" encoding="UTF-8"?>
<NamedStyle
    version="MXP_WorkSpace_1_5"
    xmlns="http://www.mapinfo.com/mxp">
    <PointStyle>
        <FontSymbol
            size="14"
            size-unit="mapinfo:length pt"
            stroke="blue"
            stroke-opacity="1"
            text="#"
            family="MapInfo Symbols"/>
    </PointStyle>
</NamedStyle>