Map With Dot Density Layer
Description
The dot density is added as a feature layer to the named map, and specifically a style modifier theme. Each dot theme has a density value expression (the attribute in the feature to perform the density theme), a value per dot (the numerical value that represents a dot for the attribute), and a dot style (the style to display the dots).
For more information on dot density themes, see Dot Density Theme.
Example
This is an example of a named map definition that contains a dot density layer.
<?xml version="1.0" encoding="UTF-8"?>
<NamedMapDefinition version="MXP_NamedResource_1_5" xmlns="http://www.mapinfo.com/mxp" xmlns:gml="http://www.opengis.net/gml">
<ConnectionSet xmlns="http://www.mapinfo.com/mxp" />
<DataSourceDefinitionSet xmlns="http://www.mapinfo.com/mxp">
<NamedDataSourceDefinitionRef id="id4" resourceID="/NamedTables/STATES" />
</DataSourceDefinitionSet>
<MapDefinition id="id1" name="STATES Map" alias="Map17204816" xmlns="http://www.mapinfo.com/mxp">
<DisplayConditions>
<MapSize uom="mapinfo:imagesize pixel">
<ImageWidth>996</ImageWidth>
<ImageHeight>714</ImageHeight>
</MapSize>
<ZoomAndCenter>
<MapZoom uom="mapinfo:length mi">759.612</MapZoom>
<gml:Point srsName="mapinfo:coordsys 1,62">
<gml:coordinates>-76.272763,43.045175</gml:coordinates>
</gml:Point>
</ZoomAndCenter>
<DisplayCoordSys>
<SRSName>mapinfo:coordsys 1,62</SRSName>
</DisplayCoordSys>
<ResizeMethod>preserveZoom</ResizeMethod>
<RasterConditions dither="halfTone" trueColor="true" optimizeRasterLayers="screen" optimizeVectorLayers="screen" rasterReprojectionResampling="nearestNeighbor" rasterReprojection="none" />
</DisplayConditions>
<LayerList>
<FeatureLayer id="id5" name="STATES" alias="STATES" volatile="unknown">
<DataSourceRef ref="id4" />
<FeatureStyleModifierThemeList>
<FeatureStyleDensityTheme id="id6" alias="Dot Density Theme id6" name="Dot Density with Pop_Other">
<DensityValueExpression>
<NumericValueExpression>
<AttributeName>Pop_Other</AttributeName>
</NumericValueExpression>
</DensityValueExpression>
<ValuePerDot>79000</ValuePerDot>
<DotStyle>
<PointStyle>
<FontSymbol text=""" size="1" size-unit="mapinfo:length pt" stroke="rgb(0,255,128)" stroke-opacity="1" family="MapInfo 3.0 Compatible" />
</PointStyle>
</DotStyle>
</FeatureStyleDensityTheme>
<FeatureStyleDensityTheme id="id7" alias="Dot Density Theme id7" name="Dot Density with Pop_Urban">
<Visibility visible="false" />
<DensityValueExpression>
<NumericValueExpression>
<AttributeName>Pop_Urban</AttributeName>
</NumericValueExpression>
</DensityValueExpression>
<ValuePerDot>560000</ValuePerDot>
<DotStyle>
<PointStyle>
<FontSymbol text=""" size="4" size-unit="mapinfo:length pt" stroke="rgb(255,0,0)" stroke-opacity="1" family="MapInfo 3.0 Compatible" />
</PointStyle>
</DotStyle>
</FeatureStyleDensityTheme>
<FeatureStyleDensityTheme id="id8" alias="Dot Density Theme id8" name="Dot Density with Pop_1980">
<DensityValueExpression>
<NumericValueExpression>
<AttributeName>Pop_1980</AttributeName>
</NumericValueExpression>
</DensityValueExpression>
<ValuePerDot>480000</ValuePerDot>
<DotStyle>
<PointStyle>
<FontSymbol text=""" size="4" size-unit="mapinfo:length pt" stroke="rgb(0,0,0)" stroke-opacity="1" family="MapInfo 3.0 Compatible" />
</PointStyle>
</DotStyle>
</FeatureStyleDensityTheme>
</FeatureStyleModifierThemeList>
</FeatureLayer>
</LayerList>
</MapDefinition>
</NamedMapDefinition>