FeatureStyleRangeTheme Example

This is an example of a definition for a ranged theme. Notice that the visible attribute is set to "false" on the second RangeThemeBin; therefore, the style range for this range will not be applied.


<FeatureStyleRangeTheme
	id="id6"
	alias="Ranged Theme id6"
	name="Ranges by Pop_1980">
	<RangeValueExpression>
		<NumericValueExpression>
			<AttributeName>Pop_1980</AttributeName>
		</NumericValueExpression>
	</RangeValueExpression>
	<RangeThemeBaseStyle applyStylePart="all">
		<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-opacity="1" fill="(#id7)">
				<Defs>
					<Pattern id="id7">
						<Bitmap uri="mapinfo:brush 42">
							<ColorAdjustmentSet>
								<ColorAdjustment
									color-1="nonWhite"
									color-2="rgb(255,0,0)"
									opacity="1"/>
								<ColorAdjustment
									color-1="rgb(255,255,255)"
									color-2="rgb(255,255,255)"
									opacity="1"/>
							</ColorAdjustmentSet>
						</Bitmap>
					</Pattern>
				</Defs>
			</Interior>
		</AreaStyle>
	</RangeThemeBaseStyle>
	<RangeThemeBinSet>
		<RangeThemeBin>
			<NumericRange>400000 1900000</NumericRange>
			<CompositeStyle>
				<LineStyle
					stroke="rgb(0,0,0)"
					stroke-opacity="1"
					width="1"
					width-unit="mapinfo:imagesize pixel">
					<Pen>mapinfo:pen 2</Pen>
				</LineStyle>
				<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-opacity="1" fill="(#id8)">
						<Defs>
							<Pattern id="id8">
								<Bitmap uri="mapinfo:brush 3">
									<ColorAdjustmentSet>
										<ColorAdjustment
											color-1="nonWhite"
											color-2="rgb(0,0,0)"
											opacity="1"/>
										<ColorAdjustment
											color-1="rgb(255,255,255)"
											color-2="rgb(255,255,255)"
											opacity="1"/>
									</ColorAdjustmentSet>
								</Bitmap>
							</Pattern>
						</Defs>
					</Interior>
				</AreaStyle>
				<PointStyle>
					<FontSymbol
						text="""
						size="12"
						size-unit="mapinfo:length pt"
						stroke="rgb(0,0,0)"
						stroke-opacity="1"
						family="MapInfo 3.0 Compatible"/>
				</PointStyle>
			</CompositeStyle>
		</RangeThemeBin>
		<RangeThemeBin visible="false">
			<NumericRange>1900000 4600000</NumericRange>
			<CompositeStyle>
				<LineStyle
					stroke="rgb(128,0,0)"
					stroke-opacity="1"
					width="1"
					width-unit="mapinfo:imagesize pixel">
					<Pen>mapinfo:pen 2</Pen>
				</LineStyle>
				<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-opacity="1" fill="rgb(128,0,0)"/>
				</AreaStyle>
				<PointStyle>
					<FontSymbol
						text="""
						size="12"
						size-unit="mapinfo:length pt"
						stroke="rgb(128,0,0)"
						stroke-opacity="1"
						family="MapInfo 3.0 Compatible"/>
				</PointStyle>
			</CompositeStyle>
		</RangeThemeBin>
		<RangeThemeBin>
			<NumericRange>4600000 23700000</NumericRange>
			<CompositeStyle>
				<LineStyle
					stroke="rgb(255,0,0)"
					stroke-opacity="1"
					width="1"
					width-unit="mapinfo:imagesize pixel">
					<Pen>mapinfo:pen 2</Pen>
				</LineStyle>
				<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-opacity="1" fill="(#id9)">
						<Defs>
							<Pattern id="id9">
								<Bitmap uri="mapinfo:brush 42">
									<ColorAdjustmentSet>
										<ColorAdjustment
											color-1="nonWhite"
											color-2="rgb(255,0,0)"
											opacity="1"/>
										<ColorAdjustment
											color-1="rgb(255,255,255)"
											color-2="rgb(255,255,255)"
											opacity="1"/>
									</ColorAdjustmentSet>
								</Bitmap>
							</Pattern>
						</Defs>
					</Interior>
				</AreaStyle>
				<PointStyle>
					<FontSymbol
						text="""
						size="12"
						size-unit="mapinfo:length pt"
						stroke="rgb(255,0,0)"
						stroke-opacity="1"
						family="MapInfo 3.0 Compatible"/>
				</PointStyle>
			</CompositeStyle>
		</RangeThemeBin>
		<AllOthersStyle>
			<CompositeStyle>
				<LineStyle
					stroke="rgb(255,255,255)"
					stroke-opacity="1"
					width="1"
					width-unit="mapinfo:imagesize pixel">
					<Pen>mapinfo:pen 2</Pen>
				</LineStyle>
				<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-opacity="1" fill="rgb(255,255,255)"/>
				</AreaStyle>
				<PointStyle>
					<FontSymbol
						text="("
						size="12"
						size-unit="mapinfo:length pt"
						stroke="rgb(255,255,255)"
						stroke-opacity="1"
						family="MapInfo 3.0 Compatible"/>
				</PointStyle>
			</CompositeStyle>
		</AllOthersStyle>
	</RangeThemeBinSet>
	<RangeThemeBinValueConstraints>
		<RangeSpreadMethod allowEmptyRanges="false">equalCount</RangeSpreadMethod>
		<RoundTo>100000</RoundTo>
	</RangeThemeBinValueConstraints>
	<RangeThemeBinStyleConstraints spreadMethod="color">
		<ColorSpreadMethod>rgb</ColorSpreadMethod>
		<SizeSpreadMethod>sqrt</SizeSpreadMethod>
	</RangeThemeBinStyleConstraints>
</FeatureStyleRangeTheme>