From World Wind Wiki

Jump to: navigation, search

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


[edit] Example XML

<?xml version="1.0" encoding="UTF-8" ?> 
<LayerSet Name="LineFeature test" ShowOnlyOneLayer="false" ShowAtStartup="true" xmlns:xsi="" xsi:noNamespaceSchemaLocation="LayerSet.xsd"> 
	<LineFeature ShowAtStartup="true">
		<Name>LF Test</Name>
				0,0 -10,10 -20,0 0,0

[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