This example assumes that the folder that stores the symbol image files is defined in the classpath.ext file (see Custom Symbols.
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": "OverrideTheme",
"Style": {
"type": "MapBasicPointStyle",
"MapBasicSymbol": {
"type": "MapBasicBitmapSymbol",
"uri": "citysymbol.png",
"size": 12,
"transparent": true
}
}
}
]
}
},
{
"type": "FeatureLayer",
"Table": {
"type": "NamedTable",
"name": "/Samples/NamedTables/USA"
}
}
]
}