Layer With Range Theme

Example

This is an example of a named layer definition that contains a range theme.


<?xml version="1.0" encoding="UTF-8"?>
<NamedLayer version="MXP_NamedResource_1_5" xmlns="http://www.mapinfo.com/mxp">
	<ConnectionSet/>
	<DataSourceDefinitionSet>
		<NamedDataSourceDefinitionRef id="id1" resourceID="/NamedTables/WorldTable"/>
	</DataSourceDefinitionSet>
	<FeatureLayer id="id9" name="World Countries" alias="world" volatile="unknown">
		<Visibility visible="true">
            <VisibleRange enabled="false">
                <ZoomRange uom="mapinfo:length mi" minInclusive="true" maxInclusive="false">0 0</ZoomRange>
            </VisibleRange>
		</Visibility>
		<DataSourceRef ref="id1"/>
		<FeatureStyleModifierThemeList>
            <FeatureStyleRangeTheme id="id3" name="Pop_1994" alias="pop_1994">
                <RangeValueExpression>
                    <NumericValueExpression>
                        <AttributeName>Pop_1994</AttributeName>
                    </NumericValueExpression>
                </RangeValueExpression>
                <RangeThemeBaseStyle applyStylePart="all">
                    <CompositeStyle>
                        <AreaStyle>
                            <LineStyle stroke="black" stroke-opacity="1.0" width="2.0" width-unit="mapinfo:imagesize pixel">
                                <Pen>mapinfo:Pen 2</Pen>
                            </LineStyle>
                            <Interior fill="(#id1)" fill-opacity="1.0">
                                <Defs>
                                    <Pattern id="id1">
                                        <Bitmap uri="mapinfo:brush 2">
                                            <ColorAdjustmentSet>
                                                <ColorAdjustment color-1="black" color-2="black"></ColorAdjustment>
                                                <ColorAdjustment color-1="white" color-2="white"></ColorAdjustment>
                                            </ColorAdjustmentSet>
                                        </Bitmap>
                                    </Pattern>
                                </Defs>
                            </Interior>
                        </AreaStyle>
                        <LineStyle stroke="black" stroke-opacity="1.0" width="2.0" width-unit="mapinfo:imagesize pixel">
                            <Pen>mapinfo:Pen 2</Pen>
                        </LineStyle>
                        <PointStyle>
                            <FontSymbol text="#" family="MapInfo 3.0 Compatible" size="12.0" size-unit="mapinfo:length pt" stroke="black" stroke-opacity="1.0" font-style="normal" effect-opacity="1.0" effect-type="none" font-weight="normal" text-decoration="none" text-case="default" shadow="false" expand="false"></FontSymbol>
                        </PointStyle>
                    </CompositeStyle>
                </RangeThemeBaseStyle>
                <RangeThemeBinSet>
                    <RangeThemeBin>
                        <NumericRange>0 114808</NumericRange>
                        <CompositeStyle>
                            <AreaStyle>
                                <LineStyle
                                    stroke="black"
                                    stroke-opacity="1.0"
                                    width="2.0"
                                    width-unit="mapinfo:imagesize pixel">
                                    <Pen>mapinfo:Pen 2</Pen>
                                </LineStyle>
                                <Interior fill="(#id1)" fill-opacity="1.0">
                                    <Defs>
                                        <Pattern id="id1">
                                            <Bitmap uri="mapinfo:brush 2">
                                                <ColorAdjustmentSet>
                                                    <ColorAdjustment
                                                        color-1="black"
                                                        color-2="black"></ColorAdjustment>
                                                    <ColorAdjustment
                                                        color-1="white"
                                                        color-2="white"></ColorAdjustment>
                                                </ColorAdjustmentSet>
                                            </Bitmap>
                                        </Pattern>
                                    </Defs>
                                </Interior>
                            </AreaStyle>
                            <LineStyle
                                stroke="aqua"
                                stroke-opacity="1.0"
                                width="2.0"
                                width-unit="mapinfo:imagesize pixel">
                                <Pen>mapinfo:Pen 2</Pen>
                            </LineStyle>
                            <PointStyle>
                                <FontSymbol
                                    text="#"
                                    family="MapInfo 3.0 Compatible"
                                    size="12.0"
                                    size-unit="mapinfo:length pt"
                                    stroke="aqua"
                                    stroke-opacity="1.0"
                                    font-style="normal"
                                    effect-opacity="1.0"
                                    effect-type="none"
                                    font-weight="normal"
                                    text-decoration="none"
                                    text-case="default"
                                    shadow="false"
                                    expand="false"></FontSymbol>
                            </PointStyle>
                        </CompositeStyle>
                    </RangeThemeBin>
                    <RangeThemeBin>
                        <NumericRange>114808 2017591</NumericRange>
                        <CompositeStyle>
                            <AreaStyle>
                                <LineStyle
                                    stroke="black"
                                    stroke-opacity="1.0"
                                    width="2.0"
                                    width-unit="mapinfo:imagesize pixel">
                                    <Pen>mapinfo:Pen 2</Pen>
                                </LineStyle>
                                <Interior fill="(#id1)" fill-opacity="1.0">
                                    <Defs>
                                        <Pattern id="id1">
                                            <Bitmap uri="mapinfo:brush 2">
                                                <ColorAdjustmentSet>
                                                    <ColorAdjustment color-1="black"
                                                        color-2="black"></ColorAdjustment>
                                                    <ColorAdjustment color-1="white"
                                                        color-2="white"></ColorAdjustment>
                                                </ColorAdjustmentSet>
                                            </Bitmap>
                                        </Pattern>
                                    </Defs>
                                </Interior>
                            </AreaStyle>
                            <LineStyle
                                stroke="rgb(63,191,191)"
                                stroke-opacity="1.0"
                                width="2.0"
                                width-unit="mapinfo:imagesize pixel">
                                <Pen>mapinfo:Pen 2</Pen>
                            </LineStyle>
                            <PointStyle>
                                <FontSymbol
                                    text="#"
                                    family="MapInfo 3.0 Compatible"
                                    size="12.0"
                                    size-unit="mapinfo:length pt"
                                    stroke="rgb(63,191,191)"
                                    stroke-opacity="1.0"
                                    font-style="normal"
                                    effect-opacity="1.0"
                                    effect-type="none"
                                    font-weight="normal"
                                    text-decoration="none"
                                    text-case="default"
                                    shadow="false"
                                    expand="false"></FontSymbol>
                            </PointStyle>
                        </CompositeStyle>
                    </RangeThemeBin>
                    <RangeThemeBin>
                        <NumericRange>2017591 5816469</NumericRange>
                        <CompositeStyle>
                            <AreaStyle>
                                <LineStyle
                                    stroke="black"
                                    stroke-opacity="1.0"
                                    width="2.0"
                                    width-unit="mapinfo:imagesize pixel">
                                    <Pen>mapinfo:Pen 2</Pen>
                                </LineStyle>
                                <Interior fill="(#id1)" fill-opacity="1.0">
                                    <Defs>
                                        <Pattern id="id1">
                                            <Bitmap uri="mapinfo:brush 2">
                                                <ColorAdjustmentSet>
                                                    <ColorAdjustment color-1="black"
                                                        color-2="black"></ColorAdjustment>
                                                    <ColorAdjustment color-1="white"
                                                        color-2="white"></ColorAdjustment>
                                                </ColorAdjustmentSet>
                                            </Bitmap>
                                        </Pattern>
                                    </Defs>
                                </Interior>
                            </AreaStyle>
                            <LineStyle
                                stroke="rgb(127,127,127)"
                                stroke-opacity="1.0"
                                width="2.0"
                                width-unit="mapinfo:imagesize pixel">
                                <Pen>mapinfo:Pen 2</Pen>
                            </LineStyle>
                            <PointStyle>
                                <FontSymbol
                                    text="#"
                                    family="MapInfo 3.0 Compatible"
                                    size="12.0"
                                    size-unit="mapinfo:length pt"
                                    stroke="rgb(127,127,127)"
                                    stroke-opacity="1.0"
                                    font-style="normal"
                                    effect-opacity="1.0"
                                    effect-type="none"
                                    font-weight="normal"
                                    text-decoration="none"
                                    text-case="default"
                                    shadow="false"
                                    expand="false"></FontSymbol>
                            </PointStyle>
                        </CompositeStyle>
                    </RangeThemeBin>
                    <RangeThemeBin>
                        <NumericRange>5816469 1.7661468E7</NumericRange>
                        <CompositeStyle>
                            <AreaStyle>
                                <LineStyle
                                    stroke="black"
                                    stroke-opacity="1.0"
                                    width="2.0"
                                    width-unit="mapinfo:imagesize pixel">
                                    <Pen>mapinfo:Pen 2</Pen>
                                </LineStyle>
                                <Interior fill="(#id1)" fill-opacity="1.0">
                                    <Defs>
                                        <Pattern id="id1">
                                            <Bitmap uri="mapinfo:brush 2">
                                                <ColorAdjustmentSet>
                                                    <ColorAdjustment color-1="black"
                                                        color-2="black"></ColorAdjustment>
                                                    <ColorAdjustment color-1="white"
                                                        color-2="white"></ColorAdjustment>
                                                </ColorAdjustmentSet>
                                            </Bitmap>
                                        </Pattern>
                                    </Defs>
                                </Interior>
                            </AreaStyle>
                            <LineStyle
                                stroke="rgb(191,63,63)"
                                stroke-opacity="1.0"
                                width="2.0"
                                width-unit="mapinfo:imagesize pixel">
                                <Pen>mapinfo:Pen 2</Pen>
                            </LineStyle>
                            <PointStyle>
                                <FontSymbol
                                    text="#"
                                    family="MapInfo 3.0 Compatible"
                                    size="12.0"
                                    size-unit="mapinfo:length pt"
                                    stroke="rgb(191,63,63)"
                                    stroke-opacity="1.0"
                                    font-style="normal"
                                    effect-opacity="1.0"
                                    effect-type="none"
                                    font-weight="normal"
                                    text-decoration="none"
                                    text-case="default"
                                    shadow="false"
                                    expand="false"></FontSymbol>
                            </PointStyle>
                        </CompositeStyle>
                    </RangeThemeBin>
                    <RangeThemeBin>
                        <NumericRange>1.7661468E7 1.136429638E9</NumericRange>
                        <CompositeStyle>
                            <AreaStyle>
                                <LineStyle
                                    stroke="black"
                                    stroke-opacity="1.0"
                                    width="2.0"
                                    width-unit="mapinfo:imagesize pixel">
                                    <Pen>mapinfo:Pen 2</Pen>
                                </LineStyle>
                                <Interior fill="(#id1)" fill-opacity="1.0">
                                    <Defs>
                                        <Pattern id="id1">
                                            <Bitmap uri="mapinfo:brush 2">
                                                <ColorAdjustmentSet>
                                                    <ColorAdjustment color-1="black"
                                                        color-2="black"></ColorAdjustment>
                                                    <ColorAdjustment color-1="white"
                                                        color-2="white"></ColorAdjustment>
                                                </ColorAdjustmentSet>
                                            </Bitmap>
                                        </Pattern>
                                    </Defs>
                                </Interior>
                            </AreaStyle>
                            <LineStyle
                                stroke="red"
                                stroke-opacity="1.0"
                                width="2.0"
                                width-unit="mapinfo:imagesize pixel">
                                <Pen>mapinfo:Pen 2</Pen>
                            </LineStyle>
                            <PointStyle>
                                <FontSymbol
                                    text="#"
                                    family="MapInfo 3.0 Compatible"
                                    size="12.0"
                                    size-unit="mapinfo:length pt"
                                    stroke="red"
                                    stroke-opacity="1.0"
                                    font-style="normal"
                                    effect-opacity="1.0"
                                    effect-type="none"
                                    font-weight="normal"
                                    text-decoration="none"
                                    text-case="default"
                                    shadow="false"
                                    expand="false"></FontSymbol>
                            </PointStyle>
                        </CompositeStyle>
                    </RangeThemeBin>
                </RangeThemeBinSet>
                <RangeThemeBinValueConstraints>
                    <RangeSpreadMethod allowEmptyRanges="true">equalCount</RangeSpreadMethod>
                    <RoundTo>none</RoundTo>
                </RangeThemeBinValueConstraints>
                <RangeThemeBinStyleConstraints spreadMethod="color">
                    <ColorSpreadMethod>rgb</ColorSpreadMethod>
                    <SizeSpreadMethod>sqrt</SizeSpreadMethod>
                </RangeThemeBinStyleConstraints>
            </FeatureStyleRangeTheme>
        </FeatureStyleModifierThemeList>
    </FeatureLayer>
</NamedLayer>