MapBasic Area Style - Precisely Data Integrity Suite

Data Integrity Suite APIs

Product
Data_Integrity
Spatial_Analytics
Data_Enrichment
geo_addressing_1
Services
Spatial Analytics
Data Enrichment
Geo Addressing
ft:title
Data Integrity Suite APIs
ft:locale
en-US
PublicationType
pt_developer
copyrightfirst
2023
copyrightlast
2026

Example JSON

{
  "styleDetails": [
    {
      "themeList": {
        "theme": [
          {
            "type": "OverrideTheme",
            "style": {
              "type": "MapBasicCompositeStyle",
              "AreaStyle": {
                "type": "MapBasicAreaStyle",
                "MapBasicPen": {
                  "width": 10,
                  "pattern": 10,
                  "color": "9109504",
                  "unit": "PIXEL"
                },
                "MapBasicBrush": {
                  "pattern": "2",
                  "foregroundColor": "12639424",
                  "backgroundColor": 9109504
                }
              }
            }
          }
        ]
      }
    }
  ]
}

A style of type MapBasicAreaStyle specifies the visual characteristics of a filled area. The style can contain a MapBasicPen element or a MapBasicBrush element or both.

MapBasicPen

The MapBasicPen element defines a style for a linear object such as a line, polyline arc, or the border of a region. The following table lists the elements that can be contained by a MapBasicPen element.

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.

For more information about the available line patterns, and corresponding pattern codes, see Line Pattern Codes.

Color

A string or numeric value specifying the color of the symbol. This can be in one of 4 formats.

Hex - "color": "#E0AB8B",

Decimal - "color": 14723979

RGB - "color": "rgb(224,171,139)"

CSS - "color": "olive"

The CSS name value must be one of the 16 original CSS 1.0 colors. For more information, see Web Colors.

MapBasicBrush

The MapBasicBrush element defines a style for a filled object, such as a circle or region. The following table lists the elements that can be contained by a MapBasicBrush element.

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.

For more information about available fill patterns, and corresponding pattern codes, see Fill Pattern Codes.

ForegroundColor

A string or numeric value specifying the color of the symbol. This can be in one of 4 formats.

Hex - "color": "#E0AB8B",

Decimal - "color": 14723979

RGB - "color": "rgb(224,171,139)"

CSS - "color": "olive"

The CSS name value must be one of the 16 original CSS 1.0 colors. For more information, see Web Colors.

BackgroundColor

A string or numeric value specifying the color of the symbol. This can be in one of 4 formats.

Hex - "color": "#E0AB8B",

Decimal - "color": 14723979

RGB - "color": "rgb(224,171,139)"

CSS - "color": "olive"

The CSS name value must be one of the 16 original CSS 1.0 colors. For more information, see Web Colors.

Note: backgroundColour is optional. It can be omitted when a pattern fill is used in cases where only a foreground color is needed, with the background of the fill pattern to be transparent.