Articles and Tutorials

GSLine

GSLine defines a line segment that starts at one point and ends at another
Constructor Summary
GSLine (<Object> params)
            Constructs a new GSLine that is initialized with the properties provided in the params associative array.
 
Method Summary
 GSBounds getBounds()
           Gets the minimum bounding box necessary to contain this map feature
 void setFrom(<GSPoint> from)
           Sets the starting point of the line
 void setTo(<GSPoint> to)
           Sets the end point of the line

Field Detail

graphicsEl

Object graphicsEl
Constructor Detail

GSLine

GSLine(<Object> params)
    Constructs a new GSLine that is initialized with the properties provided in the params associative array.
  •  
    •  
      • from - the NZMG coordinate that specifies the starting point of the line
      • to - the NZMG coordinate that specifies the end point of the line
      • style - an associative array containing name-value pairs for each style property to set, see GSVectorGraphics.setStyle() for all supported properties
    • params - an associative array of named arguments used to initialize this line, the following parameters may be specified:
  • Parameters:
Method Detail

getBounds

GSBounds getBounds()
    Gets the minimum bounding box necessary to contain this map feature
  •  
      the bounds of this map feature
  • Returns:

setFrom

void setFrom(<GSPoint> from)
    Sets the starting point of the line
  •  
      from - an NZMG coordinate
  • Parameters:

setTo

void setTo(<GSPoint> to)
    Sets the end point of the line
  •  
      to - an NZMG coordinate
  • Parameters: