Pie Chart Theme SOAP Request

This is an example of a SOAP mapping service request for a map containing a pie chart theme. For a demo of the request, go to the Mapping Service Demo Page for your local installation at http://server:port/Spatial/MappingService/DemoPage.html.


<?xml version="1.0"?> 
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.mapinfo.com/midev/service/mapping/v1" xmlns:ns3="http://www.mapinfo.com/midev/service/geometries/v1" 
xmlns:ns4="http://www.mapinfo.com/midev/service/style/v1" 
xmlns:ns5="http://www.mapinfo.com/midev/service/table/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
   <S:Header/> 
   <S:Body> 
      <v1:RenderMapRequest imageMimeType="image/png" returnImage="false"> 
         <v1:MapView xsi:type="v1:ZoomAndCenterMapView"> 
            <v1:Width>800.0</v1:Width> 
            <v1:Height>600.0</v1:Height> 
            <v1:ZoomLevel uom="Mile">3000.0</v1:ZoomLevel> 
            <v1:MapCenter srsName="epsg:4269"> 
               <ns3:Pos> 
                  <ns3:X>-100.0</ns3:X> 
                  <ns3:Y>42.0</ns3:Y> 
               </ns3:Pos> 
            </v1:MapCenter> 
         </v1:MapView> 
       <v1:Map name="/Samples/NamedMaps/MapWithPieLayer"> 
            <v1:Layer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="v1:PieLayer" depthFactor="0.50" verticalAlignment="MIDDLE" horizontalAlignment="CENTER" chartEffectType="AS3D" chartType="FULL" startAngle="180.0" wedgeRenderDirection="CLOCKWISE"> 
                  <ns5:Table xsi:type="ns5:NamedTable" name="/Samples/NamedTables/USA"/> 
                  <v1:CategoryList> 
                  <v1:Category expression="Pop_2000" description="Pop_2000"> 
                  <ns4:Style xsi:type="ns4:NamedStyle" name="/Samples/NamedStyles/AreaStyleBlue"/> 
                  </v1:Category> 
                  <v1:Category expression="Pop_Male" description="Pop_Male"> 
                    <ns4:Style xsi:type="ns4:NamedStyle" name="/Samples/NamedStyles/AreaStyleGreen"/> 
                   </v1:Category> 
                   <v1:Category expression="Pop_Female" description="Pop_Female"> 
                     <ns4:Style xsi:type="ns4:NamedStyle" name="/Samples/NamedStyles/AreaStyleRed"/> 
                   </v1:Category> 
                  </v1:CategoryList> 
                   <v1:Border xsi:type="ns4:NamedStyle" name="/Samples/NamedStyles/LineStyleSolid"/> 
                  <v1:Diameter uom="Inch">1.0</v1:Diameter> 
                  <v1:Opacity>1.0</v1:Opacity> 
                  <v1:Graduation graduationMethod="SQUARE_ROOT"> 
                        <v1:ValueAtSize>250000000</v1:ValueAtSize> 
                  </v1:Graduation> 
                  <v1:SpatialExpression>Obj</v1:SpatialExpression> 
				  <v1:PieBaseSize useScale="true"> 
						<v1:MapScale>2.28096E7</v1:MapScale> 
				  </v1:PieBaseSize> 
            </v1:Layer> 
            <v1:Layer xsi:type="v1:NamedLayer" name="/Samples/NamedLayers/LayerWithTable" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/> 
      </v1:Map> 
      </v1:RenderMapRequest> 
   </S:Body> 
</S:Envelope>