The style element is common across all themes. It comprises a type which is always "MapBasicCompositeStyle" and then elements for a Point Style, Line Style or Area Style. At least one of the styles: Point, Line or Area must be included, depending on the feature type of the layer. You can include all three styles, if the layer has multiple feature types.
The structure of the JSON is shown below with all three types of style included.
"style": {
"type": "MapBasicCompositeStyle",
"PointStyle": {
"type": "MapBasicPointStyle",
"MapBasicSymbol": {
"shape": 36,
"color": "16777138",
"size": 12,
"fontName": "MapInfo Symbols",
"rotation": 0.0,
"bold": false,
"dropShadow": false,
"border": "NONE"
}
},
"LineStyle": {
"type": "MapBasicLineStyle",
"MapBasicPen": {
"width": 1,
"pattern": 2,
"color": "16777138"
}
},
"AreaStyle": {
"type": "MapBasicAreaStyle",
"MapBasicPen": {
"width": 1,
"pattern": 1,
"color": "0"
},
"MapBasicBrush": {
"pattern": 2,
"foregroundColor": "16777138",
"backgroundColor": "16777215"
}
}
} The JSON properties of each type of Style are as follows