Feature Layer with Individual Value Theme

POST Request

POST http://hostname:port/rest/Spatial/MappingService/maps/image.png;w=800;h=600;c=-101,42,epsg:4269;z=3500%20mi
Content-type: application/json
Authorization: <Basic or Spectrum Token>

Example

{
   "layers": [
		{
			"type": "FeatureLayer",
			"Table": {
				"type": "NamedTable",
				"name": "/Samples/NamedTables/USA_CAPS"
			},
			"ThemeList": {
				"type": "ThemeList",
				"Theme": [
					{
						"type": "IndividualValueTheme",
						"expression": "State",
						"BinList": {
							"Bin": [
								{
									"Value": {
										"type": "StringValue",
										"value": "NY"
									},
									"Style": {
										"type": "MapBasicCompositeStyle",
										"PointStyle": {
											"type": "MapBasicPointStyle",
											"MapBasicSymbol": {
												"type": "MapBasicFontSymbol",
												"shape": 41,
												"color": "rgb(0, 255, 0)",
												"size": 15,
												"fontName": "MapInfo Cartographic",
												"border": "normal"
											}
										},
										"LineStyle": {
											"type": "MapBasicLineStyle",
											"MapBasicPen": {
												"width": 2,
												"pattern": 2,
												"color": "#cc3333"
											}
										},
										"AreaStyle": {
											"type": "MapBasicAreaStyle",
											"MapBasicPen": {
												"width": 2,
												"pattern": 2,
												"color": "#cc3333"
											},
											"MapBasicBrush": {
												"pattern": 2,
												"foregroundColor": "rgb(255, 64, 64)"
											}
										}
									}
								}
							]
						},
						"AllOthers": {
							"type": "NamedStyle",
							"name": "/Samples/NamedStyles/PointStyleStar"
						}
					}
				]
			}
		},
		{
			"type": "FeatureLayer",
			"Table": {
				"type": "NamedTable",
				"name": "/Samples/NamedTables/USA"
			}
		}
	]
}