
This is seldom the choice you want, and useful only for drawing straight lines in space. The curvature of the globe is not taken into account. WorldWind.LINEAR - The shape’s path or edges are drawn as a single straight line between their defining geographic coordinates.The curvature of the globe is taken into account.

WorldWind.RHUMB_LINE - The shape’s path or edges follow a line of constant bearing - a rhumb line - between their defining geographic coordinates.WorldWind.GREAT_CIRCLE - The shape’s path or edges follow a great circle path between their defining geographic coordinates.Path, Polygon and Surface Shapes have a pathType property that controls how the path or the shape’s edges are formed. Initially a shape’s highlight attributes are null, in which case the shape’s normal attributes are used even when the shape’s highlighted property is true. Normally the highlight attributes are identical to the normal attributes except for one or two properties, such as color or scale. This provides shape highlighting by simply modifying a single flag. If the property is true, the shape’s highlighted attributes are used. If the property is false, the shape’s normal attributes are used. Each shape has a boolean highlighted property that the app can specify. Shapes contain two sets of attributes, one for normal display and one for highlighted display. In that case you could share a single attributes object among the shapes. You would not do this, however, if several shapes will have the same attributes continually. To avoid any problems because of this it’s often best to create a new attributes object for each shape. It’s important to realize that when assigned to a shape an attributes object is not copied, so any subsequent changes to that object will take effect over those in place when the attributes were assigned to the shape. Alternatively, you could specify an existing attributes object here and the newly created object’s properties would be initialized to that of the object passed in. The null passed to the PlacemarkAttributes constructor indicates that default values are to be used for all properties. PlacemarkAttributes.imageSource = " placemark.attributes = placemarkAttributes PlacemarkAttributes = new WorldWind.PlacemarkAttributes(null) Create the placemark attributes for this placemark. New WorldWind.Position(latitude, longitude, altitude)) Here’s an example of setting Placemark attributes: placemark = new WorldWind.Placemark( The shape’s API doc describes which attributes it does use. Shapes sometimes do not use all the attributes in the associated attribute bundle. See the API docs for those classes to learn their properties. For most shapes this is the ShapeAttributes class, but Placemark and GeographicText have their own attributes classes, PlacemarkAttributes and TextAttributes. Shape AttributesĪll Web WorldWind shapes have an associated bundle of attributes that you use to control their color and other aspects. The API docs describe these shapes in detail.

