Map With Pie Layer

Example

This is an example of a named map definition that contains named pie layers.


<?xml version="1.0" encoding="UTF-8"?>
<NamedMapDefinition xmlns="http://www.mapinfo.com/mxp" xmlns:gml="http://www.opengis.net/gml" version="MXP_NamedResource_1_5">
	<ConnectionSet/>
	<DataSourceDefinitionSet>
		<NamedDataSourceDefinitionRef id="id4" resourceID="/NamedTables/WorldTable"/>
	</DataSourceDefinitionSet>
	<MapDefinition alias="Map208400672" id="id1" name="world Map">
		<DisplayConditions>
			<MapSize uom="mapinfo:imagesize pixel">
				<ImageWidth>434</ImageWidth>
				<ImageHeight>417</ImageHeight>
			</MapSize>
			<ZoomAndCenter>
				<MapZoom uom="mapinfo:length mi">27168.46</MapZoom>
				<gml:Point srsName="mapinfo:coordsys 12,62,7,0">
					<gml:coordinates>297499.033854,0.000000</gml:coordinates>
				</gml:Point>
			</ZoomAndCenter>
			<DisplayCoordSys>
				<SRSName>mapinfo:coordsys 12,62,7,0</SRSName>
			</DisplayCoordSys>
			<ResizeMethod>preserveZoom</ResizeMethod>
			<RasterConditions dither="halfTone" optimizeRasterLayers="screen" optimizeVectorLayers="screen" rasterReprojection="none" rasterReprojectionResampling="nearestNeighbor" trueColor="true"/>
		</DisplayConditions>
		<LayerList>
			<ObjectThemeLayer alias="Pie Theme id5" id="id5" name="Pie Theme">
				<DataSourceRef ref="id4"/>
				<FeaturePieTheme id="id7">
					<Alignment>
						<HorizontalAlignment>center</HorizontalAlignment>
						<VerticalAlignment>center</VerticalAlignment>
					</Alignment>
					<PieBaseSize useScale="true">
						<MapScale>188645879.54</MapScale>
						<DataValueAtSize>2300000000</DataValueAtSize>
						<Diameter uom="mapinfo:length in">1</Diameter>
						<PieGraduation>sqrt</PieGraduation>
					</PieBaseSize>
					<PieLayout graduatedSize="true">
						<PieStartAngle uom="degrees">180</PieStartAngle>
						<PieDirection>clockwise</PieDirection>
						<PieArea>full</PieArea>
					</PieLayout>
					<WedgeDefinitionList>
						<WedgeDefinition>
							<NumericValueExpression>
								<AttributeName>Pop_1994</AttributeName>
							</NumericValueExpression>
							<AreaStyle>
								<LineStyle stroke="rgb(0,0,0)" stroke-opacity="1" width="1" width-unit="mapinfo:imagesize pixel">
									<Pen>mapinfo:pen 2</Pen>
								</LineStyle>
								<Interior fill="rgb(255,0,0)" fill-opacity="1"/>
							</AreaStyle>
						</WedgeDefinition>
						<WedgeDefinition>
							<NumericValueExpression>
								<AttributeName>Pop_Male</AttributeName>
							</NumericValueExpression>
							<AreaStyle>
								<LineStyle stroke="rgb(0,0,0)" stroke-opacity="1" width="1" width-unit="mapinfo:imagesize pixel">
									<Pen>mapinfo:pen 2</Pen>
								</LineStyle>
								<Interior fill="rgb(0,255,0)" fill-opacity="1"/>
							</AreaStyle>
						</WedgeDefinition>
						<WedgeDefinition>
							<NumericValueExpression>
								<AttributeName>Pop_Fem</AttributeName>
							</NumericValueExpression>
							<AreaStyle>
								<LineStyle stroke="rgb(0,0,0)" stroke-opacity="1" width="1" width-unit="mapinfo:imagesize pixel">
									<Pen>mapinfo:pen 2</Pen>
								</LineStyle>
								<Interior fill="rgb(0,0,255)" fill-opacity="1"/>
							</AreaStyle>
						</WedgeDefinition>
					</WedgeDefinitionList>
				</FeaturePieTheme>
			</ObjectThemeLayer>
			<FeatureLayer alias="world" id="id8" name="world" volatile="unknown">
				<DataSourceRef ref="id4"/>
			</FeatureLayer>
		</LayerList>
	</MapDefinition>
</NamedMapDefinition>