Named Label Source

Example

This is an example of a named label source definition.

<NamedLabelSource xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.mapinfo.com/mxp" version="MXP_NamedResource_1_5">
	<ConnectionSet />
	<DataSourceDefinitionSet>
		<NamedDataSourceDefinitionRef id="id7" resourceID="/Samples/NamedTables/dcwashgazetteer2"/>
	</DataSourceDefinitionSet>
	<LabelSource xmlns="http://www.mapinfo.com/mxp" maxLabels="2147483647" name="dcwash~gazetteer2">
		<Visibility visible="true">
			<VisibleRange enabled="true">
				<ZoomRange uom="mapinfo:length mi" minInclusive="true" maxInclusive="true">0 1300</ZoomRange>
			</VisibleRange>
		</Visibility>
		<DataSourceRef ref="id7"/>
		<BaseLabelProperties>
			<LabelProperties>
				<LabelVisibility visible="true" allowOverlap="false" allowDuplicates="interLayer"
								 allowOutOfView="false">
					<VisibleRange enabled="false">
						<ZoomRange uom="mapinfo:length mi" minInclusive="true" maxInclusive="false">0 100000
						</ZoomRange>
					</VisibleRange>
				</LabelVisibility>
				<LabelText justification="left">
					<BaseLabelStyle>
						<FontStyle family="Verdana" font-style="normal" effect="rgb(238,233,222)"
								   effect-opacity="1" effect-type="halo" font-weight="bold"
								   text-decoration="none" text-case="default" shadow="false" expand="false"
								   size="8" size-unit="mapinfo:length pt" stroke="rgb(32,32,32)"/>
					</BaseLabelStyle>
					<StringTokenList>
						<StringToken>
							<StringValueExpression>
								<AttributeName>SmartLabel</AttributeName>
							</StringValueExpression>
						</StringToken>
					</StringTokenList>
					<LabelCharacterLimit spacing="1">2147483647</LabelCharacterLimit>
				</LabelText>
				<LabelCallout visible="false" end="arrow">
					<LineStyle stroke="black" stroke-opacity="1" width="1" width-unit="mapinfo:imagesize pixel">
						<Pen>mapinfo:pen 2</Pen>
					</LineStyle>
				</LabelCallout>
				<LabelReferencePosition recalculate="outOfView">
					<LineLabelPositionInterval>0</LineLabelPositionInterval>
				</LabelReferencePosition>
				<LabelLayout>
					<Alignment>
						<HorizontalAlignment>left</HorizontalAlignment>
						<VerticalAlignment>center</VerticalAlignment>
					</Alignment>
					<Offset uom="mapinfo:imagesize pixel">
						<XOffset>1</XOffset>
						<YOffset>0</YOffset>
					</Offset>
					<LabelRelativeOrientation>parallel</LabelRelativeOrientation>
				</LabelLayout>
				<LabelBaseSize useScale="false">
					<MapScale>0</MapScale>
				</LabelBaseSize>
				<LabelPriority>
					<MajorPriority>
						<NumericValueExpression>
							<MapinfoNumericExpression>399</MapinfoNumericExpression>
						</NumericValueExpression>
					</MajorPriority>
					<MinorPriority>
						<NumericValueExpression>
							<MapinfoNumericExpression/>
						</NumericValueExpression>
					</MinorPriority>
				</LabelPriority>
			</LabelProperties>
		</BaseLabelProperties>
		<LabelThemeList/>
	</LabelSource>
</NamedLabelSource>