LineFeature

From World Wind Wiki

Jump to: navigation, search

LineFeature is the renderable used to draw line on the globe from an xml file.

Contents

[edit] Example XML

<?xml version="1.0" encoding="UTF-8" ?> 
<LayerSet Name="LineFeature test" ShowOnlyOneLayer="false" ShowAtStartup="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="LayerSet.xsd"> 
	<LineFeature ShowAtStartup="true">
		<Name>LF Test</Name>
		<LineWidth>3.0</LineWidth>
		<LineString>
			<posList>
				0,0 -10,10 -20,0 0,0
			</posList>
		</LineString>
		<FeatureColor>
			<Red>0</Red>
			<Green>255</Green>
			<Blue>0</Blue>
		</FeatureColor>
		<AltitudeMode>ClampedToGround</AltitudeMode>
	</LineFeature>
</LayerSet>

[edit] Options

Discussion of some of the options

[edit] posList

This is the list of coordinates in the line. The points can be two-dimensional or three-dimensional. The z-coordinate of three-dimensional points will be interpreted based on AltitudeMode.

[edit] Bugs

There are many bugs. The options used in the xml above should work in a relatively predictable manner for drawing lines flat on the surface; experiment with other options at your own risk. The other options are <Extrude>, <OutlineColor>, <MinimumDisplayAltitude>, <MaximumDisplayAltitude>, <DistanceAboveSurface>, <Description>, <Opacity>, and <ImageUri>.

[edit] Links

Personal tools