private void _initializePolygon_(WorldWindow wwd, Polyline polygon, boolean fitShapeToViewport)
{
// Creates a rectangle in the center of the viewport. Attempts to guess at a reasonable size and height.
Position position = GfrShapeUtils.s_getNewShapePosition(wwd);
Angle heading = GfrShapeUtils.s_getNewShapeHeading(wwd, true);
double heightInMeters = fitShapeToViewport?
GfrShapeUtils.s_getViewportScaleFactor(wwd):
GfrFactoryObjShpPlnAbs._DBL_DEFAULT_SHAPE_SIZE_METERS;