Equal Count Range Theme with MapBasic Styles

POST Request

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

Example

{
   "layers":[
      {
         "type":"FeatureLayer",
         "table":{
            "type":"NamedTable",
            "name":"/Samples/NamedTables/USA"
         },
         "themes":[
            {
               "type":"RangeTheme",
               "endstyle":{
                  "type":"MapBasicAreaStyle",
                  "mapbasicbrush":{
                     "pattern":"66",
                     "foregroundcolor":"blue"
                  }
               },
               "rangethemeproperties":{
                  "type":"RangeThemeProperties",
                  "expression":"Pop_2000",
                  "rangetype":"EqualCount",
                  "numranges":"6"
               },
               "startstyle":{
                  "type":"MapBasicAreaStyle",
                  "mapbasicbrush":{
                     "pattern":"66",
                     "foregroundcolor":"yellow"
                  }
               }
            }
         ]
      }
   ]
}