Example JSON
{
"styleDetails": [
{
"themeList": {
"theme": [
{
"type": "OverrideTheme",
"style": {
"type": "MapBasicCompositeStyle",
"PointStyle": {
"type": "MapBasicPointStyle",
"MapBasicSymbol": {
"type": "MapBasicFontSymbol",
"shape": 36,
"size": 12,
"color": "255",
"fontName": "MapInfo Symbols",
"rotation": 0,
"bold": false,
"dropShadow": false,
"border": "NONE"
}
}
}
}
]
}
}
]
}The MapBasicSymbol element includes three distinct subtypes, each specified by the type attribute. You can define one of the following symbol types.
- MapBasicFontSymbol. Uses a range of pre-defined fonts to define a symbol as shown above. For images of the supported fonts and their symbols, see MapBasic Font Symbol Codes
- MapBasic30Symbol. Uses a range of standard vector symbols. For images of the supported symbols, see MapInfo 3.0 Symbol Codes
- MapBasicBitmapSymbol. Uses a range of pre-defined bitmap images to define a symbol.
MapBasicFontSymbol
The following table lists the elements that can be contained by a MapBasicSymbol element of type MapBasicFontSymbol.
| Element | Description |
|---|---|
| Shape |
An integer value of 32 or larger specifying the character to use from a TrueType symbol font. Note: To specify an invisible symbol, use 32 (the space
character).
For more information about the MapBasic font symbol sets, and corresponding code for each symbol, see MapBasic Font Symbol 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. |
| Size | An integer value from 1 to 255 specifying the point size of the symbol. |
| FontName |
A string value specifying the name of the TrueType symbol font to use (for example, "WingDings"). You can also specify a MapBasic font symbol set such as "MapInfo Symbols" or "MapInfo Arrows". For more information about the MapBasic font symbol sets, and corresponding code for each symbol, see MapBasic Font Symbol Codes. |
| Bold |
A boolean value (true or false) specifying whether the symbol should be bold (true) or plain (false). The default value is false. |
| Border |
An enumeration value specifying the type of border to draw around the symbol. The possible values are:
The value normal draws a regular black border around the symbol. The value halo draws a white halo border around the symbol. |
| DropShadow | A boolean value (true or false) specifying whether to have a drop-shadow drawn behind the symbol. A value of false (the default) specifies no drop-shadow. |
| Rotation | A floating-point value from 0 to 360 specifying the rotation angle of the symbol in degrees. |
MapBasic30Symbol
The table below lists the elements that can be contained by a MapBasicSymbol element of type MapBasic30Symbol.
| Element | Description |
|---|---|
| Shape | An integer value from 31 to 67 specifying the symbol code to use from
the MapInfo 3.0 symbol set. The MapInfo 3.0 symbol set, and corresponding code for each symbol, is shown in MapInfo 3.0 Symbol 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. |
| Size | An integer value from 1 to 255 specifying the point size of the symbol. |
MapBasicBitmapSymbol
The table below lists the elements that can be contained by a MapBasicSymbol element of type MapBasicBitmapSymbol.
| Element | Description |
|---|---|
| URI | A string value specifying the URI of the bitmap image file. The available symbols are listed at the end of this section. |
| 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. |
| Size | An integer value from 1 to 255 specifying the point size of the
symbol. If this element is omitted, the image is rendered at its native width and height in pixels. |
| showBackground | If the Show Background setting is true (turned on), white pixels in
the bitmap are opaque. If Show Background is false (turned off), white
pixels in the bitmap are transparent allowing whatever is behind the
symbol to show through. The default value is true for transparent symbol backgrounds. |