Layer With Line Linkage

Example

This is an example of a named layer definition that contains a line linkage layer connecting the centroids of two points.

<?xml version="1.0" encoding="UTF-8"?>
<NamedLayer version ="MXP_WorkSpace_1_5" xmlns="http://www.mapinfo.com/mxp">
	<ConnectionSet />
	<DataSourceDefinitionSet>
		<NamedDataSourceDefinitionRef id="id4" resourceID="/Samples/NamedTables/WorldTable"/>
		<NamedDataSourceDefinitionRef id="id5" resourceID="/Samples/NamedTables/FlightsTable"/>
	</DataSourceDefinitionSet>
	<LineLinkageLayer id="id9" name="World Countries" alias="world" volatile="unknown">
		<Visibility visible="true">
			<VisibleRange enabled="false">
				<ZoomRange uom="mapinfo:length mi">0 0</ZoomRange>
			</VisibleRange>
		</Visibility>
		<GeometryTable>
			<DataSourceRef ref="id4" />
		</GeometryTable>
		<LinkageTable>
			<DataSourceRef ref="id5" />
		</LinkageTable>
		<SourcePointStyle>
			<PointStyle>
				<FontSymbol text="#" size="12" size-unit="mapinfo:length pt" stroke="rgb(0,0,0)" stroke-opacity="1" family="MapInfo 3.0 Compatible"/>
			</PointStyle>		
		</SourcePointStyle>
		<DestinationPointStyle>
			<PointStyle>
				<FontSymbol text="#" size="12" size-unit="mapinfo:length pt" stroke="rgb(0,0,0)" stroke-opacity="1" family="MapInfo 3.0 Compatible"/>
			</PointStyle>		
		</DestinationPointStyle>
		<RelationshipExpression>Country</RelationshipExpression>
		<MetricExpression>Metric</MetricExpression>
		<SourceExpression>Source_Airport</SourceExpression>
		<DestinationExpression>Destination_Airport</DestinationExpression>
	</LineLinkageLayer> 
</NamedLayer>